Browse Source

feat: 碳源投加 bug修改

sunxiao 1 month ago
parent
commit
1ee38f3099
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/control/MedicinalView.vue

+ 3 - 2
src/views/control/MedicinalView.vue

@@ -161,6 +161,7 @@ const handleMedicateAmount = () => {
       isVisibleUpdateInfo.value = true;
       message.warning("有新投放方案, 请查看")
     } else {
+      updateNum.value = null;
       isVisibleUpdateInfo.value = false;
     }
     return;
@@ -178,7 +179,7 @@ const handleMedicateAmount = () => {
   if ( type === 'onePool' && r1 != lastNum ) {
     updateNum.value = r1;
     isVisibleUpdateInfo.value = true;
-    r1 !== lastNum && message.warning("有新的投放方案, 请查看");
+    message.warning("有新的投放方案, 请查看");
   }
 
   if ( type === 'twoPool' && r2 != lastNum ) {
@@ -254,7 +255,7 @@ onMounted(async () => {
     Object.keys(dataSourceParams.value).forEach(key => {
       const item = dataSourceParams.value[key];
       if ( !Object.keys(item).length ) {
-        dataSourceParams.value[key] = params
+        dataSourceParams.value[key] = { ...params };
       }
     })
   })