修复详情渲染失败问题

This commit is contained in:
dragon
2025-02-12 17:38:58 +08:00
parent 3bc87809e1
commit 45c3f1fd92

View File

@@ -488,14 +488,14 @@ export default {
this.inquire.followErbanNoList = res.data.followErbanNoList.join(); this.inquire.followErbanNoList = res.data.followErbanNoList.join();
// this.inquire.whiteErbanNoProductionRatioMap = res.data.whiteErbanNoProductionRatioMap.join(); // this.inquire.whiteErbanNoProductionRatioMap = res.data.whiteErbanNoProductionRatioMap.join();
this.inquire.blackErbanNoList = res.data.blackErbanNoList.join(); this.inquire.blackErbanNoList = res.data.blackErbanNoList.join();
var newArr = [];
var obj = res.data.whiteErbanNoProductionRatioMap; var obj = res.data.whiteErbanNoProductionRatioMap;
const arr = Object.keys(obj).map((key) => ({ var arr = Object.keys(obj).map((key) => ({
userId: key, userId: key,
val: obj[key], val: obj[key],
})); }));
var newArr = [];
arr.forEach((res, i) => { arr.forEach((res, i) => {
this.newArr[i] = res; newArr[i] = res;
}); });
this.detailsTable = newArr; this.detailsTable = newArr;
}); });