瀏覽代碼

[Feat 0000] 布尔台通风、粉尘、火灾首页的配置、页面更新

houzekong 4 天之前
父節點
當前提交
9261448677

+ 30 - 30
src/views/vent/home/configurable/configurable.data.ts

@@ -1,11 +1,11 @@
 import { Config } from '../../deviceManager/configurationTable/types';
-import { BDdustMock, BDfireMock } from './configurable.data.bd';
+// import { BDdustMock, BDfireMock } from './configurable.data.bd';
 
 export const testConfigVent: Config[] = [
   {
     deviceType: 'fanmain',
     moduleName: '主通风机系统',
-    pageType: '',
+    pageType: 'vent',
     moduleData: {
       header: {
         show: true,
@@ -79,7 +79,7 @@ export const testConfigVent: Config[] = [
   {
     deviceType: 'fanlocal',
     moduleName: '局部通风机系统',
-    pageType: '',
+    pageType: 'vent',
     moduleData: {
       header: {
         show: true,
@@ -153,7 +153,7 @@ export const testConfigVent: Config[] = [
   {
     deviceType: '',
     moduleName: '通风设施远程控制',
-    pageType: '',
+    pageType: 'vent',
     moduleData: {
       header: {
         show: false,
@@ -194,7 +194,7 @@ export const testConfigVent: Config[] = [
   {
     deviceType: 'sys_wind',
     moduleName: '风量监测',
-    pageType: '',
+    pageType: 'vent',
     moduleData: {
       header: {
         show: false,
@@ -255,7 +255,7 @@ export const testConfigVent: Config[] = [
   {
     deviceType: 'sys_majorpath',
     moduleName: '关键通风路线',
-    pageType: '',
+    pageType: 'vent',
     moduleData: {
       header: {
         show: true,
@@ -334,7 +334,7 @@ export const testConfigVent: Config[] = [
   {
     deviceType: 'sys_surface_caimei',
     moduleName: '工作面智能监控',
-    pageType: '',
+    pageType: 'vent',
     moduleData: {
       header: {
         show: true,
@@ -416,7 +416,7 @@ export const testConfigVent: Config[] = [
   {
     deviceType: 'warn',
     moduleName: '预警监测',
-    pageType: '',
+    pageType: 'vent',
     moduleData: {
       header: {
         show: true,
@@ -502,7 +502,7 @@ export const testConfigDust: Config[] = [
   {
     deviceType: '',
     moduleName: '工作面风险监测',
-    pageType: '',
+    pageType: 'dust',
     moduleData: {
       header: {
         show: false,
@@ -611,7 +611,7 @@ export const testConfigDust: Config[] = [
         },
       ],
       preset: [],
-      mock: BDdustMock,
+      // mock: BDdustMock,
     },
     showStyle: {
       size: 'width:450px;height:860px;',
@@ -622,7 +622,7 @@ export const testConfigDust: Config[] = [
   {
     deviceType: 'dustDustGraph',
     moduleName: '综放工作面粉尘浓度',
-    pageType: '',
+    pageType: 'dust',
     moduleData: {
       header: {
         show: true,
@@ -674,7 +674,7 @@ export const testConfigDust: Config[] = [
       list: [],
       complex_list: [],
       preset: [],
-      mock: BDdustMock,
+      // mock: BDdustMock,
     },
     showStyle: {
       size: 'width:1000px;height:280px;',
@@ -685,7 +685,7 @@ export const testConfigDust: Config[] = [
   {
     deviceType: '',
     moduleName: '智能喷雾降尘装置',
-    pageType: '',
+    pageType: 'dust',
     moduleData: {
       header: {
         show: false,
@@ -749,7 +749,7 @@ export const testConfigDust: Config[] = [
       complex_list: [],
       preset: [],
       to: 'http://10.248.210.154:8801',
-      mock: BDdustMock,
+      // mock: BDdustMock,
     },
     showStyle: {
       size: 'width:450px;height:280px;',
@@ -760,7 +760,7 @@ export const testConfigDust: Config[] = [
   {
     deviceType: '',
     moduleName: '隔爆设施管理台账',
-    pageType: '',
+    pageType: 'dust',
     moduleData: {
       header: {
         show: false,
@@ -815,7 +815,7 @@ export const testConfigDust: Config[] = [
       list: [],
       complex_list: [],
       preset: [],
-      mock: BDdustMock,
+      // mock: BDdustMock,
     },
     showStyle: {
       size: 'width:450px;height:280px;',
@@ -826,7 +826,7 @@ export const testConfigDust: Config[] = [
   {
     deviceType: 'statics',
     moduleName: '粉尘静态指标',
-    pageType: '',
+    pageType: 'dust',
     moduleData: {
       header: {
         show: false,
@@ -882,7 +882,7 @@ export const testConfigDust: Config[] = [
       list: [],
       complex_list: [],
       preset: [],
-      mock: BDdustMock,
+      // mock: BDdustMock,
     },
     showStyle: {
       size: 'width:450px;height:280px;',
@@ -896,7 +896,7 @@ export const testConfigFire: Config[] = [
   {
     deviceType: 'fireManageInfo',
     moduleName: '重点区域风险监测',
-    pageType: '',
+    pageType: 'fire',
     moduleData: {
       header: {
         show: false,
@@ -977,7 +977,7 @@ export const testConfigFire: Config[] = [
         },
       ],
       preset: [],
-      mock: BDfireMock,
+      // mock: BDfireMock,
     },
     showStyle: {
       size: 'width:450px;height:425px;',
@@ -988,7 +988,7 @@ export const testConfigFire: Config[] = [
   {
     deviceType: 'pdArray',
     moduleName: '带式输送机防灭火监控系统',
-    pageType: '',
+    pageType: 'fire',
     moduleData: {
       header: {
         show: true,
@@ -1051,7 +1051,7 @@ export const testConfigFire: Config[] = [
           series: [
             {
               label: '${strinstallpos}',
-              readFrom: 'fibreTemperatureArr',
+              readFrom: 'fibreTemperature',
               xprop: 'pos',
               yprop: 'value',
             },
@@ -1064,7 +1064,7 @@ export const testConfigFire: Config[] = [
       list: [],
       complex_list: [],
       preset: [],
-      mock: BDfireMock,
+      // mock: BDfireMock,
     },
     showStyle: {
       size: 'width:450px;height:425px;',
@@ -1075,7 +1075,7 @@ export const testConfigFire: Config[] = [
   {
     deviceType: 'sgGxObj',
     moduleName: '工作面光纤监测',
-    pageType: '',
+    pageType: 'fire',
     moduleData: {
       header: {
         show: true,
@@ -1114,7 +1114,7 @@ export const testConfigFire: Config[] = [
           series: [
             {
               label: '${strinstallpos}',
-              readFrom: 'fibreTemperatureArr',
+              readFrom: 'fibreTemperature',
               xprop: 'pos',
               yprop: 'value',
             },
@@ -1127,7 +1127,7 @@ export const testConfigFire: Config[] = [
       list: [],
       complex_list: [],
       preset: [],
-      mock: BDfireMock,
+      // mock: BDfireMock,
     },
     showStyle: {
       size: 'width:1000px;height:280px;',
@@ -1138,7 +1138,7 @@ export const testConfigFire: Config[] = [
   {
     deviceType: 'sgGxObj',
     moduleName: '工作面束管监测',
-    pageType: '',
+    pageType: 'fire',
     moduleData: {
       header: {
         show: true,
@@ -1319,7 +1319,7 @@ export const testConfigFire: Config[] = [
           readFrom: '',
         },
       ],
-      mock: BDfireMock,
+      // mock: BDfireMock,
     },
     showStyle: {
       size: 'width:450px;height:570px;',
@@ -1330,7 +1330,7 @@ export const testConfigFire: Config[] = [
   {
     deviceType: 'aqjkArray',
     moduleName: '安全监控系统',
-    pageType: '',
+    pageType: 'fire',
     moduleData: {
       header: {
         show: false,
@@ -1389,7 +1389,7 @@ export const testConfigFire: Config[] = [
       list: [],
       complex_list: [],
       preset: [],
-      mock: BDfireMock,
+      // mock: BDfireMock,
     },
     showStyle: {
       size: 'width:450px;height:280px;',

+ 3 - 1
src/views/vent/home/configurable/dust.vue

@@ -75,6 +75,7 @@
   // import { useRoute } from 'vue-router';
   import VentModal from '/@/components/vent/micro/ventModal.vue';
   import { getHomeData } from './configurable.api';
+  import { BDDustMock } from './mock';
   // import { testConfigDust } from './configurable.data';
 
   const { configs, isOriginal, isCommon, fetchConfigs } = useInitConfigs();
@@ -86,7 +87,8 @@
       // configs.value = testConfigDust;
       updateEnhancedConfigs(configs.value);
 
-      getHomeData({}).then(updateData);
+      Promise.resolve(BDDustMock).then(updateData);
+      // getHomeData({}).then(updateData);
     });
     setInterval(() => {
       getHomeData({}).then(updateData);

+ 3 - 1
src/views/vent/home/configurable/fire.vue

@@ -75,6 +75,7 @@
   // import { useRoute } from 'vue-router';
   import VentModal from '/@/components/vent/micro/ventModal.vue';
   import { getHomeData } from './configurable.api';
+  import { BDFireMock } from './mock';
   // import { testConfigFire } from './configurable.data';
 
   const { configs, isOriginal, isCommon, fetchConfigs } = useInitConfigs();
@@ -86,7 +87,8 @@
       // configs.value = testConfigFire;
       updateEnhancedConfigs(configs.value);
 
-      getHomeData({}).then(updateData);
+      Promise.resolve(BDFireMock).then(updateData);
+      // getHomeData({}).then(updateData);
     });
     setInterval(() => {
       getHomeData({}).then(updateData);

文件差異過大導致無法顯示
+ 0 - 1
src/views/vent/home/configurable/mock.ts


部分文件因文件數量過多而無法顯示