kongwenhao 8 ماه پیش
والد
کامیت
4e34825747
4فایلهای تغییر یافته به همراه24 افزوده شده و 4 حذف شده
  1. 11 0
      frontend/src/apis/other.ts
  2. 4 0
      frontend/src/apis/types/other.ts
  3. 5 0
      frontend/src/utils/ipc.ts
  4. 4 4
      frontend/src/views/Photography/seniorDetail.vue

+ 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:{
     takePhoto:{
         getPhotoRecords: 'controller.takephoto.getPhotoRecords',
         getPhotoRecords: 'controller.takephoto.getPhotoRecords',
         delectGoodsArts: 'controller.takephoto.delectGoodsArts'
         delectGoodsArts: 'controller.takephoto.delectGoodsArts'
+    },
+    generate:{
+        generatePhotoDetail: 'controller.generate.generatePhotoDetail',
     }
     }
+    
+
 }
 }
 
 
 
 

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

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