|
|
@ -37,7 +37,13 @@ |
|
|
|
|
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="负责人" prop="principalName"> |
|
|
|
<el-input v-model.trim="formData.principalName" class="u-item-width-normal" size="small" clearable placeholder="请输入"></el-input> |
|
|
|
<el-select v-model.trim="formData.principalName" class="u-item-width-normal" size="small" clearable |
|
|
|
placeholder="请选择联系人" @change="handelChangeStaff"> |
|
|
|
<el-option v-for="item in stafflist" |
|
|
|
:key="item.value" |
|
|
|
:label="item.name" |
|
|
|
:value="item.name"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
@ -298,7 +304,8 @@ export default { |
|
|
|
//地图 |
|
|
|
loading: false, |
|
|
|
searchValue: '', |
|
|
|
searchOptions: [] |
|
|
|
searchOptions: [], |
|
|
|
stafflist:[] |
|
|
|
}; |
|
|
|
}, |
|
|
|
watch: {}, |
|
|
@ -312,7 +319,7 @@ export default { |
|
|
|
this.getVolunteerList(); |
|
|
|
this.loadplaceType(); |
|
|
|
this.getDemandOptions() |
|
|
|
|
|
|
|
this.getStafflist() |
|
|
|
// this.loadserviceList(); |
|
|
|
// this.loadGrid(); |
|
|
|
// this.loadplaceType(); |
|
|
@ -326,18 +333,21 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
// async loadserviceList() { |
|
|
|
// const url = '/actual/base/serviceitem/dict-list'; |
|
|
|
// const params = { |
|
|
|
// type: 'usable' |
|
|
|
// }; |
|
|
|
// const { data, code, msg } = await requestPost(url, params); |
|
|
|
// if (code === 0) { |
|
|
|
// this.serviceList = data; |
|
|
|
// } else { |
|
|
|
// this.$message.error(msg); |
|
|
|
// } |
|
|
|
// }, |
|
|
|
getStafflist() { |
|
|
|
let parms = { |
|
|
|
roleKey:'community_org_director' |
|
|
|
}; |
|
|
|
this.$http.post("data/aggregator/epmetuser/getRoleUserInfo", parms).then((resp) => { |
|
|
|
this.stafflist = resp.data.data; |
|
|
|
}); |
|
|
|
}, |
|
|
|
handelChangeStaff(val){ |
|
|
|
if(val){ |
|
|
|
this.formData.principalPhone = this.stafflist.filter(item=>item.name === val)[0].mobile |
|
|
|
}else{ |
|
|
|
this.formData.principalPhone = '' |
|
|
|
} |
|
|
|
}, |
|
|
|
async getDemandOptions() { |
|
|
|
this.$http |
|
|
|
.post("/actual/base/serviceitem/listAllCategory") |
|
|
|