|
@@ -5,7 +5,7 @@
|
|
|
<div class="app-size-28">今日概况</div>
|
|
<div class="app-size-28">今日概况</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="income-amount" @click="goToIncome">
|
|
<div class="income-amount" @click="goToIncome">
|
|
|
- <div>销售收入</div>
|
|
|
|
|
|
|
+ <div>收入</div>
|
|
|
<div class="price">{{ $util.numberFormat(data.todayData.income) }}</div>
|
|
<div class="price">{{ $util.numberFormat(data.todayData.income) }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="user-bottom">
|
|
<div class="user-bottom">
|
|
@@ -60,7 +60,7 @@
|
|
|
<div class="module-com total-wrap">
|
|
<div class="module-com total-wrap">
|
|
|
<div class="total-tit">总览</div>
|
|
<div class="total-tit">总览</div>
|
|
|
<div class="total-blo">
|
|
<div class="total-blo">
|
|
|
- <div class="total-list" v-for="(item, index) in totalData" :key="index" >
|
|
|
|
|
|
|
+ <div class="total-list" v-for="(item, index) in overview" :key="index" @click="pageTo(item)">
|
|
|
<div class="list-num">{{ $util.numberFormat(item.value) }}</div>
|
|
<div class="list-num">{{ $util.numberFormat(item.value) }}</div>
|
|
|
<div class="app-color-3">{{ item.name }}</div>
|
|
<div class="app-color-3">{{ item.name }}</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -72,18 +72,18 @@
|
|
|
<script>
|
|
<script>
|
|
|
import { mapGetters, mapState } from "vuex";
|
|
import { mapGetters, mapState } from "vuex";
|
|
|
import { getWeixinId } from "@/api/invite/index";
|
|
import { getWeixinId } from "@/api/invite/index";
|
|
|
-import { closeRemindChange } from "@/api/shop-admin"
|
|
|
|
|
|
|
+import { getStat } from '@/api/console'
|
|
|
import { getShopInfo } from "@/utils/auth";
|
|
import { getShopInfo } from "@/utils/auth";
|
|
|
import { consoleIndex } from "@/api/workbench";
|
|
import { consoleIndex } from "@/api/workbench";
|
|
|
import NotLogin from "@/components/not-login";
|
|
import NotLogin from "@/components/not-login";
|
|
|
import autoUpdateMixins from "@/mixins/autoUpdate";
|
|
import autoUpdateMixins from "@/mixins/autoUpdate";
|
|
|
-import { CURRENT_ENV } from '@/config'
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: "workbench",
|
|
name: "workbench",
|
|
|
components: { NotLogin },
|
|
components: { NotLogin },
|
|
|
mixins: [autoUpdateMixins],
|
|
mixins: [autoUpdateMixins],
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ overview:[],
|
|
|
constant: this.$constant,
|
|
constant: this.$constant,
|
|
|
getappIdList: {},
|
|
getappIdList: {},
|
|
|
data: {
|
|
data: {
|
|
@@ -131,6 +131,7 @@ export default {
|
|
|
...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo" })
|
|
...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo" })
|
|
|
},
|
|
},
|
|
|
onLoad () {
|
|
onLoad () {
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
onPullDownRefresh () {
|
|
onPullDownRefresh () {
|
|
|
this.init();
|
|
this.init();
|
|
@@ -217,17 +218,14 @@ export default {
|
|
|
let that = this
|
|
let that = this
|
|
|
consoleIndex({isMini:this.isMini}).then(res => {
|
|
consoleIndex({isMini:this.isMini}).then(res => {
|
|
|
this.data = res.data;
|
|
this.data = res.data;
|
|
|
- const { asset, todayData } = res.data;
|
|
|
|
|
- if (!this.$util.isEmpty(asset)) {
|
|
|
|
|
- // 总览数据
|
|
|
|
|
- this.totalData[0].value = asset.totalUser ? parseFloat(asset.totalUser) : 0;
|
|
|
|
|
- this.totalData[1].value = asset.totalView ? parseFloat(asset.totalView) : 0;
|
|
|
|
|
- this.totalData[2].value = asset.totalOrder ? parseFloat(asset.totalOrder) : 0;
|
|
|
|
|
- this.totalData[3].value = asset.totalIncome ? parseFloat(asset.totalIncome) : 0;
|
|
|
|
|
- this.totalData[4].value = asset.totalExpend ? parseFloat(asset.totalExpend) : 0;
|
|
|
|
|
- this.totalData[5].value = asset.totalPurchase ? parseFloat(asset.totalPurchase) : 0;
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ getStat().then(res=>{
|
|
|
|
|
+ if(res.code == 1){
|
|
|
|
|
+ that.overview = res.data.overview
|
|
|
}
|
|
}
|
|
|
- });
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
//通知处理
|
|
//通知处理
|
|
|
noticeFn (item) {
|
|
noticeFn (item) {
|