Parcourir la source

清除数据修改

duy il y a 2 ans
Parent
commit
5009a9d075
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/views/data-fill/collapse-form/index.vue

+ 4 - 1
src/views/data-fill/collapse-form/index.vue

@@ -642,7 +642,10 @@ const setTableFormMenu = (info) => {
     newArr.push({ label: '关联试验数据', key: 'test' })
     newArr.push({ label: '关联试验文件', key: 'file' })
     newArr.push({ label: '公式参数', key: 'formula' })
-    newArr.push({ label: '清除数据', key: 'clear' })
+    if (isStatus.value === 1 || isStatus.value === '' || isStatus.value === null || isStatus.value === 2) {
+        newArr.push({ label: '清除数据', key: 'clear' })
+    }
+    
     tableFormMenu.value = newArr
 }