From e2f43eabaac7728ff408e5451edc64ab49ce90fc Mon Sep 17 00:00:00 2001 From: jianjun Date: Wed, 24 Aug 2022 16:03:56 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/communityService/shzz/cpts/edit.vue | 12 +++++++++--- src/views/modules/communityService/shzz/index.vue | 1 + 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/modules/communityService/shzz/cpts/edit.vue b/src/views/modules/communityService/shzz/cpts/edit.vue index 8acdd3a6e..993ca6ab8 100644 --- a/src/views/modules/communityService/shzz/cpts/edit.vue +++ b/src/views/modules/communityService/shzz/cpts/edit.vue @@ -294,6 +294,7 @@ export default { props: {}, watch: { "dataForm.serviceTime": function (val) { + console.log("watch start"+val+'_'+Array.isArray(val)) if (Array.isArray(val) && val.length == 2) { this.dataForm.serviceStartTime = val[0]; this.dataForm.serviceEndTime = val[1]; @@ -440,7 +441,7 @@ export default { async loadAgency() { const url = "/epmetuser/customerstaff/staffbasicinfo"; let params = {}; - + console.log("======loadAgency") const {data, code, msg} = await requestPost(url, params); if (code === 0) { @@ -490,6 +491,7 @@ export default { }, async submit() { + let url = ""; if (this.formType === "add") { url = "/heart/societyorg/add"; @@ -522,6 +524,9 @@ export default { }, resetData() { this.societyId = ""; //小区ID + this.$refs.ref_form.resetFields(); + this.propertyFormShow = false; + /* this.dataForm = { societyName: "", serviceMatters: "", @@ -534,8 +539,9 @@ export default { address: "", longitude: "", latitude: "", - }; - this.propertyFormShow = false; + imageList:[] + };*/ + }, // 开启加载动画 startLoading() { diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index a130cf446..333e082db 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -258,6 +258,7 @@ export default { }, watch: { "fmData.serviceTime": function (val) { + console.log("watch start"+val+'_'+Array.isArray(val)) if (Array.isArray(val) && val.length == 2) { this.fmData.serviceStartTime = val[0]; this.fmData.serviceEndTime = val[1];