From 6550ddd032427df8e0bd3d12f85671ba3a81343b Mon Sep 17 00:00:00 2001
From: 18650502300 <18650502300@163.com>
Date: Tue, 5 Nov 2024 13:52:40 +0800
Subject: [PATCH] =?UTF-8?q?1.=E5=BF=AB=E9=80=9F=E7=94=9F=E6=88=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/dept.js | 9 +
src/components/Map/location/LocationMaps.vue | 14 +-
src/views/system/dept/index.vue | 232 +++++++++++++++++--
src/views/system/device/index.vue | 79 ++++++-
src/views/system/partner/index.vue | 27 +++
src/views/system/user/index.vue | 6 +-
src/views/system/withdrawAudit/index.vue | 23 +-
7 files changed, 347 insertions(+), 43 deletions(-)
diff --git a/src/api/system/dept.js b/src/api/system/dept.js
index 1efe5c6..4d6d47e 100644
--- a/src/api/system/dept.js
+++ b/src/api/system/dept.js
@@ -43,6 +43,15 @@ export function addDept(data) {
})
}
+// 快速生成
+export function fastAddDept(data) {
+ return request({
+ url: '/system/dept/fastCreate',
+ method: 'post',
+ data: data
+ })
+}
+
// 修改部门
export function updateDept(data) {
return request({
diff --git a/src/components/Map/location/LocationMaps.vue b/src/components/Map/location/LocationMaps.vue
index 2dcecbd..2f104a0 100644
--- a/src/components/Map/location/LocationMaps.vue
+++ b/src/components/Map/location/LocationMaps.vue
@@ -117,9 +117,10 @@ export default {
// this.doPlaceSearch(city + '人民政府');
// }
// },
-
+
async getAreas(areaId) {
- getArea(this.areaId).then(response => {
+ if(areaId !=null){
+ getArea(this.areaId).then(response => {
console.log(response,'responseresponse');
this.area = response.data;
@@ -140,7 +141,8 @@ export default {
this.initAMap();
});
- });
+ });
+ }
},
initAMap() {
AMapLoader.load({
@@ -183,7 +185,7 @@ export default {
// setTimeout(() => {
// this.trajectory()
// }, 500);
-
+
}).catch((e) => {
console.log("地图加载失败!!!");
@@ -207,7 +209,7 @@ export default {
let longitude = parseFloat(abb[0][0]);
let latitude1 = parseFloat(abb[abb.length - 1][1]);
let longitude1 = parseFloat( abb[abb.length - 1][0]);
-
+
this.marker = new AMap.Marker({
map: this.map,
position: [longitude, latitude],
@@ -600,7 +602,7 @@ export default {
// 每一段的时长
duration: 200,//可根据实际采集时间间隔设置
});
-
+
},
pauseAnimation() {
this.marker.pauseMove();
diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue
index f5cf2d6..8526e4f 100644
--- a/src/views/system/dept/index.vue
+++ b/src/views/system/dept/index.vue
@@ -61,6 +61,16 @@
@click="toggleExpandAll"
>展开/折叠
+
+ 快速生成
+
@@ -209,7 +219,7 @@
-
+
@@ -305,6 +315,69 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -329,7 +402,6 @@
-