|
|
@ -18,6 +18,7 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<InputSearch |
|
|
|
ref="searchComp" |
|
|
|
style="width: 402px" |
|
|
|
:formList="searchFormList" |
|
|
|
:formConfigOptions="{ dFormData: { eventState: '0' } }" |
|
|
@ -88,6 +89,7 @@ export default { |
|
|
|
pageSize: 16, |
|
|
|
pageNum: 1, |
|
|
|
searchData: { |
|
|
|
pageNum: 1, |
|
|
|
warningSource: "6", |
|
|
|
}, |
|
|
|
}; |
|
|
@ -101,7 +103,10 @@ export default { |
|
|
|
this.$message.warning("待开发"); |
|
|
|
}, |
|
|
|
// 刷新 |
|
|
|
onRefresh() {}, |
|
|
|
onRefresh() { |
|
|
|
this.searchData.pageNum = 1; |
|
|
|
this.$refs.searchComp.handleResetForm(); |
|
|
|
}, |
|
|
|
initData() { |
|
|
|
perceivedEventsList(this.searchData, this.pageNum, this.pageSize).then( |
|
|
|
(res) => { |
|
|
@ -147,13 +152,9 @@ export default { |
|
|
|
|
|
|
|
firstBtnClick(id) {}, |
|
|
|
handleSearch(data) { |
|
|
|
console.log("data", data); |
|
|
|
this.searchData = { |
|
|
|
...this.searchData, |
|
|
|
warningType: data.warningType, |
|
|
|
startTime: data.warningTime[0], |
|
|
|
completeTime: data.warningTime[1], |
|
|
|
}; |
|
|
|
this.searchData.warningType = data.warningType; |
|
|
|
this.searchData.startTime = data.warningTime && data.warningTime[0]; |
|
|
|
this.searchData.completeTime = data.warningTime && data.warningTime[1]; |
|
|
|
this.initData(); |
|
|
|
}, |
|
|
|
}, |
|
|
|