xiugai
This commit is contained in:
@@ -106,6 +106,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
hideCard:[],
|
||||
loadStatus: 'load',
|
||||
userTotal: {},
|
||||
historyList: [],
|
||||
@@ -234,11 +235,17 @@
|
||||
}
|
||||
})
|
||||
},
|
||||
getCards() {
|
||||
accountApi.getUserAccount().then(res => {
|
||||
async getCards() {
|
||||
await accountApi.getSyncDeductions().then(res => {
|
||||
if (res.code == 20000) {
|
||||
this.hideCard = res.data.companyIds
|
||||
}
|
||||
})
|
||||
await accountApi.getUserAccount().then(res => {
|
||||
if (res.code == 20000) {
|
||||
if (res.data.length > 0) {
|
||||
this.cardList = res.data
|
||||
this.cardList = this.cardList.filter(item=>!this.hideCard.includes(item.companyId))
|
||||
this.cardList.forEach(item => {
|
||||
this.$set(item,'currentPage',1)
|
||||
this.$set(item,'loadStatus','more')
|
||||
|
||||
Reference in New Issue
Block a user