编辑打开时,干扰源类型决定类别
This commit is contained in:
@@ -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)}`
|
||||
|
||||
@@ -527,6 +527,7 @@ const getTreeList = () => {
|
||||
})
|
||||
|
||||
form.value.loadType = loadTypeList.value[0]?.id
|
||||
|
||||
changeLoadType()
|
||||
})
|
||||
}
|
||||
@@ -542,7 +543,7 @@ const changeLoadType = async () => {
|
||||
return item.id == form.value.loadType
|
||||
})?.children
|
||||
|
||||
form.value.businessType = businessTypeList.value[0]?.id
|
||||
form.value.businessType = businessTypeList.value[0]?.id
|
||||
}
|
||||
//选择关联干扰源回显数据
|
||||
const changeUserName = () => {
|
||||
@@ -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
|
||||
|
||||
@@ -123,6 +123,7 @@ const tableStore = new TableStore({
|
||||
},
|
||||
click: row => {
|
||||
flag.value = true
|
||||
console.log(row.processInstanceId,row.historyInstanceId)
|
||||
handleAudit(row.processInstanceId, row.historyInstanceId)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user