From 6ab7f441e384cceab922e11f9b1353b6bdd1ad32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E4=BC=9F=E4=BD=B3?= <2797716443@qq.com> Date: Thu, 6 Jan 2022 14:28:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B6=E4=BB=96=E6=B8=85=E5=8D=95=E8=BD=A6?= =?UTF-8?q?=E5=9E=8B=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/otherAddEit.vue | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue index fda399db8..1f6edd81c 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit.vue @@ -1039,6 +1039,32 @@ export default { this.$message.warning('请勿添加重复数据') } else{ this.sarAccessInfoList.push(item) + this.sarAccessInfoList.forEach(item => { + // 能源类型转换 + if (item.nylx !== null) { + let k = (item.nylx || "").split(","); + for (let i in this.applyArcticOptions) { + for (let m = 0; m < k.length; m++) { + if (this.applyArcticOptions[i].value === k[m]) { + k[m] = this.applyArcticOptions[i].label; + } + item.nylx = k.join(","); + } + } + } + // 适用车型转换 + if (item.typeApplicable !== null) { + let k = (item.typeApplicable || "").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; + } + item.typeApplicable = k.join(","); + } + } + } + }) // this.$refs.accessTypeSelect.clearSelection() this.$refs.entryTable.clearSelection() this.$refs.searchTable.clearSelection()