Procházet zdrojové kódy

[Style 0000] 样式问题修复

houzekong před 2 měsíci
rodič
revize
11aa93752e

+ 2 - 2
src/layouts/default/feature/SimpleMap.vue

@@ -401,8 +401,8 @@
 
   .map-reset-btn {
     position: absolute;
-    right: 26%; /* 距离右边 20px */
-    z-index: 1000; /* 确保在地图控件之上 */
+    right: 30%; /* 距离右边 20px */
+    z-index: 2; /* 确保在地图控件之上 */
     top: @header-height;
     // padding: 10px 15px;
     margin: 10px 0;

+ 2 - 7
src/layouts/default/feature/SystemSelect.vue

@@ -48,13 +48,8 @@
     width: 100%;
     min-width: 10px;
     margin-bottom: 10px;
-    // position: relative;
-    // z-index: @layout-basic-z-index;
-    z-index: @layout-header-fixed-z-index;
-    position: fixed;
-    top: @header-height;
-    left: 0;
-    // z-index: '100';
+    position: relative;
+    z-index: @layout-basic-z-index;
   }
 
   .@{prefix-cls}.ant-select {

+ 8 - 1
src/layouts/default/plain.vue

@@ -3,7 +3,7 @@
   <Layout :class="prefixCls" v-bind="lockEvents">
     <LayoutFeatures />
     <LayoutHeader />
-    <SystemSelect />
+    <SystemSelect class="system-select-for-plain-layout" />
     <SimpleMap />
     <LayoutContent />
   </Layout>
@@ -91,6 +91,13 @@
       // 代码逻辑说明:【issues/8709】LayoutContent样式多出1px
       // margin-left: 1px;
     }
+
+    .system-select-for-plain-layout {
+      z-index: @layout-header-fixed-z-index;
+      position: fixed;
+      top: @header-height;
+      left: 0;
+    }
   }
 
   :deep(.jeecg-system-select) {

+ 9 - 9
src/views/dashboard/SealedGoaf/index.vue

@@ -36,12 +36,12 @@
     totalNum: {
       productionNum: 0, // 原有生产状态总计
       alarmNum: {
-        alarm1Total: 0,   // alarm1 总计
-        alarm2Total: 0,   // alarm2 总计
-        alarm3Total: 0,   // alarm3 总计
-        alarm4Total: 0,   // alarm4 总计
-        alarmTotal: 0     // 所有alarm总计
-      }
+        alarm1Total: 0, // alarm1 总计
+        alarm2Total: 0, // alarm2 总计
+        alarm3Total: 0, // alarm3 总计
+        alarm4Total: 0, // alarm4 总计
+        alarmTotal: 0, // 所有alarm总计
+      },
     },
   }); // 所有数据汇总
 
@@ -68,7 +68,7 @@
 
       // 遍历数组累加(边界处理:确保是数组,字段非数字则取0)
       if (Array.isArray(goafAlarmData)) {
-        goafAlarmData.forEach(item => {
+        goafAlarmData.forEach((item) => {
           alarm1Total += Number(item.alarm1) || 0;
           alarm2Total += Number(item.alarm2) || 0;
           alarm3Total += Number(item.alarm3) || 0;
@@ -81,7 +81,7 @@
       // console.log('所有alarm的总合计:', alarmTotal);
       const totalNum = { productionNum: totalProductionNum, alarmNum: { alarm1Total, alarm2Total, alarm3Total, alarm4Total, alarmTotal } };
 
-            // 3. 把接口数据赋值给响应式变量(备用)
+      // 3. 把接口数据赋值给响应式变量(备用)
       mineData.value = { coalSeamFireData, productionStatusData, overLimitData, goafAlarmData, goafAlarmLevel, totalNum };
       // 4. 赋值更新后的配置到configs(触发组件重新渲染)
       if (configs.value.length === 0) {
@@ -111,7 +111,7 @@
     width: 100%;
     height: 100%;
     color: @white;
-    background-image: linear-gradient(90deg, @map-bg 0%, @map-bg 14%, transparent 50%, @map-bg 86%, @map-bg 100%);
+    background-image: linear-gradient(90deg, @map-bg 0%, @map-bg 20%, transparent 30%, transparent 70%, @map-bg 80%, @map-bg 100%);
     background-repeat: no-repeat;
     background-size: 100% 100%;
     z-index: @layout-basic-z-index;