|
@ -43,7 +43,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<!-- "详情"弹出框 --> |
|
|
<!-- "详情"弹出框 --> |
|
|
<EventDetailDialog :visible="eventDetailDialogVisible" :formData="detailDialogFormData" @update:value="handleClose" /> |
|
|
<EventDetailDialog :visible="eventDetailDialogVisible" :formData="detailDialogFormData" :activeName="activeName" @update:value="handleClose" /> |
|
|
<!-- "新增"弹出框 --> |
|
|
<!-- "新增"弹出框 --> |
|
|
<FormEvent :visible="isShowAddNew" @close="onCloseAddNew" /> |
|
|
<FormEvent :visible="isShowAddNew" @close="onCloseAddNew" /> |
|
|
</div> |
|
|
</div> |
|
@ -189,7 +189,7 @@ export default { |
|
|
}).then((result) => { |
|
|
}).then((result) => { |
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
result.rows.forEach(it => { |
|
|
result.rows.forEach(it => { |
|
|
it.stringEventSource = warningSourceMapping[it.warningSource]; |
|
|
it.stringEventSource = it?.warningSource ? warningSourceMapping[it?.warningSource] : ''; |
|
|
it.stringDirection = directionMapping[it.direction] || it.direction; |
|
|
it.stringDirection = directionMapping[it.direction] || it.direction; |
|
|
it.startTime = it.warningTime; |
|
|
it.startTime = it.warningTime; |
|
|
|
|
|
|
|
@ -302,7 +302,7 @@ export default { |
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
let data = result.data; |
|
|
let data = result.data; |
|
|
|
|
|
|
|
|
data.stringEventSource = warningSourceMapping[data.warningSource]; |
|
|
data.stringEventSource = data?.warningSource ? warningSourceMapping[data.warningSource] : ''; |
|
|
data.direction = directionMapping[data.direction] || data.direction; |
|
|
data.direction = directionMapping[data.direction] || data.direction; |
|
|
data.startTime = data.warningTime; |
|
|
data.startTime = data.warningTime; |
|
|
data.stringEventState = warningStateMapping[data.warningState]; |
|
|
data.stringEventState = warningStateMapping[data.warningState]; |
|
@ -353,7 +353,7 @@ export default { |
|
|
...this.searchData, |
|
|
...this.searchData, |
|
|
eventType: data.eventType, |
|
|
eventType: data.eventType, |
|
|
eventSources: data.eventSources, |
|
|
eventSources: data.eventSources, |
|
|
warningSource: data.warningSource, |
|
|
warningSource: data?.warningSource || '', |
|
|
direction: data.direction, |
|
|
direction: data.direction, |
|
|
startTime: daterange && daterange.length > 0 ? daterange[0] : "", |
|
|
startTime: daterange && daterange.length > 0 ? daterange[0] : "", |
|
|
endTime: daterange && daterange.length > 0 ? daterange[1] : "", |
|
|
endTime: daterange && daterange.length > 0 ? daterange[1] : "", |
|
|