Commit c409b6b1 authored by xinzhedeai's avatar xinzhedeai

fix: css better

parent 969af71a
...@@ -109,6 +109,7 @@ export default { ...@@ -109,6 +109,7 @@ export default {
left: "3%", left: "3%",
right: "4%", right: "4%",
bottom: "3%", bottom: "3%",
right: '8%',
containLabel: true, containLabel: true,
}, },
xAxis: [ xAxis: [
...@@ -116,6 +117,9 @@ export default { ...@@ -116,6 +117,9 @@ export default {
type: "category", type: "category",
boundaryGap: false, boundaryGap: false,
data: [], data: [],
// axisLabel: {
// rotate: 10 // 设置倾斜角度,单位为度
// },
axisLine: { lineStyle: { color: "#a3e4f5" } }, axisLine: { lineStyle: { color: "#a3e4f5" } },
axisTick: { show: false }, axisTick: { show: false },
}, },
......
...@@ -161,8 +161,8 @@ export default { ...@@ -161,8 +161,8 @@ export default {
//background:no-repeat center center url('~@/assets/images/layout/side_l_md.png');background-size:100% 100%; //background:no-repeat center center url('~@/assets/images/layout/side_l_md.png');background-size:100% 100%;
// background-color: rgba(29, 57, 110, 0.65); // background-color: rgba(29, 57, 110, 0.65);
&.title1 { &.title1 {
height: rem;
width: 4.76rem; width: 4.76rem;
margin-top: 0.1rem;
background: no-repeat center center background: no-repeat center center
url("~@/assets/images/dpNew2/title1.png"); url("~@/assets/images/dpNew2/title1.png");
background-size: 100% 100%; background-size: 100% 100%;
...@@ -203,6 +203,8 @@ export default { ...@@ -203,6 +203,8 @@ export default {
flex-direction: column; flex-direction: column;
padding: 0.2rem; padding: 0.2rem;
padding-top: 0.5rem; padding-top: 0.5rem;
padding-bottom: 0.15rem;
.top { .top {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -274,7 +276,7 @@ export default { ...@@ -274,7 +276,7 @@ export default {
.bottom { .bottom {
height: 2.8rem; height: 2.8rem;
overflow: hidden; overflow: hidden;
margin-top: 0.16rem; margin-top: 0.06rem;
.scrolling1 { .scrolling1 {
min-height: 2.55rem; min-height: 2.55rem;
max-height: 2.55rem; max-height: 2.55rem;
...@@ -309,16 +311,16 @@ export default { ...@@ -309,16 +311,16 @@ export default {
// opacity: 0.5; // opacity: 0.5;
} }
dd { dd {
height: 0.4rem; height: 0.47rem;
// margin-bottom: 0.08rem; // margin-bottom: 0.08rem;
margin-left: 0; margin-left: 0;
color: #d3dfeb; color: #fff;
margin-right: 0px; margin-right: 0px;
display: grid; display: grid;
grid-template-columns: 1.5rem 0.8rem 0.9rem 0.8rem; grid-template-columns: 1.5rem 0.8rem 0.9rem 0.8rem;
// background-color: rgba(37,102,195,.3); // background-color: rgba(37,102,195,.3);
text-align: center; text-align: center;
font-size: 0.14rem; font-size: 0.16rem;
align-items: center; align-items: center;
border-bottom: 0.01rem solid #1f77c2; border-bottom: 0.01rem solid #1f77c2;
} }
...@@ -342,10 +344,12 @@ export default { ...@@ -342,10 +344,12 @@ export default {
// top: 0.4rem; // top: 0.4rem;
} }
dt { dt {
grid-template-columns: 2rem 0.8rem 0.9rem 0.8rem; grid-template-columns: 2rem 1rem 1.5rem;
} }
dd { dd {
grid-template-columns: 2rem 0.8rem 0.9rem 0.8rem; grid-template-columns: 2rem 1rem 1.5rem;
} }
} }
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<h4>桥梁监测</h4> <h4>桥梁监测</h4>
</div> </div>
<div class="m-body"> <div class="m-body">
<div class="top" style="width: 100%; height: 50%"> <div class="top" style="width: 100%; height: 35%">
<div class="echart-bt"> <div class="echart-bt">
<div class="echart-bg"></div> <div class="echart-bg"></div>
<div id="EchartsPie" class="EchartsPie"></div> <div id="EchartsPie" class="EchartsPie"></div>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
v-for="(item, index) in dataList" v-for="(item, index) in dataList"
:key="index" :key="index"
> >
<span>{{ item.monName }}</span> <span style="color:#fff;">{{ item.monName }}</span>
<span :style="{ color: colorBlock[index] }">{{ <span :style="{ color: colorBlock[index] }">{{
item.monDate item.monDate
}}</span> }}</span>
...@@ -120,15 +120,17 @@ export default { ...@@ -120,15 +120,17 @@ export default {
showInLegend: true, showInLegend: true,
depth: 15, depth: 15,
dataLabels: { dataLabels: {
enabled: false, enabled: true,
distance: 10, // distance: 10,
color: "#fff", useHTML: true,
formatter:function(){
let name = this.point.name;
let fontSize = '0.16rem'
return `<span style="color:${this.point.color};font-size:${fontSize};font-weight:500;">${name}: ${this.point.percentage.toFixed(1)}%</span>`
},
style: { style: {
textOutline: "none", textOutline: "none",
fontSize: "16", fontSize: "0.17rem",
},
formatter: function () {
return this.point.name + this.y + "%";
}, },
}, },
}, },
...@@ -289,7 +291,7 @@ export default { ...@@ -289,7 +291,7 @@ export default {
flex-direction: column; flex-direction: column;
&.title3 { &.title3 {
height: 4.81rem; height: 4.3rem;
width: 4.65rem; width: 4.65rem;
background: no-repeat center center background: no-repeat center center
url("~@/assets/images/dpNew2/title3.png"); url("~@/assets/images/dpNew2/title3.png");
...@@ -344,7 +346,7 @@ export default { ...@@ -344,7 +346,7 @@ export default {
.bottom { .bottom {
height: 2.8rem; height: 2.8rem;
overflow: hidden; overflow: hidden;
margin-top: -0.16rem; margin-top: -0.06rem;
.dt { .dt {
height: 0.42rem; height: 0.42rem;
line-height: 0.42rem; line-height: 0.42rem;
...@@ -355,7 +357,7 @@ export default { ...@@ -355,7 +357,7 @@ export default {
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 500; font-weight: 500;
font-size: 0.18rem; font-size: 0.17rem;
text-align: center; text-align: center;
border-radius: 4px 4px 0px 0px; border-radius: 4px 4px 0px 0px;
} }
...@@ -376,8 +378,7 @@ export default { ...@@ -376,8 +378,7 @@ export default {
display: grid; display: grid;
grid-template-columns: 1.5rem 1.5rem 0.9rem; grid-template-columns: 1.5rem 1.5rem 0.9rem;
text-align: center; text-align: center;
background: #01689d; background: #01689d52;
opacity: 0.4;
font-size: 0.14rem; font-size: 0.14rem;
align-items: center; align-items: center;
border-bottom: 0.01rem solid #1f77c2; border-bottom: 0.01rem solid #1f77c2;
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<!-- 应急演练结束 --> <!-- 应急演练结束 -->
</div> </div>
<div class="side b0_right"> <div class="side b0_right">
<div class="a-md34" id="amd34"> <div class="a-md34" id="amd34" style="height: 4.3rem;">
<QiaoliangMonitor/> <QiaoliangMonitor/>
</div> </div>
<div class="a-md34" id="amd34"> <div class="a-md34" id="amd34">
...@@ -369,7 +369,7 @@ footer{ ...@@ -369,7 +369,7 @@ footer{
height: 0.63rem; height: 0.63rem;
position: absolute; position: absolute;
top: 1.3rem; top: 1.3rem;
left: 24%; left: 28%;
right: 0; right: 0;
z-index: 11; z-index: 11;
display: flex; display: flex;
...@@ -485,6 +485,7 @@ footer{ ...@@ -485,6 +485,7 @@ footer{
position: relative; position: relative;
font-size: 0.44rem; font-size: 0.44rem;
line-height: 1; line-height: 1;
letter-spacing: 0.04rem;
margin: 0.23rem 0 0 0rem; margin: 0.23rem 0 0 0rem;
font-weight: bold; font-weight: bold;
color: #fff; color: #fff;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment