|
|
@ -27,7 +27,9 @@
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<mini-area />
|
|
|
|
<mini-area />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<template slot="footer">日访问量<span> {{ '1234' | NumberFormat }}</span></template>
|
|
|
|
<template slot="footer"
|
|
|
|
|
|
|
|
>日访问量<span> {{ '1234' | NumberFormat }}</span></template
|
|
|
|
|
|
|
|
>
|
|
|
|
</chart-card>
|
|
|
|
</chart-card>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">
|
|
|
|
<a-col :sm="24" :md="12" :xl="6" :style="{ marginBottom: '24px' }">
|
|
|
@ -153,16 +155,20 @@
|
|
|
|
:pagination="{ pageSize: 5 }"
|
|
|
|
:pagination="{ pageSize: 5 }"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<span slot="range" slot-scope="text, record">
|
|
|
|
<span slot="range" slot-scope="text, record">
|
|
|
|
<trend :flag="record.status === 0 ? 'up' : 'down'">
|
|
|
|
<trend :flag="record.status === 0 ? 'up' : 'down'"> {{ text }}% </trend>
|
|
|
|
{{ text }}%
|
|
|
|
|
|
|
|
</trend>
|
|
|
|
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</a-table>
|
|
|
|
</a-table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a-card>
|
|
|
|
</a-card>
|
|
|
|
</a-col>
|
|
|
|
</a-col>
|
|
|
|
<a-col :xl="12" :lg="24" :md="24" :sm="24" :xs="24">
|
|
|
|
<a-col :xl="12" :lg="24" :md="24" :sm="24" :xs="24">
|
|
|
|
<a-card class="antd-pro-pages-dashboard-analysis-salesCard" :loading="loading" :bordered="false" title="销售额类别占比" :style="{ height: '100%' }">
|
|
|
|
<a-card
|
|
|
|
|
|
|
|
class="antd-pro-pages-dashboard-analysis-salesCard"
|
|
|
|
|
|
|
|
:loading="loading"
|
|
|
|
|
|
|
|
:bordered="false"
|
|
|
|
|
|
|
|
title="销售额类别占比"
|
|
|
|
|
|
|
|
:style="{ height: '100%' }"
|
|
|
|
|
|
|
|
>
|
|
|
|
<div slot="extra" style="height: inherit;">
|
|
|
|
<div slot="extra" style="height: inherit;">
|
|
|
|
<!-- style="bottom: 12px;display: inline-block;" -->
|
|
|
|
<!-- style="bottom: 12px;display: inline-block;" -->
|
|
|
|
<span class="dashboard-analysis-iconGroup">
|
|
|
|
<span class="dashboard-analysis-iconGroup">
|
|
|
@ -208,7 +214,17 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import moment from 'moment'
|
|
|
|
import moment from 'moment'
|
|
|
|
import { ChartCard, MiniArea, MiniBar, MiniProgress, RankList, Bar, Trend, NumberInfo, MiniSmoothArea } from '@/components'
|
|
|
|
import {
|
|
|
|
|
|
|
|
ChartCard,
|
|
|
|
|
|
|
|
MiniArea,
|
|
|
|
|
|
|
|
MiniBar,
|
|
|
|
|
|
|
|
MiniProgress,
|
|
|
|
|
|
|
|
RankList,
|
|
|
|
|
|
|
|
Bar,
|
|
|
|
|
|
|
|
Trend,
|
|
|
|
|
|
|
|
NumberInfo,
|
|
|
|
|
|
|
|
MiniSmoothArea
|
|
|
|
|
|
|
|
} from '@/components'
|
|
|
|
import { mixinDevice } from '@/utils/mixin'
|
|
|
|
import { mixinDevice } from '@/utils/mixin'
|
|
|
|
const barData = []
|
|
|
|
const barData = []
|
|
|
|
const barData2 = []
|
|
|
|
const barData2 = []
|
|
|
@ -232,7 +248,9 @@ for (let i = 0; i < 7; i++) {
|
|
|
|
const searchUserData = []
|
|
|
|
const searchUserData = []
|
|
|
|
for (let i = 0; i < 7; i++) {
|
|
|
|
for (let i = 0; i < 7; i++) {
|
|
|
|
searchUserData.push({
|
|
|
|
searchUserData.push({
|
|
|
|
x: moment().add(i, 'days').format('YYYY-MM-DD'),
|
|
|
|
x: moment()
|
|
|
|
|
|
|
|
.add(i, 'days')
|
|
|
|
|
|
|
|
.format('YYYY-MM-DD'),
|
|
|
|
y: Math.ceil(Math.random() * 10)
|
|
|
|
y: Math.ceil(Math.random() * 10)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -246,7 +264,8 @@ const searchUserScale = [
|
|
|
|
alias: '用户数',
|
|
|
|
alias: '用户数',
|
|
|
|
min: 0,
|
|
|
|
min: 0,
|
|
|
|
max: 10
|
|
|
|
max: 10
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
const searchTableColumns = [
|
|
|
|
const searchTableColumns = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dataIndex: 'MenuIndex.vue',
|
|
|
|
dataIndex: 'MenuIndex.vue',
|
|
|
@ -288,11 +307,13 @@ const sourceData = [
|
|
|
|
{ item: '母婴产品', count: 9 },
|
|
|
|
{ item: '母婴产品', count: 9 },
|
|
|
|
{ item: '其他', count: 7.8 }
|
|
|
|
{ item: '其他', count: 7.8 }
|
|
|
|
]
|
|
|
|
]
|
|
|
|
const pieScale = [{
|
|
|
|
const pieScale = [
|
|
|
|
|
|
|
|
{
|
|
|
|
dataKey: 'percent',
|
|
|
|
dataKey: 'percent',
|
|
|
|
min: 0,
|
|
|
|
min: 0,
|
|
|
|
formatter: '.0%'
|
|
|
|
formatter: '.0%'
|
|
|
|
}]
|
|
|
|
}
|
|
|
|
|
|
|
|
]
|
|
|
|
const dv = new DataSet.View().source(sourceData)
|
|
|
|
const dv = new DataSet.View().source(sourceData)
|
|
|
|
dv.transform({
|
|
|
|
dv.transform({
|
|
|
|
type: 'percent',
|
|
|
|
type: 'percent',
|
|
|
@ -371,9 +392,9 @@ export default {
|
|
|
|
.dashboard-analysis-iconGroup {
|
|
|
|
.dashboard-analysis-iconGroup {
|
|
|
|
i {
|
|
|
|
i {
|
|
|
|
margin-left: 16px;
|
|
|
|
margin-left: 16px;
|
|
|
|
color: rgba(0,0,0,.45);
|
|
|
|
color: rgba(0, 0, 0, 0.45);
|
|
|
|
cursor: pointer;
|
|
|
|
cursor: pointer;
|
|
|
|
transition: color .32s;
|
|
|
|
transition: color 0.32s;
|
|
|
|
color: black;
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|