Browse Source

暂提

feature
zxc 3 years ago
parent
commit
0f8c7e95b9
  1. 6
      src/views/modules/communityService/worklog/workLog.vue
  2. 17
      src/views/modules/communityService/worklog/workLogForm.vue

6
src/views/modules/communityService/worklog/workLog.vue

@ -371,8 +371,8 @@ export default {
}); });
}, },
async handleExportModule () { async handleExportModule () {
// let url = "/heart/workdiaryService/record/downloadTemplate"; let url = "/heart/workdiaryService/record/downloadTemplate";
let url = "http://yapi.elinkservice.cn/mock/245/heart/workdiaryService/record/downloadTemplate"; // let url = "http://yapi.elinkservice.cn/mock/245/heart/workdiaryService/record/downloadTemplate";
let params = {}; let params = {};
await this.$http({ await this.$http({
@ -520,6 +520,8 @@ export default {
// //
resetSearch () { resetSearch () {
this.optionsG = []
this.demandUserList = []
this.workLog = { this.workLog = {
gridId: '', gridId: '',
serviceType: '', serviceType: '',

17
src/views/modules/communityService/worklog/workLogForm.vue

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

Loading…
Cancel
Save