|
@@ -118,12 +118,20 @@
|
|
|
watch: {
|
|
watch: {
|
|
|
'$store.state.applyPurchase.purchaseManList.purchaseHomeList.data': {
|
|
'$store.state.applyPurchase.purchaseManList.purchaseHomeList.data': {
|
|
|
handler: function (val) {
|
|
handler: function (val) {
|
|
|
- if (this.isChange) {
|
|
|
|
|
|
|
+ if (val.length === 0) {
|
|
|
|
|
+ // console.log(111)
|
|
|
|
|
+ this.$store.dispatch('applyPurchase/loadMobileHomeList', {
|
|
|
|
|
+ pageNumber: 1,
|
|
|
|
|
+ pageSize: 5,
|
|
|
|
|
+ enUU: this.$store.state.option.user.data.enterprise ? this.$store.state.option.user.data.enterprise.uu : null
|
|
|
|
|
+ })
|
|
|
|
|
+ } else if (this.isChange) {
|
|
|
this.purchaseManListData = []
|
|
this.purchaseManListData = []
|
|
|
this.page = 1
|
|
this.page = 1
|
|
|
this.isChange = false
|
|
this.isChange = false
|
|
|
this.isDataChange = false
|
|
this.isDataChange = false
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ // console.log(val.content)
|
|
|
this.purchaseManListData = this.purchaseManListData.concat(val.content)
|
|
this.purchaseManListData = this.purchaseManListData.concat(val.content)
|
|
|
this.isSearchSearchingMore = false
|
|
this.isSearchSearchingMore = false
|
|
|
this.isDataChange = true
|
|
this.isDataChange = true
|
|
@@ -209,6 +217,7 @@
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|
|
|
|
|
+ @import '~assets/scss/mobileCommon';
|
|
|
.home {
|
|
.home {
|
|
|
padding-bottom: 1rem;
|
|
padding-bottom: 1rem;
|
|
|
background: #f3f3f7;
|
|
background: #f3f3f7;
|