From eea7ee7dee64bc1183223875266348de60f9dcc7 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Mon, 20 Jun 2022 17:09:29 +0800 Subject: [PATCH 01/59] =?UTF-8?q?=E6=A0=B8=E9=85=B8=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E7=82=B9=E3=80=81=E7=96=AB=E8=8B=97=E6=8E=A5=E7=A7=8D=E7=82=B9?= =?UTF-8?q?=EF=BC=8C=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...icpointnucleicmonitoring-add-or-update.vue | 165 +++++++++++++++ .../point/icpointnucleicmonitoring.vue | 83 ++++++++ ...pointvaccinesinoculation-add-or-update.vue | 200 ++++++++++++++++++ .../point/icpointvaccinesinoculation.vue | 88 ++++++++ 4 files changed, 536 insertions(+) create mode 100644 src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue create mode 100644 src/views/modules/plugins/point/icpointnucleicmonitoring.vue create mode 100644 src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue create mode 100644 src/views/modules/plugins/point/icpointvaccinesinoculation.vue diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue new file mode 100644 index 00000000..df3cb3c2 --- /dev/null +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue @@ -0,0 +1,165 @@ + + + diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue new file mode 100644 index 00000000..8083ce67 --- /dev/null +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue @@ -0,0 +1,83 @@ + + + diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue new file mode 100644 index 00000000..0b018e41 --- /dev/null +++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue @@ -0,0 +1,200 @@ + + + diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue new file mode 100644 index 00000000..dfaa2714 --- /dev/null +++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue @@ -0,0 +1,88 @@ + + + From 21c45fba0e0c7d49e09e965790d31607773d753e Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Tue, 21 Jun 2022 10:17:47 +0800 Subject: [PATCH 02/59] =?UTF-8?q?=E6=A0=B8=E9=85=B8=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E7=82=B9=E3=80=81=E7=96=AB=E8=8B=97=E6=8E=A5=E7=A7=8D=E7=82=B9?= =?UTF-8?q?=20PC=20=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...icpointnucleicmonitoring-add-or-update.vue | 76 +++------- .../point/icpointnucleicmonitoring.vue | 23 +-- ...pointvaccinesinoculation-add-or-update.vue | 139 +++++++----------- .../point/icpointvaccinesinoculation.vue | 21 +-- 4 files changed, 84 insertions(+), 175 deletions(-) diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue index df3cb3c2..8109fb89 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue @@ -1,57 +1,21 @@ @@ -270,6 +271,7 @@ export default { }, }, mounted() { + console.log(document.getElementById("map_app")); this.getFormInfo(); this.initMap(); }, @@ -450,4 +452,8 @@ export default { .position_label >>> .el-form-item__label::before{ color:#fff!important; } +.submit{ + text-align: center; + margin: auto; +} diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue index 9668e34f..230d2c1a 100644 --- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue +++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue @@ -323,9 +323,18 @@ export default { }; From 199514343a9db5be3b60eeb53f0f17098c501cdf Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 23 Jun 2022 14:04:08 +0800 Subject: [PATCH 11/59] =?UTF-8?q?=E6=A0=B8=E9=85=B8=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E7=82=B9=E3=80=81=E7=96=AB=E8=8B=97=E6=8E=A5=E7=A7=8D=E7=82=B9?= =?UTF-8?q?=20PC=20=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../point/icpointnucleicmonitoring-add-or-update.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue index b18b80e7..f08dcc00 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue @@ -7,15 +7,16 @@ @keyup.enter.native="dataFormSubmitHandle()" label-width="120px" > - + - + @@ -352,7 +353,11 @@ export default { .catch(() => {}); }, // 表单提交 - dataFormSubmitHandle: debounce( + dataFormSubmitHandle(){ + console.log(this.dataForm) + }, + + dataFormSubmitHandle2: debounce( function () { this.$refs["dataForm"].validate((valid) => { if (!valid) { From 4638e3f09f6b3190fa4375db464d142abfd4fb5e Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 23 Jun 2022 14:35:46 +0800 Subject: [PATCH 12/59] =?UTF-8?q?=E6=A0=B8=E9=85=B8=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E7=82=B9=E3=80=81=E7=96=AB=E8=8B=97=E6=8E=A5=E7=A7=8D=E7=82=B9?= =?UTF-8?q?=20PC=20=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...icpointnucleicmonitoring-add-or-update.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue index 861aa278..7b476cbf 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue @@ -8,15 +8,13 @@ label-width="120px" > - - + @@ -208,6 +206,14 @@ export default { this.initMap(); }, methods: { + orgChangeHandle(val){ + for(var i = 0 ; i < this.organizationList.length ; i++){ + if( this.organizationList[i].orgId === val){ + this.dataForm.orgName=this.organizationList[i].orgName + return false + } + } + }, // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 initMap() { // 定义地图中心点坐标 @@ -338,7 +344,6 @@ export default { // 获取信息 getInfo() { - console.log(111111); this.$http .get(`/epmetuser/icPointNucleicMonitoring/${this.dataForm.id}`) .then(({ data: res }) => { @@ -353,11 +358,7 @@ export default { .catch(() => {}); }, // 表单提交 - dataFormSubmitHandle(){ - console.log(this.dataForm) - }, - - dataFormSubmitHandle2: debounce( + dataFormSubmitHandle: debounce( function () { this.$refs["dataForm"].validate((valid) => { if (!valid) { From 5f9f601ab331e9f88f5e645857bff001a63f4372 Mon Sep 17 00:00:00 2001 From: 123456 <17862666717> Date: Thu, 23 Jun 2022 14:40:17 +0800 Subject: [PATCH 13/59] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/view-module.js | 8 - ...icpointnucleicmonitoring-add-or-update.vue | 5 +- .../point/icpointnucleicmonitoring.vue | 223 ++++++++++-------- ...pointvaccinesinoculation-add-or-update.vue | 1 - .../point/icpointvaccinesinoculation.vue | 178 ++++++++------ 5 files changed, 234 insertions(+), 181 deletions(-) diff --git a/src/mixins/view-module.js b/src/mixins/view-module.js index dcfabd2e..079ac138 100644 --- a/src/mixins/view-module.js +++ b/src/mixins/view-module.js @@ -102,14 +102,6 @@ export default { this.page = 1 this.query() }, - // 新增 / 修改 - addOrUpdateHandle (id) { - this.addOrUpdateVisible = true - this.$nextTick(() => { - this.$refs.addOrUpdate.dataForm.id = id - this.$refs.addOrUpdate.init() - }) - }, // 删除 deleteHandle (id) { if (this.mixinViewModuleOptions.deleteIsBatch && !id && this.dataListSelections.length <= 0) { diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue index 30096682..feb8b832 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue @@ -96,7 +96,7 @@
- {{ $t("cancel") }} + {{ $t("cancel") }} {{ $t("confirm") }} @@ -207,6 +207,9 @@ export default { this.initMap(); }, methods: { + closeSubmit(){ + this.$emit('closeDialog') + }, // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 initMap() { // 定义地图中心点坐标 diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue index 18e7b785..85bb8543 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue @@ -6,48 +6,61 @@ :model="dataForm" @keyup.enter.native="getDataList()" > - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + - + - {{ $t("query") }} + {{ + $t("query") + }} - {{ - $t("add") - }} + {{ $t("add") }} - - - + + +
@@ -168,7 +181,7 @@ @@ -199,50 +213,64 @@ export default { dataForm: { name: "", mobile: "", - orgId: "" + orgId: "", }, - organizationList: [], - orgIds:[] + organizationList: [], + orgIds: [], + updateId: null, }; }, components: { AddOrUpdate, }, - created(){ - this.getFormInfo() - }, + created() { + this.getFormInfo(); + }, methods: { - // 获取所属组织列表 - getFormInfo() { - this.$http - .post(`/gov/org/agency/getOrgTreeListByCustomerId`) - .then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg); - } - this.organizationList = res.data; - this.deleteChildren(this.organizationList) - }) - .catch(() => {}); - }, - deleteChildren(arr) { - let childs = arr - for (let i = childs.length; i--; i > 0) { - if (childs[i].children) { - if (childs[i].children.length) { - this.deleteChildren(childs[i].children) - } else { - delete childs[i].children - } - } - } - return arr - }, - orgChangeHandle () { - this.dataForm.orgId = this.orgIds[this.orgIds.length-1] - console.log(this.dataForm) - - }, + // 新增 / 修改 + addOrUpdateHandle(id) { + this.updateId = id; + this.$nextTick(() => { + this.$refs.addOrUpdate.dataForm.id = id; + this.$refs.addOrUpdate.init(); + }); + this.addOrUpdateVisible = true; + }, + // 关闭弹窗 + closeDialog() { + this.addOrUpdateVisible = false; + this.uploadId = null; + }, + // 获取所属组织列表 + getFormInfo() { + this.$http + .post(`/gov/org/agency/getOrgTreeListByCustomerId`) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg); + } + this.organizationList = res.data; + this.deleteChildren(this.organizationList); + }) + .catch(() => {}); + }, + deleteChildren(arr) { + let childs = arr; + for (let i = childs.length; i--; i > 0) { + if (childs[i].children) { + if (childs[i].children.length) { + this.deleteChildren(childs[i].children); + } else { + delete childs[i].children; + } + } + } + return arr; + }, + orgChangeHandle() { + this.dataForm.orgId = this.orgIds[this.orgIds.length - 1]; + console.log(this.dataForm); + }, handleExportModule() { let title = "核酸检测点模板"; let url = "/epmetuser/icPointNucleicMonitoring/exporttemplate"; @@ -260,31 +288,30 @@ export default { } ); }, - // 下载文件 - download (data, fileName) { - if (!data) { - return - } - - var csvData = new Blob([data]) + // 下载文件 + download(data, fileName) { + if (!data) { + return; + } - if (window.navigator && window.navigator.msSaveOrOpenBlob) { - window.navigator.msSaveOrOpenBlob(csvData, fileName); - } - // for Non-IE (chrome, firefox etc.) - else { - var a = document.createElement('a'); - document.body.appendChild(a); - a.style = 'display: none'; - var url = window.URL.createObjectURL(csvData); - a.href = url; - a.download = fileName; - a.click(); - a.remove(); - window.URL.revokeObjectURL(url); - } + var csvData = new Blob([data]); - }, + if (window.navigator && window.navigator.msSaveOrOpenBlob) { + window.navigator.msSaveOrOpenBlob(csvData, fileName); + } + // for Non-IE (chrome, firefox etc.) + else { + var a = document.createElement("a"); + document.body.appendChild(a); + a.style = "display: none"; + var url = window.URL.createObjectURL(csvData); + a.href = url; + a.download = fileName; + a.click(); + a.remove(); + window.URL.revokeObjectURL(url); + } + }, // 上传文件之前的钩子 beforeUpload(file) { this.files = file; @@ -317,7 +344,7 @@ export default { }); //清空上传列表 - this.$refs['upload'].clearFiles(); + this.$refs["upload"].clearFiles(); let url = ""; let fileFormData = new FormData(); @@ -325,7 +352,10 @@ export default { url = "/epmetuser/icPointNucleicMonitoring/pointImport"; - window.app.ajax.post2(url,fileFormData,(data, rspMsg) => { + window.app.ajax.post2( + url, + fileFormData, + (data, rspMsg) => { if (data.code === 0 && data.msg == "success") { // this.$message.success('导入成功') } else { @@ -338,7 +368,6 @@ export default { // this.$message.error(rspMsg) } this.loadTable(); - }, (rspMsg, data) => {}, { headers: { "Content-Type": "multipart/form-data" } } diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue index c0ccdca7..5cfab8d2 100644 --- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue @@ -253,7 +253,6 @@ export default { }, }, mounted() { - console.log(document.getElementById("map_app")); this.getFormInfo(); this.initMap(); }, diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue index 35c6621a..4cca565d 100644 --- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue +++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue @@ -7,23 +7,36 @@ @keyup.enter.native="getDataList()" > - + - + - {{ $t("query") }} + {{ + $t("query") + }} - {{ - $t("add") - }} + {{ $t("add") }} - - - + + + @@ -77,10 +90,10 @@ width="50" > - - - - + + + + @@ -201,15 +215,30 @@ export default { deleteIsBatch: true, }, dataForm: { - name: "", - mobile: "" + name: "", + mobile: "", }, + updateId: null, }; }, components: { AddOrUpdate, }, methods: { + // 新增 / 修改 + addOrUpdateHandle(id) { + this.updateId = id; + this.$nextTick(() => { + this.$refs.addOrUpdate.dataForm.id = id; + this.$refs.addOrUpdate.init(); + }); + this.addOrUpdateVisible = true; + }, + // 关闭弹窗 + closeDialog() { + this.addOrUpdateVisible = false; + this.uploadId = null; + }, handleExportModule() { let title = "疫苗接种点模板"; let url = "/epmetuser/icPointVaccinesInoculation/exporttemplate"; @@ -227,31 +256,30 @@ export default { } ); }, - // 下载文件 - download (data, fileName) { - if (!data) { - return - } - - var csvData = new Blob([data]) + // 下载文件 + download(data, fileName) { + if (!data) { + return; + } - if (window.navigator && window.navigator.msSaveOrOpenBlob) { - window.navigator.msSaveOrOpenBlob(csvData, fileName); - } - // for Non-IE (chrome, firefox etc.) - else { - var a = document.createElement('a'); - document.body.appendChild(a); - a.style = 'display: none'; - var url = window.URL.createObjectURL(csvData); - a.href = url; - a.download = fileName; - a.click(); - a.remove(); - window.URL.revokeObjectURL(url); - } + var csvData = new Blob([data]); - }, + if (window.navigator && window.navigator.msSaveOrOpenBlob) { + window.navigator.msSaveOrOpenBlob(csvData, fileName); + } + // for Non-IE (chrome, firefox etc.) + else { + var a = document.createElement("a"); + document.body.appendChild(a); + a.style = "display: none"; + var url = window.URL.createObjectURL(csvData); + a.href = url; + a.download = fileName; + a.click(); + a.remove(); + window.URL.revokeObjectURL(url); + } + }, // 上传文件之前的钩子 beforeUpload(file) { this.files = file; @@ -271,46 +299,48 @@ export default { return true; } }, - async uploadFile() { - if (this.fileName == "") { - this.$message.warning("请选择要上传的文件!"); - return false; - } - - this.$message({ - showClose: true, - message: "导入中,请到系统管理-导入记录中查看进度", - duration: 0, - }); + async uploadFile() { + if (this.fileName == "") { + this.$message.warning("请选择要上传的文件!"); + return false; + } - //清空上传列表 - this.$refs['upload'].clearFiles(); - let url = ""; + this.$message({ + showClose: true, + message: "导入中,请到系统管理-导入记录中查看进度", + duration: 0, + }); - let fileFormData = new FormData(); - fileFormData.append("file", this.files); //filename是键,file是值,就是要传的文件,test.zip是要传的文件名 + //清空上传列表 + this.$refs["upload"].clearFiles(); + let url = ""; - url = "/epmetuser/icPointVaccinesInoculation/pointImport"; + let fileFormData = new FormData(); + fileFormData.append("file", this.files); //filename是键,file是值,就是要传的文件,test.zip是要传的文件名 - window.app.ajax.post2(url,fileFormData,(data, rspMsg) => { - if (data.code === 0 && data.msg == "success") { - // this.$message.success('导入成功') - } else { - // this.$message({ - // showClose: true, - // message: rspMsg, - // duration: 0, - // type: "error" - // }) - // this.$message.error(rspMsg) - } - this.loadTable(); + url = "/epmetuser/icPointVaccinesInoculation/pointImport"; - }, - (rspMsg, data) => {}, - { headers: { "Content-Type": "multipart/form-data" } } - ); - } + window.app.ajax.post2( + url, + fileFormData, + (data, rspMsg) => { + if (data.code === 0 && data.msg == "success") { + // this.$message.success('导入成功') + } else { + // this.$message({ + // showClose: true, + // message: rspMsg, + // duration: 0, + // type: "error" + // }) + // this.$message.error(rspMsg) + } + this.loadTable(); + }, + (rspMsg, data) => {}, + { headers: { "Content-Type": "multipart/form-data" } } + ); + }, }, }; From a5805765c85cfc8345b2ff0db7312f2bcc0d2e98 Mon Sep 17 00:00:00 2001 From: 123456 <17862666717> Date: Thu, 23 Jun 2022 14:44:01 +0800 Subject: [PATCH 14/59] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../point/icpointvaccinesinoculation-add-or-update.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue index 5cfab8d2..cc6babf2 100644 --- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue @@ -120,7 +120,7 @@
- {{ $t("cancel") }} + {{ $t("cancel") }} {{ $t("confirm") }} @@ -253,10 +253,12 @@ export default { }, }, mounted() { - this.getFormInfo(); this.initMap(); }, methods: { + closeSubmit(){ + this.$emit('closeDialog') + }, // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 initMap() { // 定义地图中心点坐标 From 52acf7bbeb285c62b0b3b2cb463d1dd8eff5bb04 Mon Sep 17 00:00:00 2001 From: 123456 <17862666717> Date: Thu, 23 Jun 2022 14:49:22 +0800 Subject: [PATCH 15/59] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/point/icpointnucleicmonitoring-add-or-update.vue | 4 +--- .../point/icpointvaccinesinoculation-add-or-update.vue | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue index e4c30016..8fd4d1c8 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue @@ -113,7 +113,6 @@ var infoWindowList; export default { data() { return { - visible: false, dataForm: { id: "", customerId: "", @@ -336,7 +335,6 @@ export default { .catch(() => {}); }, init() { - this.visible = true; this.$nextTick(() => { this.$refs["dataForm"].resetFields(); if (this.dataForm.id) { @@ -380,8 +378,8 @@ export default { type: "success", duration: 500, onClose: () => { - this.visible = false; this.$emit("refreshDataList"); + this.closeSubmit() }, }); }) diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue index cc6babf2..ede57617 100644 --- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue @@ -420,6 +420,7 @@ export default { // onClose: () => { // this.visible = false // this.$emit('refreshDataList') + // this.closeSubmit() // } // }) // }).catch(() => {}) From b96eff559c6c7726feb25ad39861723694e9b355 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 23 Jun 2022 15:51:33 +0800 Subject: [PATCH 16/59] =?UTF-8?q?=E6=A0=B8=E9=85=B8=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E7=82=B9=E3=80=81=E7=96=AB=E8=8B=97=E6=8E=A5=E7=A7=8D=E7=82=B9?= =?UTF-8?q?=20PC=20=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...pointvaccinesinoculation-add-or-update.vue | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue index ede57617..789647ca 100644 --- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue @@ -404,27 +404,26 @@ export default { // 表单提交 dataFormSubmitHandle: debounce( function () { - console.log(this.dataForm); - // this.$refs['dataForm'].validate((valid) => { - // if (!valid) { - // return false - // } - // this.$http[!this.dataForm.id ? 'post' : 'put']('/epmetuser/icPointVaccinesInoculation/', this.dataForm).then(({ data: res }) => { - // if (res.code !== 0) { - // return this.$message.error(res.msg) - // } - // this.$message({ - // message: this.$t('prompt.success'), - // type: 'success', - // duration: 500, - // onClose: () => { - // this.visible = false - // this.$emit('refreshDataList') - // this.closeSubmit() - // } - // }) - // }).catch(() => {}) - // }) + this.$refs['dataForm'].validate((valid) => { + if (!valid) { + return false + } + this.$http[!this.dataForm.id ? 'post' : 'put']('/epmetuser/icPointVaccinesInoculation/', this.dataForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + this.closeSubmit() + } + }) + }).catch(() => {}) + }) }, 1000, { leading: true, trailing: false } From 52756db4121d18a174e6dadb450e243349bf8cc8 Mon Sep 17 00:00:00 2001 From: 123456 <17862666717> Date: Thu, 23 Jun 2022 18:06:36 +0800 Subject: [PATCH 17/59] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E8=81=94=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/plugins/point/icpointNoice.vue | 172 +++++++++++------- ...icpointnucleicmonitoring-add-or-update.vue | 11 +- .../point/icpointnucleicmonitoring.vue | 35 +++- ...pointvaccinesinoculation-add-or-update.vue | 11 +- .../point/icpointvaccinesinoculation.vue | 35 +++- 5 files changed, 189 insertions(+), 75 deletions(-) diff --git a/src/views/modules/plugins/point/icpointNoice.vue b/src/views/modules/plugins/point/icpointNoice.vue index d425f8ee..b75a9e63 100644 --- a/src/views/modules/plugins/point/icpointNoice.vue +++ b/src/views/modules/plugins/point/icpointNoice.vue @@ -1,17 +1,19 @@ diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue index 8fd4d1c8..4365131b 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue @@ -200,9 +200,8 @@ export default { }; }, }, - mounted() { + mounted() { this.getFormInfo(); - this.initMap(); }, methods: { closeSubmit(){ @@ -219,7 +218,8 @@ export default { // 地图初始化函数,本例取名为init,开发者可根据实际情况定义 initMap() { // 定义地图中心点坐标 - var center = new window.TMap.LatLng(36.0722275, 120.38945519); + let _this = this + var center = new window.TMap.LatLng(_this.dataForm.latitude, _this.dataForm.longitude); // 定义map变量,调用 TMap.Map() 构造函数创建地图 map = new window.TMap.Map(document.getElementById("map_add"), { center: center, // 设置地图中心点坐标 @@ -339,6 +339,10 @@ export default { this.$refs["dataForm"].resetFields(); if (this.dataForm.id) { this.getInfo(); + }else{ + this.dataForm.ongitude = "120.38945519" + this.dataForm.latitude = "36.0722275" + this.initMap(); } }); }, @@ -355,6 +359,7 @@ export default { ...this.dataForm, ...res.data, }; + this.initMap(); }) .catch(() => {}); }, diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue index 85bb8543..dc4f1605 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue @@ -100,6 +100,13 @@ >导入核酸监测点数据 + 发送通知
+ + + + diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue index dc4f1605..ffba3c65 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue @@ -105,6 +105,7 @@ class="diy-button--more" size="small" @click="handleSendNotice" + v-if="noticeVisible" >发送通知 @@ -208,9 +209,10 @@ width="850px" top="5vh" class="dialog-h" - @closed="diaClose"> + @closed="diaClose" + :destroy-on-close="true"> + @diaClose="diaClose" :noticeOrigin="noticeOrigin"> @@ -239,6 +241,8 @@ export default { orgIds: [], updateId: null, sendNoticeFormShow:false, + noticeVisible:false, + noticeOrigin:"3" }; }, components: { @@ -246,15 +250,13 @@ export default { icpointNoice }, created() { + this.noticeFun() this.getFormInfo(); }, methods: { // 发送通知 handleSendNotice () { this.sendNoticeFormShow = true - this.$nextTick(() => { - this.$refs.ref_sendnotice.initForm(this.selectionAll, '3') - }) }, // 关闭通知 diaClose(){ @@ -287,6 +289,17 @@ export default { }) .catch(() => {}); }, + // 获取发送通知按钮显示与隐藏 + noticeFun(){ + this.$http + .post(`/epmetuser/icPointNucleicMonitoring/getShowType`) + .then(({ data: res }) => { + if (res.code === 0 && res.data) { + this.noticeVisible = true + } + }) + .catch(() => {}); + }, deleteChildren(arr) { let childs = arr; for (let i = childs.length; i--; i > 0) { diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue index b4c2b227..2fac69f9 100644 --- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue +++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue @@ -80,6 +80,7 @@ class="diy-button--more" size="small" @click="handleSendNotice" + v-if="noticeVisible" >发送通知 @@ -212,9 +213,10 @@ width="850px" top="5vh" class="dialog-h" - @closed="diaClose"> + @closed="diaClose" + :destroy-on-close="true"> + @diaClose="diaClose" :noticeOrigin="noticeOrigin" > @@ -240,24 +242,37 @@ export default { }, updateId: null, sendNoticeFormShow:false, + noticeVisible:false, + noticeOrigin:"4" }; }, components: { AddOrUpdate, icpointNoice }, + mounted(){ + this.noticeFun() + }, methods: { // 发送通知 handleSendNotice () { this.sendNoticeFormShow = true - this.$nextTick(() => { - this.$refs.ref_sendnotice.initForm(this.selectionAll, '4') - }) }, // 关闭通知 diaClose(){ this.sendNoticeFormShow = false }, + // 获取发送通知按钮显示与隐藏 + noticeFun(){ + this.$http + .post(`/epmetuser/icPointNucleicMonitoring/getShowType`) + .then(({ data: res }) => { + if (res.code === 0 && res.data) { + this.noticeVisible = true + } + }) + .catch(() => {}); + }, // 新增 / 修改 addOrUpdateHandle(id) { this.updateId = id; From 88edeb6cb2a58dad77658c915b006f93b19fe377 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Fri, 24 Jun 2022 15:39:35 +0800 Subject: [PATCH 19/59] =?UTF-8?q?=E6=A0=B8=E9=85=B8=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E7=82=B9=E3=80=81=E7=96=AB=E8=8B=97=E6=8E=A5=E7=A7=8D=E7=82=B9?= =?UTF-8?q?=20PC=20=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../point/icpointnucleicmonitoring.vue | 61 ++++++++++--------- .../point/icpointvaccinesinoculation.vue | 24 ++++++-- 2 files changed, 50 insertions(+), 35 deletions(-) diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue index ffba3c65..6ce82ba5 100644 --- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue +++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue @@ -6,18 +6,6 @@ :model="dataForm" @keyup.enter.native="getDataList()" > - - - - - - - - - - - - - {{ + {{ $t("query") }} {{ $t("add") }} + size="small" + class="diy-button--reset" + @click="resetSearch">重置 - - - - -
+ {{ $t("add") }}