فهرست منبع

右键含水率按钮增加

duy 2 سال پیش
والد
کامیت
99134438f9
1فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 8 1
      src/views/data-fill/collapse-form/index.vue

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

@@ -650,10 +650,15 @@ const setTableFormMenu = (info) => {
     newArr.push({ label: '关联试验数据', key: 'test' })
     newArr.push({ label: '关联试验数据', key: 'test' })
     newArr.push({ label: '关联试验文件', key: 'file' })
     newArr.push({ label: '关联试验文件', key: 'file' })
     newArr.push({ label: '公式参数', key: 'formula' })
     newArr.push({ label: '公式参数', key: 'formula' })
+
     if (isStatus.value !== 3) {
     if (isStatus.value !== 3) {
         newArr.push({ label: '清除数据', key: 'clear' })
         newArr.push({ label: '清除数据', key: 'clear' })
     }
     }
-    
+    console.log(treenodeDataInfo.value, 'treenodeDataInfo')
+    const { isConcrete } = treenodeDataInfo.value
+    if (isConcrete === 1) {//等于1是混凝土节点,有含水率功能
+        newArr.push({ label: '清除数据', key: 'water' })
+    }
     tableFormMenu.value = newArr
     tableFormMenu.value = newArr
 }
 }
 
 
@@ -726,6 +731,8 @@ const handleMenuSelect = async ({ key }) => {
         })
         })
 
 
 
 
+    } else if (key === 'water') {
+        console.log('含水率')
     }
     }
 }
 }