From a175dc8efdba4e40c707c32bd3fc5c15de77b4af Mon Sep 17 00:00:00 2001 From: caoxinyu Date: Mon, 10 Dec 2018 08:38:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E5=90=88=E5=90=8C=E6=98=BE?= =?UTF-8?q?=E7=A4=BABUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ContractInformationManagement/index.vue | 98 ++++++++++++------- 1 file changed, 65 insertions(+), 33 deletions(-) diff --git a/src/views/MarketingCenter/ContractInformationManagement/index.vue b/src/views/MarketingCenter/ContractInformationManagement/index.vue index ca08b8cb..ef657846 100644 --- a/src/views/MarketingCenter/ContractInformationManagement/index.vue +++ b/src/views/MarketingCenter/ContractInformationManagement/index.vue @@ -208,7 +208,7 @@ - + @@ -761,14 +761,22 @@ export default { this.ExecutionProgress = response.data[0].执行进度流水号 this.executionProgressID = response.data[0].执行进度流水号 this.executionProgressID1 = response.data[0].执行进度流水号 - this.time1 = '未完成' - this.time2 = '未完成' - this.time3 = '未完成' - this.time4 = '未完成' - this.time5 = '未完成' - this.time6 = '未完成' - this.time7 = '未完成' - this.time8 = '未完成' + const time = [] + for (let i = 0; i < 8; i++) { + if (parseInt(response.data[0].执行进度流水号) === i) { + time.push('进行中') + } else { + time.push('未完成') + } + } + this.time1 = time[0] + this.time2 = time[1] + this.time3 = time[2] + this.time4 = time[3] + this.time5 = time[4] + this.time6 = time[5] + this.time7 = time[6] + this.time8 = time[7] return this.projectNum }).then(data => { searchTimeAll(data).then(response => { @@ -824,14 +832,22 @@ export default { this.ExecutionProgress = response.data[0].执行进度流水号 this.executionProgressID = response.data[0].执行进度流水号 this.executionProgressID1 = response.data[0].执行进度流水号 - this.time1 = '未完成' - this.time2 = '未完成' - this.time3 = '未完成' - this.time4 = '未完成' - this.time5 = '未完成' - this.time6 = '未完成' - this.time7 = '未完成' - this.time8 = '未完成' + const time = [] + for (let i = 0; i < 8; i++) { + if (parseInt(response.data[0].执行进度流水号) === i) { + time.push('进行中') + } else { + time.push('未完成') + } + } + this.time1 = time[0] + this.time2 = time[1] + this.time3 = time[2] + this.time4 = time[3] + this.time5 = time[4] + this.time6 = time[5] + this.time7 = time[6] + this.time8 = time[7] return this.projectNum }).then(data => { searchTimeAll(data).then(response => { @@ -971,14 +987,22 @@ export default { this.ExecutionProgress = response.data[0].执行进度流水号 this.executionProgressID = response.data[0].执行进度流水号 this.executionProgressID1 = response.data[0].执行进度流水号 - this.time1 = '未完成' - this.time2 = '未完成' - this.time3 = '未完成' - this.time4 = '未完成' - this.time5 = '未完成' - this.time6 = '未完成' - this.time7 = '未完成' - this.time8 = '未完成' + const time = [] + for (let i = 0; i < 8; i++) { + if (parseInt(response.data[0].执行进度流水号) === i) { + time.push('进行中') + } else { + time.push('未完成') + } + } + this.time1 = time[0] + this.time2 = time[1] + this.time3 = time[2] + this.time4 = time[3] + this.time5 = time[4] + this.time6 = time[5] + this.time7 = time[6] + this.time8 = time[7] return this.hetongID }).then(data => { searchTimeAll(data).then(response => { @@ -1181,14 +1205,22 @@ export default { this.ExecutionProgress = response.data[0].执行进度流水号 this.executionProgressID = response.data[0].执行进度流水号 this.executionProgressID1 = response.data[0].执行进度流水号 - this.time1 = '未完成' - this.time2 = '未完成' - this.time3 = '未完成' - this.time4 = '未完成' - this.time5 = '未完成' - this.time6 = '未完成' - this.time7 = '未完成' - this.time8 = '未完成' + const time = [] + for (let i = 0; i < 8; i++) { + if (parseInt(response.data[0].执行进度流水号) === i) { + time.push('进行中') + } else { + time.push('未完成') + } + } + this.time1 = time[0] + this.time2 = time[1] + this.time3 = time[2] + this.time4 = time[3] + this.time5 = time[4] + this.time6 = time[5] + this.time7 = time[6] + this.time8 = time[7] return this.projectNum }).then(data => { searchTimeAll(data).then(response => {