|
|
@ -20,6 +20,7 @@ import { WarningType as warningTypeMapping, DirectionTypes as gzDirectionMapping |
|
|
|
import { param } from "../../../utils"; |
|
|
|
|
|
|
|
import { checkPermi } from "@/utils/permission.js"; |
|
|
|
import { checkRole } from '@/utils/permission' |
|
|
|
export default { |
|
|
|
name: "WarningNotify", |
|
|
|
props: { |
|
|
@ -111,6 +112,26 @@ export default { |
|
|
|
level: "warning", |
|
|
|
duration: 4000 |
|
|
|
} |
|
|
|
} else if(checkRole(["admin"]) && para.subEvent === 'externalPlatformOffline'){ |
|
|
|
if (para.content.type == '1'){ |
|
|
|
para.content.content = 'GIS+BIM系统异常' |
|
|
|
} else if(para.content.type == '2'){ |
|
|
|
para.content.content = '数字孪生系统异常' |
|
|
|
} else if(para.content.type == '3'){ |
|
|
|
para.content.content = '收费运营系统异常' |
|
|
|
} else if(para.content.type == '4'){ |
|
|
|
para.content.content = '桥梁监测系统异常' |
|
|
|
} else { |
|
|
|
para.content.content = '光纤在线检测系统异常' |
|
|
|
} |
|
|
|
|
|
|
|
obj = { |
|
|
|
content: para.content.content, |
|
|
|
time:'', |
|
|
|
type: "externalPlatformOffline", |
|
|
|
level: "danger", |
|
|
|
duration: 0 |
|
|
|
} |
|
|
|
} |
|
|
|
if(!obj.level){ |
|
|
|
return; |
|
|
@ -258,6 +279,8 @@ export default { |
|
|
|
} else if(info.subEvent==='deviceOfflineRecord'){ |
|
|
|
this.activeId = info.content.deviceOfflineRecord.id.toString(); |
|
|
|
this.modelDeviceVisible = true; |
|
|
|
} else if(info.subEvent==='externalPlatformOffline'){ |
|
|
|
|
|
|
|
} else { |
|
|
|
this.activeName = info.eventState |
|
|
|
request({ |
|
|
|