zhangxiaoxu123
2023-05-05 f51896f6358a60ab83456358446ac48085b48298
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<template>
  <div class="dashboard-page">
    <Row :gutter="20">
      <Col :xs="24" :sm="24" :md="12" :lg="6">
        <cardBar
          id="income"
          title="总收入"
          :value="25134"
          prefix="¥"
          compare="1.08%"
          class="margin"
        />
      </Col>
      <Col :xs="24" :sm="24" :md="12" :lg="6">
        <cardArea
          id="out"
          title="总支出"
          :value="3456"
          status="down"
          compare="0.83%"
          class="margin"
        />
      </Col>
      <Col :xs="24" :sm="24" :md="12" :lg="6">
        <cardRadial
          id="order"
          title="订单总数"
          :value="35268"
          status="down"
          compare="6.13%"
          class="margin"
        />
      </Col>
      <Col :xs="24" :sm="24" :md="12" :lg="6">
        <cardLine
          id="users"
          title="用户增长"
          :value="13.68"
          :decimalPlaces="2"
          prefix="+"
          compare="10.68%"
          suffix="%"
          class="margin"
        />
      </Col>
    </Row>
    <Row :gutter="20">
      <Col :xs="24" :sm="24" :lg="24" :xl="16">
        <LineChart class="margin" />
      </Col>
      <Col :xs="24" :sm="24" :lg="24" :xl="8">
        <cardButton class="margin" />
        <cardProgress class="margin" />
      </Col>
    </Row>
    <Row>
      <Col :lg="24" :xl="24">
        <orderTable class="margin" />
      </Col>
    </Row>
  </div>
</template>
 
<script>
import cardBar from "./components/cardBar.vue";
import cardArea from "./components/cardArea.vue";
import cardRadial from "./components/cardRadial.vue";
import cardLine from "./components/cardLine.vue";
import LineChart from "./components/line.vue";
import cardButton from "./components/cardButton.vue";
import cardProgress from "./components/cardProgress.vue";
import orderTable from "./components/orderTable.vue";
export default {
  name: "dashboard-3",
  components: {
    cardBar,
    cardArea,
    cardRadial,
    cardLine,
    cardButton,
    cardProgress,
    LineChart,
    orderTable,
  },
  data() {
    return {
    };
  },
  methods: {
    init() {},
  },
  mounted() {
    this.init();
  },
};
</script>
<style lang="less" scoped>
.dashboard-page {
  .margin {
    margin-bottom: 20px;
  }
}
</style>