更新代码
This commit is contained in:
@@ -68,7 +68,10 @@ export const constantRoutes = [
|
||||
children: [
|
||||
{
|
||||
path: 'index',
|
||||
component: () => import('@/views/index'),
|
||||
component: (route) => {
|
||||
console.log('route:', route);
|
||||
return import('@/views/index')
|
||||
},
|
||||
name: 'Index',
|
||||
meta: { title: '首页', icon: 'dashboard', affix: true }
|
||||
}
|
||||
|
||||
@@ -36,16 +36,16 @@
|
||||
<el-row :gutter="16" class="panel-group">
|
||||
<el-col :lg="6" :sm="12" :xs="12" class="card-panel-col">
|
||||
<RankList title="充值排行榜" :type="3">
|
||||
<template :scope="scope">
|
||||
<count-to :duration="2600" :end-val="900" :start-val="0" class="card-panel-num" prefix="¥"/>
|
||||
<template v-slot:default="{ data }">
|
||||
<count-to :duration="2600" :end-val="data.value" :start-val="0" class="card-panel-num" prefix="¥"/>
|
||||
</template>
|
||||
</RankList>
|
||||
</el-col>
|
||||
|
||||
<el-col :lg="6" :sm="12" :xs="12" class="card-panel-col">
|
||||
<RankList title="提现排行榜" :type="4">
|
||||
<template :scope="scope">
|
||||
<count-to :duration="2600" :end-val="900" :start-val="0" class="card-panel-num" prefix="¥"/>
|
||||
<template v-slot:default="{ data }">
|
||||
<count-to :duration="2600" :end-val="data.value" :start-val="0" class="card-panel-num" prefix="¥"/>
|
||||
</template>
|
||||
</RankList>
|
||||
</el-col>
|
||||
@@ -141,8 +141,8 @@ export default {
|
||||
},
|
||||
chartSelect,
|
||||
refreshTimeSelect,
|
||||
refreshTimeLabel: '30s',
|
||||
refreshTimeValue: 30,
|
||||
refreshTimeLabel: '60s',
|
||||
refreshTimeValue: 60,
|
||||
autoRefreshSwitch: true,
|
||||
autoRefreshTimer: null
|
||||
}
|
||||
@@ -167,6 +167,9 @@ export default {
|
||||
publisherInstance.subscribe('refresh', this.getTodayStatistics);
|
||||
},
|
||||
methods: {
|
||||
getScope(scope) {
|
||||
console.log('getScope:', scope)
|
||||
},
|
||||
refreshFunc() {
|
||||
if (this.autoRefreshSwitch) {
|
||||
clearInterval(this.autoRefreshTimer);
|
||||
|
||||
Reference in New Issue
Block a user