src/components/dispatch/index.vue
@@ -300,17 +300,21 @@ }, // 人员更改 async handlePerChange(id){ await this.getLawUser(id); let obj = await this.getLawUser(id); this.dispatch.lawEnforcerName = obj.nickName; this.dispatch.contactWay = obj.mobile; }, // 获取执法人员信息 async getLawUser(id){ let obj = {} await this.$axios({ method:'get', url:`sccg/admin/${id}` }) .then(res=>{ console.log(res); obj = res.data; }) return obj; } } }