|
@@ -77,7 +77,7 @@
|
77
|
77
|
:key="index"
|
78
|
78
|
>
|
79
|
79
|
<template slot-scope="scope">
|
80
|
|
-
|
|
80
|
+ {{ scope.row.data[index].inspect_value}}
|
81
|
81
|
</template>
|
82
|
82
|
</el-table-column>
|
83
|
83
|
<el-table-column fixed="right" label="操作" width="100">
|
|
@@ -384,7 +384,7 @@ export default {
|
384
|
384
|
for(const mkey in this.ObjectData){
|
385
|
385
|
if (!(this.ObjectData[mkey].item_name in dd[key])) {
|
386
|
386
|
dd[key][this.ObjectData[mkey].item_name] = {
|
387
|
|
- ItemName: this.ObjectData[mkey].item_name,
|
|
387
|
+ item_name: this.ObjectData[mkey].item_name,
|
388
|
388
|
name: mkey,
|
389
|
389
|
inspect_value:0
|
390
|
390
|
};
|
|
@@ -403,12 +403,15 @@ export default {
|
403
|
403
|
this.tableData.map(item => {
|
404
|
404
|
// console.log("item---",item.data)
|
405
|
405
|
let newarr = Object.values(item.data);
|
406
|
|
- //console.log("arr",arr)
|
|
406
|
+ // console.log("arr",newarr)
|
407
|
407
|
newarr.sort((a,b)=>{
|
408
|
|
- return projectArr.indexOf(a.ItemName)-projectArr.indexOf(b.ItemName);
|
|
408
|
+ // console.log(1111,a)
|
|
409
|
+ // console.log(2222,b)
|
|
410
|
+ return projectArr.indexOf(a.item_name)-projectArr.indexOf(b.item_name);
|
409
|
411
|
});
|
410
|
412
|
item.data = newarr
|
411
|
|
- })
|
|
413
|
+ console.log(1111111111,item.data)
|
|
414
|
+ })
|
412
|
415
|
console.log("表",this.tableData)
|
413
|
416
|
}
|
414
|
417
|
})
|