From 3eb7b81408cfddc7405aab52a5e6fd73f3edb1e2 Mon Sep 17 00:00:00 2001
From: wanggongfeng <1305282856@qq.com>
Date: Mon, 27 Jun 2022 14:22:04 +0800
Subject: [PATCH 1/2] =?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 | 35 +++++++++++++++++--
.../point/icpointvaccinesinoculation.vue | 35 +++++++++++++++++--
2 files changed, 66 insertions(+), 4 deletions(-)
diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index bcaa5b06..d7835ed6 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -172,7 +172,7 @@
{{ $t("delete") }}
@@ -229,7 +229,7 @@
import mixinViewModule from "@/mixins/view-module";
import AddOrUpdate from "./icpointnucleicmonitoring-add-or-update";
import icpointNoice from "./icpointNoice";
-
+import { requestPost } from "@/js/dai/request";
export default {
mixins: [mixinViewModule],
data() {
@@ -263,6 +263,37 @@ export default {
this.getFormInfo();
},
methods: {
+ async handleDelete (id) {
+
+ this.$confirm("确认删除?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning"
+ })
+ .then(() => {
+ 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 handleExport () {
let title = '核酸检测点'
diff --git a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
index 0f91a36e..2a82b8a8 100644
--- a/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
+++ b/src/views/modules/plugins/point/icpointvaccinesinoculation.vue
@@ -192,7 +192,7 @@
{{ $t("delete") }}
@@ -249,7 +249,7 @@
import mixinViewModule from "@/mixins/view-module";
import AddOrUpdate from "./icpointvaccinesinoculation-add-or-update";
import icpointNoice from "./icpointNoice";
-
+import { requestPost } from "@/js/dai/request";
export default {
mixins: [mixinViewModule],
data() {
@@ -279,6 +279,37 @@ export default {
this.noticeFun();
},
methods: {
+ async handleDelete (id) {
+
+ this.$confirm("确认删除?", "提示", {
+ confirmButtonText: "确定",
+ cancelButtonText: "取消",
+ type: "warning"
+ })
+ .then(() => {
+ this.deleteNat(id)
+ })
+ .catch(err => {
+ if (err == "cancel") {
+
+ }
+
+ });
+ },
+ async deleteNat (id) {
+ const url = "/epmetuser/icPointVaccinesInoculation/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 = '疫苗接种点'
From 476118a6b4e335fd3873d022d544a7dd84af4b7e Mon Sep 17 00:00:00 2001
From: wanggongfeng <1305282856@qq.com>
Date: Tue, 28 Jun 2022 10:27:52 +0800
Subject: [PATCH 2/2] =?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
---
.../plugins/point/icpointnucleicmonitoring-add-or-update.vue | 2 +-
src/views/modules/plugins/point/icpointnucleicmonitoring.vue | 2 +-
2 files changed, 2 insertions(+), 2 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 56afb75a..3b85d3a9 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring-add-or-update.vue
@@ -335,7 +335,7 @@ export default {
// 获取所属组织列表
getFormInfo() {
this.$http
- .post(`/gov/org/agency/community-list`)
+ .post(`/gov/org/agency/communityListByCustomerId`)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg);
diff --git a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
index d7835ed6..565c97f9 100644
--- a/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
+++ b/src/views/modules/plugins/point/icpointnucleicmonitoring.vue
@@ -87,7 +87,7 @@
style="margin-left: 10px"
size="small"
class="diy-button--delete"
- >导入核酸监测点数据导入核酸检测点数据