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