仿钉钉设计流程后端接入-10%

This commit is contained in:
jason
2024-03-27 09:27:14 +08:00
parent cf28e42a26
commit 627b822f15
6 changed files with 50 additions and 14 deletions

View File

@ -10,6 +10,7 @@
</div>
<p>审批人</p>
</a>
<!-- TODO 暂时去掉未完成
<a class="add-node-popover-item notifier" @click="addType(2)">
<div class="item-wrapper">
<span class="iconfont"></span>
@ -22,6 +23,7 @@
</div>
<p>条件分支</p>
</a>
-->
</div>
<template #reference>
<button class="btn" type="button">
@ -71,8 +73,7 @@ const addType = (type) => {
candidateStrategy: undefined,
candidateParam: []
},
childNode: props.childNodeP,
nodeUserList: []
// childNode: props.childNodeP
}
} else if (type == 2) {
data = {
@ -97,7 +98,7 @@ const addType = (type) => {
priorityLevel: 1,
conditionList: [],
nodeUserList: [],
childNode: props.childNodeP
// childNode: props.childNodeP
},
{
name: '条件2',

View File

@ -250,7 +250,7 @@ const saveApprover = () => {
closeDrawer()
}
const saveConfig = () => {
console.log('before userTaskConfig is ', userTaskConfig.value.id)
const rawConfig = toRaw(userTaskConfig.value)
rawConfig.value.attributes = toRaw(candidateConfig.value)
rawConfig.flag = true

View File

@ -295,7 +295,8 @@ const setPerson = (priorityLevel) => {
}
setUserTaskConfig({
value: {
...JSON.parse(JSON.stringify(props.nodeConfig))
...JSON.parse(JSON.stringify(props.nodeConfig)),
id: 'Activity_'+_uid,
},
flag: false,
id: _uid,