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