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