|
|
@@ -117,7 +117,7 @@ export default {
|
|
|
remindText: '',
|
|
|
timeoutCount: 0,
|
|
|
agreed: 0,
|
|
|
- purchaseManListData: [],
|
|
|
+ purchaseManListData: [{}],
|
|
|
url: ''
|
|
|
}
|
|
|
},
|
|
|
@@ -163,8 +163,25 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
+ // 'purchaseManList': {
|
|
|
+ // handler (newVal) {
|
|
|
+ // if (this.purchaseManListData.length === 0) {
|
|
|
+ // 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
|
|
|
+ // }).then(res => {
|
|
|
+ // this.purchaseManListData = JSON.parse(JSON.stringify(this.purchaseManList))
|
|
|
+ // console.log(this.purchaseManListData.length)
|
|
|
+ // })
|
|
|
+ // } else {
|
|
|
+ // this.purchaseManListData = JSON.parse(JSON.stringify(this.purchaseManList))
|
|
|
+ // }
|
|
|
+ // },
|
|
|
+ // immediate: true
|
|
|
+ // }
|
|
|
'purchaseManList': {
|
|
|
- handler () {
|
|
|
+ handler (newVal) {
|
|
|
this.purchaseManListData = JSON.parse(JSON.stringify(this.purchaseManList))
|
|
|
},
|
|
|
immediate: true
|