Browse Source

改bug

wangqin
hui 11 months ago
parent
commit
3b71571aa2
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/assets/charts.js
  2. 35
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue

2
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/assets/charts.js

@ -62,7 +62,7 @@ var options = {
grid: { grid: {
top: "15%", //上边距 top: "15%", //上边距
right: "5px", //右边距 right: "5px", //右边距
left: "0", //左边距 left: "10px", //左边距
bottom: "2%", //下边距 bottom: "2%", //下边距
containLabel: true, containLabel: true,
}, },

35
ruoyi-ui/src/views/JiHeExpressway/pages/perception/eventDetection/components/eventQuery/index.vue

@ -88,7 +88,7 @@
<div class="comp_body"> <div class="comp_body">
<div> <div>
<WgtTitle :title="'感知事件趋势分析'"></WgtTitle> <WgtTitle :title="'感知事件趋势分析'"></WgtTitle>
<div class="unit_con"> <div class="unit_con unit_con_01">
<Empty <Empty
v-if="!chart1List || chart1List.length <= 0" v-if="!chart1List || chart1List.length <= 0"
text="暂无数据..." text="暂无数据..."
@ -108,15 +108,14 @@
></Empty> ></Empty>
<div <div
ref="chart2" ref="chart2"
class="chart_div" class="chart_div keep-ratio"
style="width: 540px; height: 270px"
></div> ></div>
</div> </div>
</div> </div>
<div> <div>
<WgtTitle :title="'桩号范围内事件分析趋势'"></WgtTitle> <WgtTitle :title="'桩号范围内事件分析趋势'"></WgtTitle>
<div class="unit_con"> <div class="unit_con unit_con_03">
<Empty <Empty
v-show="!chart3List || chart3List.length <= 0" v-show="!chart3List || chart3List.length <= 0"
text="暂无数据..." text="暂无数据..."
@ -695,20 +694,34 @@ export default {
flex: 1; flex: 1;
height: 0; height: 0;
padding: 0; padding: 0;
margin: 95px 20px 30px;
position: relative; position: relative;
// &.unit_con_02{ margin: 105px 0px 20px; }
display: flex; display: flex;
align-items: center; align-items: center;
&.unit_con_01{
margin: 100px 20px 0;
.chart_div {
width: 100%;
height: 240px;
} }
.empty {
position: absolute;
} }
&.unit_con_02{
margin: 70px 20px 0;
.chart_div {
width: 100%;
height: 290px;
}
}
&.unit_con_03{
margin: 70px 20px 0;
.chart_div { .chart_div {
width: 100%; width: 100%;
height: 200px; height: 280px;
}
}
}
.empty {
position: absolute;
} }
} }

Loading…
Cancel
Save