|
@@ -435,7 +435,7 @@ export default {
|
|
|
// nodeCandidate.type 0:用户 1:角色
|
|
|
this.form.nodeCandidate.type = [1, 2].includes(mode) ? 0 : 1
|
|
|
const isSameMode = [1, 2].includes(mode) && [1, 2].includes(oldMode)
|
|
|
- if (!isSameMode || !this.form.nodeCandidate.assignees) {
|
|
|
+ if (!isSameMode || !Array.isArray(this.form.nodeCandidate.assignees)) {
|
|
|
// selectMode 变化 对 assignees 重置
|
|
|
this.form.nodeCandidate.assignees = []
|
|
|
}
|
|
@@ -450,7 +450,9 @@ export default {
|
|
|
this.form.nodeAssigneeList = []
|
|
|
} else if (oldType === 4) {
|
|
|
// 4: 发起人自选 重置
|
|
|
- this.form.nodeCandidate = {}
|
|
|
+ this.form.nodeCandidate = {
|
|
|
+ assignees: []
|
|
|
+ }
|
|
|
} else if ([5].includes(oldType)) {
|
|
|
// 发起人自己 对 actionUrl 重置
|
|
|
this.form.actionUrl = []
|
|
@@ -459,7 +461,7 @@ export default {
|
|
|
if ([1, 3].includes(setType)) {
|
|
|
if (!this.form.nodeAssigneeList) this.form.nodeAssigneeList = []
|
|
|
} else if (setType === 4) {
|
|
|
- if (!this.form.nodeCandidate) this.selectModeChange(this.form.selectMode)
|
|
|
+ if (!Array.isArray(this.form.nodeCandidate?.assignees)) this.selectModeChange(this.form.selectMode)
|
|
|
} else if (setType === 5) {
|
|
|
if (!this.form.actionUrl) this.form.actionUrl = []
|
|
|
}
|