|
|
@ -33,11 +33,64 @@ export const eventMap = { |
|
|
|
// status: "0",
|
|
|
|
// };
|
|
|
|
|
|
|
|
const data = await getDeviceList(1); |
|
|
|
// const data = await getDeviceList(1);
|
|
|
|
const data = [ |
|
|
|
{ |
|
|
|
longitude: 116.268564, |
|
|
|
latitude: 35.73115, |
|
|
|
otherConfig: '{"ptzCtrl":0}', |
|
|
|
}, |
|
|
|
{ |
|
|
|
longitude: 116.258178, |
|
|
|
latitude: 35.720996, |
|
|
|
}, |
|
|
|
{ |
|
|
|
longitude: 116.255542, |
|
|
|
latitude: 35.717335, |
|
|
|
}, |
|
|
|
{ |
|
|
|
longitude: 116.252883, |
|
|
|
latitude: 35.713114, |
|
|
|
}, |
|
|
|
{ |
|
|
|
longitude: 116.249416, |
|
|
|
latitude: 35.707627, |
|
|
|
}, |
|
|
|
]; |
|
|
|
|
|
|
|
if (!data) return; |
|
|
|
|
|
|
|
cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.(); |
|
|
|
|
|
|
|
cacheRemoveFunc.DriveTestEquipment_Camera_Remove = await setMarkToMap.call( |
|
|
|
this, |
|
|
|
item, |
|
|
|
data, |
|
|
|
(extData) => { |
|
|
|
try { |
|
|
|
this.dialogConfig = { |
|
|
|
// 0 有(球机) 1 ⽆(枪机)
|
|
|
|
component: cameraCtrlMap[JSON.parse(extData.otherConfig)?.ptzCtrl], |
|
|
|
data: extData, |
|
|
|
}; |
|
|
|
} catch (error) {} |
|
|
|
} |
|
|
|
); |
|
|
|
}, |
|
|
|
async "路测设备/摄像机_close"() { |
|
|
|
cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.(); |
|
|
|
}, |
|
|
|
async "路测设备/行车诱导_close"() { |
|
|
|
cacheRemoveFunc.Driving_Guidance_Remove?.(); |
|
|
|
}, |
|
|
|
async "路测设备/行车诱导"(item) { |
|
|
|
const data = await getDeviceList(12); |
|
|
|
|
|
|
|
// const data = [
|
|
|
|
// {
|
|
|
|
// longitude: 116.268564,
|
|
|
|
// latitude: 35.73115,
|
|
|
|
// otherConfig: '{"ptzCtrl":0}',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// longitude: 116.258178,
|
|
|
@ -54,43 +107,60 @@ export const eventMap = { |
|
|
|
// {
|
|
|
|
// longitude: 116.249416,
|
|
|
|
// latitude: 35.707627,
|
|
|
|
// ptzCtrl: 0,
|
|
|
|
// },
|
|
|
|
// ];
|
|
|
|
|
|
|
|
if (!data) return; |
|
|
|
|
|
|
|
cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.(); |
|
|
|
cacheRemoveFunc.Driving_Guidance_Remove?.(); |
|
|
|
|
|
|
|
cacheRemoveFunc.DriveTestEquipment_Camera_Remove = await setMarkToMap.call( |
|
|
|
cacheRemoveFunc.Driving_Guidance_Remove = await setMarkToMap.call( |
|
|
|
this, |
|
|
|
item, |
|
|
|
data, |
|
|
|
(extData) => { |
|
|
|
try { |
|
|
|
this.dialogConfig = { |
|
|
|
// 0 有(球机) 1 ⽆(枪机)
|
|
|
|
component: cameraCtrlMap[JSON.parse(extData.otherConfig)?.ptzCtrl], |
|
|
|
data: extData, |
|
|
|
}; |
|
|
|
} catch (error) {} |
|
|
|
this.dialogConfig = { |
|
|
|
component: "DrivingGuidance", |
|
|
|
data: extData, |
|
|
|
}; |
|
|
|
} |
|
|
|
); |
|
|
|
}, |
|
|
|
async "路测设备/摄像机_close"() { |
|
|
|
cacheRemoveFunc.DriveTestEquipment_Camera_Remove?.(); |
|
|
|
async "路测设备/情报板_close"() { |
|
|
|
cacheRemoveFunc.Info_Board_Remove?.(); |
|
|
|
}, |
|
|
|
async "路测设备/行车诱导_close"() { |
|
|
|
cacheRemoveFunc.Driving_Guidance_Remove?.(); |
|
|
|
}, |
|
|
|
async "路测设备/行车诱导"(item) { |
|
|
|
const data = await getDeviceList(12); |
|
|
|
async "路测设备/情报板"(item) { |
|
|
|
const data = await getDeviceList(2); |
|
|
|
|
|
|
|
// const data = [
|
|
|
|
// {
|
|
|
|
// longitude: 116.268564,
|
|
|
|
// latitude: 35.73115,
|
|
|
|
// otherConfig: '{"ptzCtrl":0}',
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// longitude: 116.258178,
|
|
|
|
// latitude: 35.720996,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// longitude: 116.255542,
|
|
|
|
// latitude: 35.717335,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// longitude: 116.252883,
|
|
|
|
// latitude: 35.713114,
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// longitude: 116.249416,
|
|
|
|
// latitude: 35.707627,
|
|
|
|
// },
|
|
|
|
// ];
|
|
|
|
|
|
|
|
if (!data) return; |
|
|
|
|
|
|
|
cacheRemoveFunc.Driving_Guidance_Remove?.(); |
|
|
|
cacheRemoveFunc.Info_Board_Remove?.(); |
|
|
|
|
|
|
|
cacheRemoveFunc.Driving_Guidance_Remove = await setMarkToMap.call( |
|
|
|
cacheRemoveFunc.Info_Board_Remove = await setMarkToMap.call( |
|
|
|
this, |
|
|
|
item, |
|
|
|
data, |
|
|
|