修改pdf预览

This commit is contained in:
qq787203167
2022-02-23 19:09:55 +08:00
parent 900a38dff3
commit 86effd4efb
2 changed files with 9 additions and 10 deletions
@@ -183,7 +183,7 @@
</div>
</a-col>
<a-col :span="24" v-else-if="item.field_show_type === 'file'">
<a-col :span="24" v-else-if="item.field_show_type === 'Standardselection'">
<div class="box-title-text">
<div class="title-text">
<span class="Required" v-if="item.field_must_input == 0">*</span>
@@ -29,11 +29,11 @@
<div class="TextInformation" v-if="val == '文本信息'">
<div class="TextInformationContent" v-for="(ol,index1) in item[val]" style="width: 100%">
<span class="TextInformationContentLeft">
{{ol.db_field_txt}}
<span >{{ol.db_field_txt}}</span>
</span>
<span class="TextInformationContentcontent">
{{ol.value ? ol.value.fileName : '--'}}
</span>
<span @click="pdfPreview(ol.value)">{{ol.value ? ol.value.fileName : '--'}}</span>
</span>
<span class="TextInformationContentright" v-show="ol.value" @click="download(ol.value)">
<a-icon type="vertical-align-bottom"/>
下载
@@ -46,12 +46,8 @@
{{ol.db_field_txt}}
</span>
<span class="TextInformationContentcontent">
{{ol.value ? ol.value.fileName : '--'}}
</span>
<span class="TextInformationContentright" v-show="ol.value" @click="download(ol.value)">
<a-icon type="vertical-align-bottom"/>
下载
</span>
{{ol.value ? ol.value : '--'}}
</span>
</div>
</div>
</div>
@@ -86,6 +82,9 @@
}
})
},
pdfPreview(item){
window.open('/pdf/web/viewer.html?file=' + encodeURIComponent('/sys/common/download?id=' + item.id))
},
download(item) {
downloadFile('/sys/common/download', item.fileName, { id: item.id })
}