Commit 79dbf54f by 李伟康

Merge branch 'liwk_dev_v2.1.0_0427' of http://192.168.3.233:8090/glsx/dj-scrm-wx…

…-work-attachment-activity into liwk_dev_v2.1.0_0427
2 parents 76255d73 d0ae613e
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
let { uuid } = this.getLocalStorage('dj_scrm_userInfo') let { uuid } = this.getLocalStorage('dj_scrm_userInfo')
let { pageNum, tabIndex, list, name, giftToast } = this let { pageNum, tabIndex, list, name, giftToast } = this
if (giftToast) this.giftToast = '' if (giftToast) this.giftToast = ''
this.showLoading() if(type!=='inApprove')this.showLoading()
const apiFunc = (type==='inApprove'|| tabIndex === 2) ? giftApi.getInApproveGiftList : giftApi.getGiftList const apiFunc = (type==='inApprove'|| tabIndex === 2) ? giftApi.getInApproveGiftList : giftApi.getGiftList
apiFunc({ apiFunc({
pageNum, pageNum,
...@@ -209,7 +209,6 @@ export default { ...@@ -209,7 +209,6 @@ export default {
receivedFlag: (type==='inApprove'|| tabIndex === 2) ? '' : (tabIndex == 0 ? 1 : 2), receivedFlag: (type==='inApprove'|| tabIndex === 2) ? '' : (tabIndex == 0 ? 1 : 2),
staffUUID: uuid staffUUID: uuid
}).then(res => { }).then(res => {
this.hideLoading()
if(type==='inApprove'){ if(type==='inApprove'){
this.$set(this.tab,2,`审批中(${res.total})`); this.$set(this.tab,2,`审批中(${res.total})`);
}else{ }else{
...@@ -218,6 +217,9 @@ export default { ...@@ -218,6 +217,9 @@ export default {
this.total = res.total this.total = res.total
if(tabIndex === 2) this.$set(this.tab,2,`审批中(${res.total})`); if(tabIndex === 2) this.$set(this.tab,2,`审批中(${res.total})`);
} }
if(type!=='inApprove') this.hideLoading()
}) })
}, },
search (e) { search (e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!