From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化

---
 admin/src/views/task/visSubDetail.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/admin/src/views/task/visSubDetail.vue b/admin/src/views/task/visSubDetail.vue
index cb47f45..db8dd9b 100644
--- a/admin/src/views/task/visSubDetail.vue
+++ b/admin/src/views/task/visSubDetail.vue
@@ -1,5 +1,5 @@
 <template>
-  <GlobalWindow :title="title" :visible.sync="isShowModal" @confirm="confirm">
+  <GlobalWindow :title="title" :visible.sync="isShowModal" @close="close" @confirm="confirm">
     <div class="modal_wrap">
       <div class="modal_content">
         <div class="header">
@@ -78,7 +78,7 @@
             <el-table-column label="鍏徃鍚嶇О" prop="companyName" min-width="120" />
             <el-table-column label="浜鸿劯鐓х墖" prop="" min-width="80">
               <template slot-scope="{ row }">
-                <el-image :src="row.prefix + row.faceImg" :preview-src-list="[row.prefix + row.faceImg]">
+                <el-image v-if="row.prefix && row.faceImg" :src="row.prefix + row.faceImg" :preview-src-list="[row.prefix + row.faceImg]">
                 </el-image>
               </template>
             </el-table-column>
@@ -115,7 +115,7 @@
                   <div class="company">
                     {{ item.memberName }}
                     <div style="display: inline" v-if="item.statusInfo != null && item.statusInfo != ''">
-                      锛�<span class="status" :class="{ padding: item.statusInfo == '澶勭悊涓�' || item.status == '1' }">{{
+                      锛�<span :class="{ padding: item.statusInfo == '澶勭悊涓�' || item.status == '1' }">{{
                         item.statusInfo || ""
                         }}</span>锛�
                     </div>
@@ -130,7 +130,7 @@
             " class="remark">
               {{ item.checkInfo || "" }}
             </div>
-            <div v-if="item.approveType == 1 || item.approveType == 0" class="childList">
+            <div v-if="item.approveType == 1" class="childList">
               <div class="m_content company" v-for="item1 in item.approveList" :key="item1.id">
                 <img v-if="item1.faceImg != null && item1.faceImg != ''" :src="item1.faceImg" class="avatar" alt="" />
                 <img v-if="item1.faceImg == null || item1.faceImg == ''" src="@/assets/avatar/man.png" class="avatar"
@@ -154,7 +154,7 @@
         info.approveDateVO.canBeApproved != null &&
         info.approveDateVO.canBeApproved == 1
       ">鎷掔粷</el-button>
-      <el-button @click="isShowModal = false">杩斿洖</el-button>
+      <el-button @click="close">杩斿洖</el-button>
     </template>
     <!--  鍚屾剰/鎷掔粷 -->
     <el-dialog append-to-body :title="param.status == 2 ? '鍚屾剰' : '鎷掔粷'" :visible.sync="isShowAppr" width="480px">
@@ -260,6 +260,8 @@
                 this.subLoading = false
                 this.$tip.apiSuccess('澶勭悊鎴愬姛')
                 this.getDetail()
+                this.$emit('success')
+                this.$emit('close')
                 this.isShowAppr = false
               })
               .finally(() => {
@@ -268,6 +270,10 @@
           })
       })
     },
+    close(){
+      this.isShowModal = false
+      this.$emit('close')
+    },
     getDetail() {
       const { id, type } = this
       console.log(id, type)

--
Gitblit v1.9.3