|
|
@ -58,7 +58,14 @@ import { tabMap,searchFormList } from "./data"; |
|
|
|
import request from "@/utils/request"; |
|
|
|
import { Message } from "element-ui"; |
|
|
|
import { Loading } from 'element-ui'; |
|
|
|
import { WarningType as warningTypeMapping, WarningSubclass as warningSubclassTypeMapping, DirectionTypes as gzDirectionMapping, warningSourceMapping, warningStateMapping } from "@screen/utils/enum.js" |
|
|
|
import { |
|
|
|
WarningType as warningTypeMapping, |
|
|
|
WarningSubclass as warningSubclassTypeMapping, |
|
|
|
DirectionTypes as gzDirectionMapping, |
|
|
|
warningSourceMapping, |
|
|
|
warningStateMapping, |
|
|
|
auditType |
|
|
|
} from "@screen/utils/enum.js" |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "RoadNetworkMonitoring2", |
|
|
@ -190,6 +197,9 @@ export default { |
|
|
|
data.stringEventState = warningStateMapping[data.warningState]; |
|
|
|
data.stringEventType = warningTypeMapping[data.warningType]; |
|
|
|
data.stringDirection = gzDirectionMapping[data.direction] || data.direction; |
|
|
|
data.auditFlags=auditType[data.auditFlag]; |
|
|
|
data.auditor=data.auditor; |
|
|
|
data.auditTime=data.auditTime; |
|
|
|
let eventInfo = await request({ |
|
|
|
url: `/dc/system/event/eventSubclass/${id}`, |
|
|
|
method: "GET", |
|
|
@ -243,6 +253,7 @@ export default { |
|
|
|
warningType: data.warningType, |
|
|
|
warningSource: data?.warningSource || '', |
|
|
|
direction: data.direction, |
|
|
|
auditFlag:data.auditFlag, |
|
|
|
startTime: daterange && daterange.length > 0 ? daterange[0] : "", |
|
|
|
// endTime: this.activeName != "-1" && daterange && daterange.length > 0 ? daterange[1] : "", |
|
|
|
completeTime: daterange && daterange.length > 0 ? daterange[1] : "", |
|
|
|