@@ -1142,7 +1148,7 @@ const highRiskChartOption = computed(() => {
series: [{
name: '高危作业',
type: 'pie',
- radius: ['49%', '61%'],
+ radius: ['45%', '65%'],
center: ['50%', '50%'],
avoidLabelOverlap: false,
itemStyle: { borderRadius: 0, borderColor: 'transparent', borderWidth: 0 },
@@ -1150,7 +1156,7 @@ const highRiskChartOption = computed(() => {
show: true,
position: 'center',
formatter: () => `${highRiskTotal.value}\n累计作业`,
- fontSize: 18,
+ fontSize: 15,
fontWeight: 'bold',
color: '#333'
},
@@ -1175,7 +1181,7 @@ const emergencyPlanChartOption = computed(() => {
series: [{
name: '演练完成率',
type: 'pie',
- radius: ['49%', '61%'],
+ radius: ['45%', '65%'],
center: ['50%', '50%'],
avoidLabelOverlap: false,
itemStyle: { borderRadius: 0, borderColor: 'transparent', borderWidth: 0, color: '#10b981' },
@@ -1183,7 +1189,7 @@ const emergencyPlanChartOption = computed(() => {
show: true,
position: 'center',
formatter: () => `${percent}%\n演练完成率`,
- fontSize: 18,
+ fontSize: 15,
fontWeight: 'bold',
color: '#333'
},
@@ -1509,7 +1515,8 @@ onMounted(() => {
.donut-chart-wrapper,
.donut-chart-wrapper-small {
- height: 250px;
+ height: 280px;
+ min-height: 280px;
}
.line-chart-wrapper,
@@ -1522,7 +1529,8 @@ onMounted(() => {
}
.progress-chart-wrapper {
- height: 250px;
+ height: 280px;
+ min-height: 280px;
}
.region-distribution,
@@ -1697,24 +1705,27 @@ onMounted(() => {
.high-risk-top {
display: flex;
align-items: center;
- gap: 15px;
+ gap: 12px;
margin-bottom: 15px;
}
.donut-chart-wrapper-small {
- flex: 1;
- min-width: 0;
+ flex: 0.8;
+ min-width: 150px;
+ max-width: 45%;
display: flex;
align-items: center;
}
.operation-type-list {
- flex: 1.2;
+ flex: 0.7;
display: flex;
flex-direction: column;
gap: 8px;
- min-width: 0;
+ min-width: 140px;
+ max-width: 170px;
justify-content: center;
+ flex-shrink: 0;
}
.operation-type-item {
@@ -1755,13 +1766,14 @@ onMounted(() => {
.emergency-plan-top {
display: flex;
align-items: center;
- gap: 15px;
+ gap: 12px;
margin-bottom: 15px;
}
.progress-chart-wrapper {
- flex: 1.5;
- min-width: 0;
+ flex: 0.8;
+ min-width: 150px;
+ max-width: 45%;
display: flex;
align-items: center;
}
@@ -1770,9 +1782,11 @@ onMounted(() => {
display: flex;
flex-direction: column;
gap: 8px;
- flex: 1;
- min-width: 0;
+ flex: 0.7;
+ min-width: 140px;
+ max-width: 170px;
justify-content: center;
+ flex-shrink: 0;
}
.drill-item {
@@ -1874,6 +1888,24 @@ onMounted(() => {
}
}
+@media (max-width: 1200px) {
+ .high-risk-top,
+ .emergency-plan-top {
+ gap: 10px;
+ }
+
+ .donut-chart-wrapper-small,
+ .progress-chart-wrapper {
+ min-width: 160px;
+ }
+
+ .operation-type-list,
+ .drill-info {
+ min-width: 140px;
+ max-width: 180px;
+ }
+}
+
@media (max-width: 768px) {
.card-row {
grid-template-columns: 1fr;
@@ -1888,9 +1920,24 @@ onMounted(() => {
text-align: center;
}
- .high-risk-content,
- .emergency-plan-content {
+ .high-risk-top,
+ .emergency-plan-top {
flex-direction: column;
+ align-items: stretch;
+ }
+
+ .donut-chart-wrapper-small,
+ .progress-chart-wrapper {
+ min-width: 100%;
+ max-width: 100%;
+ height: 220px;
+ min-height: 220px;
+ }
+
+ .operation-type-list,
+ .drill-info {
+ min-width: 100%;
+ max-width: 100%;
}
}
diff --git a/src/views/Home/Index13.vue b/src/views/Home/Index13.vue
index bdef826..6f48f41 100644
--- a/src/views/Home/Index13.vue
+++ b/src/views/Home/Index13.vue
@@ -31,7 +31,7 @@
👥
外协管理
-
管理
+