|
|
@@ -31,13 +31,18 @@
|
|
|
<!-- 图表区域 -->
|
|
|
<div class="chart-area">
|
|
|
<div class="chart-item">
|
|
|
- <div class="chart-title">爆炸三角形</div>
|
|
|
+ <div class="chart-title pl-20px">爆炸三角形</div>
|
|
|
<div class="chart-placeholder">
|
|
|
- <BlastDelta :posMonitor="dataRef" :canvasSize="{ width: '95%', height: '95%' }" text-color="#000" />
|
|
|
+ <BlastDelta
|
|
|
+ :posMonitor="dataRef"
|
|
|
+ :canvas-size="{ width: 311, height: 149 }"
|
|
|
+ :legendStyle="{ left: '50%', top: '10px' }"
|
|
|
+ text-color="#000"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="chart-item">
|
|
|
- <div class="chart-title">气体浓度曲线</div>
|
|
|
+ <div class="chart-title pl-20px">气体浓度曲线</div>
|
|
|
<div class="chart-placeholder">
|
|
|
<CustomChart
|
|
|
:chart-data="{ chartData: dataArray }"
|
|
|
@@ -52,7 +57,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="chart-item">
|
|
|
- <div class="chart-title">内外压力及压差曲线</div>
|
|
|
+ <div class="chart-title pl-20px">内外压力及压差曲线</div>
|
|
|
<div class="chart-placeholder">
|
|
|
<CustomChart
|
|
|
:chart-data="{ chartData: dataArray }"
|
|
|
@@ -133,7 +138,7 @@
|
|
|
|
|
|
function fetchDetailData() {
|
|
|
const { mineCode, goafId } = dataRef.value;
|
|
|
- getGoafData({ mineCode, goafId }).then((r) => {
|
|
|
+ getGoafData({ mineCodeList: mineCode, goafId }).then((r) => {
|
|
|
dataRef.value = last(r);
|
|
|
push(dataRef.value);
|
|
|
// push(dataRef.value)
|
|
|
@@ -191,7 +196,7 @@
|
|
|
.label {
|
|
|
color: #666;
|
|
|
margin-right: 8px;
|
|
|
- min-width: 80px;
|
|
|
+ min-width: 90px;
|
|
|
flex-shrink: 0; /* 标签宽度不收缩 */
|
|
|
}
|
|
|
.value {
|
|
|
@@ -201,9 +206,10 @@
|
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
.data-cards {
|
|
|
- display: grid;
|
|
|
- grid-template-columns: repeat(8, 1fr);
|
|
|
- gap: 16px;
|
|
|
+ display: flex;
|
|
|
+ // grid-template-columns: repeat(8, 1fr);
|
|
|
+ // gap: 16px;
|
|
|
+ justify-content: space-evenly;
|
|
|
margin-bottom: 20px;
|
|
|
padding: 20px;
|
|
|
border: 1px solid @border-color-base;
|
|
|
@@ -230,7 +236,7 @@
|
|
|
.chart-area {
|
|
|
display: flex;
|
|
|
flex-wrap: wrap;
|
|
|
- gap: 16px;
|
|
|
+ gap: 20px;
|
|
|
padding: 20px;
|
|
|
border: 1px solid @border-color-base;
|
|
|
border-radius: 10px;
|
|
|
@@ -239,17 +245,26 @@
|
|
|
}
|
|
|
.chart-item {
|
|
|
flex: 1;
|
|
|
- min-width: 200px;
|
|
|
+ // flex-basis: 6;
|
|
|
+ // flex-shrink: 1;
|
|
|
+ // min-width: 200px;
|
|
|
+ &:first-child {
|
|
|
+ // flex-basis: 380px;
|
|
|
+ flex: 0 0 380px;
|
|
|
+ // flex-shrink: 0;
|
|
|
+ // flex-grow: 1;
|
|
|
+ }
|
|
|
}
|
|
|
.chart-title {
|
|
|
font-size: 14px;
|
|
|
font-weight: 500;
|
|
|
margin-bottom: 8px;
|
|
|
- color: #333;
|
|
|
+ font-weight: bold;
|
|
|
+ color: @text-color-call-out;
|
|
|
}
|
|
|
.chart-placeholder {
|
|
|
width: 100%;
|
|
|
- height: 150px;
|
|
|
+ height: 200px;
|
|
|
border-radius: 4px;
|
|
|
overflow: hidden;
|
|
|
}
|