Pārlūkot izejas kodu

feat: 企微和个微

xdd 1 mēnesi atpakaļ
vecāks
revīzija
3cebd8d9d1
1 mainītis faili ar 8 papildinājumiem un 10 dzēšanām
  1. 8 10
      src/views/statistics/index.vue

+ 8 - 10
src/views/statistics/index.vue

@@ -151,7 +151,7 @@
             <el-radio-button label="个微"></el-radio-button>
             <el-radio-button label="企微"></el-radio-button>
           </el-radio-group>
-          <el-button size="small" plain icon="el-icon-refresh" @click="manualRefresh">手动刷新</el-button>
+
           <el-dropdown @command="handleAutoRefresh" trigger="click">
             <el-button size="small" plain>
               自动刷新
@@ -164,7 +164,8 @@
               <el-dropdown-item :command="15" :class="{ 'is-active': autoRefreshInterval === 15 }">15分钟</el-dropdown-item>
             </el-dropdown-menu>
           </el-dropdown>
-          <el-button size="small" type="primary" @click="refresh">刷新</el-button>
+          <el-button size="small" plain icon="el-icon-refresh" type="primary" @click="manualRefresh">手动刷新</el-button>
+<!--          <el-button size="small" type="primary" @click="refresh">刷新</el-button>-->
         </div>
       </div>
     </div>
@@ -681,7 +682,7 @@ export default {
       viewerType: '0',
       viewerChart: null,
       userTypeText: '个微',
-      userType: 0,
+      userType: 1,
       dealerChart: null,
       // 分公司数量
       dealderCount: 0,
@@ -751,9 +752,9 @@ export default {
   methods: {
     handleUserType(){
       if(this.userTypeText === '个微'){
-        this.userType = 0
-      }else{
         this.userType = 1
+      }else{
+        this.userType = 2
       }
 
       this.refresh()
@@ -884,11 +885,8 @@ export default {
           this.blackNum = res.data.blackNum;
         }
       })
-      let param = {
-        startTime: '',
-        endTime: '',
-        userType: this.userType
-      };
+      let param = this.getParam();
+
       // 获取当前日期时间
       const today = dayjs();
       param.startTime = this.formatDate(today);