Ver código fonte

[Mod 0000]调整试验区的配置文件

wangkeyi 1 mês atrás
pai
commit
727acb4bba

+ 1 - 2
src/views/vent/home/configurable/components/detail/MiniBoard.vue

@@ -818,7 +818,7 @@ defineEmits(['click']);
   .mini-board__label_E {
     background-image: var(--image-jdjl);
   }
-
+}
   .mini-board_inject-syq {
     width: 100px;
     height: auto;
@@ -873,5 +873,4 @@ defineEmits(['click']);
       }
     }
   }
-}
 </style>

+ 68 - 8
src/views/vent/home/configurable/configurable.data.ts

@@ -841,9 +841,69 @@ export const testConfigGasInjectCc: Config[] = [
 ];
 //注气驱替-试验
 export const testConfigGasInjectSy: Config[] = [
- {
-    deviceType: 'cc-detail',
-    moduleName: '抽采单元详情',
+  {
+    deviceType: 'workface-info',
+    moduleName: '工作面信息',
+    pageType: 'gas_injection',
+    showDetail: true,
+    moduleData: {
+      header: {
+        show: false,
+        readFrom: '',
+        selector: {
+          show: false,
+          value: '${strinstallpos}',
+        },
+        slot: {
+          show: false,
+          value: '',
+        },
+      },
+      background: {
+        show: false,
+        type: 'video',
+        link: '',
+      },
+      layout: {
+        direction: 'row',
+        items: [
+          {
+            name: 'gas_inject_list',
+            basis: '100%',
+          },
+        ],
+      },
+      board: [],
+      chart: [],
+      gallery: [],
+      gallery_list: [],
+      table: [],
+      list: [],
+      complex_list: [],
+      preset: [
+        {
+          readFrom: '',
+          option: [
+            { label: '瓦斯浓度', value: '12304' },
+            { label: '试验区范围', value: '2号煤' },
+            { label: '瓦斯储量', value: '2924.6' },
+            { label: '采面宽度', value: '300.4' },
+            { label: '剩余可开采长度', value: '900' },
+            { label: '甲烷气体标况瞬量', value: '3.40' },
+            { label: '累计流量', value: '100' },
+          ],
+        },
+      ],
+    },
+    showStyle: {
+      size: 'width:460px;height:315px;',
+      version: '注气',
+      position: 'top:10px;left:10px;',
+    },
+  },
+  {
+    deviceType: 'device-status',
+    moduleName: '设备及管路状态',
     pageType: 'gas_injection',
     showDetail: true,
     moduleData: {
@@ -903,7 +963,7 @@ export const testConfigGasInjectSy: Config[] = [
       preset: [],
     },
     showStyle: {
-      size: 'width:470px;height:220px;',
+      size: 'width:460px;height:220px;',
       version: '注气',
       position: 'top:350px;left:10px;',
     },
@@ -971,7 +1031,7 @@ export const testConfigGasInjectSy: Config[] = [
       preset: [],
     },
     showStyle: {
-      size: 'width:470px;height:240px;',
+      size: 'width:460px;height:240px;',
       version: '注气',
       position: 'top:600px;left:10px;',
     },
@@ -1039,7 +1099,7 @@ export const testConfigGasInjectSy: Config[] = [
       },
     },
     showStyle: {
-      size: 'width:470px;height:240px;',
+      size: 'width:460px;height:240px;',
       version: '注气',
       position: 'top:600px;left:490px;',
     },
@@ -1080,7 +1140,7 @@ export const testConfigGasInjectSy: Config[] = [
       preset: [],
     },
     showStyle: {
-      size: 'width:470px;height:240px;',
+      size: 'width:460px;height:240px;',
       version: '注气',
       position: 'top:600px;right:490px;',
     },
@@ -1121,7 +1181,7 @@ export const testConfigGasInjectSy: Config[] = [
       preset: [],
     },
     showStyle: {
-      size: 'width:470px;height:240px;',
+      size: 'width:460px;height:240px;',
       version: '注气',
       position: 'top:600px;right:10px;',
     },

+ 1 - 9
src/views/vent/home/configurable/gasInjection.vue

@@ -46,15 +46,7 @@ const { mainTitle, data, updateData } = useInitPage('注气驱替智能管控系
 let interval: number | undefined;
 let menuName = ref('zjm')
 
-// const menuPageTypeMap = {
-//     zjm: 'gas_injection', // 对应主界面
-//     syq: 'gas_injection_syq', // 对应试验区
-// };
-// // 计算属性:筛选当前 menuName 对应的模块
-// const filteredConfigs = computed(() => {
-//   const targetPageType = menuPageTypeMap[menuName.value] || 'gas_injection';
-//   return configs.value.filter(item => item.pageType === targetPageType);
-// });
+
 //选项切换
 function toggleMenu(param) {
   menuName.value = param