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

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

View File

@@ -527,6 +527,7 @@ const getTreeList = () => {
}) })
form.value.loadType = loadTypeList.value[0]?.id form.value.loadType = loadTypeList.value[0]?.id
changeLoadType() changeLoadType()
}) })
} }
@@ -542,7 +543,7 @@ const changeLoadType = async () => {
return item.id == form.value.loadType return item.id == form.value.loadType
})?.children })?.children
form.value.businessType = businessTypeList.value[0]?.id form.value.businessType = businessTypeList.value[0]?.id
} }
//选择关联干扰源回显数据 //选择关联干扰源回显数据
const changeUserName = () => { const changeUserName = () => {
@@ -617,6 +618,7 @@ const getDictTree = (e?: string) => {
} else { } else {
form.value.businessType = '' form.value.businessType = ''
form.value.loadType = '' form.value.loadType = ''
businessTypeList.value = [] businessTypeList.value = []
} }
} }
@@ -851,8 +853,12 @@ const open = async (row: any) => {
rowValue.value = row.row rowValue.value = row.row
await getTempLineDetailsById({ id: row.row.id }).then(res => { await getTempLineDetailsById({ id: row.row.id }).then(res => {
form.value = res.data form.value = res.data
form.value.loadType = loadTypeList.value.filter((item: any) => item.name == res.data.loadType)[0]?.id 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( form.value.businessType = businessTypeList.value.filter(
(item: any) => item.name == res.data.businessType (item: any) => item.name == res.data.businessType
)[0]?.id )[0]?.id
@@ -972,7 +978,9 @@ const confirmForm = async (flag: boolean) => {
type: 'success' type: 'success'
}) })
ruleFormRef.value.resetFields() ruleFormRef.value.resetFields()
resetForm() resetForm()
close() close()
}).catch(() => { }).catch(() => {
loading.value = false loading.value = false

View File

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