分页和日期
This commit is contained in:
@@ -120,10 +120,10 @@ export default {
|
|||||||
this.getDetail()
|
this.getDetail()
|
||||||
this.getIntegralChange()
|
this.getIntegralChange()
|
||||||
this.getEventSummary()
|
this.getEventSummary()
|
||||||
let timeSta = dayjs().format('YYYY-MM-DD')
|
let nowTime = dayjs().format('YYYY-MM-DD')
|
||||||
let timeEnd = dayjs().subtract(29, 'day').format('YYYY-MM-DD')
|
let timeAgo = dayjs().subtract(29, 'day').format('YYYY-MM-DD')
|
||||||
this.startPla = timeSta
|
this.startPla = timeAgo
|
||||||
this.endPla = timeEnd
|
this.endPla = nowTime
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
</ai-download>
|
</ai-download>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
<ai-table :tableData="tableData" :total="page.total" :current.sync="current" :size.sync="page.size"
|
<ai-table :tableData="tableData" :total="total" :current.sync="current" :size.sync="size"
|
||||||
@getList="getTableData()" :col-configs="colConfigs" :dict="dict" @sort-change="changeTableSort">
|
@getList="getTableData()" :col-configs="colConfigs" :dict="dict" @sort-change="changeTableSort">
|
||||||
|
|
||||||
|
|
||||||
@@ -90,7 +90,8 @@ export default {
|
|||||||
},
|
},
|
||||||
girdIdList: [],
|
girdIdList: [],
|
||||||
tableData: [],
|
tableData: [],
|
||||||
page: {size: 10, total: 0},
|
size: 10,
|
||||||
|
total: 0,
|
||||||
current: 1,
|
current: 1,
|
||||||
girdList: [],
|
girdList: [],
|
||||||
form: {
|
form: {
|
||||||
@@ -144,14 +145,15 @@ export default {
|
|||||||
getTableData() {
|
getTableData() {
|
||||||
this.instance.post(`/app/appintegraluser/integralManager`,null,{
|
this.instance.post(`/app/appintegraluser/integralManager`,null,{
|
||||||
params: {
|
params: {
|
||||||
...this.page,
|
|
||||||
...this.search,
|
...this.search,
|
||||||
current: this.current,
|
current: this.current,
|
||||||
|
size: this.size,
|
||||||
|
total: this.total
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
this.tableData = res.data.records
|
this.tableData = res.data.records
|
||||||
this.page.total = res.data.total
|
this.total = res.data.total
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user