feat:getTableData添加回调函数
This commit is contained in:
@@ -54,7 +54,7 @@ export default {
|
|||||||
isBuildIn (row) {
|
isBuildIn (row) {
|
||||||
return (row.buildIn && row.buildIn == 1) || (row.builtIn && row.builtIn == 1)
|
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, 'pageNo', this.pageObj.pageNo)
|
||||||
this.$set(this.searchLabel, 'pageSize', this.pageObj.pageSize)
|
this.$set(this.searchLabel, 'pageSize', this.pageObj.pageSize)
|
||||||
this.tools.loading = true
|
this.tools.loading = true
|
||||||
@@ -72,6 +72,9 @@ export default {
|
|||||||
this.toTopBtnHandler(this.scrollbarWrap)
|
this.toTopBtnHandler(this.scrollbarWrap)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
if (callBack) {
|
||||||
|
callBack(response.data)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user