From 5855f25abdafc529dfa976a67e9da22fa075fbf7 Mon Sep 17 00:00:00 2001 From: yanyizhou <2311759275@qq.com> Date: Thu, 2 Dec 2021 21:49:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AD=A6=E9=80=82=E7=94=A8=E8=BD=A6?= =?UTF-8?q?=E5=9E=8B=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/localTool/standardWarning.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/pages/localTool/standardWarning.vue b/src/pages/localTool/standardWarning.vue index 5203e4016..308c3e146 100644 --- a/src/pages/localTool/standardWarning.vue +++ b/src/pages/localTool/standardWarning.vue @@ -641,7 +641,20 @@ export default { }, { _this: this }, res => { - console.log('805',res) + // 适用车型转换 + for (let a = 0; a < res.data.records.length; a++) { + if (res.data.records[a].applyType !== null) { + let k = (res.data.records[a].applyType || "").split(","); + for (let i in this.energyKindOptions) { + for (let m = 0; m < k.length; m++) { + if (this.energyKindOptions[i].value === k[m]) { + k[m] = this.energyKindOptions[i].label; + } + res.data.records[a].applyType = k.join(","); + } + } + } + } this.warningTableDatas = res.data.records this.pageConfig.page = res.data.current this.pageConfig.pageSize = res.data.size @@ -650,9 +663,8 @@ export default { this.warningTableLoading = false }, e => { }); - }); - + this.searchBtnClick() } };