抽象更新

This commit is contained in:
GaoHao
2024-12-23 09:41:13 +08:00
parent a67f470f5c
commit 7c339bc617

View File

@@ -37,8 +37,13 @@
background: { background: {
backgroundColor: 'transparent' backgroundColor: 'transparent'
}, },
query: {
page: 10,
limit: 1,
},
status: 'nomore', status: 'nomore',
hasAjax:true, hasAjax:true,
source:null,
list:[] list:[]
} }
}, },
@@ -49,11 +54,22 @@
}) })
}, },
init(){ 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'); console.log('onShow');
if ( options.source ) {
this.source = options.source
}
this.init() this.init()
} }
} }