瀏覽代碼

no message

develop
父節點
當前提交
b7f9f987ed
共有 1 個文件被更改,包括 12 次插入9 次删除
  1. +12
    -9
      src/pages/main/index.vue

+ 12
- 9
src/pages/main/index.vue 查看文件

@@ -1,12 +1,14 @@
<template>
<div class="boxPageIndex">
<ul class="listTab" v-if="tableA">
<li><i>{{tableA.total}}</i><span>总订单数</span></li>
<li><i>{{tableA.processed}}</i><span>待处理订单数</span></li>
<li><i>{{tableA.myTotal}}</i><span>个人总订单</span></li>
<li><i>{{tableA.myProcessed}}</i><span>个人待处理订单</span></li>
</ul>
</div>
<a-spin :spinning="pageLoad">
<div class="boxPageIndex">
<ul class="listTab" v-if="tableA">
<li><i>{{tableA.total||0}}</i><span>总订单数</span></li>
<li><i>{{tableA.processed||0}}</i><span>待处理订单数</span></li>
<li><i>{{tableA.myTotal||0}}</i><span>个人总订单</span></li>
<li><i>{{tableA.myProcessed||0}}</i><span>个人待处理订单</span></li>
</ul>
</div>
</a-spin>
</template>

<script>
@@ -15,7 +17,7 @@ import {indexMonitor} from "@/services/Main";
export default {
name: 'index',
data() {
return{tableA:{}}
return{tableA:{},pageLoad:true,}
},
mounted() {
this.getInfo();
@@ -24,6 +26,7 @@ export default {
getInfo(){
indexMonitor().then(res=>{
this.tableA = res;
this.pageLoad = false;
})
}
}


Loading…
取消
儲存