diff --git a/src/views/modules/communityParty/regionalParty/unitsForm.vue b/src/views/modules/communityParty/regionalParty/unitsForm.vue index 977356130..43e30d8c0 100644 --- a/src/views/modules/communityParty/regionalParty/unitsForm.vue +++ b/src/views/modules/communityParty/regionalParty/unitsForm.vue @@ -243,7 +243,7 @@ export default { handelChangeStaff(val){ if(val){ this.formData.contactMobile = this.dicts.stafflist.filter(item=>item.staffId === val)[0].mobile; - this.formData.contact = val; + this.formData.contact = this.dicts.stafflist.filter(item=>item.staffId === val)[0].roleStr; }else{ this.formData.contactMobile = ''; this.formData.contact = ''; diff --git a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue index 81a001d6e..f1522dc7b 100644 --- a/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue +++ b/src/views/modules/shequzhili/tuceng/yingji/zizuzhi/addForm.vue @@ -344,7 +344,7 @@ export default { handelChangeStaff(val){ if(val){ this.formData.principalPhone = this.stafflist.filter(item=>item.name === val)[0].mobile; - this.formData.principalId= this.stafflist.filter(item=>item.name === val)[0].staffId; + this.formData.contact = this.dicts.stafflist.filter(item=>item.staffId === val)[0].roleStr; }else{ this.formData.principalPhone = ''; this.formData.principalId = null;