抽象更新
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user