|
@@ -0,0 +1,64 @@
|
|
|
+<template>
|
|
|
+ <el-card header="人事数据">
|
|
|
+ <statistic class="statistic" :cols="0">
|
|
|
+ <statistic-item>
|
|
|
+ <span>老师总数</span>
|
|
|
+ <span>
|
|
|
+ <count-to :endVal="506"/>%
|
|
|
+ </span>
|
|
|
+ </statistic-item>
|
|
|
+ <statistic-item>
|
|
|
+ <span>全职人数</span>
|
|
|
+ <span>
|
|
|
+ <count-to :endVal="132"/>%
|
|
|
+ </span>
|
|
|
+ </statistic-item>
|
|
|
+ <statistic-item>
|
|
|
+ <span>兼职人数</span>
|
|
|
+ <span>
|
|
|
+ <count-to :endVal="558"/>%
|
|
|
+ </span>
|
|
|
+ </statistic-item>
|
|
|
+ <statistic-item>
|
|
|
+ <span>离职人数</span>
|
|
|
+ <span>
|
|
|
+ <count-to :endVal="238"/>%
|
|
|
+ </span>
|
|
|
+ </statistic-item>
|
|
|
+ </statistic>
|
|
|
+ <ve-histogram style="width: 100%;" :data="chartData"></ve-histogram>
|
|
|
+ </el-card>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import countTo from 'vue-count-to'
|
|
|
+import veHistogram from 'v-charts/lib/histogram.common'
|
|
|
+export default {
|
|
|
+ components: {
|
|
|
+ 've-histogram': veHistogram,
|
|
|
+ '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>
|