瀏覽代碼

修复检测项目名称显示异常bug

cfort 3 年之前
父節點
當前提交
2e68ea690f
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 3 0
      src/views/platform/bpmn/bpmTask/list.vue
  2. 4 0
      src/views/system/dashboard/components/new-home.vue

+ 3 - 0
src/views/platform/bpmn/bpmTask/list.vue

@@ -355,6 +355,9 @@
             },
             // 获取检测流程对应的检测项目名称
             getProjectName(v) {
+                if (!this.testingList.length) {
+                    this.testingList = this.$store.getters.testingList
+                }
                 let res = this.testingList.find(item => item.processKey === v)
                 return res ? res.name : ''
             }

+ 4 - 0
src/views/system/dashboard/components/new-home.vue

@@ -255,6 +255,7 @@
                 <bpmn-formrender
                     :visible="orverDialogFormVisible"
                     :instance-id="instanceId"
+                    :processName="processName"
                     @callback="getOrver()"
                     @close="visible => (orverDialogFormVisible = visible)"
                 />
@@ -652,6 +653,9 @@
             },
             // 获取检测流程对应的检测项目名称
             getProjectName(v) {
+                if (!this.testingList.length) {
+                    this.testingList = this.$store.getters.testingList
+                }
                 let res = this.testingList.find(item => item.processKey === v)
                 return res ? res.name : ''
             }