Browse Source

管理的UI大屏开发

release_0.0.1
dengyinhuan 3 years ago
parent
commit
d35c171831
  1. 91
      web/client/src/sections/quanju/containers/footer/guanli/LeftItem.js
  2. 9
      web/client/src/sections/quanju/containers/footer/guanli/index.js
  3. 177
      web/client/src/sections/quanju/containers/footer/guanli/style.less

91
web/client/src/sections/quanju/containers/footer/guanli/LeftItem.js

@ -0,0 +1,91 @@
import React, { useEffect, useRef } from 'react';
import './style.less'
import * as echarts from 'echarts';
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,
show: false,
},
radiusAxis: {
type: "category",
show: true,
axisLabel: {
show: false,
},
axisLine: {
show: false,
},
axisTick: {
show: false,
},
},
series: [
{
name: "",
type: "bar",
roundCap: true,
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",
},
]),
},
},
},
],
};
chartInstance.setOption(seasonOption);
}, [])
return (
<div className='guanli-left-item'>
<div className='guanli-left-item-left'>
<span>莲塘镇</span>
<div>244 <span></span></div>
</div>
<div className='guanli-left-item-right'>
<div ref={seasonChartRef} style={{ height: "100%", width: "100%" }}></div>
</div>
</div>
)
}

9
web/client/src/sections/quanju/containers/footer/guanli/index.js

@ -2,9 +2,11 @@ import React from 'react'
import { Carousel } from 'antd' import { Carousel } from 'antd'
import AutoRollComponent from '../build/AutoRollComponent' import AutoRollComponent from '../build/AutoRollComponent'
import Module from '../../public/module' import Module from '../../public/module'
import LeftItem from './LeftItem'
import './style.less' import './style.less'
const Guanli = () => { const Guanli = () => {
const datas = new Array(35) const datas = new Array(35)
const itemlist = [1,2,3]
const renderContent = () => { const renderContent = () => {
datas.fill({ datas.fill({
chepaihao:'苏LD1112121', chepaihao:'苏LD1112121',
@ -27,7 +29,12 @@ const Guanli = () => {
renderContent() renderContent()
return ( return (
<div className='guanli'> <div className='guanli'>
<div className='guanli-left'> <div className='guanli-left'>
<Module style={{height:"100%"}} title="检测点治超处理占比">
{itemlist.map((item,index)=>
<LeftItem key={index}></LeftItem>
)}
</Module>
</div> </div>
<div className='guanli-right'> <div className='guanli-right'>
<Module style={{height:"100%"}} title="治超详情"> <Module style={{height:"100%"}} title="治超详情">

177
web/client/src/sections/quanju/containers/footer/guanli/style.less

@ -8,159 +8,58 @@
.guanli-left{ .guanli-left{
width: 25%; width: 25%;
height: 100%; height: 100%;
background-color: pink; .guanli-left-item{
.guanli-left-top{ box-sizing: border-box;
height: 100%; width: 85%;
width: 100%; height: 30%;
margin: 0 auto 3%;
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
.guanli-left-top-center{ padding: 0 10%;
width: 174px; justify-content: space-between;
height: 146px; border: 2px solid rgba(28,96,254,0.5000);
margin: 0 10px; .guanli-left-item-left{
} width: 30%;
.guanli-left-top-item{ height: 70%;
width: 25%;
height: 50%;
background-image: url('/assets/images/quanju/zhuangtaigognlubiankuang.png');
background-size: 95%;
background-repeat: no-repeat;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center;
align-items: center; align-items: center;
// text-align: center; span{
div{ font-size: 20px;
&:nth-child(1){ font-family: PingFangSC-Regular, PingFang SC;
display: flex; font-weight: 400;
justify-content: center; color: rgba(216,240,255,0.8000);
align-items: center;
span{
&:nth-child(1){
width: 8px;
height: 8px;
margin-right: 5px;
background: #07B9FE;
clip-path: polygon(0 0, 100% 0, 0 100%, 0 0);
transform: rotate(134deg);
}
&:nth-child(2){
font-size: 16px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #E9F7FF;
line-height: 22px;
}
}
}
&:nth-child(2){
// width: 80%;
// height: 100%;
// margin: 1% auto 0;
font-size: 38px;
font-family: YouSheBiaoTiHei;
color: #FFFFFF;
text-align: center;
// line-height: 49px;
text-shadow: 0px 2px 4px #1C60FE;
}
} }
}
}
.guanli-left-center{
width: 100%;
height: 100%;
.guanli-left-center-top{
width: 100%;
height: 30%;
display: flex;
justify-content: space-between;
div{ div{
width: 50%;
height: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; // align-items: ;
img{ font-size: 34px;
height: 50px; font-family: YouSheBiaoTiHei;
width: 78px;
}
div{
display: flex;
flex-direction: column;
align-items: start;
justify-content: center;
margin-left: 10px;
span{
&:nth-child(1){
font-size: 12px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #C2EEFF;
letter-spacing: 1px;
}
&:nth-child(2){
font-size: 28px;
font-family: YouSheBiaoTiHei;
color: #FFFFFF;
line-height: 36px;
text-shadow: 0px 0px 4px #07B9FE;
}
}
}
}
// background-color: pink;
}
.guanli-left-center-titile{
display: flex;
margin-bottom: 10px;
span{
flex:1;
text-align: center;
font-size: 12px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #FFFFFF; color: #FFFFFF;
line-height: 16px; height: 60%;
} width: 100%;
} background: url('/assets/images/quanju/guanlijiance_1.png') no-repeat;
.guanli-left-center-content{ background-size: 100% 80%;
width: 100%; background-position: center bottom;
height: 100px!important;
.guanli-left-center-item{
display: flex !important;
width: 100%!important;
height: 28px!important;
span{ span{
flex:1; font-size: 16px;
text-align: center; font-family: PingFangSC-Regular, PingFang SC;
font-size: 12px; font-weight: 400;
font-family: PingFangSC-Medium, PingFang SC; padding-top: 10%;
font-weight: 500; margin-left: 5px;
color: #FFFFFF; // height: 0;
line-height: 16px; color: rgba(216,240,255,0.8000);
} }
} }
.slick-list{ // background-color: pink;
height: 128px !important;
}
} }
.guanli-left-item-right{
width: 40%;
} height: 60%;
.guanli-left-bottom{ // background-color: pink;
width: 100%; }
height: 100%; // background-color: pink;
display: flex;
justify-content: center;
align-items: center;
} }
} }
.guanli-right{ .guanli-right{

Loading…
Cancel
Save