|
|
@ -5,7 +5,7 @@ |
|
|
|
<!-- 搜索栏 --> |
|
|
|
<div class="filter"> |
|
|
|
<div> |
|
|
|
<ButtonGradient @click="onAddNew" v-if="activeName != '1' && activeName != '2'"> |
|
|
|
<ButtonGradient @click="onAddNew" v-if="activeName == '0'"> |
|
|
|
<template #prefix> |
|
|
|
<img src="./images/insert.svg" /> |
|
|
|
</template> |
|
|
@ -43,9 +43,10 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- "详情"弹出框 --> |
|
|
|
<EventDetailDialog :visible="eventDetailDialogVisible" :formData="detailDialogFormData" :activeName="activeName" @update:value="handleClose" @queryData="queryData"/> |
|
|
|
<EventDetailDialog :visible="eventDetailDialogVisible" :formData="detailDialogFormData" :activeName="activeName" |
|
|
|
@update:value="handleClose" @queryData="queryData" /> |
|
|
|
<!-- "新增"弹出框 --> |
|
|
|
<FormEvent :visible="isShowAddNew" @close="onCloseAddNew" /> |
|
|
|
<FormEvent :visible="isShowAddNew" @close="onCloseAddNew" @queryData="queryData" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -176,7 +177,7 @@ export default { |
|
|
|
lastBtnText: text, |
|
|
|
}; |
|
|
|
}, |
|
|
|
queryData(flag){ |
|
|
|
queryData(flag) { |
|
|
|
this.getData() |
|
|
|
}, |
|
|
|
getData() { |
|
|
@ -353,7 +354,7 @@ export default { |
|
|
|
this.searchData = { |
|
|
|
...this.searchData, |
|
|
|
eventType: data.eventType, |
|
|
|
eventSources: data.eventSources, |
|
|
|
eventSource: data.eventSource, |
|
|
|
warningSource: data?.warningSource || '', |
|
|
|
direction: data.direction, |
|
|
|
startTime: daterange && daterange.length > 0 ? daterange[0] : "", |
|
|
|