预警适用车型显示错误
This commit is contained in:
@@ -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()
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user