|
@@ -243,14 +243,14 @@ export default {
|
|
|
async transferOneHistory (history) {
|
|
async transferOneHistory (history) {
|
|
|
const loading = this.$showLoading()
|
|
const loading = this.$showLoading()
|
|
|
await this.transferHistories([history])
|
|
await this.transferHistories([history])
|
|
|
- this.$refs.historyTableDialog.decrease(1)
|
|
|
|
|
|
|
+ this.$refs.historyTableDialog.getTable().decrease(1)
|
|
|
this.$closeLoading(loading)
|
|
this.$closeLoading(loading)
|
|
|
},
|
|
},
|
|
|
async transferAllHistories () {
|
|
async transferAllHistories () {
|
|
|
const { totalCount, pageSize } = this.$refs.deviceTableDialog.getTable().info()
|
|
const { totalCount, pageSize } = this.$refs.deviceTableDialog.getTable().info()
|
|
|
if (totalCount <= pageSize) {
|
|
if (totalCount <= pageSize) {
|
|
|
await this.transferHistories(this.$refs.deviceTableDialog.getTable().getData())
|
|
await this.transferHistories(this.$refs.deviceTableDialog.getTable().getData())
|
|
|
- this.$refs.historyTableDialog.pageTo(1)
|
|
|
|
|
|
|
+ this.$refs.historyTableDialog.getTable().pageTo(1)
|
|
|
} else {
|
|
} else {
|
|
|
const loading = this.$showLoading()
|
|
const loading = this.$showLoading()
|
|
|
try {
|
|
try {
|
|
@@ -259,7 +259,7 @@ export default {
|
|
|
pageSize: totalCount
|
|
pageSize: totalCount
|
|
|
})
|
|
})
|
|
|
await this.transferHistories(data)
|
|
await this.transferHistories(data)
|
|
|
- this.$refs.historyTableDialog.pageTo(1)
|
|
|
|
|
|
|
+ this.$refs.historyTableDialog.getTable().pageTo(1)
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
console.warn(e)
|
|
console.warn(e)
|
|
|
this.$message({
|
|
this.$message({
|