其他清单车型回显
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user