This commit is contained in:
2023-03-15 18:00:49 +08:00
parent 61107efb32
commit cd43fe189b

View File

@@ -69,7 +69,7 @@ export default {
val2: '', val2: '',
val3: '', val3: '',
page: 1, page: 1,
size: '10', size: '20',
busy: false, busy: false,
desc: '' desc: ''
} }
@@ -80,7 +80,7 @@ export default {
if (res.code === '1') { if (res.code === '1') {
this.dataList = [] this.dataList = []
this.dataList = [...res.result] this.dataList = [...res.result]
if (res.result.length < 10) { if (res.result.length < 20) {
this.busy = true this.busy = true
this.desc = '已加载全部数据' this.desc = '已加载全部数据'
} }
@@ -95,7 +95,7 @@ export default {
let res = await queryDeviceErrorInfo(this.val1, this.val2, this.val3, this.page + '', this.size) let res = await queryDeviceErrorInfo(this.val1, this.val2, this.val3, this.page + '', this.size)
if (res.code === '1') { if (res.code === '1') {
this.dataList = [...this.dataList, ...res.result] this.dataList = [...this.dataList, ...res.result]
if (res.result.length < 10) { if (res.result.length < 20) {
this.busy = true this.busy = true
this.desc = '已加载全部数据' this.desc = '已加载全部数据'
} else { } else {