46
46
<BusinessFormComponent :id =" processInstance.businessKey" />
47
47
</div >
48
48
</div >
49
- <!-- 操作栏按钮 -->
50
- <!-- TODO @GoldenZqqq:ProcessInstanceOperationButton,操作按钮。不叫 Container 会好点点,和后端也更统一 -->
51
- <ProcessInstanceBtnConatiner
52
- ref =" processInstanceBtnRef"
53
- :processInstance =" processInstance"
54
- :userOptions =" userOptions"
55
- @success =" getDetail"
56
- />
57
49
</el-col >
58
50
<el-col :span =" 6" >
59
51
<!-- TODO @GoldenZqqq:后续这个,也拆个小组件出来 -->
126
118
<!-- 流转评论 -->
127
119
<el-tab-pane label =" 流转评论" > 流转评论 </el-tab-pane >
128
120
</el-tabs >
121
+
122
+ <!-- 操作栏按钮 -->
123
+ <ProcessInstanceOperationButton
124
+ ref =" operationButtonRef"
125
+ :processInstance =" processInstance"
126
+ :userOptions =" userOptions"
127
+ @success =" getDetail"
128
+ />
129
129
</ContentWrap >
130
130
</template >
131
131
<script lang="ts" setup>
@@ -138,6 +138,7 @@ import * as ProcessInstanceApi from '@/api/bpm/processInstance'
138
138
import * as TaskApi from ' @/api/bpm/task'
139
139
import ProcessInstanceBpmnViewer from ' ./ProcessInstanceBpmnViewer.vue'
140
140
import ProcessInstanceTaskList from ' ./ProcessInstanceTaskList.vue'
141
+ import ProcessInstanceOperationButton from ' ./ProcessInstanceOperationButton.vue'
141
142
import { registerComponent } from ' @/utils/routerHelper'
142
143
import * as UserApi from ' @/api/system/user'
143
144
import audit1 from ' @/assets/svgs/bpm/audit1.svg'
@@ -151,7 +152,7 @@ const message = useMessage() // 消息弹窗
151
152
const id = query .id as unknown as string // 流程实例的编号
152
153
const processInstanceLoading = ref (false ) // 流程实例的加载中
153
154
const processInstance = ref <any >({}) // 流程实例
154
- const processInstanceBtnRef = ref ()
155
+ const operationButtonRef = ref ()
155
156
const bpmnXml = ref (' ' ) // BPMN XML
156
157
const tasksLoad = ref (true ) // 任务的加载中
157
158
const tasks = ref <any []>([]) // 任务列表
@@ -244,7 +245,7 @@ const getTaskList = async () => {
244
245
})
245
246
246
247
// 获得需要自己审批的任务
247
- processInstanceBtnRef .value .loadRunningTask (tasks .value )
248
+ operationButtonRef .value ? .loadRunningTask (tasks .value )
248
249
} finally {
249
250
tasksLoad .value = false
250
251
}
0 commit comments