diff --git a/src/api/system/device.js b/src/api/system/device.js index 472d8a6..5d32769 100644 --- a/src/api/system/device.js +++ b/src/api/system/device.js @@ -50,3 +50,27 @@ export function allDevice() { method: 'get' }) } + +// 开锁 +export function handleUnlocking(data){ + return request({ + url: '/appVerify/admin/unlocking?sn='+data.sn, + method: 'post' + }) +} + +// 关锁 +export function handleLock(data){ + return request({ + url: '/appVerify/admin/lock?sn='+data.sn, + method: 'post' + }) +} + +// 响铃寻车 +export function ring(data){ + return request({ + url: '/app/device/ring?sn='+data.sn, + method: 'post' + }) +} diff --git a/src/assets/images/pay.png b/src/assets/images/pay.png deleted file mode 100644 index bb8b967..0000000 Binary files a/src/assets/images/pay.png and /dev/null differ diff --git a/src/assets/images/profile.jpg b/src/assets/images/profile.jpg index b3a940b..934b81d 100644 Binary files a/src/assets/images/profile.jpg and b/src/assets/images/profile.jpg differ diff --git a/src/components/AreaMap/index.vue b/src/components/AreaMap/index.vue index 5dcbbe8..ef72b17 100644 --- a/src/components/AreaMap/index.vue +++ b/src/components/AreaMap/index.vue @@ -56,7 +56,7 @@ export default { status:true, }; }, - props: ["pathList", "dataId"], + props: ["pathList", "dataId","lon","lat"], mounted() { if (this.dataId) { this.start(); @@ -112,6 +112,8 @@ export default { async echart() { clearInterval(this.timer); console.log("接收参数", this.pathList); + console.log("接收参数", this.lon); + console.log("接收参数", this.lat); // console.log(typeof JSON.parse(this.pathList)); await AMapLoader.load({ key: globalConfig.aMap.key, // 申请好的Web端开发者Key,首次调用 load 时必填 @@ -126,8 +128,8 @@ export default { this.map = new AMap.Map("container", { //设置地图容器id viewMode: "3D", //是否为3D地图模式 - zoom: 18, //初始化地图级别 - center: [120.356031, 26.94088], //初始化地图中心点位置--大嵛山岛 + zoom: 13, //初始化地图级别 + center: [this.lon,this.lat], //初始化地图中心点位置--大嵛山岛 }); this.map.setFitView(); }) @@ -220,7 +222,7 @@ export default { } .input-card-left { position: absolute; - bottom: 20px; + top: -40px; left: 20px; font-size: 13px; line-height: 20px; diff --git a/src/views/system/area/index.vue b/src/views/system/area/index.vue index e00c895..823ce53 100644 --- a/src/views/system/area/index.vue +++ b/src/views/system/area/index.vue @@ -96,21 +96,21 @@ - - - - - - - - - - - - - + + + + + + + + + + + +