From 52c0603651bfa0c1379fccac10d7de991e7bd57d Mon Sep 17 00:00:00 2001
From: zzq <15064940501@163.com>
Date: Sun, 27 Aug 2023 18:19:50 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=A1=E7=82=B9=E5=88=A0=E9=99=A4?=
=?UTF-8?q?=E7=BC=96=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/gridman/forestranger/index.vue | 48 +++++++++++--
.../gridman/forestranger/widget/clockIn.vue | 67 +++++++++++++------
.../gridman/forestranger/widget/ditu.vue | 26 ++++---
3 files changed, 108 insertions(+), 33 deletions(-)
diff --git a/src/views/gridman/forestranger/index.vue b/src/views/gridman/forestranger/index.vue
index b773586..c3ca511 100644
--- a/src/views/gridman/forestranger/index.vue
+++ b/src/views/gridman/forestranger/index.vue
@@ -48,13 +48,18 @@
搜索
-
+
{{ item.pointname }}
责任人:{{ item.usernames }}
-
位置
+
+
+ 删除
+
+ 编辑
+
@@ -78,7 +83,7 @@
-
+
@@ -140,7 +145,8 @@
clockInName: '',
clockInVisible: false,
rowdataKey: 1,
- flyCenter:[]
+ flyCenter:[],
+ clockDetail:{}
}
},
@@ -162,11 +168,45 @@
console.log('getLocation',e)
this.clockInVisible = true
this.clocklnglat = e
+ this.clockDetail = null
+ },
+ editClock(e){
+ console.log('223311',e)
+ this.clockDetail = e
+ this.clockInVisible = true
},
gofly(item){
console.log('iii',item)
this.flyCenter = [item.lng,item.lat]
},
+ delItem(item){
+ console.log('123',item)
+ let param = {
+ id: item.id
+ }
+ this.$confirm('确定删除本条数据?', '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ postMethodCommon("/FireGrid/DeleteCheckPoint?id="+param.id).then(res => {
+ if (res.code == 200) {
+ this.$message({
+ type: "success",
+ message: "删除成功",
+ })
+ }
+ this.rowdataKey++
+ this.getClockInList()
+ })
+ }).catch(() => {
+ this.$message({
+ type: 'info',
+ message: '已取消删除'
+ });
+ });
+
+ },
clockInSuccess(){
console.log('231321')
this.rowdataKey++
diff --git a/src/views/gridman/forestranger/widget/clockIn.vue b/src/views/gridman/forestranger/widget/clockIn.vue
index 895f885..d25b86f 100644
--- a/src/views/gridman/forestranger/widget/clockIn.vue
+++ b/src/views/gridman/forestranger/widget/clockIn.vue
@@ -16,13 +16,12 @@