抽象更新
This commit is contained in:
@@ -37,8 +37,13 @@
|
||||
background: {
|
||||
backgroundColor: 'transparent'
|
||||
},
|
||||
query: {
|
||||
page: 10,
|
||||
limit: 1,
|
||||
},
|
||||
status: 'nomore',
|
||||
hasAjax:true,
|
||||
source:null,
|
||||
list:[]
|
||||
}
|
||||
},
|
||||
@@ -49,11 +54,22 @@
|
||||
})
|
||||
},
|
||||
init(){
|
||||
this.$Request.getT('app/discSpinningRecord/selectDiscSpinningRecord')
|
||||
|
||||
if (this.source) {
|
||||
this.query.source = this.source
|
||||
}
|
||||
this.$Request.getT('app/discSpinningRecord/selectDiscSpinningRecord', this.query).then(res => {
|
||||
if (res.code == 0 ) {
|
||||
this.list = res.data.records
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
onLoad(options) {
|
||||
console.log('onShow');
|
||||
if ( options.source ) {
|
||||
this.source = options.source
|
||||
}
|
||||
this.init()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user