فهرست منبع

[Feat 0000] 修改可配置首页处的模拟数据

houzekong 10 ماه پیش
والد
کامیت
5b56f1031f

+ 21 - 10
src/views/vent/home/configurable/components/FIreControl.vue

@@ -31,15 +31,20 @@
       title: '防火注浆',
       list: [
         {
-          prop: 'b',
-          label: '回采位置',
+          prop: 'a',
+          label: '注浆流量',
           color: 'white',
         },
         {
+          prop: 'b',
+          label: '注浆压力',
+          color: 'blue',
+        },
+        {
           prop: 'c',
-          label: '硐室火情',
+          label: '启停状态',
           color: 'blue',
-          formatter: 'a${}ff',
+          formatter: '${}',
         },
       ],
       //   color: 'yellow',
@@ -48,14 +53,20 @@
       title: '防火注氮',
       list: [
         {
-          prop: 'b',
-          label: '回采位置',
+          prop: 'a',
+          label: '注浆流量',
           color: 'white',
         },
         {
+          prop: 'b',
+          label: '注浆压力',
+          color: 'blue',
+        },
+        {
           prop: 'c',
-          label: '硐室火情',
+          label: '启停状态',
           color: 'blue',
+          formatter: '${}',
         },
       ],
       //   color: 'yellow',
@@ -64,9 +75,9 @@
 
   const listAConfig = computed(() => {
     const data = {
-      a: '氧化',
-      b: '氧化吗',
-      c: '不氧化',
+      a: '8.12',
+      b: '9.99',
+      c: '开启',
       d: '正常',
     };
     return listA.map((b) => {

+ 10 - 10
src/views/vent/home/configurable/components/FIreWarn.vue

@@ -3,9 +3,9 @@
   <div class="w-100% h-100% pl-5px pr-5px">
     <div class="flex items-center h-140px">
       <div class="fire-warn__image">
-        <div class="fire-warn__image_sub w-50px h-50px top-10px left-20px">CO</div>
-        <div class="fire-warn__image_sub w-30px h-30px top-50px left-70px">CO</div>
-        <div class="fire-warn__image_sub w-20px h-20px top-80px left-20px">CO</div>
+        <div class="fire-warn__image_sub w-50px h-50px top-10px left-20px line-height-50px">低风险</div>
+        <div class="fire-warn__image_sub w-30px h-30px top-50px left-70px line-height-30px">CO</div>
+        <div class="fire-warn__image_sub w-20px h-20px top-80px left-20px line-height-20px">CO</div>
       </div>
       <CustomList type="A" :list-config="listAConfig" />
     </div>
@@ -58,20 +58,20 @@
     {
       type: 'B',
       prop: 'a',
-      label: '2222/2/2 22:22:22',
+      label: '2024/07/22 07:00:00',
       color: 'white',
     },
     {
       type: 'B',
       prop: 'b',
-      label: '我是地点1',
+      label: '2811工作面上隅角',
       color: 'white',
     },
   ];
   const listBConfig = computed(() => {
     const data = {
-      a: '堵塞',
-      b: '甲烷0。02',
+      a: '轻微堵塞',
+      b: '甲烷0.02%',
     };
     return listB.map((b) => {
       return {
@@ -82,9 +82,9 @@
   });
   const listAConfig = computed(() => {
     const data = {
-      a: '氧化',
-      b: '氧化吗',
-      c: '不氧化',
+      a: '缓慢氧化',
+      b: '800m',
+      c: '正常',
       d: '正常',
     };
     return listA.map((b) => {

+ 12 - 8
src/views/vent/home/configurable/components/content.vue

@@ -162,20 +162,24 @@
     // const data = selectedDevice.value;
     return [
       {
-        A: '亦',
-        B: '瑞',
+        index: '1',
+        time: '2024/07/22 07:00',
+        warn: '未知',
       },
       {
-        A: '眼',
-        B: '氪',
+        index: '2',
+        time: '2024/07/22 08:00',
+        warn: '未知',
       },
       {
-        A: '订',
-        B: '骑',
+        index: '3',
+        time: '2024/07/22 09:00',
+        warn: '未知',
       },
       {
-        A: '帧',
-        B: '剑',
+        index: '4',
+        time: '2024/07/22 10:00',
+        warn: '未知',
       },
     ];
     // return get(data, table[0]?.readFrom, []);

+ 8 - 4
src/views/vent/home/configurable/index.vue

@@ -356,12 +356,16 @@
             readFrom: 'history',
             columns: [
               {
-                prop: 'A',
-                label: 'A列',
+                prop: 'index',
+                label: '编号',
               },
               {
-                prop: 'B',
-                label: 'B列',
+                prop: 'time',
+                label: '报警时间',
+              },
+              {
+                prop: 'warn',
+                label: '报警内容',
               },
             ],
           },