流程详情页面:有审核流程显示流程审核tab
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -114,7 +114,7 @@ provide('tableStore', tableStore)
|
||||
const handleAudit = (instanceId: any) => {
|
||||
push({
|
||||
name: 'BpmProcessInstanceDetail',
|
||||
query: {
|
||||
state: {
|
||||
id: instanceId
|
||||
}
|
||||
})
|
||||
|
||||
@@ -138,7 +138,7 @@ provide('tableStore', tableStore)
|
||||
const handleAudit = (instanceId: any) => {
|
||||
push({
|
||||
name: 'BpmProcessInstanceDetail',
|
||||
query: {
|
||||
state: {
|
||||
id: instanceId
|
||||
}
|
||||
})
|
||||
|
||||
@@ -85,7 +85,7 @@ provide('tableStore', tableStore)
|
||||
const handleAudit = (instanceId: any) => {
|
||||
push({
|
||||
name: 'BpmProcessInstanceDetail',
|
||||
query: {
|
||||
state: {
|
||||
id: instanceId,
|
||||
todo: 'todo'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user