修改广告列表排序
This commit is contained in:
parent
ef2edbf820
commit
fdc0ed6155
@ -345,7 +345,9 @@ export default {
|
||||
const params = this.filterForm.status !== '' ? this.filterForm : {}
|
||||
try {
|
||||
const data = await this.getAd(params)
|
||||
this.tableData = data.message
|
||||
this.tableData = data.message.sort((a, b) => {
|
||||
return b.id - a.id
|
||||
})
|
||||
this.total = this.tableData.length
|
||||
this.sliceData()
|
||||
this.isLoaded = false
|
||||
|
@ -468,7 +468,9 @@ export default {
|
||||
const params = this.filterForm.status !== '' ? this.filterForm : {}
|
||||
try {
|
||||
const data = await this.getAd(params)
|
||||
this.tableData = data.message
|
||||
this.tableData = data.message.sort((a, b) => {
|
||||
return b.id - a.id
|
||||
})
|
||||
this.total = this.tableData.length
|
||||
this.sliceData()
|
||||
this.isLoaded = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user