yangg 1 өдөр өмнө
parent
commit
442086bff6

+ 1 - 1
src/api/knowledge.js

@@ -543,7 +543,7 @@ export function projectListFromTemplate(data) {
     url: '/template/get_tech_report_locations',
     method: 'post',
     data,
-    timeout: 30000
+    timeout: 0
   })
 }
 

+ 2 - 5
src/views/project/ProjectInput.vue

@@ -615,7 +615,7 @@ export default {
     });
 
     // 获取并处理传递过来的模板位置数据
-    const projectDataStr = this.$route.query.projectData;
+   /*  const projectDataStr = this.$route.query.projectData;
     if (projectDataStr) {
       try {
         const projectData = JSON.parse(decodeURIComponent(projectDataStr));
@@ -634,7 +634,7 @@ export default {
       } catch (error) {
         console.error("解析项目数据失败:", error);
       }
-    }
+    } */
     this.init();
   },
 
@@ -1311,9 +1311,6 @@ export default {
         const res = await projectListFromTemplate(
           /* create_items */ {
             project_id: this.selectedProjectId,
-            /*   project_name: this.projectOptions.find(
-            (p) => p.id === this.selectedProjectId
-          ).name `成功创建 ${res.data.total} 个输入项目!`*/
           }
         );
 

+ 9 - 2
src/views/project/components/dataList.vue

@@ -2874,8 +2874,15 @@ export default {
         return
       }
 
+      // 使用去重后的数据
+      this.$router.push({
+            path: '/project/ProjectInput',
+            query: {
+              id: row.id
+            }
+          })
       // 获取绑定模版替换位置信息
-      searchTemplateList({ ids: row.documentIds.join(',') || 0 })
+    /*   searchTemplateList({ ids: row.documentIds.join(',') || 0 })
         .then(async(res) => {
           if (res.status === 200) {
             const templates = res.data
@@ -2997,7 +3004,7 @@ export default {
         .catch((error) => {
           console.error('获取模版位置信息失败:', error)
           this.$message.error('获取模版位置信失败')
-        })
+        }) */
     },
     /* 产品类别名称 */
     getCategoryTypeName(categoryId) {