修复详情渲染失败问题
This commit is contained in:
@@ -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;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user