|
@@ -74,7 +74,12 @@ export default {
|
|
|
pageURI: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
- }
|
|
|
+ },
|
|
|
+ /** 是否首次加载数据 */
|
|
|
+ defaultLoadData: {
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
+ },
|
|
|
}),
|
|
|
watch: {
|
|
|
'localPagination.current' (val) {
|
|
@@ -112,7 +117,9 @@ export default {
|
|
|
}) || false
|
|
|
console.log('this.localPagination', this.localPagination)
|
|
|
this.needTotalList = this.initTotalList(this.columns)
|
|
|
- this.loadData()
|
|
|
+ if(this.defaultLoadData){
|
|
|
+ this.loadData()
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|