12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <template>
- <el-card header="本月课程">
- <statistic class="statistic" :cols="0">
- <statistic-item>
- <span>乐团课</span>
- <span>
- <count-to :endVal="745"/>
- </span>
- </statistic-item>
- <statistic-item>
- <span>VIP课</span>
- <span>
- <count-to :endVal="1256"/>
- </span>
- </statistic-item>
- <statistic-item>
- <span>网管课</span>
- <span>
- <count-to :endVal="203"/>
- </span>
- </statistic-item>
- </statistic>
- <ve-line :data="chartData"/>
- </el-card>
- </template>
- <script>
- import countTo from 'vue-count-to'
- import veLine from 'v-charts/lib/line.common'
- export default {
- components: {
- 've-line': veLine,
- 'count-to': countTo
- },
- data () {
- let data = []
- return {
- chartData: {
- columns: ['日期', '访问用户', '下单用户', '下单率'],
- rows: [
- { '日期': '1/1', '访问用户': 1393, '下单用户': 1093, '下单率': 0.32 },
- { '日期': '1/2', '访问用户': 3530, '下单用户': 3230, '下单率': 0.26 },
- { '日期': '1/3', '访问用户': 2923, '下单用户': 2623, '下单率': 0.76 },
- { '日期': '1/4', '访问用户': 1723, '下单用户': 1423, '下单率': 0.49 },
- { '日期': '1/5', '访问用户': 3792, '下单用户': 3492, '下单率': 0.323 },
- { '日期': '1/6', '访问用户': 4593, '下单用户': 4293, '下单率': 0.78 }
- ]
- }
- }
- },
- }
- </script>
- <style lang="less" scoped>
- .statistic{
- /deep/ .statistic-content{
- cursor: pointer;
- }
- }
- </style>
|