Bladeren bron

上报后菜单功能调整

duy 1 maand geleden
bovenliggende
commit
b005dc839e
1 gewijzigde bestanden met toevoegingen van 18 en 0 verwijderingen
  1. 18 0
      src/views/data-fill/collapse-form/index.vue

+ 18 - 0
src/views/data-fill/collapse-form/index.vue

@@ -980,6 +980,7 @@ watch(
     { deep: true },
 )
 
+
 //监听变量值
 watch(
     () => [
@@ -1022,6 +1023,17 @@ watch(
     },
 )
 
+//深度监听数据
+watch(
+    () => isStatus.value,
+
+    (status) => {
+          setTableFormMenu(useAppState.projectInfo)
+    },
+    { deep: true },
+)
+
+
 //渲染完成
 onMounted(() => {
      setFormDataNum(props.datas)
@@ -1147,6 +1159,12 @@ const isOpen = infos['isOpenRandomNumber'] ?? 0
     // newArr.push({ label: '取消公式引用', key: 'cancelGs' })
     // newArr.push({ label: '恢复公式引用', key: 'addGs' })
     tableFormMenu.value = newArr
+
+    if (isStatus.value === 3) {
+       tableFormMenu.value = [{
+        label: '关联试验文件', key: 'file',
+       }]
+    }
     
 }