|
|
@@ -41,7 +41,7 @@
|
|
|
<div class="card-title">快捷操作</div>
|
|
|
<div class="card-body">
|
|
|
<div class="entry-list-wrap">
|
|
|
- <div class="list" v-for="(item, index) in entryData" :key="index" @click="$util.pageTo(item)">
|
|
|
+ <div class="list" v-for="(item, index) in entryData" :key="index" @click="fastDoFn(item)">
|
|
|
<div class="icon-wrap">
|
|
|
<i class="iconfont" :class="[item.icon]"></i>
|
|
|
</div>
|
|
|
@@ -226,13 +226,11 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
name: '客服',
|
|
|
- icon: 'iconkefu',
|
|
|
- url: ''
|
|
|
+ icon: 'iconkefu'
|
|
|
},
|
|
|
{
|
|
|
name: '拼团',
|
|
|
- icon: 'iconlianjie',
|
|
|
- url: ''
|
|
|
+ icon: 'iconlianjie'
|
|
|
}
|
|
|
],
|
|
|
// 总统计
|
|
|
@@ -292,7 +290,9 @@ export default {
|
|
|
},
|
|
|
getData() {
|
|
|
this.$service.workbench.index().then(res => {
|
|
|
- if (this.$util.isEmpty(res)) return false;
|
|
|
+ if (this.$util.isEmpty(res)) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
this.incomeData = res.incomeStat;
|
|
|
this.visitorData = res.visitStat;
|
|
|
this.noticeData = res.notice;
|
|
|
@@ -311,14 +311,16 @@ export default {
|
|
|
res.todayData.income > 0 ? res.todayData.income : '-'
|
|
|
}`;
|
|
|
this.totalData[4].val = res.todayData.order > 0 ? res.todayData.order : '-';
|
|
|
- // pending
|
|
|
+ //待处理事务
|
|
|
+ console.log('待处理事务')
|
|
|
+ console.log(this.pendingData)
|
|
|
this.pendingData[0].val = res.asset.unPayOrder;
|
|
|
this.pendingData[1].val = res.asset.sendingOrder;
|
|
|
this.pendingData[2].val = res.asset.finishOrder;
|
|
|
this.pendingData[3].val = res.asset.unSendOrder;
|
|
|
- this.pendingData[4].val = res.asset.unNoticeOrder;
|
|
|
- this.pendingData[5].val = res.asset.totalOrder;
|
|
|
- // all-total
|
|
|
+ this.pendingData[4].val = res.asset.totalOrder;
|
|
|
+ //总览
|
|
|
+ console.log('查看总览');
|
|
|
this.allTotalData[0].val = res.asset.totalUser;
|
|
|
this.allTotalData[1].val = res.asset.totalFans;
|
|
|
this.allTotalData[2].val = res.asset.totalMember;
|
|
|
@@ -335,6 +337,13 @@ export default {
|
|
|
},
|
|
|
noticeFn(item) {
|
|
|
window.open(item.url);
|
|
|
+ },
|
|
|
+ fastDoFn(item) {
|
|
|
+ if (item.url) {
|
|
|
+ this.$util.pageTo(item);
|
|
|
+ } else {
|
|
|
+ this.$message.success('即将开通...');
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|