From af41c9909b8cf7318efc71f5ee42c468903a855b Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Sun, 5 Dec 2021 21:03:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E9=A2=84=E8=AD=A6=E6=97=A5?= =?UTF-8?q?=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/localTool/standardWarning.vue | 27 ++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/pages/localTool/standardWarning.vue b/src/pages/localTool/standardWarning.vue index 608ab87c7..6eccce155 100644 --- a/src/pages/localTool/standardWarning.vue +++ b/src/pages/localTool/standardWarning.vue @@ -160,17 +160,17 @@ @@ -440,6 +440,7 @@ export default { _this: this, }, res => { console.log('608',res) + // console.log('608',res.data.records[0].zccssrq.replace(' 00:00:00','')) // 适用车型转换 for (let a = 0; a < res.data.records.length; a++) { if (res.data.records[a].applyType !== null) { @@ -454,6 +455,26 @@ export default { } } } + for (let i = 0; i < res.data.records.length; i++) { + let putTimeReplaceTimes = res.data.records[i].putTime.length/19 + let ssrqReplaceTimes = res.data.records[i].ssrq.length/19 + let xcxssrqReplaceTimes = res.data.records[i].xcxssrq.length/19 + let zccssrqReplaceTimes = res.data.records[i].zccssrq.length/19 + + for (let j = 0; j < putTimeReplaceTimes; j++) { + res.data.records[i].putTime = res.data.records[i].putTime.replace(' 00:00:00','') + } + for (let j = 0; j < ssrqReplaceTimes; j++) { + res.data.records[i].ssrq = res.data.records[i].ssrq.replace(' 00:00:00','') + } + for (let j = 0; j < xcxssrqReplaceTimes; j++) { + res.data.records[i].xcxssrq = res.data.records[i].xcxssrq.replace(' 00:00:00','') + } + for (let j = 0; j < zccssrqReplaceTimes; j++) { + res.data.records[i].zccssrq = res.data.records[i].zccssrq.replace(' 00:00:00','') + } + + } this.warningTableDatas = res.data.records this.pageConfig.page = res.data.current if ((this.warningTableDatas.length === 0 || this.warningTableDatas === []) && this.pageConfig.page !== 1) {