ZaiZai 3 months ago
parent
commit
ff79f3a61f
1 changed files with 11 additions and 1 deletions
  1. 11 1
      src/views/project/list/edit-formula.vue

+ 11 - 1
src/views/project/list/edit-formula.vue

@@ -357,7 +357,13 @@ const setDeviationRange = () => {
         window?.$message.warning('请先关闭重置函数')
         return
     }
-    deviationRangeShow.value = !deviationRangeShow.value
+    const val = !deviationRangeShow.value
+    deviationRangeShow.value = val
+    if (val) {
+        curRangeFocusIndex.value = 1
+    } else {
+        curRangeFocusIndex.value = 0
+    }
 }
 
 //获取顶部菜单数据
@@ -850,6 +856,10 @@ const drawerClose = () => {
         //重置函数
         isResetFun.value = false
         isScrollBar.value = true
+    } else if (deviationRangeShow.value) {
+        //允许偏差值范围
+        //isResetFun.value = false
+        //isScrollBar.value = true
     } else {
         isShow.value = false
         isResetFun.value = false