diff --git a/src/views/system/bpm/processInstance/detail/index.vue b/src/views/system/bpm/processInstance/detail/index.vue index 772a51c6..c27da13f 100644 --- a/src/views/system/bpm/processInstance/detail/index.vue +++ b/src/views/system/bpm/processInstance/detail/index.vue @@ -163,6 +163,7 @@ defineOptions({ name: 'BpmProcessInstanceDetail' }) const { query } = useRoute() // 查询参数 const { proxy } = getCurrentInstance() as any const states = history.state +console.log(states, '888888888888') const userId = JSON.parse(window.localStorage.getItem('adminInfo')).id // 当前登录的编号 const id = (states.id as unknown as string) || query.id // 流程实例的编号 const historyInstanceId = states.historyInstanceId as unknown as string // 历史流程实例的编号 @@ -422,6 +423,12 @@ watch( }) // 获得需要自己审批的任务 loadRunningTask(list) + //有自己审批的任务显示流程审核 + if (runningTasks.value.length > 0) { + tab.value = '流程审核' + } else { + tab.value = '申请信息' + } } }, { @@ -436,11 +443,11 @@ onMounted(async () => { await getUserSimpleList().then(res => { userOptions.value = res.data }) - if (todo) { - tab.value = '流程审核' - } else { - tab.value = '申请信息' - } + // if (todo) { + // tab.value = '流程审核' + // } else { + // tab.value = '申请信息' + // } })