feat:getTableData添加回调函数

This commit is contained in:
zhangyu
2021-04-12 17:23:03 +08:00
parent e15d8dff15
commit 565210940c

View File

@@ -54,7 +54,7 @@ export default {
isBuildIn (row) {
return (row.buildIn && row.buildIn == 1) || (row.builtIn && row.builtIn == 1)
},
getTableData () {
getTableData (callBack) {
this.$set(this.searchLabel, 'pageNo', this.pageObj.pageNo)
this.$set(this.searchLabel, 'pageSize', this.pageObj.pageSize)
this.tools.loading = true
@@ -72,6 +72,9 @@ export default {
this.toTopBtnHandler(this.scrollbarWrap)
})
}
if (callBack) {
callBack(response.data)
}
}
})
},