|
@@ -30,9 +30,15 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
listPageV2({ "pageNum": 1, "pageSize": -1, "params": [{ "param": "a.id", "compare": "=", "value": this.id }] }).then(res => {
|
|
|
- this.evaluationColumns = tableDataParsing(res.fieldBeans)
|
|
|
+ this.evaluationColumns = tableDataParsing(res.fieldBeans.filter(item => !~["orderFlags", "orderType"].indexOf(item.jname)))
|
|
|
this.$nextTick(() => {
|
|
|
- this.evaluationData = res.data.records
|
|
|
+ this.evaluationData = res.data.records.map(item => {
|
|
|
+ Object.keys(item).map(key => {
|
|
|
+ var val = JSON.parse(res?.fieldBeans?.find(val => val.jname == key)?.enumMap || "{}")[item[key]];
|
|
|
+ if (val) item[key] = val;
|
|
|
+ })
|
|
|
+ return item
|
|
|
+ })
|
|
|
})
|
|
|
})
|
|
|
},
|