|
@@ -1,152 +1,151 @@
|
|
|
<template>
|
|
|
- <div class="page">
|
|
|
- <div class="mycard dashbord1">
|
|
|
- <div class="dashbord1-left">
|
|
|
- <div class="dashbord1-left-title">早安,管理员,请开始一天的工作吧</div>
|
|
|
- <div class="dashbord1-left-dot">今日晴,0℃ - 10℃,天气寒冷,注意添加衣物。</div>
|
|
|
- <div class="dashbord1-left-rows">
|
|
|
- <el-row :gutter="20">
|
|
|
- <el-col :span="8" :xs="24" :sm="8">
|
|
|
- <div class="flex-center">
|
|
|
- <i class="el-icon-sort icon"></i>今日流量 (1231231)
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" :xs="24" :sm="8">
|
|
|
- <div class="flex-center">
|
|
|
- <i class="el-icon-s-custom icon"></i>总用户数 (24001)
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :span="8" :xs="24" :sm="8">
|
|
|
- <div class="flex-center">
|
|
|
- <i class="el-icon-s-comment icon"></i>好评率 (99%)
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <img src="@/assets/dashbord.png" class="dashbord1-right" alt />
|
|
|
+ <div class="page">
|
|
|
+ <div class="mycard dashbord1">
|
|
|
+ <div class="dashbord1-left">
|
|
|
+ <div class="dashbord1-left-title">早安,管理员,请开始一天的工作吧</div>
|
|
|
+ <div class="dashbord1-left-dot">今日晴,0℃ - 10℃,天气寒冷,注意添加衣物。</div>
|
|
|
+ <div class="dashbord1-left-rows">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="8" :xs="24" :sm="8">
|
|
|
+ <div class="flex-center">
|
|
|
+ <i class="el-icon-sort icon" />今日流量 (1231231)
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8" :xs="24" :sm="8">
|
|
|
+ <div class="flex-center">
|
|
|
+ <i class="el-icon-s-custom icon" />总用户数 (24001)
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8" :xs="24" :sm="8">
|
|
|
+ <div class="flex-center">
|
|
|
+ <i class="el-icon-s-comment icon" />好评率 (99%)
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
- <div class="mycard dashbord2">
|
|
|
- <div>
|
|
|
- <div class="dashbord2-item">
|
|
|
- 使用教学:
|
|
|
- <a
|
|
|
- style="color:#409EFF"
|
|
|
- target="view_window"
|
|
|
- href="https://www.bilibili.com/video/BV1Rg411u7xH/"
|
|
|
- >https://www.bilibili.com/video/BV1Rg411u7xH</a>
|
|
|
- </div>
|
|
|
- <div class="dashbord2-item">
|
|
|
- 插件仓库:
|
|
|
- <a
|
|
|
- style="color:#409EFF"
|
|
|
- target="view_window"
|
|
|
- href="https://github.com/flipped-aurora/gva-plugins"
|
|
|
- >https://github.com/flipped-aurora/gva-plugins</a>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ <img src="@/assets/dashbord.png" class="dashbord1-right" alt>
|
|
|
+ </div>
|
|
|
+ <div class="mycard dashbord2">
|
|
|
+ <div>
|
|
|
+ <div class="dashbord2-item">
|
|
|
+ 使用教学:
|
|
|
+ <a
|
|
|
+ style="color:#409EFF"
|
|
|
+ target="view_window"
|
|
|
+ href="https://www.bilibili.com/video/BV1Rg411u7xH/"
|
|
|
+ >https://www.bilibili.com/video/BV1Rg411u7xH</a>
|
|
|
</div>
|
|
|
+ <div class="dashbord2-item">
|
|
|
+ 插件仓库:
|
|
|
+ <a
|
|
|
+ style="color:#409EFF"
|
|
|
+ target="view_window"
|
|
|
+ href="https://github.com/flipped-aurora/gva-plugins"
|
|
|
+ >https://github.com/flipped-aurora/gva-plugins</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- <el-card class="mycard quick-entrance">
|
|
|
- <template #header>
|
|
|
- <div class="card-header">
|
|
|
- <span>快捷入口</span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- <el-row :gutter="20">
|
|
|
- <el-col
|
|
|
- v-for="(card, key) in toolCards"
|
|
|
- :key="key"
|
|
|
- :span="4"
|
|
|
- :xs="8"
|
|
|
- @click="toTarget(card.name)"
|
|
|
- class="quick-entrance-items"
|
|
|
- >
|
|
|
- <div class="quick-entrance-item">
|
|
|
- <div class="quick-entrance-item-icon" :style="{ backgroundColor: card.bg }">
|
|
|
- <i :class="card.icon" :style="{ color: card.color }" />
|
|
|
- </div>
|
|
|
- <p>{{ card.label }}</p>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-card>
|
|
|
- <!-- <div class="quick-entrance-title"></div> -->
|
|
|
-
|
|
|
-
|
|
|
- <div class="mycard">
|
|
|
- <el-row :gutter="0">
|
|
|
- <el-col :xs="24" :sm="16">
|
|
|
- <echarts-line></echarts-line>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="8">
|
|
|
- <dashbord-table></dashbord-table>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ <el-card class="mycard quick-entrance">
|
|
|
+ <template #header>
|
|
|
+ <div class="card-header">
|
|
|
+ <span>快捷入口</span>
|
|
|
</div>
|
|
|
+ </template>
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col
|
|
|
+ v-for="(card, key) in toolCards"
|
|
|
+ :key="key"
|
|
|
+ :span="4"
|
|
|
+ :xs="8"
|
|
|
+ class="quick-entrance-items"
|
|
|
+ @click="toTarget(card.name)"
|
|
|
+ >
|
|
|
+ <div class="quick-entrance-item">
|
|
|
+ <div class="quick-entrance-item-icon" :style="{ backgroundColor: card.bg }">
|
|
|
+ <i :class="card.icon" :style="{ color: card.color }" />
|
|
|
+ </div>
|
|
|
+ <p>{{ card.label }}</p>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-card>
|
|
|
+ <!-- <div class="quick-entrance-title"></div> -->
|
|
|
+
|
|
|
+ <div class="mycard">
|
|
|
+ <el-row :gutter="0">
|
|
|
+ <el-col :xs="24" :sm="16">
|
|
|
+ <echarts-line />
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="8">
|
|
|
+ <dashbord-table />
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import echartsLine from '@/components/dashbordCharts/echartsLine.vue'
|
|
|
import dashbordTable from '@/components/dashbordTable/dashbordTable.vue'
|
|
|
export default {
|
|
|
- components: {
|
|
|
- echartsLine,
|
|
|
- dashbordTable
|
|
|
- },
|
|
|
- data() {
|
|
|
- return {
|
|
|
- toolCards: [
|
|
|
- {
|
|
|
- label: '用户管理',
|
|
|
- icon: 'el-icon el-icon-monitor',
|
|
|
- name: 'user',
|
|
|
- color: '#ff9c6e',
|
|
|
- bg: 'rgba(255, 156, 110,.3)'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '角色管理',
|
|
|
- icon: 'el-icon el-icon-setting',
|
|
|
- name: 'authority',
|
|
|
- color: '#69c0ff',
|
|
|
- bg: 'rgba(105, 192, 255,.3)'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '菜单管理',
|
|
|
- icon: 'el-icon el-icon-menu',
|
|
|
- name: 'menu',
|
|
|
- color: '#b37feb',
|
|
|
- bg: 'rgba(179, 127, 235,.3)'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '代码生成器',
|
|
|
- icon: ' el-icon-cpu',
|
|
|
- name: 'autoCode',
|
|
|
- color: '#ffd666',
|
|
|
- bg: 'rgba(255, 214, 102,.3)'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '表单生成器',
|
|
|
- icon: 'el-icon-document-checked',
|
|
|
- name: 'formCreate',
|
|
|
- color: '#ff85c0',
|
|
|
- bg: 'rgba(255, 133, 192,.3)'
|
|
|
- },
|
|
|
- {
|
|
|
- label: '关于我们',
|
|
|
- icon: ' el-icon-user',
|
|
|
- name: 'about',
|
|
|
- color: '#5cdbd3',
|
|
|
- bg: 'rgba(92, 219, 211,.3)'
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- },
|
|
|
- methods: {
|
|
|
- toTarget(name) {
|
|
|
- this.$router.push({ name })
|
|
|
+ components: {
|
|
|
+ echartsLine,
|
|
|
+ dashbordTable
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ toolCards: [
|
|
|
+ {
|
|
|
+ label: '用户管理',
|
|
|
+ icon: 'el-icon el-icon-monitor',
|
|
|
+ name: 'user',
|
|
|
+ color: '#ff9c6e',
|
|
|
+ bg: 'rgba(255, 156, 110,.3)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '角色管理',
|
|
|
+ icon: 'el-icon el-icon-setting',
|
|
|
+ name: 'authority',
|
|
|
+ color: '#69c0ff',
|
|
|
+ bg: 'rgba(105, 192, 255,.3)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '菜单管理',
|
|
|
+ icon: 'el-icon el-icon-menu',
|
|
|
+ name: 'menu',
|
|
|
+ color: '#b37feb',
|
|
|
+ bg: 'rgba(179, 127, 235,.3)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '代码生成器',
|
|
|
+ icon: ' el-icon-cpu',
|
|
|
+ name: 'autoCode',
|
|
|
+ color: '#ffd666',
|
|
|
+ bg: 'rgba(255, 214, 102,.3)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '表单生成器',
|
|
|
+ icon: 'el-icon-document-checked',
|
|
|
+ name: 'formCreate',
|
|
|
+ color: '#ff85c0',
|
|
|
+ bg: 'rgba(255, 133, 192,.3)'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '关于我们',
|
|
|
+ icon: ' el-icon-user',
|
|
|
+ name: 'about',
|
|
|
+ color: '#5cdbd3',
|
|
|
+ bg: 'rgba(92, 219, 211,.3)'
|
|
|
}
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ toTarget(name) {
|
|
|
+ this.$router.push({ name })
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|
|
@@ -277,4 +276,4 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|