From 09da100729793848bc01b51f7b05ca3f1e7ec64f Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 20 六月 2024 14:05:35 +0800
Subject: [PATCH] 提交一把

---
 company/src/components/business/detailsEntrustedInsurance.vue |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/company/src/components/business/detailsEntrustedInsurance.vue b/company/src/components/business/detailsEntrustedInsurance.vue
index 9572d2d..020aae4 100644
--- a/company/src/components/business/detailsEntrustedInsurance.vue
+++ b/company/src/components/business/detailsEntrustedInsurance.vue
@@ -158,7 +158,7 @@
                 label="鎬у埆">
               <template slot-scope="{row}">
                 <span v-if="row.sex === 0">鐢�</span>
-                <span v-else>濂�</span>
+                <span  v-if="row.sex === 1">濂�</span>
               </template>
             </el-table-column>
             <el-table-column
@@ -403,7 +403,7 @@
     <el-dialog
       :title="fileTitle"
       :visible.sync="visibleFile"
-      width="500px"
+      width="800px"
       :modal="true"
       :show-close="true"
       :close-on-click-modal="false"
@@ -412,7 +412,11 @@
       <div class="desc_item_from" v-for="(item, index) in fileData" :key="index"  style="margin-bottom: 15px">
         <span v-if="index ==0">{{item.name}}锛�</span>
         <span v-if="index >0">琚繚闄╀汉锛坽{item.name}}锛夋湇鍔¤垂锛歿{item.serverCost || 0}}鍏�/浜� {{fileFlag=== 0?"鎶曚繚鍗�":"淇濋櫓鍗�"}}锛�</span>
-        <a style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl" @click="openFile(item.file.fileurlFull)">鍦ㄧ嚎棰勮</a><span v-if="!item.file || !item.file.fileurl">鏈笂浼�</span>
+        <a  style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index ==0" @click="openFile(item.file.fileurlFull,item.name)">鍦ㄧ嚎棰勮</a>
+        <a   style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index !=0 &&fileFlag=== 0" @click="openFile(item.file.fileurlFull,'琚繚闄╀汉锛�'+item.name+'锛夋姇淇濆崟')">鍦ㄧ嚎棰勮</a>
+        <a   style="cursor: pointer;color: #2E68EC" v-if="item.file && item.file.fileurl && index !=0 &&fileFlag!= 0" @click="openFile(item.file.fileurlFull,'琚繚闄╀汉锛�'+item.name+'锛変繚闄╁崟')">鍦ㄧ嚎棰勮</a>
+        <span v-if="!item.file || !item.file.fileurl">鏈笂浼�</span>
+
       </div>
       <span slot="footer" class="dialog-footer">
         <el-button @click="visibleFile=false">鍏� 闂�</el-button>
@@ -787,9 +791,9 @@
         this.$tip.apiFailed(err)
       })
     },
-    openFile (url) {
+    openFile (url,title) {
       setTimeout(() => {
-        this.$refs.OperaPdfViewerWindow.open('鍟嗘埛鎶曚繚鍗�',url)
+        this.$refs.OperaPdfViewerWindow.open(title ||'鍦ㄧ嚎棰勮',url)
         // window.open(url)
       }, 500)
     },

--
Gitblit v1.9.3