From edacfca5a8e4e3abd4498eb81a34696b9ccd4c73 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期二, 19 九月 2023 10:07:24 +0800
Subject: [PATCH] #
---
src/main/webapp/views/console.html | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 15e0e2e..6182599 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -77,6 +77,7 @@
</div>
<div>
<el-button @click="testMove()">娴嬭瘯绉诲姩杞�</el-button>
+ <el-button @click="resetMap()">閲嶇疆鍦板浘</el-button>
</div>
</div>
</div>
@@ -371,6 +372,7 @@
for (let i = 1; i < data.length - 1; i++) {
tmp.push(data[i])
}
+ console.log(tmp)
this.map = tmp
}
})
@@ -638,6 +640,24 @@
}
}
return data;//杩斿洖灏忚溅鍙烽泦鍚�
+ },
+ resetMap() {
+ //閲嶇疆鍦板浘
+ let that = this
+ $.ajax({
+ url:baseUrl+"/console/map/resetMap/auth",
+ headers:{
+ 'token': localStorage.getItem('token')
+ },
+ data:{},
+ method:'get',
+ success:function (res) {
+ that.$message({
+ message: '閲嶇疆瀹屾垚',
+ type: 'success'
+ });
+ }
+ })
}
}
})
--
Gitblit v1.9.1