kongwenhao 8 kuukautta sitten
vanhempi
commit
4e34825747

+ 11 - 0
frontend/src/apis/other.ts

@@ -0,0 +1,11 @@
+import { GET,POST  } from "@/utils/http";
+// import type { UserRequest } from "@/apis/types/user";
+
+
+// 模板相关
+export async function getCompanyTemplatesApi(){
+    return GET('/api/ai_image/auto_photo/get_company_templates')
+}
+
+
+

+ 4 - 0
frontend/src/apis/types/other.ts

@@ -0,0 +1,4 @@
+// export interface UserRequest {
+//     username: string;
+//     password: string;
+// }

+ 5 - 0
frontend/src/utils/ipc.ts

@@ -32,7 +32,12 @@ const icpList = {
     takePhoto:{
         getPhotoRecords: 'controller.takephoto.getPhotoRecords',
         delectGoodsArts: 'controller.takephoto.delectGoodsArts'
+    },
+    generate:{
+        generatePhotoDetail: 'controller.generate.generatePhotoDetail',
     }
+    
+
 }
 
 

+ 4 - 4
frontend/src/views/Photography/seniorDetail.vue

@@ -102,7 +102,7 @@
     </div>
 
 
-    <loading-dialog v-model="dialogVisible" :progress="progress" :message="message" :show-button="showButton"
+    <loading-dialog v-model="loadingDialogVisible" :progress="progress" :message="message" :show-button="showButton"
       @button-click="handleComplete" />
   </div>
 
@@ -126,7 +126,7 @@ const checkSimilar = ref(false) // 同款检验
 const specificPage = ref('')  // 可指定页面独修改
 
 
-const dialogVisible = ref(false)
+const loadingDialogVisible = ref(false)
 const progress = ref(0)
 const message = ref('正在为您处理,请稍后')
 const showButton = ref(true)
@@ -145,7 +145,7 @@ const saveConfig = () => {
 }
 
 const startProcess = () => {
-  dialogVisible.value = true
+  loadingDialogVisible.value = true
   progress.value = 0
   showButton.value = true
   // 模拟进度更新
@@ -161,7 +161,7 @@ const startProcess = () => {
 }
 
 const handleComplete = () => {
-  dialogVisible.value = false
+  loadingDialogVisible.value = false
   // 这里可以添加打开目录的逻辑
   console.log('打开目录')
 }