Browse Source

[Mod 0000] 新增乌伦木兰主风机工况曲线

hongrunxia 1 week ago
parent
commit
033551033b

+ 8 - 6
src/views/vent/monitorManager/mainFanMonitor/index.vue

@@ -245,9 +245,12 @@
     }}</div>
 
     <div v-if="hasPermission('btn:show')" class="top-box control-group">
-      <template v-for="(item, index) in modalTypeArr.centerBtnArr" :key="index">
-        <div v-if="hasPermission(item.permission)" class="button-box" @click="showModal(item)">{{ item.value }}</div>
-      </template>
+      <div style="width: 100%; display: flex; justify-content: center">
+        <template v-for="(item, index) in modalTypeArr.centerBtnArr" :key="index">
+          <div v-if="hasPermission(item.permission)" class="button-box" @click="showModal(item)">{{ item.value }}</div>
+        </template>
+      </div>
+
       <!-- <div class="button-box" v-for="(item, index) in modalTypeArr.centerBtnArr" :key="index" @click="showModal(item)">{{ item.value }}</div> -->
     </div>
 
@@ -1704,9 +1707,9 @@
   .top-box {
     display: flex !important;
     align-items: center !important;
-    justify-content: space-around !important;
+    // justify-content: space-around !important;
     position: absolute !important;
-    width: 1035px !important;
+    width: 1165px !important;
     height: 75px !important;
     left: 50% !important;
     top: 85px !important;
@@ -2046,7 +2049,6 @@
       width: 334px !important;
     }
   }
-
   .scene-box .bottom-tabs-box {
     height: 280px;
 

+ 68 - 4
src/views/vent/monitorManager/mainFanMonitor/main.data.ts

@@ -812,8 +812,8 @@ export const assistanceData = {
 
 export const setOption = (deviceType?) => {
   let yMax = 4500;
-  const { sysOrgCode } = useGlobSetting();
-  // const sysOrgCode = 'sdmtjtcctrk';
+  // const { sysOrgCode } = useGlobSetting();
+  const sysOrgCode = 'sdmtjtwlmlmk';
   if (sysOrgCode == 'sdmtjtdltmk') {
     // 这里判断白家渠还是五当沟
     if (deviceType == 'fanmain_bjq') {
@@ -841,6 +841,8 @@ export const setOption = (deviceType?) => {
     yMax = 3000;
   } else if (sysOrgCode == 'sdmtjtcctrk') {
     yMax = 600;
+  } else if (sysOrgCode == 'sdmtjtwlmlmk') {
+    yMax = 4000;
   } else {
     yMax = 4500;
   }
@@ -1151,8 +1153,8 @@ export const initData1 = () => {
 
 // 大柳塔武当沟
 export const initData = (deviceType?) => {
-  const { sysOrgCode } = useGlobSetting();
-  // const sysOrgCode = 'sdmtjtcctrk';
+  // const { sysOrgCode } = useGlobSetting();
+  const sysOrgCode = 'sdmtjtwlmlmk';
   if (sysOrgCode == 'sdmtjtdltmk') {
     return initDataDlt(deviceType);
   } else if (sysOrgCode == 'sdmtjtswmk') {
@@ -1171,10 +1173,72 @@ export const initData = (deviceType?) => {
     return initDataJj();
   } else if (sysOrgCode == 'sdmtjtcctrk') {
     return initDataCctr();
+  } else if (sysOrgCode == 'sdmtjtwlmlmk') {
+    return initDataWlml();
   } else {
     return initData1();
   }
 };
+// 乌兰木伦
+const initDataWlml = () => {
+  const data: any[] = [];
+  data.push({
+    angle: -3,
+    Hz: -3,
+    a: -15.607,
+    b: 6242.3,
+    c: -621571,
+    min: 198,
+    max: 220,
+  });
+  data.push({
+    angle: -2,
+    Hz: -2,
+    a: -8.3134,
+    b: 3178.9,
+    c: -300224,
+    min: 198,
+    max: 220,
+  });
+  data.push({
+    angle: 0,
+    Hz: 0,
+    a: -8.9632,
+    b: 3751.3,
+    c: -389068,
+    min: 198,
+    max: 220,
+  });
+  // data.push({
+  //   angle: 1,
+  //   Hz: 1,
+  //   a: -12.77,
+  //   b: 5415.9,
+  //   c: -571193,
+  //   min: 250,
+  //   max: 275,
+  // });
+  // data.push({
+  //   angle: 2,
+  //   Hz: 2,
+  //   a: -12.432,
+  //   b: 5635.5,
+  //   c: -635361,
+  //   min: 272,
+  //   max: 290,
+  // });
+  // data.push({
+  //   angle: 3,
+  //   Hz: 3,
+  //   a: -2.9424,
+  //   b: 1147.7,
+  //   c: -104620,
+  //   min: 290,
+  //   max: 310,
+  // });
+  return data;
+};
+
 // 石圪台
 const initDataCctr = () => {
   const data: any[] = [];