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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+ {{ $t('confirm') }}
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+ {{ $t('query') }}
+
+
+ {{ $t('add') }}
+
+
+ {{ $t('deleteBatch') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('update') }}
+ {{ $t('delete') }}
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+ {{ $t('confirm') }}
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+ {{ $t('query') }}
+
+
+ {{ $t('add') }}
+
+
+ {{ $t('deleteBatch') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('update') }}
+ {{ $t('delete') }}
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t('cancel') }}
@@ -128,7 +92,7 @@
},
// 获取信息
getInfo () {
- this.$http.get(`/${moduleName}/${pathName}/${this.dataForm.id}`).then(({ data: res }) => {
+ this.$http.get(`/epmetuser/icPointNucleicMonitoring/${this.dataForm.id}`).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
@@ -159,7 +123,11 @@
})
}).catch(() => {})
})
- }, 1000, { 'leading': true, 'trailing': false })
+ }, 1000, { 'leading': true, 'trailing': false }),
+ //限制
+ check_num: function(){
+ this.dataForm.mobile = this.dataForm.mobile.replace(/[^\a-\z\A-\Z0-9]/g, '');
+ }
}
}
diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index 8083ce67..f282c9f7 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -9,36 +9,23 @@
{{ $t('query') }}
- {{ $t('add') }}
+ {{ $t('add') }}
- {{ $t('deleteBatch') }}
+ {{ $t('deleteBatch') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('update') }}
- {{ $t('delete') }}
+ {{ $t('update') }}
+ {{ $t('delete') }}
@@ -59,7 +46,7 @@
diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index f282c9f7..2e8110dd 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -1,31 +1,91 @@
-
+
- {{ $t('query') }}
+ {{ $t("query") }}
- {{ $t('add') }}
+ {{
+ $t("add")
+ }}
- {{ $t('deleteBatch') }}
+ {{
+ $t("deleteBatch")
+ }}
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
- {{ $t('update') }}
- {{ $t('delete') }}
+ {{ $t("update") }}
+ {{ $t("delete") }}
@@ -36,35 +96,47 @@
:total="total"
layout="total, sizes, prev, pager, next, jumper"
@size-change="pageSizeChangeHandle"
- @current-change="pageCurrentChangeHandle">
+ @current-change="pageCurrentChangeHandle"
+ >
-
+
+
+
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 91379e9d..a52d21eb 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
@@ -1,165 +1,448 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 暂无疫苗
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 暂无疫苗
+
+
+
+
+
+
+
+
+
+
+
+
查询
+
+
+ 经度
+
+
+ 纬度
+
+
+
+
+
+
- {{ $t('cancel') }}
- {{ $t('confirm') }}
+ {{ $t("cancel") }}
+ {{
+ $t("confirm")
+ }}
-
+
diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
index db0f563a..cb5c716e 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
@@ -1,38 +1,133 @@
-
+
- {{ $t('query') }}
+ {{ $t("query") }}
- {{ $t('add') }}
+ {{
+ $t("add")
+ }}
- {{ $t('deleteBatch') }}
+ {{
+ $t("deleteBatch")
+ }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- {{ $t('update') }}
- {{ $t('delete') }}
+ {{ $t("update") }}
+ {{ $t("delete") }}
@@ -43,35 +138,47 @@
:total="total"
layout="total, sizes, prev, pager, next, jumper"
@size-change="pageSizeChangeHandle"
- @current-change="pageCurrentChangeHandle">
+ @current-change="pageCurrentChangeHandle"
+ >
-
+
+
+
From 0429c69eced50500a1649adb6f275063ec56eb4a Mon Sep 17 00:00:00 2001
From: 123456 <17862666717>
Date: Tue, 21 Jun 2022 16:26:43 +0800
Subject: [PATCH 04/59] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E5=9C=B0=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/plugins/point/icpointNoice.vue | 143 ++++++++++++++++++
...icpointnucleicmonitoring-add-or-update.vue | 15 +-
.../point/icpointnucleicmonitoring.vue | 4 +-
...pointvaccinesinoculation-add-or-update.vue | 7 +-
4 files changed, 161 insertions(+), 8 deletions(-)
create mode 100644 src/views/modules/plugins/point/icpointNoice.vue
diff --git a/src/views/modules/plugins/point/icpointNoice.vue b/src/views/modules/plugins/point/icpointNoice.vue
new file mode 100644
index 00000000..d425f8ee
--- /dev/null
+++ b/src/views/modules/plugins/point/icpointNoice.vue
@@ -0,0 +1,143 @@
+
+
+
+
+
+
+
+
+
+
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 53cce9c6..dcf0a84a 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
@@ -19,10 +19,10 @@
-
+
@@ -40,14 +40,14 @@
:change="check_num()"
>
-
+
-
+
+
diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index 2e8110dd..82ef3193 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -44,7 +44,7 @@
>
@@ -62,7 +62,7 @@
>
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 a52d21eb..f5a950b1 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
@@ -75,7 +75,7 @@
placeholder="接种点地址"
>
-
+
+
From c6ccf789e98cd240f4e74ee457696c45641e750b Mon Sep 17 00:00:00 2001
From: 123456 <17862666717>
Date: Tue, 21 Jun 2022 16:49:24 +0800
Subject: [PATCH 05/59] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E5=AF=BC=E5=85=A5?=
=?UTF-8?q?=E5=AF=BC=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../point/icpointnucleicmonitoring.vue | 117 ++++++++++++++++++
.../point/icpointvaccinesinoculation.vue | 117 ++++++++++++++++++
2 files changed, 234 insertions(+)
diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index 82ef3193..ae024080 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -23,6 +23,25 @@
}}
+
+ 下载核酸检测点模板
+
+
+ 导入核酸监测点数据
+
+
{
+
+ this.download(data, title + '.xls')
+ },
+ (rspMsg, data) => {
+ this.$message.error(rspMsg);
+ }
+ );
+ },
+ // 上传文件之前的钩子
+ beforeUpload (file) {
+ this.files = file;
+
+ const isText = file.type === 'application/vnd.ms-excel'
+ const isTextComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
+
+ if (!isText && !isTextComputer) {
+ this.$message.error('请选择正确格式的文件')
+ this.files = null
+ this.fileName = ''
+ return false
+ } else {
+ this.fileName = file.name;
+ return true
+ }
+
+ },
+ async uploadFile () {
+
+ if (this.fileName == "") {
+ this.$message.warning('请选择要上传的文件!')
+ return false
+ }
+
+ this.$message({
+ showClose: true,
+ message: '导入中,请到系统管理-导入记录中查看进度',
+ duration: 0
+ })
+
+
+ //清空上传列表
+ let url = ''
+
+ let fileFormData = new FormData();
+ fileFormData.append('file', this.files);//filename是键,file是值,就是要传的文件,test.zip是要传的文件名
+ fileFormData.append('orgId', this.agencyObj.id);//filename是键,file是值,就是要传的文件,test.zip是要传的文件名
+ fileFormData.append('orgType', this.agencyObj.level === 'grid' ? 'grid' : 'agency');//filename是键,file是值,就是要传的文件,test.zip是要传的文件名
+
+ this.$refs['upload_room'].clearFiles()
+ url = '/icPointNucleicMonitoring/pointNucleicMonitoringImport'
+ this.importRoomLoading = true
+
+ 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.$emit('refreshTree')
+ this.loadTable()
+ // this.showMessage(rspMsg)
+
+ this.importRoomLoading = false
+ },
+ (rspMsg, data) => {
+ this.importRoomLoading = false
+ // this.$message.error(rspMsg)
+ }, { headers: { 'Content-Type': 'multipart/form-data' } })
+
+
+ },
+ }
};
+
diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
index cb5c716e..bfd6fb9d 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
@@ -23,6 +23,25 @@
}}
+
+ 下载疫苗接种点模板
+
+
+ 导入疫苗接种点数据
+
+
{
+
+ this.download(data, title + '.xls')
+ },
+ (rspMsg, data) => {
+ this.$message.error(rspMsg);
+ }
+ );
+ },
+ // 上传文件之前的钩子
+ beforeUpload (file) {
+ this.files = file;
+
+ const isText = file.type === 'application/vnd.ms-excel'
+ const isTextComputer = file.type === 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
+
+ if (!isText && !isTextComputer) {
+ this.$message.error('请选择正确格式的文件')
+ this.files = null
+ this.fileName = ''
+ return false
+ } else {
+ this.fileName = file.name;
+ return true
+ }
+
+ },
+ async uploadFile () {
+
+ if (this.fileName == "") {
+ this.$message.warning('请选择要上传的文件!')
+ return false
+ }
+
+ this.$message({
+ showClose: true,
+ message: '导入中,请到系统管理-导入记录中查看进度',
+ duration: 0
+ })
+
+
+ //清空上传列表
+ let url = ''
+
+ let fileFormData = new FormData();
+ fileFormData.append('file', this.files);//filename是键,file是值,就是要传的文件,test.zip是要传的文件名
+ fileFormData.append('orgId', this.agencyObj.id);//filename是键,file是值,就是要传的文件,test.zip是要传的文件名
+ fileFormData.append('orgType', this.agencyObj.level === 'grid' ? 'grid' : 'agency');//filename是键,file是值,就是要传的文件,test.zip是要传的文件名
+
+ this.$refs['upload_room'].clearFiles()
+ url = '/icPointNucleicMonitoring/pointNucleicMonitoringImport'
+ this.importRoomLoading = true
+
+ 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.$emit('refreshTree')
+ this.loadTable()
+ // this.showMessage(rspMsg)
+
+ this.importRoomLoading = false
+ },
+ (rspMsg, data) => {
+ this.importRoomLoading = false
+ // this.$message.error(rspMsg)
+ }, { headers: { 'Content-Type': 'multipart/form-data' } })
+
+
+ },
+ }
};
+
From 56f05b8b02a5a3c10174de6ce0159d46ae37e2dd Mon Sep 17 00:00:00 2001
From: 123456 <17862666717>
Date: Tue, 21 Jun 2022 16:56:44 +0800
Subject: [PATCH 06/59] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E5=AF=BC=E5=85=A5?=
=?UTF-8?q?=E5=AF=BC=E5=87=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/plugins/point/icpointnucleicmonitoring.vue | 4 ++--
.../modules/plugins/point/icpointvaccinesinoculation.vue | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index ae024080..1fe94cec 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -160,7 +160,7 @@ export default {
methods:{
handleExportModule () {
let title = '核酸检测点模板'
- let url = "/icPointNucleicMonitoring/exporttemplate"
+ let url = "/epmetuser/icPointNucleicMonitoring/exporttemplate"
let params = {}
@@ -217,7 +217,7 @@ export default {
fileFormData.append('orgType', this.agencyObj.level === 'grid' ? 'grid' : 'agency');//filename是键,file是值,就是要传的文件,test.zip是要传的文件名
this.$refs['upload_room'].clearFiles()
- url = '/icPointNucleicMonitoring/pointNucleicMonitoringImport'
+ url = '/epmetuser/icPointNucleicMonitoring/pointNucleicMonitoringImport'
this.importRoomLoading = true
window.app.ajax.post2(url, fileFormData,
diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
index bfd6fb9d..90313e25 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
@@ -202,7 +202,7 @@ export default {
methods:{
handleExportModule () {
let title = '疫苗接种点模板'
- let url = "/icPointNucleicMonitoring/exporttemplate"
+ let url = "/epmetuser/icPointNucleicMonitoring/exporttemplate"
let params = {}
@@ -259,7 +259,7 @@ export default {
fileFormData.append('orgType', this.agencyObj.level === 'grid' ? 'grid' : 'agency');//filename是键,file是值,就是要传的文件,test.zip是要传的文件名
this.$refs['upload_room'].clearFiles()
- url = '/icPointNucleicMonitoring/pointNucleicMonitoringImport'
+ url = '/epmetuser/icPointNucleicMonitoring/pointNucleicMonitoringImport'
this.importRoomLoading = true
window.app.ajax.post2(url, fileFormData,
From a652ed1ffa0a89f4c0dbd8eead0883f2537c9160 Mon Sep 17 00:00:00 2001
From: 123456 <17862666717>
Date: Tue, 21 Jun 2022 17:56:57 +0800
Subject: [PATCH 07/59] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../point/icpointnucleicmonitoring.vue | 192 ++++++++++--------
.../point/icpointvaccinesinoculation.vue | 182 +++++++++--------
2 files changed, 212 insertions(+), 162 deletions(-)
diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index 1fe94cec..9871c6c5 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -1,6 +1,6 @@
-
-
+
+
- {{ $t("query") }}
+ {{ $t("query") }}
- {{
+ {{
$t("add")
}}
@@ -23,23 +23,42 @@
}}
+
+
+
- 下载核酸检测点模板
+ 下载核酸检测点模板
-
- 导入核酸监测点数据
+
+ 导入核酸监测点数据
-
-
-
-
-
+
+
+
+
+
diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
index 90313e25..d2ba6ee7 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
@@ -1,6 +1,6 @@
-
-
+
+
- {{ $t("query") }}
+ {{ $t("query") }}
- {{
+ {{
$t("add")
}}
@@ -23,23 +23,41 @@
}}
+
+
- 下载疫苗接种点模板
+ 下载疫苗接种点模板
-
- 导入疫苗接种点数据
+
+ 导入疫苗接种点数据
-
-
-
-
-
+
+
+
+
+
From 96094373c5e14cdc3be0b0e7238f0ec13ea845e7 Mon Sep 17 00:00:00 2001
From: wanggongfeng <1305282856@qq.com>
Date: Wed, 22 Jun 2022 13:59:22 +0800
Subject: [PATCH 08/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 | 11 +-
.../point/icpointnucleicmonitoring.vue | 58 +++++----
.../point/icpointvaccinesinoculation.vue | 120 ++++++++++--------
3 files changed, 105 insertions(+), 84 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 dcf0a84a..98ae2884 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
@@ -11,10 +11,11 @@
@@ -201,7 +202,7 @@ export default {
};
},
},
- mounted() {
+ created() {
this.getFormInfo();
this.initMap();
},
@@ -333,7 +334,7 @@ export default {
}
});
},
-
+
// 获取信息
getInfo() {
console.log(111111);
diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index 9871c6c5..eb39591a 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -17,11 +17,11 @@
$t("add")
}}
-
- {{
- $t("deleteBatch")
- }}
-
+
+
+
+
+
@@ -37,7 +37,7 @@
{
+ window.app.ajax.post2(url,fileFormData,(data, rspMsg) => {
if (data.code === 0 && data.msg == "success") {
// this.$message.success('导入成功')
} else {
@@ -255,16 +271,10 @@ export default {
// })
// this.$message.error(rspMsg)
}
- this.$emit("refreshTree");
this.loadTable();
- // this.showMessage(rspMsg)
- this.importRoomLoading = false;
- },
- (rspMsg, data) => {
- this.importRoomLoading = false;
- // this.$message.error(rspMsg)
},
+ (rspMsg, data) => {},
{ headers: { "Content-Type": "multipart/form-data" } }
);
},
diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
index d2ba6ee7..9668e34f 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
@@ -17,11 +17,11 @@
$t("add")
}}
-
- {{
- $t("deleteBatch")
- }}
-
+
+
+
+
+
@@ -220,7 +220,7 @@ export default {
methods: {
handleExportModule() {
let title = "疫苗接种点模板";
- let url = "/epmetuser/icPointNucleicMonitoring/exporttemplate";
+ let url = "/epmetuser/icPointVaccinesInoculation/exporttemplate";
let params = {};
@@ -235,6 +235,31 @@ export default {
}
);
},
+ // 下载文件
+ download (data, fileName) {
+ if (!data) {
+ return
+ }
+
+ 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;
@@ -254,61 +279,46 @@ export default {
return true;
}
},
- async uploadFile() {
- if (this.fileName == "") {
- this.$message.warning("请选择要上传的文件!");
- return false;
- }
+ async uploadFile() {
+ if (this.fileName == "") {
+ this.$message.warning("请选择要上传的文件!");
+ return false;
+ }
- this.$message({
- showClose: true,
- message: "导入中,请到系统管理-导入记录中查看进度",
- duration: 0,
- });
+ this.$message({
+ showClose: true,
+ message: "导入中,请到系统管理-导入记录中查看进度",
+ duration: 0,
+ });
- //清空上传列表
- let url = "";
+ //清空上传列表
+ this.$refs['upload'].clearFiles();
+ let url = "";
- let fileFormData = new FormData();
- fileFormData.append("file", this.files); //filename是键,file是值,就是要传的文件,test.zip是要传的文件名
- fileFormData.append("orgId", this.agencyObj.id); //filename是键,file是值,就是要传的文件,test.zip是要传的文件名
- fileFormData.append(
- "orgType",
- this.agencyObj.level === "grid" ? "grid" : "agency"
- ); //filename是键,file是值,就是要传的文件,test.zip是要传的文件名
+ let fileFormData = new FormData();
+ fileFormData.append("file", this.files); //filename是键,file是值,就是要传的文件,test.zip是要传的文件名
- this.$refs["upload_room"].clearFiles();
- url = "/epmetuser/icPointNucleicMonitoring/pointNucleicMonitoringImport";
- this.importRoomLoading = true;
+ url = "/epmetuser/icPointVaccinesInoculation/pointNucleicMonitoringImport";
- 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.$emit("refreshTree");
- this.loadTable();
- // this.showMessage(rspMsg)
+ 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();
- this.importRoomLoading = false;
- },
- (rspMsg, data) => {
- this.importRoomLoading = false;
- // this.$message.error(rspMsg)
- },
- { headers: { "Content-Type": "multipart/form-data" } }
- );
- },
+ },
+ (rspMsg, data) => {},
+ { headers: { "Content-Type": "multipart/form-data" } }
+ );
+ }
},
};
From eb26c21882c7140bf715319f2bc643e1e3748500 Mon Sep 17 00:00:00 2001
From: wanggongfeng <1305282856@qq.com>
Date: Thu, 23 Jun 2022 13:33:59 +0800
Subject: [PATCH 09/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 | 2 +-
.../point/icpointnucleicmonitoring.vue | 73 ++++++++++++++++++-
...pointvaccinesinoculation-add-or-update.vue | 70 +++++++-----------
.../point/icpointvaccinesinoculation.vue | 40 ++++------
4 files changed, 112 insertions(+), 73 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 98ae2884..b18b80e7 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
@@ -202,7 +202,7 @@ export default {
};
},
},
- created() {
+ mounted() {
this.getFormInfo();
this.initMap();
},
diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index eb39591a..6d29c40f 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -6,8 +6,35 @@
:model="dataForm"
@keyup.enter.native="getDataList()"
>
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{{ $t("query") }}
@@ -169,14 +196,52 @@ export default {
deleteIsBatch: true,
},
dataForm: {
- id: "",
+ name: "",
+ mobile: "",
+ orgId: ""
},
+ organizationList: [],
+ orgIds:[]
};
},
components: {
AddOrUpdate,
},
+ 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)
+
+ },
handleExportModule() {
let title = "核酸检测点模板";
let url = "/epmetuser/icPointNucleicMonitoring/exporttemplate";
@@ -257,7 +322,7 @@ export default {
let fileFormData = new FormData();
fileFormData.append("file", this.files); //filename是键,file是值,就是要传的文件,test.zip是要传的文件名
- url = "/epmetuser/icPointNucleicMonitoring/pointNucleicMonitoringImport";
+ url = "/epmetuser/icPointNucleicMonitoring/pointImport";
window.app.ajax.post2(url,fileFormData,(data, rspMsg) => {
if (data.code === 0 && data.msg == "success") {
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 f5a950b1..3df9077e 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
@@ -7,21 +7,17 @@
@keyup.enter.native="dataFormSubmitHandle()"
label-width="120px"
>
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
暂无疫苗
@@ -162,7 +158,7 @@ export default {
latitude: "36.0722275",
},
keyWords: null,
- organizationList: [],
+ // organizationList: [],
};
},
computed: {
@@ -175,20 +171,6 @@ export default {
trigger: "blur",
},
],
- orgId: [
- {
- required: true,
- message: this.$t("validate.required"),
- trigger: "blur",
- },
- ],
- orgName: [
- {
- required: true,
- message: this.$t("validate.required"),
- trigger: "blur",
- },
- ],
name: [
{
required: true,
@@ -270,7 +252,7 @@ export default {
},
},
mounted() {
- this.getFormInfo();
+ // this.getFormInfo();
this.initMap();
},
methods: {
@@ -381,17 +363,17 @@ export default {
]);
},
// 获取所属组织列表
- getFormInfo() {
- this.$http
- .post(`/gov/org/agency/community-list`)
- .then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg);
- }
- this.organizationList = res.data;
- })
- .catch(() => {});
- },
+ // getFormInfo() {
+ // this.$http
+ // .post(`/gov/org/agency/community-list`)
+ // .then(({ data: res }) => {
+ // if (res.code !== 0) {
+ // return this.$message.error(res.msg);
+ // }
+ // this.organizationList = res.data;
+ // })
+ // .catch(() => {});
+ // },
init() {
this.visible = true;
this.$nextTick(() => {
diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
index 9668e34f..a62fe0ee 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
@@ -6,8 +6,11 @@
:model="dataForm"
@keyup.enter.native="getDataList()"
>
-
-
+
+
+
+
+
{{ $t("query") }}
@@ -36,7 +39,7 @@
-
+
+
+
+
+
+
@@ -133,18 +136,6 @@
header-align="center"
align="center"
>
-
-
{
if (data.code === 0 && data.msg == "success") {
From cf7fa066fd5032493040ff3f8c743d27313ccbbd Mon Sep 17 00:00:00 2001
From: 123456 <17862666717>
Date: Thu, 23 Jun 2022 13:57:46 +0800
Subject: [PATCH 10/59] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E6=8C=89=E9=92=AE?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../icpointnucleicmonitoring-add-or-update.vue | 13 +++++++++----
.../plugins/point/icpointnucleicmonitoring.vue | 1 +
.../icpointvaccinesinoculation-add-or-update.vue | 10 ++++++++--
.../plugins/point/icpointvaccinesinoculation.vue | 9 +++++++++
4 files changed, 27 insertions(+), 6 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 98ae2884..c9c9308f 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
@@ -66,7 +66,7 @@
>查询
@@ -95,12 +95,12 @@
-
+
{{ $t("cancel") }}
{{
$t("confirm")
}}
-
+
@@ -203,6 +203,7 @@ export default {
},
},
created() {
+ console.log(document.getElementById("map_add"));
this.getFormInfo();
this.initMap();
},
@@ -212,7 +213,7 @@ export default {
// 定义地图中心点坐标
var center = new window.TMap.LatLng(36.0722275, 120.38945519);
// 定义map变量,调用 TMap.Map() 构造函数创建地图
- map = new window.TMap.Map(document.getElementById("map_app"), {
+ map = new window.TMap.Map(document.getElementById("map_add"), {
center: center, // 设置地图中心点坐标
zoom: 17.2, // 设置地图缩放级别
pitch: 43.5, // 设置俯仰角
@@ -396,4 +397,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/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index eb39591a..e1d96925 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -147,6 +147,7 @@
:destroy-on-close="true"
>
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 f5a950b1..4e994c2f 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
@@ -73,6 +73,7 @@
@@ -122,12 +123,12 @@
-
+
{{ $t("cancel") }}
{{
$t("confirm")
}}
-
+
@@ -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") }}
+ {{ '查看' }}
{{ $t("update") }}
{
this.$refs.addOrUpdate.dataForm.id = id;
this.$refs.addOrUpdate.init();
@@ -274,7 +277,7 @@ export default {
// 关闭弹窗
closeDialog() {
this.addOrUpdateVisible = false;
- this.updateId = null;
+ this.dialogTitle = '';
},
// 获取所属组织列表
getFormInfo() {
diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
index 2fac69f9..8827f4a9 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
@@ -21,17 +21,15 @@
>
- {{
+ {{
$t("query")
}}
{{ $t("add") }}
+ size="small"
+ class="diy-button--reset"
+ @click="resetSearch">重置
@@ -42,6 +40,12 @@
+
{{ $t("add") }}
Date: Fri, 24 Jun 2022 15:40:09 +0800
Subject: [PATCH 20/59] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4?=
=?UTF-8?q?=E7=BB=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...pointvaccinesinoculation-add-or-update.vue | 157 +++++++++++++-----
1 file changed, 117 insertions(+), 40 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 ff61c475..f71ec288 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
@@ -8,15 +8,15 @@
label-width="120px"
>
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
+ > -->
+
+
-
+
+
+
+
+
+
+
+
+
-
+
0) {
+ let hour_0 = Number(this.startTime[0].substring(0, 2));
+ let hour_1 = Number(this.startTime[1].substring(0, 2));
+ if (hour_0 >= 12 || hour_1 >= 12) {
+ this.$message.error("请选择00:00:00-11:59:59时间段的时间");
+ this.startTime = null;
+ return false;
+ }
+ this.dataForm.moStartTime = this.startTime[0];
+ this.dataForm.moEndTime = this.startTime[1];
+ }
+ },
+ endTimeChange() {
+ if (Array.isArray(this.endTime) && this.endTime.length > 0) {
+ let hour_0 = Number(this.endTime[0].substring(0, 2));
+ let hour_1 = Number(this.endTime[1].substring(0, 2));
+ if (hour_0 < 12 || hour_1 < 12) {
+ this.$message.error("请选择12:00:00-23:59:59时间段的时间");
+ this.endTime = null;
+ return false;
+ }
+ this.dataForm.afStartTime = this.endTime[0];
+ this.dataForm.afEndTime = this.endTime[1];
+ }
+ },
+ closeSubmit() {
+ this.$emit("closeDialog");
},
// 地图初始化函数,本例取名为init,开发者可根据实际情况定义
initMap() {
// 定义地图中心点坐标
- let _this = this
- var center = new window.TMap.LatLng(_this.dataForm.latitude, _this.dataForm.longitude);
+ 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_app"), {
center: center, // 设置地图中心点坐标
@@ -381,9 +453,9 @@ export default {
this.$refs["dataForm"].resetFields();
if (this.dataForm.id) {
this.getInfo();
- }else{
- this.dataForm.ongitude = "120.38945519"
- this.dataForm.latitude = "36.0722275"
+ } else {
+ this.dataForm.ongitude = "120.38945519";
+ this.dataForm.latitude = "36.0722275";
this.initMap();
}
});
@@ -407,26 +479,31 @@ export default {
// 表单提交
dataFormSubmitHandle: debounce(
function () {
- this.$refs['dataForm'].validate((valid) => {
+ this.$refs["dataForm"].validate((valid) => {
if (!valid) {
- return false
+ 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()
+ 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(() => {})
- })
+ .catch(() => {});
+ });
},
1000,
{ leading: true, trailing: false }
@@ -435,10 +512,10 @@ export default {
};
diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index 1aefa282..77adfcb0 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -90,12 +90,15 @@
>导入核酸检测点数据
- 导出
+ 导出
-
+
{{ scope.row.longitude === null ? '待完善' : '修改' }}{{ scope.row.longitude === null ? "待完善" : "修改" }}
{
- this.deleteNat(id)
- })
- .catch(err => {
- if (err == "cancel") {
-
- }
-
- });
- },
- async deleteNat (id) {
- const url = "/epmetuser/icPointNucleicMonitoring/delete"
- let params = [id]
- const { data, code, msg } = await requestPost(url, params)
- if (code === 0) {
- this.$message({
- type: "success",
- message: "删除成功"
- });
- this.getDataList()
- } else {
- this.$message.error(msg)
+ async handleDelete(id) {
+ this.$confirm("确认删除?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(() => {
+ this.deleteNat(id);
+ })
+ .catch((err) => {
+ if (err == "cancel") {
}
- },
- //导出表格
- async handleExport () {
- let title = '核酸检测点'
-
- const url = "/epmetuser/icPointNucleicMonitoring/point-export"
-
- app.ajax.exportFilePost(
- url,
- this.dataForm,
- (data, rspMsg) => {
+ });
+ },
+ async deleteNat(id) {
+ const url = "/epmetuser/icPointNucleicMonitoring/delete";
+ let params = [id];
+ const { data, code, msg } = await requestPost(url, params);
+ if (code === 0) {
+ this.$message({
+ type: "success",
+ message: "删除成功",
+ });
+ this.getDataList();
+ } else {
+ this.$message.error(msg);
+ }
+ },
+ //导出表格
+ async handleExport() {
+ let title = "核酸检测点";
- this.download(data, title + '.xlsx')
- },
- (rspMsg, data) => {
- this.$message.error(rspMsg);
- }
- );
+ const url = "/epmetuser/icPointNucleicMonitoring/point-export";
- },
- //重置搜索条件
- resetSearch () {
- this.dataForm = {
- name: '',
- mobile: '',
- orgId: ''
- }
- this.pageNo = 1
- this.orgIds = []
- },
+ app.ajax.exportFilePost(
+ url,
+ this.dataForm,
+ (data, rspMsg) => {
+ this.download(data, title + ".xlsx");
+ },
+ (rspMsg, data) => {
+ this.$message.error(rspMsg);
+ }
+ );
+ },
+ //重置搜索条件
+ resetSearch() {
+ this.dataForm = {
+ name: "",
+ mobile: "",
+ orgId: "",
+ };
+ this.pageNo = 1;
+ this.orgIds = [];
+ },
// 发送通知
handleSendNotice() {
this.sendNoticeFormShow = true;
@@ -506,4 +507,7 @@ export default {
border-radius: 5px;
padding: 10px;
}
+.dialog-h >>> .el-dialog__body{
+ overflow: scroll;
+}
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 cc273057..532614e7 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation-add-or-update.vue
@@ -1,5 +1,5 @@
-