From 87958d6d33603fa673cb7c8f5caf2394689959bf Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期四, 21 十一月 2024 11:00:43 +0800
Subject: [PATCH] 1. 图片选择组件移动到全局组件文件夹 2. 涉及到使用图片选择组件添加图片区域loading 3. 无用页面删除

---
 src/views/fysp/check/components/CompLedgerPhoto.vue |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/src/views/fysp/check/components/CompLedgerPhoto.vue b/src/views/fysp/check/components/CompLedgerPhoto.vue
index c42b372..79f5d31 100644
--- a/src/views/fysp/check/components/CompLedgerPhoto.vue
+++ b/src/views/fysp/check/components/CompLedgerPhoto.vue
@@ -1,5 +1,6 @@
 <template>
   <FYImageSelectDialog
+    v-loading="loading"
     title="鍙拌处鍥剧墖"
     :typeList="typeList"
     :typeImgMap="typeImgMap"
@@ -11,6 +12,7 @@
 import userApi from '@/api/fysp/userApi.js';
 import { svToTz } from '@/enum/scene';
 import { $fytz } from '@/api/index';
+const loading = ref(true)
 const props = defineProps({
   // 灞曠ず妯″紡
   mode: {
@@ -26,6 +28,7 @@
 const typeImgMap = ref(new Map());
 function getList() {
   userApi.getTzId(props.subtask.sceneId).then((res) => {
+    loading.value = true
     let tzUserId = res.tzUserId;
 
     problemApiFytz
@@ -61,7 +64,7 @@
             typeImgMap.value.get(type.typeId).push(item);
           });
         }
-      });
+      }).finally(() => loading.value = false);
   });
 }
 function getMonth() {

--
Gitblit v1.9.3