From eb4335eb25d8235ef2048c91181d004c27192688 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 18 六月 2024 18:17:09 +0800
Subject: [PATCH] 提交一把

---
 company/src/components/business/detailsEntrustedInsurance.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/company/src/components/business/detailsEntrustedInsurance.vue b/company/src/components/business/detailsEntrustedInsurance.vue
index 9572d2d..0ce055e 100644
--- a/company/src/components/business/detailsEntrustedInsurance.vue
+++ b/company/src/components/business/detailsEntrustedInsurance.vue
@@ -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