Explorar el Código

隐藏表不展开表单

duy hace 1 año
padre
commit
33bf5e5f69
Se han modificado 1 ficheros con 18 adiciones y 3 borrados
  1. 18 3
      src/views/data-fill/collapse-form/index.vue

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

@@ -1209,7 +1209,7 @@ const fileListData = ref([])
 const uploadData = ref({})
 //上传附件
 const uploadClick = (items, index) => {
-    const { pkeyId, isTableForm, isTableRender } = items
+    const { pkeyId, isTableForm, isTableRender, isBussShow } = items
     const keyName = `item-${index}-${pkeyId}`
     if (pkeyId) {
         if (isTableForm) {
@@ -1224,8 +1224,23 @@ const uploadClick = (items, index) => {
             //获取文件列表
             getBussFileList(pkeyId)
         } else if (!isTableRender) {
-            CollapseChange(keyName)
-            window?.$message?.warning('请再次点击上传')
+            if (isBussShow !== 2) {
+                CollapseChange(keyName)
+                window?.$message?.warning('请再次点击上传')
+            } else {
+                console.log('隐藏表点击')
+                uploadModal.value = true
+                uploadData.value = {
+                    projectId: projectId.value,
+                    contractId: contract_id.value,
+                    classify: classifys.value,
+                    pkeyId: pkeyId,
+                    nodeId: treeId.value,
+                }
+                   //获取文件列表
+                getBussFileList(pkeyId)
+            }   
+           
         } else if (!isTableForm) {
             window?.$message?.warning('暂无表单数据')
         }