adtec-core-package 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -69,4 +69,7 @@ export default {
|
|
|
69
69
|
getProcessTaskList(processInstId: string) {
|
|
70
70
|
return request.get<IWfProcessInstVo>('/api/workflow/workbench/process/' + processInstId)
|
|
71
71
|
},
|
|
72
|
+
getWfProcessInstByBusinessId(businessId: string) {
|
|
73
|
+
return request.get<IWfTaskVo>(baseUrl + '/getUserTaskInfo', { businessId })
|
|
74
|
+
},
|
|
72
75
|
}
|
|
@@ -11,14 +11,15 @@
|
|
|
11
11
|
params?.cancelBtnText ?? '取消'
|
|
12
12
|
}}
|
|
13
13
|
</el-button>
|
|
14
|
-
<el-button v-if="showProcessBtn && task?.
|
|
14
|
+
<el-button v-if="showProcessBtn && task?.procInsId" type="info" :loading="butLoading || taskLoading"
|
|
15
|
+
@click="processShow = true">
|
|
15
16
|
流程详情
|
|
16
17
|
</el-button>
|
|
17
18
|
<template v-if="isAssignee">
|
|
18
19
|
<el-button type="primary" :loading="butLoading || taskLoading" @click="openDialog('assignee')">指定执行人
|
|
19
20
|
</el-button>
|
|
20
21
|
</template>
|
|
21
|
-
<template v-if="!isAssignee && task?.taskId && task?.operations">
|
|
22
|
+
<template v-if="!isAssignee && task?.taskId && task?.operations && showOperationsBtn">
|
|
22
23
|
<el-button :loading="butLoading || taskLoading" v-if="params?.saveBtnText" type="primary"
|
|
23
24
|
@click="params?.saveFunction">{{
|
|
24
25
|
params?.saveBtnText
|
|
@@ -112,10 +113,12 @@ const processShow = ref(false)
|
|
|
112
113
|
const taskFlexRef = ref<HTMLElement | null>(null)
|
|
113
114
|
const $props = defineProps({
|
|
114
115
|
// modelValue: { type: Object, required: false },
|
|
115
|
-
taskId: { type: String, required:
|
|
116
|
+
taskId: { type: String, required: false },
|
|
116
117
|
showProcessBtn: { type: Boolean, required: false, default: false },
|
|
117
118
|
butLoading: { type: Boolean, required: false, default: false },
|
|
118
|
-
params: { type: Object as PropType<ITaskOperate>, required: false }
|
|
119
|
+
params: { type: Object as PropType<ITaskOperate>, required: false },
|
|
120
|
+
taskInfo: { type: Object as PropType<IWfTaskVo>, required: false },
|
|
121
|
+
showOperationsBtn: { type: Boolean, required: false, default: true },
|
|
119
122
|
})
|
|
120
123
|
|
|
121
124
|
const emit = defineEmits(['success'])
|
|
@@ -240,7 +243,13 @@ const loadEnd = () => {
|
|
|
240
243
|
// loading.close()
|
|
241
244
|
}
|
|
242
245
|
const reloadTask = async () => {
|
|
243
|
-
if ($props.
|
|
246
|
+
if ($props.taskInfo) {
|
|
247
|
+
task.value = $props.taskInfo
|
|
248
|
+
if (task.value.finishTime) {
|
|
249
|
+
// ElMessage.info('该待办已完成!')
|
|
250
|
+
console.log('该待办已完成!')
|
|
251
|
+
}
|
|
252
|
+
} else if ($props.taskId) {
|
|
244
253
|
try {
|
|
245
254
|
loadStart()
|
|
246
255
|
task.value = await workflowInstApi.getTaskInst($props.taskId)
|