修改 流程人员选择判空处理

This commit is contained in:
baoyu
2024-04-29 09:33:29 +08:00
parent 95b245891f
commit 56a195c4c0
4 changed files with 4 additions and 4 deletions
@@ -766,7 +766,7 @@ export default {
// 流程阶段负责人选择 // 流程阶段负责人选择
choiceZRR(type, title, id) { choiceZRR(type, title, id) {
this.nodeList = [] this.nodeList = []
if (id.length > 0) { if (id && id.length > 0) {
this.nodeList = id.split(',') this.nodeList = id.split(',')
} }
this.type = type this.type = type
@@ -709,7 +709,7 @@ export default {
}, },
choiceZRRFEE(type, title, id) { choiceZRRFEE(type, title, id) {
this.nodeListOne = [] this.nodeListOne = []
if (id.length > 0) { if (id && id.length > 0) {
this.nodeListOne = id.split(',') this.nodeListOne = id.split(',')
} }
this.drawerTitleOne = title this.drawerTitleOne = title
@@ -179,7 +179,7 @@ export default {
}, },
choiceZRRS() { choiceZRRS() {
this.nodeList2 = []; this.nodeList2 = [];
if (this.roleForm.workPeople.length > 0) { if (this.roleForm.workPeople && this.roleForm.workPeople.length > 0) {
this.nodeList2 = this.roleForm.workPeople.split(","); this.nodeList2 = this.roleForm.workPeople.split(",");
} }
this.modalshowflag2 = true; this.modalshowflag2 = true;
@@ -820,7 +820,7 @@ export default {
}, },
choiceDOCK(type, title, id) { choiceDOCK(type, title, id) {
this.nodeList = []; this.nodeList = [];
if (id.length > 0) { if (id && id.length > 0) {
this.nodeList = id.split(',') this.nodeList = id.split(',')
} }
this.drawerTitle = title; this.drawerTitle = title;