编辑打开时,干扰源类型决定类别
This commit is contained in:
@@ -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)}`
|
||||||
|
|||||||
@@ -527,6 +527,7 @@ const getTreeList = () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
form.value.loadType = loadTypeList.value[0]?.id
|
form.value.loadType = loadTypeList.value[0]?.id
|
||||||
|
|
||||||
changeLoadType()
|
changeLoadType()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user