|
|
@@ -48,7 +48,7 @@
|
|
|
small
|
|
|
@size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage"
|
|
|
+ :current-page="params.content.pageNumber"
|
|
|
:page-size="params.content.pageSize"
|
|
|
layout="total, prev, pager, next, jumper"
|
|
|
:total="total">
|
|
|
@@ -84,7 +84,6 @@ export default {
|
|
|
tablecols:[],
|
|
|
list:[],
|
|
|
total:0,
|
|
|
- currentPage:0
|
|
|
}
|
|
|
},
|
|
|
components:{TimeSelect},
|
|
|
@@ -94,25 +93,14 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
watch: {
|
|
|
- params: {
|
|
|
- handler(val) {
|
|
|
- this.$emit('seleteParams',val)
|
|
|
- },
|
|
|
- deep:true
|
|
|
- }
|
|
|
},
|
|
|
methods:{
|
|
|
- async listData () {
|
|
|
+ async listData (callback) {
|
|
|
const res = await this.$api.requested(this.params)
|
|
|
- this.params.content.pageSize = 999999999
|
|
|
- const res2 = await this.$api.requested(this.params)
|
|
|
- this.params.content.pageSize = 20
|
|
|
this.list = res.data
|
|
|
this.total = res.total
|
|
|
- this.currentPage = res.pageNumber
|
|
|
console.log(this.list);
|
|
|
|
|
|
- this.$emit('exportDataUpdata',res2.data)
|
|
|
this.$store.dispatch('optiontypeselect','cluepublic')
|
|
|
},
|
|
|
handleSizeChange(val) {
|
|
|
@@ -128,20 +116,20 @@ export default {
|
|
|
clearSelect() {
|
|
|
this.params.content.where.startdate = ''
|
|
|
this.params.content.where.enddate = ''
|
|
|
- this.listData()
|
|
|
+ this.params.content.pageNumber = 1
|
|
|
+ this.listData('callback')
|
|
|
},
|
|
|
timeChange(data) {
|
|
|
-
|
|
|
this.params.content.where.startdate = data[0] + ' 01:00:00'
|
|
|
this.params.content.where.enddate = data[1] + ' 23:59:59'
|
|
|
- console.log(this.params.content.where);
|
|
|
- this.listData()
|
|
|
+ this.params.content.pageNumber = 1
|
|
|
+ this.listData('callback')
|
|
|
}
|
|
|
},
|
|
|
mounted (){
|
|
|
- this.listData()
|
|
|
},
|
|
|
created () {
|
|
|
+ this.listData()
|
|
|
//获取表结构
|
|
|
this.tablecols = this.tool.tabelCol(this.$route.name)['cluePublicTable'].tablecols
|
|
|
}
|