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() } };