|
@ -17,7 +17,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
导出 |
|
|
导出 |
|
|
</ButtonGradient> |
|
|
</ButtonGradient> |
|
|
<ButtonGradient> |
|
|
<ButtonGradient @click="onRefresh"> |
|
|
<template #prefix> |
|
|
<template #prefix> |
|
|
<img src="./images/refresh.svg" /> |
|
|
<img src="./images/refresh.svg" /> |
|
|
</template> |
|
|
</template> |
|
@ -38,7 +38,9 @@ |
|
|
<div class="footer"> |
|
|
<div class="footer"> |
|
|
<Pagination |
|
|
<Pagination |
|
|
@current-change="getData" |
|
|
@current-change="getData" |
|
|
|
|
|
@size-change = "onSizeChange" |
|
|
width="'100%'" |
|
|
width="'100%'" |
|
|
|
|
|
:page-sizes="[12, 16, 20, 30, 50,]" |
|
|
:page-size="searchData.pageSize" |
|
|
:page-size="searchData.pageSize" |
|
|
:current-page.sync="searchData.pageNum" |
|
|
:current-page.sync="searchData.pageNum" |
|
|
layout="total, sizes, prev, pager, next" |
|
|
layout="total, sizes, prev, pager, next" |
|
@ -116,7 +118,7 @@ export default { |
|
|
eventDetailDialogVisible: false, |
|
|
eventDetailDialogVisible: false, |
|
|
isShowAddNew: false, |
|
|
isShowAddNew: false, |
|
|
searchData: { |
|
|
searchData: { |
|
|
pageSize: 10, |
|
|
pageSize: 12, |
|
|
pageNum: 1, |
|
|
pageNum: 1, |
|
|
eventState: null |
|
|
eventState: null |
|
|
} |
|
|
} |
|
@ -153,6 +155,16 @@ export default { |
|
|
this.total = result.total; |
|
|
this.total = result.total; |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
onRefresh(){ |
|
|
|
|
|
this.data = []; |
|
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
this.getData(); |
|
|
|
|
|
},100) |
|
|
|
|
|
}, |
|
|
|
|
|
onSizeChange(pageSize){ |
|
|
|
|
|
this.searchData.pageSize = pageSize |
|
|
|
|
|
this.getData(); |
|
|
|
|
|
}, |
|
|
onAddNew() { |
|
|
onAddNew() { |
|
|
this.isShowAddNew = true; |
|
|
this.isShowAddNew = true; |
|
|
}, |
|
|
}, |
|
|