Bläddra i källkod

[Wip 0000] 三道沟均压开发

houzekong 4 dagar sedan
förälder
incheckning
1212b9fbba

+ 41 - 7
src/views/vent/monitorManager/balancePressMonitor/components/balancePressHomeBD.vue

@@ -17,8 +17,8 @@
             <div class="vent-flex-row-between auto-control mt-10px mb-10px">
               <div class="title">调节类型:</div>
               <a-radio-group :value="avePressSetting.controlType" name="radioGroup" @change="changeIsAutoControl">
-                <a-radio value="1">氧气</a-radio>
-                <a-radio value="2">压差</a-radio>
+                <a-radio value="o2">氧气</a-radio>
+                <a-radio value="pressure">压差</a-radio>
               </a-radio-group>
             </div>
             <div class="input-box">
@@ -97,13 +97,13 @@
     </div>
     <PasswordModal :modal-is-show="modalVisible" modal-title="提交" @handle-ok="handleResolve" @handle-cancel="handleReject" />
     <UpdatePassword @register="updatePwdRegister" @submit="handleChangePassword" />
-    <BasicModal @register="warnRegister1">
-      {{ warnModalText1 }}
-    </BasicModal>
-    <BasicModal @register="warnRegister2">
+    <BasicModal title="风门状态监测" :bodyStyle="{ height: '50px' }" style="top: 20px" :show-ok-btn="false" @register="warnRegister2">
       {{ warnModalText2 }}
     </BasicModal>
-    <BasicModal @register="warnRegister3">
+    <BasicModal title="压差状态监测" :bodyStyle="{ height: '50px' }" centered ok-text="下发联动控制指令" @register="warnRegister1">
+      {{ warnModalText1 }}
+    </BasicModal>
+    <BasicModal title="局扇状态监测" :bodyStyle="{ height: '50px' }" style="top: 420px" :show-ok-btn="false" @register="warnRegister3">
       {{ warnModalText3 }}
     </BasicModal>
   </a-spin>
@@ -308,6 +308,40 @@
         }
       }
     });
+
+    // setInterval(() => {
+    //   const data = [
+    //     {
+    //       cmd: 'topic',
+    //       msgTxt: `{"info":"局扇-我是局扇啊!"}`,
+    //     },
+    //     {
+    //       cmd: 'topic',
+    //       msgTxt: `{"info":"压差-我是压差啊!"}`,
+    //     },
+    //     {
+    //       cmd: 'topic',
+    //       msgTxt: `{"info":"风门-我是风门啊!"}`,
+    //     },
+    //   ][(Math.random() * 3) | 0];
+    //   if (data.cmd === 'topic') {
+    //     if (data.msgTxt) {
+    //       const { info = '' } = JSON.parse(data.msgTxt);
+    //       if (info.includes('局扇')) {
+    //         warnModalText3.value = info;
+    //         warnModal3.openModal();
+    //       }
+    //       if (info.includes('风门')) {
+    //         warnModalText2.value = info;
+    //         warnModal2.openModal();
+    //       }
+    //       if (info.includes('压差')) {
+    //         warnModalText1.value = info;
+    //         warnModal1.openModal();
+    //       }
+    //     }
+    //   }
+    // }, 5000);
   }
 
   const settingFormDisabled = ref(true);