|
|
@ -31,8 +31,8 @@ |
|
|
|
style="display: block" |
|
|
|
prop="serviceType"> |
|
|
|
<el-select v-model="formData.serviceType" |
|
|
|
filterable |
|
|
|
placeholder="请选择" |
|
|
|
filterable |
|
|
|
clearable> |
|
|
|
<el-option v-for="item in serviceTypeList" |
|
|
|
:key="item.serviceType" |
|
|
@ -152,7 +152,7 @@ export default { |
|
|
|
applicantId: '', |
|
|
|
keyWords: '', |
|
|
|
formData: { |
|
|
|
serviceType: 0, |
|
|
|
serviceType: '', |
|
|
|
serviceTypeName: '', |
|
|
|
gridId: '', |
|
|
|
gridName: '', |
|
|
@ -175,6 +175,7 @@ export default { |
|
|
|
async created () { |
|
|
|
this.getGridList('query') |
|
|
|
this.getServiceTypeList() |
|
|
|
// this.getDemandUserList() |
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
}, |
|
|
@ -188,10 +189,10 @@ export default { |
|
|
|
//获取服务事项 |
|
|
|
await this.getServiceTypeList() |
|
|
|
this.getGridList(type) |
|
|
|
|
|
|
|
this.formType = type |
|
|
|
if (type === 'edit'){ |
|
|
|
this.formData = row |
|
|
|
this.getDemandUserList(this.formData.gridId) |
|
|
|
} |
|
|
|
this.endLoading() |
|
|
|
}, |
|
|
@ -211,11 +212,11 @@ export default { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
async getDemandUserList () { |
|
|
|
async getDemandUserList (gridId) { |
|
|
|
const { user } = await this.$store.state; |
|
|
|
const params = { |
|
|
|
agencyId: user.agencyId, |
|
|
|
gridId: this.formData.gridId, |
|
|
|
gridId: gridId, |
|
|
|
name: "", |
|
|
|
}; |
|
|
|
// addorupdate |
|
|
@ -226,6 +227,7 @@ export default { |
|
|
|
return this.$message.error(res.msg); |
|
|
|
} else { |
|
|
|
this.demandUserList = res.data; |
|
|
|
console.log(this.demandUserList) |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
@ -249,7 +251,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
handleGridChange (val) { |
|
|
|
this.getDemandUserList(); |
|
|
|
this.getDemandUserList(this.formData.gridId); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -298,11 +300,14 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
resetData () { |
|
|
|
this.demandUserList = [] |
|
|
|
this.optionsG = [] |
|
|
|
this.formData = { |
|
|
|
serviceType: 0, |
|
|
|
gridId: '', |
|
|
|
applicantAddress: '', |
|
|
|
applicantName: '', |
|
|
|
applicantId: '', |
|
|
|
serviceContent: '', |
|
|
|
applicantMobile: '', |
|
|
|
principalName: '', |
|
|
|