From 46ca14b9fae8cd9161d209567faebfcf1faf515e Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 28 Sep 2022 14:21:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A1=E5=8F=A3=E7=99=BB=E8=AE=B0=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppCheckpointRegistration.vue | 66 +++++++++++++++---- 1 file changed, 52 insertions(+), 14 deletions(-) diff --git a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue index f17b2986..7495ff36 100644 --- a/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue +++ b/src/project/pingchang/AppCheckpointRegistration/AppCheckpointRegistration.vue @@ -40,19 +40,29 @@
-
-
-

{{item.name}}{{ $dict.getLabel('EP_riskLevel', item.riskLevel) }}

-

{{item.idNumber}}

-

{{item.startAreaName}}

-

{{item.arriveAreaName}}

-

{{item.arriveTime}}

- + +
+
+

{{item.name}}{{ $dict.getLabel('EP_riskLevel', item.riskLevel) }}

+

{{item.idNumber}}

+

{{item.startAreaName}}

+

{{item.arriveAreaName}}

+

{{item.arriveTime}}

+ +
+
+
处置人:{{item.handleUserName}}
+
-
-
处置人:{{item.handleUserName}}
-
-
+
@@ -86,6 +96,14 @@ export default { require('./components/img/status4.png'), require('./components/img/status5.png'), require('./components/img/status6.png'), + ], + options: [ + { + text: '删除', + style: { + backgroundColor: '#dd524d' + } + } ] } }, @@ -122,6 +140,16 @@ export default { } }) }, + del(id) { + this.$confirm(`确认删除该数据`).then(() => { + this.$http.post(`/app/appepidemicpreventionregisterinfo/delete?id=${id}`).then((res) => { + if (res.code == 0) { + this.$u.toast('删除成功') + this.getListInit() + } + }) + }) + }, getTotal() { this.$http.post(`/app/appepidemicpreventionregisterinfo/listStatistics?areaId=${this.areaId}`).then((res) => { if (res.code == 0) { @@ -160,7 +188,18 @@ export default { this.gatewayName = '' this.gatewayId = '' this.getListInit() - } + }, + onClick(index) { + this.del(this.list[index].id) + }, + onOpen(index) { + this.list[index].show = true + this.list.map((val, i) => { + if(index != i) { + this.list[i].show = false + } + }) + }, }, onReachBottom() { this.current ++ @@ -268,7 +307,6 @@ export default { padding: 32px 32px 0; .item{ background-color: #fff; - margin-bottom: 24px; border-radius: 16px; .top { padding: 32px 32px 24px;