diff --git a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue index ae33dc5c2..9961d3c26 100644 --- a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue +++ b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue @@ -288,10 +288,15 @@ + readonly> + + + + + + + @@ -834,11 +839,6 @@ this.addForm.unit = list this.addForm.unitName = listName this.modalshowflagZRBM = false - this.$http.get('SarInstitution/institution/getInstitutionIdToDept', { - institutionIds: list - }, {}, res => { - console.log(res); - }) }, choiceZRBM(id) { if (this.DrawerType === 'see') { @@ -891,15 +891,22 @@ this.modalshowflag2 = true }, checkedRole2 (data) { - var idList = '' - var nameList = '' + console.log(data); + let idList = '' + let nameList = '' + let bmIdList = '' + let bmNameList = '' data.forEach( item => { if (nameList.length > 0) { nameList += ',' idList += ',' + bmIdList += ',' + bmNameList += ',' } idList += item.id nameList += item.name + bmIdList += item.institutionId + bmNameList += item.institutionName }) if (this.type === 'resPerson') { this.addForm.resPerson = idList @@ -907,6 +914,8 @@ } else if (this.type === 'drafter') { this.addForm.drafter = idList this.addForm.drafterName = nameList + this.addForm.unitName = bmNameList + this.addForm.unit = bmIdList } }, addDrawerSubmit () {