whj 1 年之前
父節點
當前提交
1b03098375
共有 1 個文件被更改,包括 8 次插入3 次删除
  1. 8 3
      src/views/preparation/report/PreparationReportPie.vue

+ 8 - 3
src/views/preparation/report/PreparationReportPie.vue

@@ -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 () {