流程详情页面:有审核流程显示流程审核tab

This commit is contained in:
zhujiyan
2024-06-06 09:31:59 +08:00
parent 9ca6387259
commit fb884693e7
4 changed files with 15 additions and 8 deletions

View File

@@ -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 = '申请信息'
// }
})
</script>
<style lang="scss" scoped>