Просмотр исходного кода

[Fix 0000] 修复了均压页面自动调节某些情况下无法正确的调出密码确认框以及编辑后编辑模式未回退的问题

houzekong 3 недель назад
Родитель
Сommit
8e685e6145

+ 6 - 1
src/views/vent/monitorManager/balancePressMonitor/components/balancePressHomeBD.vue

@@ -71,7 +71,7 @@
         :visible="true"
       />
     </div>
-    <PasswordModal :modal-is-show="modalVisible" modal-title="提交" @handle-ok="handleResolve" />
+    <PasswordModal :modal-is-show="modalVisible" modal-title="提交" @handle-ok="handleResolve" @handle-cancel="handleReject" />
     <UpdatePassword @register="updatePwdRegister" @submit="handleChangePassword" />
   </a-spin>
 </template>
@@ -226,6 +226,7 @@
     resolver = (password) => {
       settingControl({ password }, avePressSetting.value).finally(() => {
         modalVisible.value = false;
+        settingFormDisabled.value = true;
       });
     };
   }
@@ -235,6 +236,10 @@
     if (resolver) resolver(password);
     resolver = null;
   }
+  function handleReject() {
+    modalVisible.value = false;
+    resolver = null;
+  }
 
   // 初始化 WebSocket
   function initWebSocket() {