From 24272570465cd8064075edd07f615cd6177d0419 Mon Sep 17 00:00:00 2001 From: jianjun Date: Tue, 23 Aug 2022 10:42:27 +0800 Subject: [PATCH 01/14] =?UTF-8?q?=E5=8E=9F=E6=9D=A5=E7=9A=84=E7=A4=BE?= =?UTF-8?q?=E4=BC=9A=E7=BB=84=E7=BB=87=E6=B7=BB=E5=8A=A0=20=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E7=AD=89=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/shzz/cpts/edit.vue | 412 +++++++++++------- .../modules/communityService/shzz/index.vue | 4 +- 2 files changed, 264 insertions(+), 152 deletions(-) diff --git a/src/views/modules/communityService/shzz/cpts/edit.vue b/src/views/modules/communityService/shzz/cpts/edit.vue index af275e9dc..eb0aee65c 100644 --- a/src/views/modules/communityService/shzz/cpts/edit.vue +++ b/src/views/modules/communityService/shzz/cpts/edit.vue @@ -2,179 +2,209 @@
+ + +
+
+ + +
+ + + + + +
+
- -
- - - 查询 -
-
- 经度 - - - 纬度 - - -
-
-
+
取 消 确 定确 定 +
- diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index f8ce4fb51..8112c8c5f 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -139,10 +139,10 @@ 查看 - 积分记录 + @click="handleScore(scope.row)">积分记录--> Date: Tue, 23 Aug 2022 10:45:17 +0800 Subject: [PATCH 02/14] =?UTF-8?q?=E5=8E=9F=E6=9D=A5=E7=9A=84=E7=A4=BE?= =?UTF-8?q?=E4=BC=9A=E7=BB=84=E7=BB=87=E6=B7=BB=E5=8A=A0=20=E5=A4=B4?= =?UTF-8?q?=E5=83=8F=E7=AD=89=E8=B0=83=E6=95=B4=20=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/communityService/shzz/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index 8112c8c5f..4c9cb6275 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -128,9 +128,9 @@ label="负责人电话"> - + label="积分"> --> Date: Tue, 23 Aug 2022 17:24:30 +0800 Subject: [PATCH 03/14] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/shzz/cpts/edit.vue | 37 ++++++++++++------- .../modules/communityService/shzz/index.vue | 19 +++++++--- 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/src/views/modules/communityService/shzz/cpts/edit.vue b/src/views/modules/communityService/shzz/cpts/edit.vue index eb0aee65c..bcd5c95be 100644 --- a/src/views/modules/communityService/shzz/cpts/edit.vue +++ b/src/views/modules/communityService/shzz/cpts/edit.vue @@ -39,7 +39,7 @@ @@ -88,7 +88,7 @@ @@ -105,11 +105,19 @@ - + + 服务时间
- + +
@@ -116,17 +122,17 @@ align="center" width="50" /> + label="组织名称"> + label="服务内容"> - + - +
-
联系电话
+
服务电话
新增 + 下载模板 - - + --> { + // this.download(res.data, title + '.xls') + if (res.headers["content-disposition"]) { + let fileName = window.decodeURI( + res.headers["content-disposition"].split(";")[1].split("=")[1] + ); + console.log("filename", fileName); + let blob = new Blob([res.data], { + type: "application/vnd.ms-excel", + }); + var url = window.URL.createObjectURL(blob); + var aLink = document.createElement("a"); + aLink.style.display = "none"; + aLink.href = url; + aLink.setAttribute("download", fileName); + document.body.appendChild(aLink); + aLink.click(); + document.body.removeChild(aLink); //下载完成移除元素 + window.URL.revokeObjectURL(url); //释放掉blob对象 + } else this.$message.error("下载失败"); + }) + .catch((err) => { + console.log("err", err); + return this.$message.error("网络错误"); + }); + }, + }, }; From e2f43eabaac7728ff408e5451edc64ab49ce90fc Mon Sep 17 00:00:00 2001 From: jianjun Date: Wed, 24 Aug 2022 16:03:56 +0800 Subject: [PATCH 05/14] =?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]; From 10c6828e70dd3e72ff9c8a581505dcf998c32008 Mon Sep 17 00:00:00 2001 From: jianjun Date: Wed, 24 Aug 2022 16:10:56 +0800 Subject: [PATCH 06/14] =?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 --- src/views/modules/communityService/shzz/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index 333e082db..e9a6c504d 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -114,7 +114,7 @@ excel导出 + size="small">导出
Date: Wed, 24 Aug 2022 16:26:53 +0800 Subject: [PATCH 07/14] =?UTF-8?q?=E7=A4=BE=E4=BC=9A=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=A1=86=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/communityService/shzz/index.vue | 281 ++++++++++-------- 1 file changed, 162 insertions(+), 119 deletions(-) diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index e9a6c504d..46c1405c9 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -21,20 +21,20 @@
- +
@@ -50,9 +50,7 @@
- - - +
服务时间
-
+ 查询 + @click="handleSearch">查询 +
@@ -89,11 +104,13 @@
新增 + @click="handleAdd">新增 + 下载模板 + @click="handleExportModule('room')">下载模板 + {{ - importBtnTitle - }} + importBtnTitle + }} + 导出 + size="small">导出 +
+ width="50"/> - + + label="服务电话"> - + label="服务时间"> + 查看 - + size="small">查看 + + 编辑 + style="margin-right: 10px; color: #00a7a9">编辑 + 删除 + style="color: #d51010">删除 + @@ -210,16 +232,16 @@