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];