|
@@ -1,32 +1,234 @@
|
|
|
<template>
|
|
|
- <div class="dashboard-container">
|
|
|
- <div class="dashboard-text">name:{{name}}</div>
|
|
|
- <div class="dashboard-text">roles:<span v-for='role in roles' :key='role'>{{role}}</span></div>
|
|
|
+ <div class="app-container">
|
|
|
+ <div class="total-layout">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="total-frame">
|
|
|
+ <svg-icon icon-class="order" class="total-icon">
|
|
|
+ </svg-icon>
|
|
|
+ <div class="total-title">今日订单总数</div>
|
|
|
+ <div class="total-value">200</div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="total-frame">
|
|
|
+ <svg-icon icon-class="total-today" class="total-icon">
|
|
|
+ </svg-icon>
|
|
|
+ <div class="total-title">今日销售总额</div>
|
|
|
+ <div class="total-value">¥5000.00</div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="total-frame">
|
|
|
+ <svg-icon icon-class="total-yesterday" class="total-icon">
|
|
|
+ </svg-icon>
|
|
|
+ <div class="total-title">昨日销售总额</div>
|
|
|
+ <div class="total-value">¥5000.00</div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="6">
|
|
|
+ <div class="total-frame">
|
|
|
+ <svg-icon icon-class="total-week" class="total-icon">
|
|
|
+ </svg-icon>
|
|
|
+ <div class="total-title">近7天销售总额</div>
|
|
|
+ <div class="total-value">¥50000.00</div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <div class="un-handle-layout">
|
|
|
+ <div class="layout-title">待处理事务</div>
|
|
|
+ <div class="un-handle-content">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="un-handle-item">
|
|
|
+ <span class="font-medium">待付款订单</span>
|
|
|
+ <span style="float: right" class="color-danger">(10)</span>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="un-handle-item">
|
|
|
+ <span class="font-medium">已完成订单</span>
|
|
|
+ <span style="float: right" class="color-danger">(10)</span>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="un-handle-item">
|
|
|
+ <span class="font-medium">待确认收货订单</span>
|
|
|
+ <span style="float: right" class="color-danger">(10)</span>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="un-handle-item">
|
|
|
+ <span class="font-medium">待发货订单</span>
|
|
|
+ <span style="float: right" class="color-danger">(10)</span>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="un-handle-item">
|
|
|
+ <span class="font-medium">新缺货登记</span>
|
|
|
+ <span style="float: right" class="color-danger">(10)</span>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="un-handle-item">
|
|
|
+ <span class="font-medium">待处理退款申请</span>
|
|
|
+ <span style="float: right" class="color-danger">(10)</span>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="un-handle-item">
|
|
|
+ <span class="font-medium">已发货订单</span>
|
|
|
+ <span style="float: right" class="color-danger">(10)</span>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="un-handle-item">
|
|
|
+ <span class="font-medium">待处理退货订单</span>
|
|
|
+ <span style="float: right" class="color-danger">(10)</span>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="un-handle-item">
|
|
|
+ <span class="font-medium">广告位即将到期</span>
|
|
|
+ <span style="float: right" class="color-danger">(10)</span>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="overview-layout">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12">
|
|
|
+ <div class="out-border">
|
|
|
+ <div class="layout-title">商品总览</div>
|
|
|
+ <div style="padding: 40px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="6" class="color-danger overview-item-value">100</el-col>
|
|
|
+ <el-col :span="6" class="color-danger overview-item-value">400</el-col>
|
|
|
+ <el-col :span="6" class="color-danger overview-item-value">50</el-col>
|
|
|
+ <el-col :span="6" class="color-danger overview-item-value">500</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="font-medium">
|
|
|
+ <el-col :span="6" class="overview-item-title">已下架</el-col>
|
|
|
+ <el-col :span="6" class="overview-item-title">已上架</el-col>
|
|
|
+ <el-col :span="6" class="overview-item-title">库存紧张</el-col>
|
|
|
+ <el-col :span="6" class="overview-item-title">全部商品</el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <div class="out-border">
|
|
|
+ <div class="layout-title">用户总览</div>
|
|
|
+ <div style="padding: 40px">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="6" class="color-danger overview-item-value">100</el-col>
|
|
|
+ <el-col :span="6" class="color-danger overview-item-value">200</el-col>
|
|
|
+ <el-col :span="6" class="color-danger overview-item-value">1000</el-col>
|
|
|
+ <el-col :span="6" class="color-danger overview-item-value">5000</el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="font-medium">
|
|
|
+ <el-col :span="6" class="overview-item-title">今日新增</el-col>
|
|
|
+ <el-col :span="6" class="overview-item-title">昨日新增</el-col>
|
|
|
+ <el-col :span="6" class="overview-item-title">本月新增</el-col>
|
|
|
+ <el-col :span="6" class="overview-item-title">会员总数</el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { mapGetters } from 'vuex'
|
|
|
-
|
|
|
-export default {
|
|
|
- name: 'home',
|
|
|
- computed: {
|
|
|
- ...mapGetters([
|
|
|
- 'name',
|
|
|
- 'roles'
|
|
|
- ])
|
|
|
+ export default {
|
|
|
+ name: 'home',
|
|
|
+ data() {
|
|
|
+ return {msg: '首页'}
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
</script>
|
|
|
|
|
|
-<style rel="stylesheet/scss" lang="scss" scoped>
|
|
|
-.dashboard {
|
|
|
- &-container {
|
|
|
- margin: 30px;
|
|
|
+<style scoped>
|
|
|
+ .app-container {
|
|
|
+ margin-top: 40px;
|
|
|
+ margin-left: 120px;
|
|
|
+ margin-right: 120px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .total-layout {
|
|
|
+ }
|
|
|
+
|
|
|
+ .total-frame {
|
|
|
+ border: 1px solid #DCDFE6;
|
|
|
+ padding: 20px;
|
|
|
+ height: 100px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .total-icon {
|
|
|
+ color: #409EFF;
|
|
|
+ width: 60px;
|
|
|
+ height: 60px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .total-title {
|
|
|
+ position: relative;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #909399;
|
|
|
+ left: 70px;
|
|
|
+ top: -50px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .total-value {
|
|
|
+ position: relative;
|
|
|
+ font-size: 18px;
|
|
|
+ color: #606266;
|
|
|
+ left: 70px;
|
|
|
+ top: -40px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .un-handle-layout {
|
|
|
+ margin-top: 20px;
|
|
|
+ border: 1px solid #DCDFE6;
|
|
|
}
|
|
|
- &-text {
|
|
|
- font-size: 30px;
|
|
|
- line-height: 46px;
|
|
|
+
|
|
|
+ .layout-title {
|
|
|
+ color: #606266;
|
|
|
+ padding: 15px 20px;
|
|
|
+ background: #F2F6FC;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+
|
|
|
+ .un-handle-content {
|
|
|
+ padding: 20px 40px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .un-handle-item {
|
|
|
+ border-bottom: 1px solid #EBEEF5;
|
|
|
+ padding: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .overview-layout {
|
|
|
+ margin-top: 20px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .overview-item-value {
|
|
|
+ font-size: 24px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .overview-item-title {
|
|
|
+ margin-top: 10px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .out-border {
|
|
|
+ border: 1px solid #DCDFE6;
|
|
|
}
|
|
|
-}
|
|
|
</style>
|