|
@ -1,6 +1,6 @@ |
|
|
import { axiosIns } from "@screen/utils/axios/auth.js"; |
|
|
import { axiosIns } from "@screen/utils/axios/auth.js"; |
|
|
import { Message } from "element-ui"; |
|
|
import { Message } from "element-ui"; |
|
|
import request from "@/utils/request"; |
|
|
import { getDeviceList } from "./httpList"; |
|
|
|
|
|
|
|
|
const PilePointJSON = require(`@screen/pages/Home/components/AMapContainer/data/lcz.json`); |
|
|
const PilePointJSON = require(`@screen/pages/Home/components/AMapContainer/data/lcz.json`); |
|
|
|
|
|
|
|
@ -37,20 +37,9 @@ export const eventMap = { |
|
|
// status: "0",
|
|
|
// status: "0",
|
|
|
// };
|
|
|
// };
|
|
|
|
|
|
|
|
|
const { code, data } = await axiosIns |
|
|
const data = await getDeviceList(1); |
|
|
.get("/system/camera/camList") |
|
|
|
|
|
// .get("/system/dept/camTreeselect")
|
|
|
|
|
|
.catch(() => ({})); |
|
|
|
|
|
// const { code, data } = {
|
|
|
|
|
|
// code: 200,
|
|
|
|
|
|
// data: [
|
|
|
|
|
|
// {
|
|
|
|
|
|
// pileNum: "K55+565",
|
|
|
|
|
|
// },
|
|
|
|
|
|
// ],
|
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
|
|
if (code != 200) return Message.error("摄像机加载失败!"); |
|
|
if (!data) return; |
|
|
|
|
|
|
|
|
cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.(); |
|
|
cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.(); |
|
|
|
|
|
|
|
@ -58,13 +47,6 @@ export const eventMap = { |
|
|
this, |
|
|
this, |
|
|
item, |
|
|
item, |
|
|
data, |
|
|
data, |
|
|
(item) => { |
|
|
|
|
|
const { lng, lat } = PilePointJSON[item.pileNum] || {}; |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
|
lnglat: [lng, lat], |
|
|
|
|
|
}; |
|
|
|
|
|
}, |
|
|
|
|
|
(extData) => { |
|
|
(extData) => { |
|
|
this.dialogConfig = { |
|
|
this.dialogConfig = { |
|
|
// 0 有(球机) 1 ⽆(枪机)
|
|
|
// 0 有(球机) 1 ⽆(枪机)
|
|
@ -81,23 +63,9 @@ export const eventMap = { |
|
|
cacheRemoveFunc.Driving_Guidance_Remove?.(); |
|
|
cacheRemoveFunc.Driving_Guidance_Remove?.(); |
|
|
}, |
|
|
}, |
|
|
async "路测设备/行车诱导"(item) { |
|
|
async "路测设备/行车诱导"(item) { |
|
|
const { code, data } = await request({ |
|
|
const data = await getDeviceList(12); |
|
|
url: "/business/device/query", |
|
|
|
|
|
method: "get", |
|
|
if (!data) return; |
|
|
params: { |
|
|
|
|
|
deviceType: 12, |
|
|
|
|
|
}, |
|
|
|
|
|
}) |
|
|
|
|
|
// .get("/system/dept/camTreeselect")
|
|
|
|
|
|
.catch(() => ({})); |
|
|
|
|
|
// const { code, data } = {
|
|
|
|
|
|
// code: 200,
|
|
|
|
|
|
// data: [
|
|
|
|
|
|
// {
|
|
|
|
|
|
// stakeMarkId: "K176+167",
|
|
|
|
|
|
// },
|
|
|
|
|
|
// ],
|
|
|
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
|
|
if (code != 200) return Message.error("行车诱导设备加载失败!"); |
|
|
if (code != 200) return Message.error("行车诱导设备加载失败!"); |
|
|
|
|
|
|
|
@ -109,15 +77,6 @@ export const eventMap = { |
|
|
this, |
|
|
this, |
|
|
item, |
|
|
item, |
|
|
data, |
|
|
data, |
|
|
(item) => { |
|
|
|
|
|
const { lng, lat } = PilePointJSON[item.stakeMarkId] || {}; |
|
|
|
|
|
|
|
|
|
|
|
if (lng && lat) noneLocation = false; |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
|
lnglat: [lng, lat], |
|
|
|
|
|
}; |
|
|
|
|
|
}, |
|
|
|
|
|
(extData) => { |
|
|
(extData) => { |
|
|
this.dialogConfig = { |
|
|
this.dialogConfig = { |
|
|
component: "DrivingGuidance", |
|
|
component: "DrivingGuidance", |
|
@ -127,6 +86,5 @@ export const eventMap = { |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
if (noneLocation) Message.warning("未能匹配到诱导设备位置!"); |
|
|
if (noneLocation) Message.warning("未能匹配到诱导设备位置!"); |
|
|
// cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.();
|
|
|
|
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|