index.vue 6.5 KB
Newer Older
有来技术 已提交
1
<template>
2
  <div class="dashboard-container">
郝先瑞 已提交
3
    <github-corner class="github-corner" />
4

郝先瑞 已提交
5
    <!-- 数据 -->
郝先瑞 已提交
6 7
    <el-row :gutter="40" class="card-panel__col">
      <!--      <el-col :xs="24" :lg="6" class="card-panel__col">
8 9
        <div class="card-panel">
          <div class="card-panel-icon-wrapper" style="margin-top: -10px">
10
            <el-image style="width:200px; height: 100px"
11
                      src="https://gitee.com/haoxr/image/raw/master/20210606213932.png"/>
12 13 14 15 16 17 18 19 20 21 22
          </div>
          <div class="card-panel-description">
            <div class="card-panel-text">
              {{ nickname }}
            </div>
            <div class="card-panel-text">
              <el-tag size="mini" type="danger">莫得感情</el-tag>
              <el-tag size="mini" type="success" style="margin-left: 5px">打工人</el-tag>
            </div>
          </div>
        </div>
23
      </el-col>-->
24

郝先瑞 已提交
25
      <el-col :xs="24" :sm="12" :lg="6" class="card-panel__col">
26 27
        <div class="card-panel">
          <div class="card-panel-icon-wrapper icon-people">
郝先瑞 已提交
28
            <svg-icon icon-class="uv" class-name="card-panel-icon" />
29 30
          </div>
          <div class="card-panel-description">
郝先瑞 已提交
31
            <div class="card-panel-text">访问数</div>
32 33 34 35 36
            <div class="card-panel-num">1000</div>
          </div>
        </div>
      </el-col>

郝先瑞 已提交
37
      <el-col :xs="24" :sm="12" :lg="6" class="card-panel__col">
38 39 40 41 42
        <div class="card-panel">
          <div class="card-panel-icon-wrapper icon-message">
            <svg-icon icon-class="message" class-name="card-panel-icon" />
          </div>
          <div class="card-panel-description">
郝先瑞 已提交
43
            <div class="card-panel-text">消息数</div>
44
            <div class="card-panel-num">1000</div>
45 46 47
          </div>
        </div>
      </el-col>
48

郝先瑞 已提交
49
      <el-col :xs="24" :sm="12" :lg="6" class="card-panel__col">
50 51
        <div class="card-panel">
          <div class="card-panel-icon-wrapper icon-money">
郝先瑞 已提交
52
            <svg-icon icon-class="money" class-name="card-panel-icon" />
53 54
          </div>
          <div class="card-panel-description">
郝先瑞 已提交
55
            <div class="card-panel-text">收入金额</div>
56
            <div class="card-panel-num">1000</div>
57 58 59
          </div>
        </div>
      </el-col>
郝先瑞 已提交
60
      <el-col :xs="24" :sm="12" :lg="6" class="card-panel__col">
61 62
        <div class="card-panel">
          <div class="card-panel-icon-wrapper icon-shopping">
郝先瑞 已提交
63
            <svg-icon icon-class="shopping" class-name="card-panel-icon" />
64 65
          </div>
          <div class="card-panel-description">
郝先瑞 已提交
66
            <div class="card-panel-text">订单数</div>
67
            <div class="card-panel-num">1000</div>
68 69 70 71 72
          </div>
        </div>
      </el-col>
    </el-row>

73 74 75
    <!-- 项目 + 团队成员介绍 -->
    <el-row :gutter="40">
      <!-- 项目介绍 -->
郝先瑞 已提交
76
      <el-col :md="12" :lg="12" class="card-panel__col">
郝先瑞 已提交
77
        <Project />
78 79 80
      </el-col>

      <!-- 团队介绍 -->
郝先瑞 已提交
81
      <el-col :md="12" :lg="12" class="card-panel__col">
郝先瑞 已提交
82
        <Team />
83 84 85 86
      </el-col>
    </el-row>

    <!-- Echarts 图表 -->
87
    <el-row :gutter="40" style="margin-top: 20px">
郝先瑞 已提交
88
      <el-col :sm="24" :lg="8" class="card-panel__col">
郝先瑞 已提交
89
        <BarChart id="barChart" height="400px" width="100%" class="chart-container" />
90
      </el-col>
91

郝先瑞 已提交
92
      <el-col :xs="24" :sm="12" :lg="8" class="card-panel__col">
郝先瑞 已提交
93
        <PieChart id="pieChart" height="400px" width="100%" class="chart-container" />
94 95
        <!--订单漏斗图-->
        <!--<FunnelChart id="funnelChart" height="400px" width="100%" class="chart-container"/>-->
96
      </el-col>
97

郝先瑞 已提交
98
      <el-col :xs="24" :sm="12" :lg="8" class="card-panel__col">
郝先瑞 已提交
99
        <RadarChart id="radarChart" height="400px" width="100%" class="chart-container" />
100 101 102
      </el-col>
    </el-row>
  </div>
有来技术 已提交
103 104
</template>

105
<script setup lang="ts">
106
// 组件引用
郝先瑞 已提交
107 108
import GithubCorner from "@/components/GithubCorner/index.vue";
import SvgIcon from "@/components/SvgIcon/index.vue";
109 110 111 112 113 114
import BarChart from "./components/Chart/BarChart.vue";
import PieChart from "./components/Chart/PieChart.vue";
import RadarChart from "./components/Chart/RadarChart.vue";

import Project from "./components/Project/index.vue";
import Team from "./components/Team/index.vue";
有来技术 已提交
115 116 117
</script>


118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
<style lang="scss" scoped>
.dashboard-container {
  padding: 24px;
  background-color: rgb(240, 242, 245);
  position: relative;

  .github-corner {
    position: absolute;
    top: 0px;
    border: 0;
    right: 0;
    z-index: 99;
  }

  .box-center {
    margin: 0 auto;
    display: table;
  }

  .user-profile {
郝先瑞 已提交
138
    .user-name {}
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162

    .box-center {
      padding-top: 10px;
    }

    .user-role {
      padding-top: 10px;
      font-weight: 400;
      font-size: 14px;
    }

    .box-social {
      padding-top: 30px;

      .el-table {
        border-top: 1px solid #dfe6ec;
      }
    }

    .user-follow {
      padding-top: 20px;
    }
  }

郝先瑞 已提交
163
  .card-panel__col {
164 165 166 167 168 169 170 171 172 173 174
    margin-bottom: 12px;
  }

  .card-panel {
    height: 108px;
    cursor: pointer;
    font-size: 12px;
    position: relative;
    overflow: hidden;
    color: #666;
    background: #fff;
郝先瑞 已提交
175 176
    box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.05);
177 178 179 180 181 182 183 184 185 186 187 188 189 190

    &:hover {
      .card-panel-icon-wrapper {
        color: #fff;
      }

      .icon-user {
        background: #e77541;
      }

      .icon-people {
        background: #40c9c6;
      }

191 192 193
      .icon-message {
        background: #36a3f7;
      }
194 195 196 197 198 199

      .icon-money {
        background: #f4516c;
      }

      .icon-shopping {
郝先瑞 已提交
200
        background: #34bfa3;
201 202 203 204 205
      }
    }

    .icon-people {
      color: #40c9c6;
206 207

      .svg-icon {
208 209
        width: 4em !important;
        height: 4em !important;
210 211 212 213 214
      }
    }

    .icon-message {
      color: #36a3f7;
215 216

      .svg-icon {
217 218
        width: 4em !important;
        height: 4em !important;
219 220 221 222 223
      }
    }

    .icon-money {
      color: #f4516c;
224 225

      .svg-icon {
226 227
        width: 4em !important;
        height: 4em !important;
228 229 230 231 232
      }
    }

    .icon-shopping {
      color: #34bfa3;
233 234

      .svg-icon {
235 236
        width: 4em !important;
        height: 4em !important;
237 238 239 240 241
      }
    }

    .card-panel-icon-wrapper {
      float: left;
242
      margin: 14px 0 0 14px;
243 244 245 246 247 248 249 250
      padding: 16px;
      transition: all 0.38s ease-out;
      border-radius: 6px;
    }

    .card-panel-description {
      float: right;
      font-weight: bold;
251
      margin: 26px 20px 0;
252 253 254 255 256 257 258 259 260 261 262 263 264 265

      .card-panel-text {
        line-height: 18px;
        color: rgba(0, 0, 0, 0.45);
        font-size: 16px;
        margin-bottom: 12px;
      }

      .card-panel-num {
        font-size: 20px;
      }
    }
  }

266
  .chart-container {
267 268
    background: #ffffff;
  }
269 270
}
</style>