From a6d8dbd8eb8913679be2840906ee72920222796c Mon Sep 17 00:00:00 2001 From: MTrunning <1262327911@qq.com> Date: Wed, 18 Mar 2020 21:27:37 +0800 Subject: [PATCH] =?UTF-8?q?1.0=E7=89=88=E6=9C=AC=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/index.scss | 171 ++++---- .../echart/bottom/bottomLeftChart.vue | 18 +- .../echart/bottom/bottomRightChart.vue | 409 ++++++++++++++++++ src/views/bottomLeft.vue | 8 +- src/views/bottomRight.vue | 62 +++ src/views/index.vue | 16 +- 6 files changed, 580 insertions(+), 104 deletions(-) create mode 100644 src/components/echart/bottom/bottomRightChart.vue create mode 100644 src/views/bottomRight.vue diff --git a/src/assets/scss/index.scss b/src/assets/scss/index.scss index 4034006..727d612 100644 --- a/src/assets/scss/index.scss +++ b/src/assets/scss/index.scss @@ -12,99 +12,100 @@ background-image: url("../assets/pageBg.png"); } - .title { - position: relative; - width: 500px; - text-align: center; - background-size: cover; - background-repeat: no-repeat; + .host-body { + .title { + position: relative; + width: 500px; + text-align: center; + background-size: cover; + background-repeat: no-repeat; - .title-text { - font-size: 2rem; - position: absolute; - bottom: 0px; - left: 50%; - transform: translate(-50%); + .title-text { + font-size: 2rem; + position: absolute; + bottom: 0px; + left: 50%; + transform: translate(-50%); + } + + .title-bototm { + position: absolute; + bottom: -30px; + left: 50%; + transform: translate(-50%); + } } - .title-bototm { - position: absolute; - bottom: -30px; - left: 50%; - transform: translate(-50%); - } - } - - // 平行四边形 - .react-left { - cursor: pointer; - font-size: 1.3rem; - width: 300px; - height: 50px; - line-height: 50px; - text-align: center; - transform: skewX(-45deg); - - .react-after { - position: absolute; - right: -25px; - top: 0px; + // 平行四边形 + .react-left { + cursor: pointer; + font-size: 1.3rem; + width: 300px; height: 50px; - width: 50px; - background-color: #0f1325; - transform: skewX(45deg); - } - - .text { - display: inline-block; - transform: skewX(45deg); - } - } - - .react-right { - cursor: pointer; - font-size: 1.3rem; - width: 300px; - height: 50px; - line-height: 50px; - text-align: center; - transform: skewX(45deg); - - .react-before { - position: absolute; - left: -25px; - top: 0px; - height: 50px; - width: 50px; - background-color: #0f1325; + line-height: 50px; + text-align: center; transform: skewX(-45deg); + .react-after { + position: absolute; + right: -25px; + top: 0px; + height: 50px; + width: 50px; + background-color: #0f1325; + transform: skewX(45deg); + } + + .text { + display: inline-block; + transform: skewX(45deg); + } } - .text { - display: inline-block; - transform: skewX(-45deg); + .react-right { + cursor: pointer; + font-size: 1.3rem; + width: 300px; + height: 50px; + line-height: 50px; + text-align: center; + transform: skewX(45deg); + + .react-before { + position: absolute; + left: -25px; + top: 0px; + height: 50px; + width: 50px; + background-color: #0f1325; + transform: skewX(-45deg); + + } + + .text { + display: inline-block; + transform: skewX(-45deg); + } + } + + + .body-box { + margin-top: 1rem; + display: flex; + flex-direction: column; + + //下方区域的布局 + .content-box { + display: grid; + grid-template-columns: 2fr 3fr 5fr 3fr 2fr; + } + + // 底部数据 + .bototm-box { + margin-top: 10px; + display: grid; + grid-template-columns: repeat(2, 50%); + } } } - - - .body-box { - margin-top: 1rem; - display: flex; - flex-direction: column; - - //下方区域的布局 - .content-box { - display: grid; - grid-template-columns: 2fr 3fr 5fr 3fr 2fr; - } - - // 底部数据 - .bototm-box { - margin-top: 10px; - display: grid; - grid-template-columns: repeat(2, 50%); - } - } - } \ No newline at end of file diff --git a/src/components/echart/bottom/bottomLeftChart.vue b/src/components/echart/bottom/bottomLeftChart.vue index 2ccbd4d..f36d3f1 100644 --- a/src/components/echart/bottom/bottomLeftChart.vue +++ b/src/components/echart/bottom/bottomLeftChart.vue @@ -1,6 +1,6 @@ @@ -133,7 +133,7 @@ export default { let option = { title: { - text: "增量设备贯通情况-单位", + text: "", x: "center", y: 0, textStyle: { @@ -158,12 +158,12 @@ export default { textStyle: { color: "#B4B4B4" }, - top: "7%" + top: "0%" }, grid: { - x: "12%", - width: "82%", - y: "12%" + x: "8%", + width: "88%", + y: "4%" }, xAxis: { data: category, @@ -243,9 +243,9 @@ export default { normal: { barBorderRadius: 5, color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: "rgba(156,107,211,0.5)" }, - { offset: 0.2, color: "rgba(156,107,211,0.3)" }, - { offset: 1, color: "rgba(156,107,211,0)" } + { offset: 0, color: "rgba(156,107,211,0.8)" }, + { offset: 0.2, color: "rgba(156,107,211,0.5)" }, + { offset: 1, color: "rgba(156,107,211,0.2)" } ]) } }, diff --git a/src/components/echart/bottom/bottomRightChart.vue b/src/components/echart/bottom/bottomRightChart.vue new file mode 100644 index 0000000..a090346 --- /dev/null +++ b/src/components/echart/bottom/bottomRightChart.vue @@ -0,0 +1,409 @@ + + + + + \ No newline at end of file diff --git a/src/views/bottomLeft.vue b/src/views/bottomLeft.vue index e93a18e..01d9284 100644 --- a/src/views/bottomLeft.vue +++ b/src/views/bottomLeft.vue @@ -1,6 +1,6 @@