|
|
@ -28,8 +28,8 @@ export const DeviceForMap = { |
|
|
|
* 1 枪机 不可控 |
|
|
|
*/ |
|
|
|
const type = JSON.parse(item.otherConfig)?.ptzCtrl; |
|
|
|
|
|
|
|
return cameraIcon[`${type}${!bool}`]; |
|
|
|
console.log(`${type}${!bool}`); |
|
|
|
return cameraIcon[`${type}${+!bool}`]; |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
@ -82,6 +82,14 @@ export const eventMap = { |
|
|
|
item, |
|
|
|
data, |
|
|
|
(extData) => { |
|
|
|
console.log( |
|
|
|
"%c [ extData ]-85-「buttonEvent.js」", |
|
|
|
"font-size:15px; background:#98099a; color:#dc4dde;", |
|
|
|
{ |
|
|
|
...extData, |
|
|
|
parseOtherConfig: JSON.parse(extData.otherConfig || "{}"), |
|
|
|
} |
|
|
|
); |
|
|
|
this.dialogConfig = { |
|
|
|
component: config.dialog, |
|
|
|
data: { |
|
|
|