|
@@ -1,42 +1,50 @@
|
|
|
<template>
|
|
|
<div class="dashboard-editor-container">
|
|
|
- <github-corner class="github-corner" />
|
|
|
-
|
|
|
- <panel-group @handleSetLineChartData="handleSetLineChartData" />
|
|
|
-
|
|
|
- <el-row style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">
|
|
|
- <line-chart :chart-data="lineChartData" />
|
|
|
- </el-row>
|
|
|
-
|
|
|
+ <!--每一列间隔32项目-->
|
|
|
<el-row :gutter="32">
|
|
|
+ <!--屏幕尺寸不够的时候自己沾满一行-->
|
|
|
<el-col :xs="24" :sm="24" :lg="8">
|
|
|
- <div class="chart-wrapper">
|
|
|
- <raddar-chart />
|
|
|
+ <div class="topWindowBox">
|
|
|
+ <div class="twbTitle">
|
|
|
+ <div class="twbIconbgRed"></div>网站数量
|
|
|
+ </div>
|
|
|
+ <div class="twbNumber">1,000</div>
|
|
|
+ <div class="twbStatus"><img src="@/assets/index/arrow-up.png"/> +12% <span>较上周</span></div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="24" :lg="8">
|
|
|
- <div class="chart-wrapper">
|
|
|
- <pie-chart />
|
|
|
+ <div class="topWindowBox">
|
|
|
+ <div class="twbTitle">
|
|
|
+ <div class="twbIconbgBlue"></div>内容发布数量
|
|
|
+ </div>
|
|
|
+ <div class="twbNumber">68,888</div>
|
|
|
+ <div class="twbStatus"><img src="@/assets/index/arrow-up.png"/> +18% <span>较昨天</span></div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="24" :lg="8">
|
|
|
- <div class="chart-wrapper">
|
|
|
- <bar-chart />
|
|
|
+ <div class="topWindowBox">
|
|
|
+ <div class="twbTitle">
|
|
|
+ <div class="twbIconbgPurple"></div>公共栏目数量
|
|
|
+ </div>
|
|
|
+ <div class="twbNumber">24</div>
|
|
|
+ <div class="twbStatusDown"><img src="@/assets/index/arrow-down.png"/> -2% <span>较上个月</span></div>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-row :gutter="8">
|
|
|
- <el-col :xs="{span: 24}" :sm="{span: 24}" :md="{span: 24}" :lg="{span: 12}" :xl="{span: 12}" style="padding-right:8px;margin-bottom:30px;">
|
|
|
- <transaction-table />
|
|
|
- </el-col>
|
|
|
- <el-col :xs="{span: 24}" :sm="{span: 12}" :md="{span: 12}" :lg="{span: 6}" :xl="{span: 6}" style="margin-bottom:30px;">
|
|
|
- <todo-list />
|
|
|
+ <el-row :gutter="32">
|
|
|
+ <el-col :xs="24" :sm="24" :lg="16">
|
|
|
+ <el-row style="background:#fff;padding:16px 16px 0;margin-bottom:32px;">
|
|
|
+ <line-chart :chart-data="lineChartData" />
|
|
|
+ </el-row>
|
|
|
</el-col>
|
|
|
- <el-col :xs="{span: 24}" :sm="{span: 12}" :md="{span: 12}" :lg="{span: 6}" :xl="{span: 6}" style="margin-bottom:30px;">
|
|
|
- <box-card />
|
|
|
+ <el-col :xs="24" :sm="24" :lg="8">
|
|
|
+ <div class="chart-wrapper">
|
|
|
+ <pie-chart />
|
|
|
+ </div>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -96,29 +104,84 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
-.dashboard-editor-container {
|
|
|
- padding: 32px;
|
|
|
- background-color: rgb(240, 242, 245);
|
|
|
- position: relative;
|
|
|
-
|
|
|
- .github-corner {
|
|
|
- position: absolute;
|
|
|
- top: 0px;
|
|
|
- border: 0;
|
|
|
- right: 0;
|
|
|
+<style lang="less" scoped>
|
|
|
+ .topWindowBox{
|
|
|
+ background:#FFFFFF;
|
|
|
+ border-Radius:20px;
|
|
|
+ height:200px;
|
|
|
+ width:100%;
|
|
|
+ margin-bottom:30px;
|
|
|
+ padding:25px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ .twbTitle {
|
|
|
+ display:flex;
|
|
|
+ align-items: center;
|
|
|
+ font-size:16px;
|
|
|
+ color:#212227;
|
|
|
+ .twbIconbgRed,.twbIconbgBlue,.twbIconbgPurple{
|
|
|
+ width: 40px;
|
|
|
+ height: 40px;
|
|
|
+ border-radius: 50%;
|
|
|
+ margin-right: 15px;
|
|
|
+ }
|
|
|
+ .twbIconbgRed {
|
|
|
+ background: #EA79BA;
|
|
|
+ }
|
|
|
+ .twbIconbgBlue {
|
|
|
+ background: #6DACE7;
|
|
|
+ }
|
|
|
+ .twbIconbgPurple{
|
|
|
+ background: #AA7AEB;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .twbNumber {
|
|
|
+ font-size: 30px;
|
|
|
+ margin-top:32px;
|
|
|
+ font-weight: 1000;
|
|
|
+ }
|
|
|
+ .twbStatus,.twbStatusDown {
|
|
|
+ font-size:14px;
|
|
|
+ margin-top: 35px;
|
|
|
+ display:flex;
|
|
|
+ img {
|
|
|
+ display: block;
|
|
|
+ margin-right: 4px;
|
|
|
+ }
|
|
|
+ span {
|
|
|
+ color:#707B81;
|
|
|
+ margin-left: 8px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .twbStatus {
|
|
|
+ color:#23C581;
|
|
|
+ }
|
|
|
+ .twbStatusDown {
|
|
|
+ color:#E74545
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- .chart-wrapper {
|
|
|
- background: #fff;
|
|
|
- padding: 16px 16px 0;
|
|
|
- margin-bottom: 32px;
|
|
|
+ .dashboard-editor-container {
|
|
|
+ padding: 32px;
|
|
|
+ background-color: rgb(240, 242, 245);
|
|
|
+ position: relative;
|
|
|
+
|
|
|
+ .github-corner {
|
|
|
+ position: absolute;
|
|
|
+ top: 0px;
|
|
|
+ border: 0;
|
|
|
+ right: 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .chart-wrapper {
|
|
|
+ background: #fff;
|
|
|
+ padding: 16px 16px 0;
|
|
|
+ margin-bottom: 32px;
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
|
|
|
-@media (max-width:1024px) {
|
|
|
- .chart-wrapper {
|
|
|
- padding: 8px;
|
|
|
+ @media (max-width:1024px) {
|
|
|
+ .chart-wrapper {
|
|
|
+ padding: 8px;
|
|
|
+ }
|
|
|
}
|
|
|
-}
|
|
|
</style>
|