mirror of
https://gitee.com/myxzgzs/boyue-ui-admin-vue3
synced 2025-08-08 00:12:43 +08:00
fix:【BPM 工作流】流程预测时,“查看子流程”按钮不支持点击
This commit is contained in:
parent
8ef499d717
commit
2a06f6744d
@ -48,6 +48,7 @@ export type ApprovalNodeInfo = {
|
|||||||
status: number
|
status: number
|
||||||
startTime?: Date
|
startTime?: Date
|
||||||
endTime?: Date
|
endTime?: Date
|
||||||
|
processInstanceId?: string
|
||||||
candidateUsers?: User[]
|
candidateUsers?: User[]
|
||||||
tasks: ApprovalTaskInfo[]
|
tasks: ApprovalTaskInfo[]
|
||||||
}
|
}
|
||||||
|
@ -269,7 +269,8 @@ watch(
|
|||||||
if (!val || selectedComponentIndex.value === -1) {
|
if (!val || selectedComponentIndex.value === -1) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 如果是基础设置页,默认选中的索引改成-1,为了防止删除组件后切换到此页导致报错
|
// 如果是基础设置页,默认选中的索引改成 -1,为了防止删除组件后切换到此页导致报错
|
||||||
|
// https://gitee.com/yudaocode/yudao-ui-admin-vue3/pulls/792
|
||||||
if (props.showTabBar) {
|
if (props.showTabBar) {
|
||||||
selectedComponentIndex.value = -1
|
selectedComponentIndex.value = -1
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="activity.nodeType === NodeType.CHILD_PROCESS_NODE">
|
<div v-if="activity.nodeType === NodeType.CHILD_PROCESS_NODE">
|
||||||
<el-button type="primary" plain size="small" @click="handleChildProcess(activity)">
|
<el-button
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
size="small"
|
||||||
|
@click="handleChildProcess(activity)"
|
||||||
|
:disabled="!activity.processInstanceId"
|
||||||
|
>
|
||||||
查看子流程
|
查看子流程
|
||||||
</el-button>
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
@ -319,7 +325,9 @@ const handleUserSelectConfirm = (activityId: string, userList: any[]) => {
|
|||||||
|
|
||||||
/** 跳转子流程 */
|
/** 跳转子流程 */
|
||||||
const handleChildProcess = (activity: any) => {
|
const handleChildProcess = (activity: any) => {
|
||||||
// TODO @lesan:貌似跳不过去?!
|
if (!activity.processInstanceId) {
|
||||||
|
return
|
||||||
|
}
|
||||||
push({
|
push({
|
||||||
name: 'BpmProcessInstanceDetail',
|
name: 'BpmProcessInstanceDetail',
|
||||||
query: {
|
query: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user