|
@@ -7,17 +7,17 @@
|
|
<div class="dashbord1-left-rows">
|
|
<div class="dashbord1-left-rows">
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="8" :xs="24" :sm="8">
|
|
<el-col :span="8" :xs="24" :sm="8">
|
|
- <div class>
|
|
|
|
|
|
+ <div class="flex-center">
|
|
<i class="el-icon-sort icon"></i>今日流量 (1231231)
|
|
<i class="el-icon-sort icon"></i>今日流量 (1231231)
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" :xs="24" :sm="8">
|
|
<el-col :span="8" :xs="24" :sm="8">
|
|
- <div class>
|
|
|
|
|
|
+ <div class="flex-center">
|
|
<i class="el-icon-s-custom icon"></i>总用户数 (24001)
|
|
<i class="el-icon-s-custom icon"></i>总用户数 (24001)
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="8" :xs="24" :sm="8">
|
|
<el-col :span="8" :xs="24" :sm="8">
|
|
- <div class>
|
|
|
|
|
|
+ <div class="flex-center">
|
|
<i class="el-icon-s-comment icon"></i>好评率 (99%)
|
|
<i class="el-icon-s-comment icon"></i>好评率 (99%)
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -47,8 +47,13 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="mycard quick-entrance">
|
|
|
|
- <el-row :gutter="20">
|
|
|
|
|
|
+ <el-card class="mycard quick-entrance">
|
|
|
|
+ <template #header>
|
|
|
|
+ <div class="card-header">
|
|
|
|
+ <span>快捷入口</span>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ <el-row :gutter="20">
|
|
<el-col
|
|
<el-col
|
|
v-for="(card, key) in toolCards"
|
|
v-for="(card, key) in toolCards"
|
|
:key="key"
|
|
:key="key"
|
|
@@ -58,21 +63,37 @@
|
|
class="quick-entrance-items"
|
|
class="quick-entrance-items"
|
|
>
|
|
>
|
|
<div class="quick-entrance-item">
|
|
<div class="quick-entrance-item">
|
|
- <div
|
|
|
|
- class="quick-entrance-item-icon"
|
|
|
|
- :style="{ backgroundColor: card.bg }"
|
|
|
|
- >
|
|
|
|
|
|
+ <div class="quick-entrance-item-icon" :style="{ backgroundColor: card.bg }">
|
|
<i :class="card.icon" :style="{ color: card.color }" />
|
|
<i :class="card.icon" :style="{ color: card.color }" />
|
|
</div>
|
|
</div>
|
|
<p>{{ card.label }}</p>
|
|
<p>{{ card.label }}</p>
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
|
|
+import echartsLine from '@/components/dashbordCharts/echartsLine.vue'
|
|
|
|
+import dashbordTable from '@/components/dashbordTable/dashbordTable.vue'
|
|
export default {
|
|
export default {
|
|
|
|
+ components: {
|
|
|
|
+ echartsLine,
|
|
|
|
+ dashbordTable
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
toolCards: [
|
|
toolCards: [
|
|
@@ -81,53 +102,62 @@ export default {
|
|
icon: 'el-icon el-icon-monitor',
|
|
icon: 'el-icon el-icon-monitor',
|
|
name: 'user',
|
|
name: 'user',
|
|
color: '#ff9c6e',
|
|
color: '#ff9c6e',
|
|
- bg :'rgba(255, 156, 110,.3)'
|
|
|
|
|
|
+ bg: 'rgba(255, 156, 110,.3)'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '角色管理',
|
|
label: '角色管理',
|
|
icon: 'el-icon el-icon-setting',
|
|
icon: 'el-icon el-icon-setting',
|
|
name: 'authority',
|
|
name: 'authority',
|
|
color: '#69c0ff',
|
|
color: '#69c0ff',
|
|
- bg :'rgba(105, 192, 255,.3)'
|
|
|
|
|
|
+ bg: 'rgba(105, 192, 255,.3)'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '菜单管理',
|
|
label: '菜单管理',
|
|
icon: 'el-icon el-icon-menu',
|
|
icon: 'el-icon el-icon-menu',
|
|
name: 'menu',
|
|
name: 'menu',
|
|
color: '#b37feb',
|
|
color: '#b37feb',
|
|
- bg :'rgba(179, 127, 235,.3)'
|
|
|
|
|
|
+ bg: 'rgba(179, 127, 235,.3)'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '代码生成器',
|
|
label: '代码生成器',
|
|
icon: ' el-icon-cpu',
|
|
icon: ' el-icon-cpu',
|
|
name: 'autoCode',
|
|
name: 'autoCode',
|
|
color: '#ffd666',
|
|
color: '#ffd666',
|
|
- bg :'rgba(255, 214, 102,.3)'
|
|
|
|
|
|
+ bg: 'rgba(255, 214, 102,.3)'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '表单生成器',
|
|
label: '表单生成器',
|
|
icon: 'el-icon-document-checked',
|
|
icon: 'el-icon-document-checked',
|
|
name: 'formCreate',
|
|
name: 'formCreate',
|
|
color: '#ff85c0',
|
|
color: '#ff85c0',
|
|
- bg :'rgba(255, 133, 192,.3)'
|
|
|
|
|
|
+ bg: 'rgba(255, 133, 192,.3)'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: '关于我们',
|
|
label: '关于我们',
|
|
icon: ' el-icon-user',
|
|
icon: ' el-icon-user',
|
|
name: 'about',
|
|
name: 'about',
|
|
color: '#5cdbd3',
|
|
color: '#5cdbd3',
|
|
- bg :'rgba(92, 219, 211,.3)'
|
|
|
|
|
|
+ bg: 'rgba(92, 219, 211,.3)'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ toTarget(name) {
|
|
|
|
+ this.$router.push({ name })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+@mixin flex-center {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+}
|
|
.page {
|
|
.page {
|
|
- background: #f8f8f8;
|
|
|
|
- padding: 10px;
|
|
|
|
|
|
+ background: #f0f2f5;
|
|
|
|
+ padding: 0;
|
|
|
|
|
|
.mycard {
|
|
.mycard {
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
@@ -135,16 +165,17 @@ export default {
|
|
height: auto;
|
|
height: auto;
|
|
padding: 10px 30px;
|
|
padding: 10px 30px;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
- margin-bottom: 20px;
|
|
|
|
|
|
+ margin-bottom: 15px;
|
|
|
|
+ box-shadow: 0 0 7px 1px rgba(0, 0, 0, 0.03);
|
|
}
|
|
}
|
|
.dashbord1 {
|
|
.dashbord1 {
|
|
- height: 150px;
|
|
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
|
|
+ height: 120px;
|
|
|
|
+ @include flex-center;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
color: #777;
|
|
color: #777;
|
|
&-left {
|
|
&-left {
|
|
&-title {
|
|
&-title {
|
|
|
|
+ margin-top: 15px;
|
|
font-size: 22px;
|
|
font-size: 22px;
|
|
color: #000;
|
|
color: #000;
|
|
}
|
|
}
|
|
@@ -153,7 +184,7 @@ export default {
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
&-rows {
|
|
&-rows {
|
|
- margin-top: 15px;
|
|
|
|
|
|
+ // margin-top: 15px;
|
|
width: 600px;
|
|
width: 600px;
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
@@ -165,46 +196,56 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.dashbord2 {
|
|
.dashbord2 {
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
|
|
+ @include flex-center;
|
|
justify-content: flex-start;
|
|
justify-content: flex-start;
|
|
height: 60px;
|
|
height: 60px;
|
|
&-item {
|
|
&-item {
|
|
line-height: 25px;
|
|
line-height: 25px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ .quick-entrance-title {
|
|
|
|
+ height: 30px;
|
|
|
|
+ font-size: 22px;
|
|
|
|
+ color: #333;
|
|
|
|
+ width: 100%;
|
|
|
|
+ border-bottom: 1px solid #eee;
|
|
|
|
+ }
|
|
.quick-entrance-items {
|
|
.quick-entrance-items {
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
|
|
+ @include flex-center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
text-align: center;
|
|
color: #333;
|
|
color: #333;
|
|
.quick-entrance-item {
|
|
.quick-entrance-item {
|
|
height: auto;
|
|
height: auto;
|
|
|
|
+ text-align: center;
|
|
|
|
+ // align-items: center;
|
|
&-icon {
|
|
&-icon {
|
|
width: 50px;
|
|
width: 50px;
|
|
height: 50px !important;
|
|
height: 50px !important;
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
- display: flex;
|
|
|
|
- align-items: center;
|
|
|
|
|
|
+ @include flex-center;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
- i{
|
|
|
|
|
|
+ margin: 0 auto;
|
|
|
|
+ i {
|
|
font-size: 24px;
|
|
font-size: 24px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- p{
|
|
|
|
|
|
+ p {
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.icon {
|
|
.icon {
|
|
- font-size: 22px;
|
|
|
|
|
|
+ font-size: 20px;
|
|
color: rgb(85, 160, 248);
|
|
color: rgb(85, 160, 248);
|
|
width: 30px;
|
|
width: 30px;
|
|
height: 30px;
|
|
height: 30px;
|
|
margin-right: 10px;
|
|
margin-right: 10px;
|
|
|
|
+ @include flex-center;
|
|
|
|
+}
|
|
|
|
+.flex-center {
|
|
|
|
+ @include flex-center;
|
|
}
|
|
}
|
|
|
|
|
|
//小屏幕不显示右侧,将登陆框居中
|
|
//小屏幕不显示右侧,将登陆框居中
|