diff --git a/src/views/modules/communityService/worklog/workLog.vue b/src/views/modules/communityService/worklog/workLog.vue index 6c221465f..4bf2e50ab 100644 --- a/src/views/modules/communityService/worklog/workLog.vue +++ b/src/views/modules/communityService/worklog/workLog.vue @@ -371,8 +371,8 @@ export default { }); }, async handleExportModule () { - // let url = "/heart/workdiaryService/record/downloadTemplate"; - let url = "http://yapi.elinkservice.cn/mock/245/heart/workdiaryService/record/downloadTemplate"; + let url = "/heart/workdiaryService/record/downloadTemplate"; + // let url = "http://yapi.elinkservice.cn/mock/245/heart/workdiaryService/record/downloadTemplate"; let params = {}; await this.$http({ @@ -520,6 +520,8 @@ export default { //重置搜索条件 resetSearch () { + this.optionsG = [] + this.demandUserList = [] this.workLog = { gridId: '', serviceType: '', diff --git a/src/views/modules/communityService/worklog/workLogForm.vue b/src/views/modules/communityService/worklog/workLogForm.vue index dee051f3f..cbb3a06f1 100644 --- a/src/views/modules/communityService/worklog/workLogForm.vue +++ b/src/views/modules/communityService/worklog/workLogForm.vue @@ -31,8 +31,8 @@ style="display: block" prop="serviceType"> { @@ -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: '',