diff --git a/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue b/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue index 6dacbf0df..8b6ad145e 100644 --- a/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue +++ b/src/pages/processCenter/pages/creatProcess/xmpg/step3.vue @@ -208,19 +208,18 @@ { + if (nameList.length > 0) { + nameList += ","; + idList += ","; + } + idList += item.id; + nameList += item.name; + }); if (this.type === 1) { - this.listForm.breakdownList[this.lsIndex].implementerId = data[0].id; - this.listForm.breakdownList[this.lsIndex].implementer = data[0].name; + this.listForm.breakdownList[this.lsIndex].implementerId = idList; + this.listForm.breakdownList[this.lsIndex].implementer = nameList; } else if (this.type === 2) { this.listForm.breakdownList.forEach(item => { this.selectList.forEach(items => { if (item === items) { - item.implementerId = data[0].id; - item.implementer = data[0].name; + item.implementerId = idList; + item.implementer = nameList; } }); }); @@ -596,13 +605,20 @@ export default { this.nodeList = []; this.lsIndex = index; this.lsType = type; - this.nodeList.push(row); + if(row.implementerId){ + this.nodeList = row.implementerId.split(","); + }else{ + this.nodeList.push(row); + } this.modalshowflag = true; } else if (type === 2) { // 批量 if (this.selectList.length > 0) { this.lsType = type; this.nodeList = []; + if(row.implementerId){ + this.nodeList = row.implementerId.split(","); + } this.modalshowflag = true; this.drawerTitle = "批量选择责任人"; } else {