编辑打开时,干扰源类型决定类别

This commit is contained in:
sjl
2025-12-15 17:41:49 +08:00
parent 67efef738a
commit 72d836020b
3 changed files with 14 additions and 4 deletions

View File

@@ -328,6 +328,7 @@ const elementHover = (element) => {
<p>Elemet type: ${element.value.type}</p>
</div>` // 默认值
if (element.value.type === 'bpmn:StartEvent' && processInstance.value) {
html = `<p>发起人:${processInstance.value.startUser.name}</p>
<p>部门:${processInstance.value.startUser.deptName}</p>
<p>创建时间:${formatDate(processInstance.value.createTime)}`

View File

@@ -527,6 +527,7 @@ const getTreeList = () => {
})
form.value.loadType = loadTypeList.value[0]?.id
changeLoadType()
})
}
@@ -617,6 +618,7 @@ const getDictTree = (e?: string) => {
} else {
form.value.businessType = ''
form.value.loadType = ''
businessTypeList.value = []
}
}
@@ -851,8 +853,12 @@ const open = async (row: any) => {
rowValue.value = row.row
await getTempLineDetailsById({ id: row.row.id }).then(res => {
form.value = res.data
form.value.loadType = loadTypeList.value.filter((item: any) => item.name == res.data.loadType)[0]?.id
businessTypeList.value = loadTypeList.value.find(item => {
return item.id == form.value.loadType
})?.children
form.value.businessType = businessTypeList.value.filter(
(item: any) => item.name == res.data.businessType
)[0]?.id
@@ -972,7 +978,9 @@ const confirmForm = async (flag: boolean) => {
type: 'success'
})
ruleFormRef.value.resetFields()
resetForm()
close()
}).catch(() => {
loading.value = false

View File

@@ -123,6 +123,7 @@ const tableStore = new TableStore({
},
click: row => {
flag.value = true
console.log(row.processInstanceId,row.historyInstanceId)
handleAudit(row.processInstanceId, row.historyInstanceId)
}
},