From 7e01b349c769045abeeeb6cf98241c8d60d0aeb3 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 19 六月 2024 09:24:32 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/1.0.1' into 1.0.1

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

diff --git a/company/src/components/business/detailsEntrustedInsurance.vue b/company/src/components/business/detailsEntrustedInsurance.vue
index 54921fd..0ce055e 100644
--- a/company/src/components/business/detailsEntrustedInsurance.vue
+++ b/company/src/components/business/detailsEntrustedInsurance.vue
@@ -367,6 +367,7 @@
     <OperaApplyChangeDetailWindow ref="OperaApplyChangeDetailWindow" @success="successEvent"/>
     <!-- 鏇存崲娲鹃仯鍗曚綅璇︽儏 -->
     <OperaApplyChangeUnitDetailWindow ref="OperaApplyChangeUnitDetailWindow" @success="successEvent"/>
+    <OperaPdfViewerWindow ref="OperaPdfViewerWindow" />
     <!-- 鍔犲噺淇濊鎯� -->
     <template v-slot:footer>
       <el-button @click="visible=false">杩斿洖</el-button>
@@ -402,7 +403,7 @@
     <el-dialog
       :title="fileTitle"
       :visible.sync="visibleFile"
-      width="500px"
+      width="800px"
       :modal="true"
       :show-close="true"
       :close-on-click-modal="false"
@@ -411,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>
@@ -444,11 +449,13 @@
 import { mapState } from 'vuex'
 import { sendSms } from '@/api/business/smsEmail'
 
+import OperaPdfViewerWindow from '@/components/business/OperaPdfViewerWindow'
 export default {
   name: 'OperaWtbApplyShopWindow1',
   extends: BaseOpera,
   components: {
     GlobalWindow,
+    OperaPdfViewerWindow,
     OperaApplyChangeUnitDetailWindow,
     OperaApplyChangeDetailWindow,
     InsuranceDetailsWtb,
@@ -784,9 +791,10 @@
         this.$tip.apiFailed(err)
       })
     },
-    openFile (url) {
+    openFile (url,title) {
       setTimeout(() => {
-        window.open(url)
+        this.$refs.OperaPdfViewerWindow.open(title ||'鍦ㄧ嚎棰勮',url)
+        // window.open(url)
       }, 500)
     },
     viewToubaodan () {

--
Gitblit v1.9.3