Browse Source

[Feat 0000] 更新可配置首页的相关配置

houzekong 1 month ago
parent
commit
1b19a78bce
1 changed files with 75 additions and 111 deletions
  1. 75 111
      src/views/vent/home/configurable/configurable.data.ts

+ 75 - 111
src/views/vent/home/configurable/configurable.data.ts

@@ -32,20 +32,20 @@ export const testConfigVent: Config[] = [
         direction: 'column',
         items: [
           {
-            name: 'board',
-            basis: '33%',
+            name: 'qh_curve',
+            basis: '72%',
           },
           {
-            name: 'qh_curve',
-            basis: '67%',
+            name: 'board',
+            basis: '28%',
           },
         ],
       },
       board: [
         {
-          type: 'A',
+          type: 'D',
           readFrom: '',
-          layout: 'val-top',
+          layout: 'label-top',
           items: [
             {
               label: '风量(m³/min)',
@@ -55,6 +55,10 @@ export const testConfigVent: Config[] = [
               label: '负压(Pa)',
               value: '${fy_merge}',
             },
+            {
+              label: '漏风率(%)',
+              value: '${leakage}',
+            },
           ],
         },
       ],
@@ -74,8 +78,8 @@ export const testConfigVent: Config[] = [
       to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=fanmain',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '版',
       position: 'top:60px;left:0;',
     },
   },
@@ -92,7 +96,7 @@ export const testConfigVent: Config[] = [
           value: '${strinstallpos}',
         },
         slot: {
-          show: true,
+          show: false,
           value: '运行风机:${readData.Fan1StartStatus}',
           trans: {
             '1': '一号',
@@ -134,8 +138,8 @@ export const testConfigVent: Config[] = [
       to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=fanlocal',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '版',
       position: 'top:350px;left:0;',
     },
   },
@@ -165,7 +169,7 @@ export const testConfigVent: Config[] = [
         direction: 'row',
         items: [
           {
-            name: 'complex_list',
+            name: 'device_alarm',
             basis: '100%',
           },
         ],
@@ -175,40 +179,18 @@ export const testConfigVent: Config[] = [
       chart: [],
       table: [],
       gallery: [],
-      complex_list: [
+      complex_list: [],
+      gallery_list: [],
+      preset: [
         {
-          type: 'F',
-          readFrom: 'device_arr',
-          mapFromData: true,
-          items: [
-            {
-              title: '${name}',
-              contents: [
-                {
-                  label: '总数',
-                  value: '${totalcount}',
-                },
-                {
-                  label: '报警',
-                  value: '${count}',
-                  color: 'red',
-                },
-                {
-                  label: '断开',
-                  value: '${netstatus}',
-                },
-              ],
-            },
-          ],
+          readFrom: 'device',
         },
       ],
-      gallery_list: [],
-      preset: [],
       to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=gate_xinJianFuXieJin',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '原版',
       position: 'top:640px;left:0;',
     },
   },
@@ -270,7 +252,7 @@ export const testConfigVent: Config[] = [
     },
     showStyle: {
       size: 'width:1000px;height:280px;',
-      version: '版',
+      version: '版',
       position: 'top:640px;left:460px;',
     },
   },
@@ -301,11 +283,11 @@ export const testConfigVent: Config[] = [
         items: [
           {
             name: 'chart',
-            basis: '60%',
+            basis: '67%',
           },
           {
             name: 'board',
-            basis: '40%',
+            basis: '33%',
           },
         ],
       },
@@ -336,7 +318,7 @@ export const testConfigVent: Config[] = [
       table: [],
       chart: [
         {
-          type: 'pie',
+          type: 'pie_drag',
           readFrom: '',
           legend: { show: false },
           xAxis: [{ show: false }],
@@ -349,8 +331,8 @@ export const testConfigVent: Config[] = [
       to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=sys_majorpath&deviceid=${deviceID}',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '版',
       position: 'top:60px;right:0;',
     },
   },
@@ -396,15 +378,15 @@ export const testConfigVent: Config[] = [
           layout: 'label-top',
           items: [
             {
-              label: '进风',
+              label: '进风(m³/min)',
               value: '${faceIntM3}',
             },
             {
-              label: '回风',
+              label: '回风(m³/min)',
               value: '${faceRetM3}',
             },
             {
-              label: '需风量',
+              label: '需风量(m³/min)',
               value: '${facePlanM3}',
             },
           ],
@@ -432,8 +414,8 @@ export const testConfigVent: Config[] = [
       to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=sys_surface_caimei&deviceid=${deviceID}',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '版',
       position: 'top:350px;right:0;',
     },
   },
@@ -478,7 +460,7 @@ export const testConfigVent: Config[] = [
               label: '报警',
               value: '${alarm.val}',
               info: '',
-              color: 'blue',
+              color: 'red',
             },
             {
               label: '重大风险预警',
@@ -516,8 +498,8 @@ export const testConfigVent: Config[] = [
       to: '/monitorChannel/monitor-alarm-home',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '版',
       position: 'top:640px;right:0;',
     },
   },
@@ -1455,20 +1437,20 @@ export const testConfigVentRealtime: Config[] = [
         direction: 'column',
         items: [
           {
-            name: 'board',
-            basis: '33%',
+            name: 'qh_curve',
+            basis: '72%',
           },
           {
-            name: 'qh_curve',
-            basis: '67%',
+            name: 'board',
+            basis: '28%',
           },
         ],
       },
       board: [
         {
-          type: 'A',
-          readFrom: 'readData',
-          layout: 'val-top',
+          type: 'D',
+          readFrom: '',
+          layout: 'label-top',
           items: [
             {
               label: '风量(m³/min)',
@@ -1486,6 +1468,10 @@ export const testConfigVentRealtime: Config[] = [
                 '0': '${Fan2FanPre}',
               },
             },
+            {
+              label: '漏风率(%)',
+              value: '${leakage}',
+            },
           ],
         },
       ],
@@ -1505,8 +1491,8 @@ export const testConfigVentRealtime: Config[] = [
       to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=fanmain',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '版',
       position: 'top:60px;left:0;',
     },
   },
@@ -1523,7 +1509,7 @@ export const testConfigVentRealtime: Config[] = [
           value: '${strinstallpos}',
         },
         slot: {
-          show: true,
+          show: false,
           value: '运行风机:${readData.Fan1StartStatus}',
           trans: {
             '1': '一号',
@@ -1568,8 +1554,8 @@ export const testConfigVentRealtime: Config[] = [
       to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=fanlocal',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '版',
       position: 'top:350px;left:0;',
     },
   },
@@ -1599,7 +1585,7 @@ export const testConfigVentRealtime: Config[] = [
         direction: 'row',
         items: [
           {
-            name: 'complex_list',
+            name: 'device_alarm',
             basis: '100%',
           },
         ],
@@ -1609,40 +1595,18 @@ export const testConfigVentRealtime: Config[] = [
       chart: [],
       table: [],
       gallery: [],
-      complex_list: [
+      complex_list: [],
+      gallery_list: [],
+      preset: [
         {
-          type: 'F',
-          readFrom: 'device_arr',
-          mapFromData: true,
-          items: [
-            {
-              title: '${name}',
-              contents: [
-                {
-                  label: '总数',
-                  value: '${totalcount}',
-                },
-                {
-                  label: '报警',
-                  value: '${count}',
-                  color: 'red',
-                },
-                {
-                  label: '断开',
-                  value: '${netstatus}',
-                },
-              ],
-            },
-          ],
+          readFrom: 'device',
         },
       ],
-      gallery_list: [],
-      preset: [],
       to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=gate_xinJianFuXieJin',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '原版',
       position: 'top:640px;left:0;',
     },
   },
@@ -1704,7 +1668,7 @@ export const testConfigVentRealtime: Config[] = [
     },
     showStyle: {
       size: 'width:1000px;height:280px;',
-      version: '版',
+      version: '版',
       position: 'top:640px;left:460px;',
     },
   },
@@ -1735,11 +1699,11 @@ export const testConfigVentRealtime: Config[] = [
         items: [
           {
             name: 'chart',
-            basis: '60%',
+            basis: '67%',
           },
           {
             name: 'board',
-            basis: '40%',
+            basis: '33%',
           },
         ],
       },
@@ -1770,7 +1734,7 @@ export const testConfigVentRealtime: Config[] = [
       table: [],
       chart: [
         {
-          type: 'pie',
+          type: 'pie_drag',
           readFrom: '',
           legend: { show: false },
           xAxis: [{ show: false }],
@@ -1783,8 +1747,8 @@ export const testConfigVentRealtime: Config[] = [
       to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=sys_majorpath',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '版',
       position: 'top:60px;right:0;',
     },
   },
@@ -1830,15 +1794,15 @@ export const testConfigVentRealtime: Config[] = [
           layout: 'label-top',
           items: [
             {
-              label: '进风',
+              label: '进风(m³/min)',
               value: '${jin}',
             },
             {
-              label: '回风',
+              label: '回风(m³/min)',
               value: '${hui}',
             },
             // {
-            //   label: '需风量',
+            //   label: '需风量(m³/min)',
             //   value: '${xufengliang}',
             // },
           ],
@@ -1866,8 +1830,8 @@ export const testConfigVentRealtime: Config[] = [
       to: '/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=sys_surface_caimei&deviceid=${deviceID}',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '版',
       position: 'top:350px;right:0;',
     },
   },
@@ -1912,7 +1876,7 @@ export const testConfigVentRealtime: Config[] = [
               label: '报警',
               value: '${alarm.val}',
               info: '',
-              color: 'blue',
+              color: 'red',
             },
             {
               label: '重大风险预警',
@@ -1950,8 +1914,8 @@ export const testConfigVentRealtime: Config[] = [
       to: '/monitorChannel/monitor-alarm-home',
     },
     showStyle: {
-      size: 'width:450px;height:280px;',
-      version: '版',
+      size: 'width:470px;height:280px;',
+      version: '版',
       position: 'top:640px;right:0;',
     },
   },
@@ -2026,8 +1990,8 @@ export const testConfigVentRealtime: Config[] = [
 //     preset: [],
 //   },
 //   showStyle: {
-//     size: 'width:450px;height:280px;',
-//     version: '版',
+//     size: 'width:470px;height:280px;',
+//     version: '版',
 //     position: 'top:60px;left:0;',
 //   },
 // },