修改 流程人员选择判空处理
This commit is contained in:
@@ -766,7 +766,7 @@ export default {
|
||||
// 流程阶段负责人选择
|
||||
choiceZRR(type, title, id) {
|
||||
this.nodeList = []
|
||||
if (id.length > 0) {
|
||||
if (id && id.length > 0) {
|
||||
this.nodeList = id.split(',')
|
||||
}
|
||||
this.type = type
|
||||
|
||||
@@ -709,7 +709,7 @@ export default {
|
||||
},
|
||||
choiceZRRFEE(type, title, id) {
|
||||
this.nodeListOne = []
|
||||
if (id.length > 0) {
|
||||
if (id && id.length > 0) {
|
||||
this.nodeListOne = id.split(',')
|
||||
}
|
||||
this.drawerTitleOne = title
|
||||
|
||||
@@ -179,7 +179,7 @@ export default {
|
||||
},
|
||||
choiceZRRS() {
|
||||
this.nodeList2 = [];
|
||||
if (this.roleForm.workPeople.length > 0) {
|
||||
if (this.roleForm.workPeople && this.roleForm.workPeople.length > 0) {
|
||||
this.nodeList2 = this.roleForm.workPeople.split(",");
|
||||
}
|
||||
this.modalshowflag2 = true;
|
||||
|
||||
@@ -820,7 +820,7 @@ export default {
|
||||
},
|
||||
choiceDOCK(type, title, id) {
|
||||
this.nodeList = [];
|
||||
if (id.length > 0) {
|
||||
if (id && id.length > 0) {
|
||||
this.nodeList = id.split(',')
|
||||
}
|
||||
this.drawerTitle = title;
|
||||
|
||||
Reference in New Issue
Block a user