Michael Wang 3 rokov pred
rodič
commit
19b85630cb

+ 3 - 2
src/features/projectDataManagement/ProjectDataManagement.vue

@@ -31,6 +31,7 @@
           <a-form-item label="下载模板">
           <a-form-item label="下载模板">
             <a-button @click="downloadTpl">下载模板</a-button>
             <a-button @click="downloadTpl">下载模板</a-button>
           </a-form-item>
           </a-form-item>
+          <a-button @click="handleImport">保存</a-button>
         </a-form>
         </a-form>
       </div>
       </div>
       <div class="tw-mt-4">
       <div class="tw-mt-4">
@@ -54,7 +55,7 @@ import { onMounted, computed } from "vue-demi";
 import { useRoute } from "vue-router";
 import { useRoute } from "vue-router";
 
 
 const store = useMainStore();
 const store = useMainStore();
-store.currentLocation = "基础管理 / 项目列表";
+store.currentLocation = "基础管理 / 数据管理";
 
 
 let rootOrgId = $ref(undefined as unknown as number);
 let rootOrgId = $ref(undefined as unknown as number);
 
 
@@ -94,7 +95,7 @@ async function handleImport() {
     return;
     return;
   }
   }
 
 
-  await importProjectDataSource(rootOrgId, fileToImport);
+  await importProjectDataSource(projectId, fileToImport);
   message.success({ content: "导入成功" });
   message.success({ content: "导入成功" });
 }
 }