|
@ -5,7 +5,7 @@ |
|
|
<!-- 搜索栏 --> |
|
|
<!-- 搜索栏 --> |
|
|
<div class="filter"> |
|
|
<div class="filter"> |
|
|
<div> |
|
|
<div> |
|
|
<ButtonGradient @click="onAddNew" v-if="activeName != '1' && activeName != '2'"> |
|
|
<ButtonGradient @click="onAddNew" v-if="activeName == '0'"> |
|
|
<template #prefix> |
|
|
<template #prefix> |
|
|
<img src="./images/insert.svg" /> |
|
|
<img src="./images/insert.svg" /> |
|
|
</template> |
|
|
</template> |
|
@ -43,9 +43,10 @@ |
|
|
</div> |
|
|
</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> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -176,7 +177,7 @@ export default { |
|
|
lastBtnText: text, |
|
|
lastBtnText: text, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
queryData(flag){ |
|
|
queryData(flag) { |
|
|
this.getData() |
|
|
this.getData() |
|
|
}, |
|
|
}, |
|
|
getData() { |
|
|
getData() { |
|
@ -353,7 +354,7 @@ export default { |
|
|
this.searchData = { |
|
|
this.searchData = { |
|
|
...this.searchData, |
|
|
...this.searchData, |
|
|
eventType: data.eventType, |
|
|
eventType: data.eventType, |
|
|
eventSources: data.eventSources, |
|
|
eventSource: data.eventSource, |
|
|
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] : "", |
|
|