fix: 修复dashboard-panel穿梭框分页问题
This commit is contained in:
@@ -50,6 +50,7 @@
|
|||||||
:table-data="transfer.tableData"
|
:table-data="transfer.tableData"
|
||||||
:tableTitle="transferTableTitle"
|
:tableTitle="transferTableTitle"
|
||||||
style="margin-bottom: 20px;"
|
style="margin-bottom: 20px;"
|
||||||
|
@pageNo="pageNoChange"
|
||||||
@leftToRight="addAsset"
|
@leftToRight="addAsset"
|
||||||
@rightToLeft="removeAsset"
|
@rightToLeft="removeAsset"
|
||||||
@search="search">
|
@search="search">
|
||||||
@@ -194,6 +195,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
pageNoChange (val) {
|
||||||
|
this.transfer.pageObj.pageNo = val
|
||||||
|
this.getTableData()
|
||||||
|
},
|
||||||
clickOutside () {
|
clickOutside () {
|
||||||
this.esc(false)
|
this.esc(false)
|
||||||
},
|
},
|
||||||
@@ -294,6 +299,7 @@ export default {
|
|||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.transfer.tableData = response.data.list
|
this.transfer.tableData = response.data.list
|
||||||
this.transfer.pageObj.total = response.data.total
|
this.transfer.pageObj.total = response.data.total
|
||||||
|
this.transfer.pageObj.pages = response.data.pages
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -308,6 +314,7 @@ export default {
|
|||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.transfer.tableData = response.data.list
|
this.transfer.tableData = response.data.list
|
||||||
this.transfer.pageObj.total = response.data.total
|
this.transfer.pageObj.total = response.data.total
|
||||||
|
this.transfer.pageObj.pages = response.data.pages
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user