From 0639073eaceeb6e130c23b8e8d4b6ae7b0234ad8 Mon Sep 17 00:00:00 2001 From: dengyinhuan Date: Sat, 23 Jul 2022 13:55:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=BA=E8=AE=BE=E5=92=8C=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E6=A8=A1=E5=9D=97UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quanju/containers/footer/build/index.js | 10 +-- .../containers/footer/guanli/LeftItem.js | 87 +++---------------- .../quanju/containers/footer/guanli/index.js | 4 +- .../containers/footer/guanli/style.less | 21 ++++- 4 files changed, 34 insertions(+), 88 deletions(-) diff --git a/web/client/src/sections/quanju/containers/footer/build/index.js b/web/client/src/sections/quanju/containers/footer/build/index.js index 85e8c26c..bb83009b 100644 --- a/web/client/src/sections/quanju/containers/footer/build/index.js +++ b/web/client/src/sections/quanju/containers/footer/build/index.js @@ -15,7 +15,7 @@ const Build = () => {
+ }} customize = {true}>
@@ -38,7 +38,7 @@ const Build = () => { + }} customize = {true}>
@@ -99,7 +99,7 @@ const Build = () => { + }} customize = {true}> @@ -115,12 +115,12 @@ const Build = () => { + }} customize = {true}> + }} customize = {true}>
diff --git a/web/client/src/sections/quanju/containers/footer/guanli/LeftItem.js b/web/client/src/sections/quanju/containers/footer/guanli/LeftItem.js index c50f7e59..71718a61 100644 --- a/web/client/src/sections/quanju/containers/footer/guanli/LeftItem.js +++ b/web/client/src/sections/quanju/containers/footer/guanli/LeftItem.js @@ -5,82 +5,10 @@ export default function LeftItem() { const seasonChartRef = useRef(null); useEffect(() => { let chartInstance = echarts.init(seasonChartRef.current); - // const seasonOption = { - // title: [ - // { - // text: "已处理", - // x: "center", - // top: "55%", - // textStyle: { - // color: "#E9F7FF", - // fontSize: 14, - // }, - // }, - // { - // text: "2333", - // x: "center", - // y: "35%", - // textStyle: { - // fontSize: "30", - // color: "#FFFFFF", - // fontFamily: "YouSheBiaoTiHei", - // }, - // }, - // ], - // polar: { - // radius: ["78%", "86%"], - // center: ["50%", "50%"], - // }, - // angleAxis: { - // max: 100, - // clockWise:false, //逆时针加载 - // show: false, - // }, - // radiusAxis: { - // type: "category", - // show: true, - // axisLabel: { - // show: false, - // }, - // axisLine: { - // show: false, - // }, - // axisTick: { - // show: false, - // }, - // }, - // series: [ - // { - // name: "", - // type: "bar", - // roundCap: true, - // clockWise:false, //逆时针加载 - // barWidth: 30, - // showBackground: true, - // data: [40], - // coordinateSystem: "polar", - // itemStyle: { - // normal: { - // color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [ - // { - // offset: 0, - // color: "#AAC8FF", - // }, - // { - // offset: 1, - // color: "#0041BB", - // }, - // ]), - // }, - // }, - // }, - // ], - // }; const option = { title: { text: '75%', top:'35%', - textStyle: { fontSize: 22, fontFamily: 'PingFangSC-Medium, PingFang SC', @@ -140,17 +68,17 @@ export default function LeftItem() { series: [{ type: 'bar', data: [{ - name: '作文得分', + name: '已处理', value: 75, itemStyle: { normal: { color: new echarts.graphic.LinearGradient(0, 1, 0, 0, [ { offset: 0, - color: "#AAC8FF", + color: "#00D5FF", }, { offset: 1, - color: "#0041BB", + color: "#1978E5", }]) } }, @@ -165,7 +93,7 @@ export default function LeftItem() { data: [{ value: 100, itemStyle: { - color: '#e2e2e2', + color: '#092B7B ', shadowColor: 'rgba(0, 0, 0, 0.2)', shadowBlur: 5, shadowOffsetY: 2 @@ -178,6 +106,9 @@ export default function LeftItem() { z: 1 }] } + + + chartInstance.setOption(option); }, []) @@ -188,7 +119,9 @@ export default function LeftItem() {
244
-
+ +
+
) diff --git a/web/client/src/sections/quanju/containers/footer/guanli/index.js b/web/client/src/sections/quanju/containers/footer/guanli/index.js index 88552520..1bf8a079 100644 --- a/web/client/src/sections/quanju/containers/footer/guanli/index.js +++ b/web/client/src/sections/quanju/containers/footer/guanli/index.js @@ -30,14 +30,14 @@ const Guanli = () => { return (
- + {itemlist.map((item,index)=> )}
- +
已处理 diff --git a/web/client/src/sections/quanju/containers/footer/guanli/style.less b/web/client/src/sections/quanju/containers/footer/guanli/style.less index c225f744..d6f3056a 100644 --- a/web/client/src/sections/quanju/containers/footer/guanli/style.less +++ b/web/client/src/sections/quanju/containers/footer/guanli/style.less @@ -19,8 +19,8 @@ justify-content: space-between; border: 2px solid rgba(28,96,254,0.5000); .guanli-left-item-left{ - width: 30%; - height: 70%; + width: 45%; + height: 60%; display: flex; flex-direction: column; align-items: center; @@ -37,7 +37,7 @@ font-size: 34px; font-family: YouSheBiaoTiHei; color: #FFFFFF; - height: 60%; + height: 70%; width: 100%; background: url('/assets/images/quanju/guanlijiance_1.png') no-repeat; background-size: 100% 80%; @@ -56,7 +56,20 @@ } .guanli-left-item-right{ width: 40%; - height: 60%; + height: 50%; + position: relative; + span{ + position: absolute; + width: 8px; + height: 8px; + background-color: #fff; + top: 1.5%; + left: 50%; + z-index: 10; + border-radius: 4px; + display: block; + } + // background-color: pink; } // background-color: pink;