|
@@ -93,7 +93,10 @@ export default {
|
|
|
{
|
|
|
title: '状态',
|
|
|
width: 180,
|
|
|
- dataIndex: 'statusName'
|
|
|
+ dataIndex: 'status',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ return this.BaseTool.Object.getField(this.statusMap, text)
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '次数',
|
|
@@ -107,7 +110,8 @@ export default {
|
|
|
align: 'center',
|
|
|
scopedSlots: { customRender: 'action' }
|
|
|
}
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ statusMap: {}
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -183,7 +187,7 @@ export default {
|
|
|
data: this.chartsData2.map(item => {
|
|
|
return {
|
|
|
value: item.num,
|
|
|
- name: item.statusName
|
|
|
+ name: this.BaseTool.Object.getField(this.statusMap, item.status)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -193,6 +197,7 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
this.getData()
|
|
|
+ this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_PREPARATION_STATUS)
|
|
|
},
|
|
|
methods: {
|
|
|
getData () {
|