Przeglądaj źródła

fix:处理新首页打开流程时数据状态未获取到从而导致提交时是否过审状态为undefined的问题

liujiayin 2 lat temu
rodzic
commit
c0d73ede91

+ 1 - 1
src/views/system/dashboard/templates/pendingMatters.vue

@@ -32,7 +32,7 @@
                         v-for="(item, index) in data"
                         :key="index"
                         style="padding: 6px 0;"
-                        @click.native="handleFlowClick({ taskId: item.taskId })"
+                        @click.native="handleFlowClick({ taskId: item.taskId,flowName:item.name })"
                     >
                         <ibps-list-item-meta>
                             <template slot="avatar">

+ 4 - 1
src/views/system/homepage/index.vue

@@ -26,6 +26,7 @@
             :def-id="defId"
             :task-id="taskId"
             :instance-id="instanceId"
+            :title="flowName"
             @close="visible => (bpmnFormrenderDialogVisible = visible)"
             @callback="handleFlowCallback"
         />
@@ -197,7 +198,8 @@ export default {
             scheduledTask: false,
             calendarDialogVisible: false,
             calendarDialogForm: {},
-            addComponentDatas: {}
+            addComponentDatas: {},
+            flowName:''
         }
     },
     computed: {
@@ -371,6 +373,7 @@ export default {
             this.defId = params.defId || null
             this.taskId = params.taskId || null
             this.instanceId = params.instanceId || null
+            this.flowName = params.flowName || null
             this.bpmnFormrenderDialogVisible = true
         },
         handleFlowCallback () {