提交 5cc6feaa 编写于 作者: 刘英杰's avatar 刘英杰

- 20241104 附件预览优化项保存

上级 804610da
[data-v-24dca222] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-24dca222] .ivu-select-dropdown{width:inherit;max-height:600px;overflow:auto;margin:5px 0;padding:5px 0;background-color:#fff;box-sizing:border-box;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2);position:absolute;z-index:900}.filelist[data-v-24dca222]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-24dca222]:hover{color:red;transform:scale(1.5)}[data-v-51f50c9d] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-51f50c9d] .ivu-select-dropdown{width:inherit;max-height:600px;overflow:auto;margin:5px 0;padding:5px 0;background-color:#fff;box-sizing:border-box;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2);position:absolute;z-index:900}.filelist[data-v-51f50c9d]:hover{color:#1e93ff;background-color:#f7f7f7;cursor:pointer}.fileddelete[data-v-51f50c9d]:hover{color:red;transform:scale(1.5)}.competitionClassIcon{display:flex;align-items:center;cursor:pointer}.competitionClassIcon:hover{transform:scale(1.5);color:red}.container{overflow-y:auto;width:100%;//min-height:987px;display:flex;align-content:center;justify-content:center;flex-wrap:wrap}.Atext{float:right;margin-bottom:.7vw;margin-top:.7vw;font-size:16px}.Atext:hover{transform:scale(1.2)}.tableList[data-v-ec9a51a6]{display:flex;justify-content:center;flex-wrap:wrap}.tableList .container1[data-v-ec9a51a6]{border-collapse:collapse;width:100%;margin-bottom:20px}.tableList .container1 .row[data-v-ec9a51a6]{width:100%;height:100%}.tableList .container1 .colTitle[data-v-ec9a51a6]{text-align:center;width:200px;height:50px}.tableList .container1 .colContent[data-v-ec9a51a6]{width:500px;height:50px;text-align:center}.tableList .container1 .aText[data-v-ec9a51a6]:hover{transform:scale(1.2)}.tableList .container1 .Atext[data-v-ec9a51a6]{float:right;margin-bottom:.7vw;margin-top:.7vw;font-size:16px}.tableList .container1 .Atext[data-v-ec9a51a6]:hover{transform:scale(1.2)}.carClass[data-v-ec9a51a6]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-ec9a51a6] .ivu-card{display:block;background:#fff;border-radius:0!important;font-size:14px;position:relative;transition:all .2s ease-in-out}
\ No newline at end of file
.carClass[data-v-135205d8]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-135205d8] .ivu-card{display:block;background:#fff;border-radius:0!important;font-size:14px;position:relative;transition:all .2s ease-in-out}[data-v-135205d8] .ivu-select-dropdown{width:inherit;max-height:600px;overflow:auto;margin:5px 0;padding:5px 0;background-color:#fff;box-sizing:border-box;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2);position:absolute;z-index:900}.filelist[data-v-135205d8]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-135205d8]:hover{color:red;transform:scale(1.5)}.teamCardExtraText[data-v-135205d8]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.Atext[data-v-135205d8]{margin-bottom:.7vw;margin-top:.7vw;font-size:16px;position:absolute}.Atext[data-v-135205d8]:hover{transform:scale(1.2)}.container[data-v-135205d8]{width:100%;min-height:687px;height:auto;align-content:center;overflow-y:auto}.container[data-v-135205d8],.tableList[data-v-79c8e826]{display:flex;justify-content:center;flex-wrap:wrap}.tableList .container1[data-v-79c8e826]{border-collapse:collapse;width:100%}.tableList .container1 .row[data-v-79c8e826]{width:100%;height:100%}.tableList .container1 .colTitle[data-v-79c8e826]{text-align:center;width:200px;height:50px}.tableList .container1 .colContent[data-v-79c8e826]{width:500px;height:50px;text-align:center}.Atext[data-v-79c8e826]{margin-bottom:.7vw;margin-top:.7vw;font-size:16px}.teamCardExtraText[data-v-79c8e826]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.carClass[data-v-79c8e826]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-79c8e826] .ivu-card{display:block;background:#fff;border-radius:0!important;font-size:14px;position:relative;transition:all .2s ease-in-out}
\ No newline at end of file
.carClass[data-v-3a85aaaf]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-3a85aaaf] .ivu-card{display:block;background:#fff;border-radius:0!important;font-size:14px;position:relative;transition:all .2s ease-in-out}[data-v-3a85aaaf] .ivu-select-dropdown{width:inherit;max-height:600px;overflow:auto;margin:5px 0;padding:5px 0;background-color:#fff;box-sizing:border-box;border-radius:4px;box-shadow:0 1px 6px rgba(0,0,0,.2);position:absolute;z-index:900}.filelist[data-v-3a85aaaf]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-3a85aaaf]:hover{color:red;transform:scale(1.5)}.teamCardExtraText[data-v-3a85aaaf]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.Atext[data-v-3a85aaaf]{margin-bottom:.7vw;margin-top:.7vw;font-size:16px;position:absolute}.Atext[data-v-3a85aaaf]:hover{transform:scale(1.2)}.container[data-v-3a85aaaf]{width:100%;min-height:687px;height:auto;align-content:center;overflow-y:auto}.container[data-v-3a85aaaf],.tableList[data-v-ed47e796]{display:flex;justify-content:center;flex-wrap:wrap}.tableList .container1[data-v-ed47e796]{border-collapse:collapse;width:100%}.tableList .container1 .row[data-v-ed47e796]{width:100%;height:100%}.tableList .container1 .colTitle[data-v-ed47e796]{text-align:center;width:200px;height:50px}.tableList .container1 .colContent[data-v-ed47e796]{width:500px;height:50px;text-align:center}.Atext[data-v-ed47e796]{margin-bottom:.7vw;margin-top:.7vw;font-size:16px}.teamCardExtraText[data-v-ed47e796]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.carClass[data-v-ed47e796]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-ed47e796] .ivu-card{display:block;background:#fff;border-radius:0!important;font-size:14px;position:relative;transition:all .2s ease-in-out}
\ No newline at end of file
.teamCardExtraText[data-v-6096391f]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.container[data-v-6096391f]{height:100vh;width:100vw}.container .header[data-v-6096391f]{display:flex;justify-content:center;align-items:center;position:relative;width:100%;height:8%;border-top:5px solid #2d8cf0}.container .header .h_left[data-v-6096391f],.container .header .h_right[data-v-6096391f]{width:20%;height:100%;background-color:#fff}.container .header .h_content[data-v-6096391f]{width:60%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#fff}.container .content[data-v-6096391f]{width:100%;height:92%;display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:center;overflow-y:auto;position:relative}.container .content .tableList[data-v-6096391f]{display:flex;justify-content:center;flex-wrap:wrap;max-width:1200px}.container .content .tableList .container1[data-v-6096391f]{border-collapse:collapse;box-sizing:border-box;width:100%;margin-bottom:20px}.container .content .tableList .container1 .row[data-v-6096391f]{width:100%;height:100%}.container .content .tableList .container1 .colTitle[data-v-6096391f]{text-align:center;width:30%;height:50px}.container .content .tableList .container1 .colContent[data-v-6096391f]{height:50px;text-align:center}.container .content .card[data-v-6096391f]{padding:5px 5px}.container .content .teamInfo[data-v-6096391f]{color:#1e93ff;cursor:pointer}.container .content .text[data-v-6096391f]:hover{transform:scale(1.3)}.container .content .aText[data-v-6096391f]:hover{transform:scale(1.2)}.container .content .Atext[data-v-6096391f]{float:right;margin-bottom:.7vw;margin-top:.7vw;font-size:16px}.container .content .Atext[data-v-6096391f]:hover{transform:scale(1.2)}.carClass[data-v-6096391f]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-6096391f] .ivu-card{display:block;background:#fff;border-radius:0!important;font-size:14px;position:relative;transition:all .2s ease-in-out}
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>竞赛管理</title><link href=css/chunk-vendors~253ae210.71a233fb.css rel=stylesheet><link href=css/chunk-vendors~f9ca8911.6d189742.css rel=stylesheet><link href=css/app~748942c6.db0ab0a4.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 竞赛管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors~253ae210.c21551cb.js></script><script src=js/chunk-vendors~db300d2f.e266578a.js></script><script src=js/chunk-vendors~690b702c.00a2f77e.js></script><script src=js/chunk-vendors~f9ca8911.fd8d1c3b.js></script><script src=js/app~748942c6.a02db14f.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>竞赛管理</title><link href=css/chunk-vendors~253ae210.71a233fb.css rel=stylesheet><link href=css/chunk-vendors~f9ca8911.6d189742.css rel=stylesheet><link href=css/app~748942c6.db0ab0a4.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 竞赛管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors~253ae210.c21551cb.js></script><script src=js/chunk-vendors~db300d2f.e266578a.js></script><script src=js/chunk-vendors~690b702c.00a2f77e.js></script><script src=js/chunk-vendors~f9ca8911.371a0a66.js></script><script src=js/app~748942c6.08e37845.js></script></body></html>
\ No newline at end of file
此差异已折叠。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
此差异已折叠。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
此差异已折叠。
此差异已折叠。
......@@ -225,7 +225,7 @@
<template #header>
<div style="width: 100%;mix-height:35px;max-height:auto;position: relative">
<h3 style="margin-bottom: 5px">附件预览</h3>
<a class="aText" style="margin-right: 3vw;" @click="updateViewFile(ite)"
<a class="aText" style="margin-right: 3vw;line-height: 25px" @click="updateViewFile(ite)"
v-for="(ite,inde) in data.Object.files_list"
:key="inde">
{{ ite.file_name }}
......@@ -242,10 +242,19 @@
</VueDocPreview>
<!-- v-if="src && fileType ==='image'"-->
<i-frame
v-if="src && fileType ==='pdf'"
:key="viewFileUpdataKeys"
v-if="src && fileType ==='image'"
:src="src"
></i-frame>
<div style="width: 100%;height: 90%;display: flex;justify-content: center;align-items: center">
<img
v-if="src && fileType ==='image'"
:key="viewFileUpdataKeys"
:src="src"
width="85%"
height="90%"
/>
</div>
</Drawer>
</div>
</template>
......@@ -767,14 +776,27 @@
this.fileType = e
this.viewFileUpdataKeys++
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf' || e.suffix === '.JPG' || e.suffix === '.JPEG' || e.suffix === '.PNG' || e.suffix === '.PDF'
) {
fun('image', e)
} else if (e.suffix === '.doc' || e.suffix === '.docx' || e.suffix === '.xls'
|| e.suffix === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
let strategy = {
'.jpg': () => fun('image', e),
'.jpeg': () => fun('image', e),
'.png': () => fun('image', e),
'.JPG': () => fun('image', e),
'.JPEG': () => fun('image', e),
'.PNG': () => fun('image', e),
'.PDF': () => fun('pdf', e),
'.pdf': () => fun('pdf', e),
'.doc': () => fun('office', e),
'.docx': () => fun('office', e),
'.xls': () => fun('office', e),
'.xlsx': () => fun('office', e),
'.DOC': () => fun('office', e),
'.DOCX': () => fun('office', e),
'.XLS': () => fun('office', e),
'.XLSX': () => fun('office', e),
}
strategy[e.suffix]()
},
viewFile(e) {
const fun = (e, url) => {
......@@ -783,14 +805,27 @@
this.fileType = e
this.drawerPreview = true
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf' || e.suffix === '.JPG' || e.suffix === '.JPEG' || e.suffix === '.PNG' || e.suffix === '.PDF'
) {
fun('image', e)
} else if (e.suffix === '.doc' || e.suffix === '.docx' || e.suffix === '.xls'
|| e.suffix === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
let strategy = {
'.jpg': () => fun('image', e),
'.jpeg': () => fun('image', e),
'.png': () => fun('image', e),
'.JPG': () => fun('image', e),
'.JPEG': () => fun('image', e),
'.PNG': () => fun('image', e),
'.PDF': () => fun('pdf', e),
'.pdf': () => fun('pdf', e),
'.doc': () => fun('office', e),
'.docx': () => fun('office', e),
'.xls': () => fun('office', e),
'.xlsx': () => fun('office', e),
'.DOC': () => fun('office', e),
'.DOCX': () => fun('office', e),
'.XLS': () => fun('office', e),
'.XLSX': () => fun('office', e),
}
strategy[e.suffix]()
},
getAListOfRegistrationExperts(signId) {
//获取报名专家列表
......
......@@ -265,7 +265,7 @@
<Drawer :draggable="true" :width="fileType === 'image' ?40:90" closable v-model="drawerPreview">
<template #header>
<div style="width: 100%;mix-height:35px;max-height:auto;position: relative">
<h3 style="margin-bottom: 5px">附件预览</h3>
<h3 style="margin-bottom: 5px;line-height: 25px;">附件预览</h3>
<a class="aText" style="margin-right: 3vw;" @click="updateViewFile(ite)"
v-for="(ite,inde) in data.Object.files_list"
:key="inde">
......@@ -283,10 +283,19 @@
</VueDocPreview>
<!-- v-if="src && fileType ==='image'"-->
<i-frame
v-if="src && fileType ==='pdf'"
:key="viewFileUpdataKeys"
v-if="src && fileType ==='image'"
:src="src"
></i-frame>
<div style="width: 100%;height: 90%;display: flex;justify-content: center;align-items: center">
<img
v-if="src && fileType ==='image'"
:key="viewFileUpdataKeys"
:src="src"
width="85%"
height="90%"
/>
</div>
</Drawer>
</div>
</template>
......@@ -923,14 +932,27 @@
this.fileType = e
this.viewFileUpdataKeys++
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf' || e.suffix === '.JPG' || e.suffix === '.JPEG' || e.suffix === '.PNG' || e.suffix === '.PDF'
) {
fun('image', e)
} else if (e.suffix === '.doc' || e.suffix === '.docx' || e.suffix === '.xls'
|| e.suffix === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
let strategy = {
'.jpg': () => fun('image', e),
'.jpeg': () => fun('image', e),
'.png': () => fun('image', e),
'.JPG': () => fun('image', e),
'.JPEG': () => fun('image', e),
'.PNG': () => fun('image', e),
'.PDF': () => fun('pdf', e),
'.pdf': () => fun('pdf', e),
'.doc': () => fun('office', e),
'.docx': () => fun('office', e),
'.xls': () => fun('office', e),
'.xlsx': () => fun('office', e),
'.DOC': () => fun('office', e),
'.DOCX': () => fun('office', e),
'.XLS': () => fun('office', e),
'.XLSX': () => fun('office', e),
}
strategy[e.suffix]()
},
viewFile(e) {
const fun = (e, url) => {
......@@ -939,14 +961,27 @@
this.fileType = e
this.drawerPreview = true
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf' || e.suffix === '.JPG' || e.suffix === '.JPEG' || e.suffix === '.PNG' || e.suffix === '.PDF'
) {
fun('image', e)
} else if (e.suffix === '.doc' || e.suffix === '.docx' || e.suffix === '.xls'
|| e.suffix === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
let strategy = {
'.jpg': () => fun('image', e),
'.jpeg': () => fun('image', e),
'.png': () => fun('image', e),
'.JPG': () => fun('image', e),
'.JPEG': () => fun('image', e),
'.PNG': () => fun('image', e),
'.PDF': () => fun('pdf', e),
'.pdf': () => fun('pdf', e),
'.doc': () => fun('office', e),
'.docx': () => fun('office', e),
'.xls': () => fun('office', e),
'.xlsx': () => fun('office', e),
'.DOC': () => fun('office', e),
'.DOCX': () => fun('office', e),
'.XLS': () => fun('office', e),
'.XLSX': () => fun('office', e),
}
strategy[e.suffix]()
},
automaticallyGenerateTeacherstudentRewards(row) {
//自动生成师生奖励
......
......@@ -323,7 +323,7 @@
<Drawer v-model="drawerPreview" :draggable="true" closable :width="fileType === 'image' ?40:90">
<template #header>
<div style="width: 100%;mix-height:35px;max-height:auto;position: relative">
<h3 style="margin-bottom: 5px">附件预览</h3>
<h3 style="margin-bottom: 5px;line-height: 25px;">附件预览</h3>
<a v-for="(ite,inde) in data.Object.files_list" :key="inde" class="aText"
style="margin-right: 3vw;"
@click="updateViewFile(ite)">
......@@ -341,10 +341,19 @@
</VueDocPreview>
<!-- v-if="src && fileType ==='image'"-->
<i-frame
v-if="src && fileType ==='image'"
v-if="src && fileType ==='pdf'"
:key="viewFileUpdataKeys"
:src="src"
></i-frame>
<div style="width: 100%;height: 90%;display: flex;justify-content: center;align-items: center">
<img
v-if="src && fileType ==='image'"
:key="viewFileUpdataKeys"
:src="src"
width="85%"
height="90%"
/>
</div>
</Drawer>
</div>
</template>
......@@ -845,14 +854,27 @@
this.fileType = e
this.viewFileUpdataKeys++
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf' || e.suffix === '.JPG' || e.suffix === '.JPEG' || e.suffix === '.PNG' || e.suffix === '.PDF'
) {
fun('image', e)
} else if (e.suffix === '.doc' || e.suffix === '.docx' || e.suffix === '.xls'
|| e.suffix === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
let strategy = {
'.jpg': () => fun('image', e),
'.jpeg': () => fun('image', e),
'.png': () => fun('image', e),
'.JPG': () => fun('image', e),
'.JPEG': () => fun('image', e),
'.PNG': () => fun('image', e),
'.PDF': () => fun('pdf', e),
'.pdf': () => fun('pdf', e),
'.doc': () => fun('office', e),
'.docx': () => fun('office', e),
'.xls': () => fun('office', e),
'.xlsx': () => fun('office', e),
'.DOC': () => fun('office', e),
'.DOCX': () => fun('office', e),
'.XLS': () => fun('office', e),
'.XLSX': () => fun('office', e),
}
strategy[e.suffix]()
},
viewFile(e) {
const fun = (e, url) => {
......@@ -861,14 +883,27 @@
this.fileType = e
this.drawerPreview = true
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf' || e.suffix === '.JPG' || e.suffix === '.JPEG' || e.suffix === '.PNG' || e.suffix === '.PDF'
) {
fun('image', e)
} else if (e.suffix === '.doc' || e.suffix === '.docx' || e.suffix === '.xls'
|| e.suffix === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
let strategy = {
'.jpg': () => fun('image', e),
'.jpeg': () => fun('image', e),
'.png': () => fun('image', e),
'.JPG': () => fun('image', e),
'.JPEG': () => fun('image', e),
'.PNG': () => fun('image', e),
'.PDF': () => fun('pdf', e),
'.pdf': () => fun('pdf', e),
'.doc': () => fun('office', e),
'.docx': () => fun('office', e),
'.xls': () => fun('office', e),
'.xlsx': () => fun('office', e),
'.DOC': () => fun('office', e),
'.DOCX': () => fun('office', e),
'.XLS': () => fun('office', e),
'.XLSX': () => fun('office', e),
}
strategy[e.suffix]()
},
unfoldTeamCard() {
......
......@@ -721,7 +721,7 @@
<div style="width: 100%;mix-height:35px;max-height:auto;position: relative">
<h3 style="margin-bottom: 5px">附件预览</h3>
<a v-for="(ite,inde) in data.Object.file_list" :key="inde" class="aText"
style="margin-right: 3vw;"
style="margin-right: 3vw;line-height: 25px"
@click="updateViewFile(ite)">
{{ ite.file_name }}
</a>
......@@ -737,10 +737,19 @@
</VueDocPreview>
<!-- v-if="src && fileType ==='image'"-->
<i-frame
v-if="src && fileType ==='image'"
v-if="src && fileType ==='pdf'"
:key="viewFileUpdataKeys"
:src="src"
></i-frame>
<div style="width: 100%;height: 90%;display: flex;justify-content: center;align-items: center">
<img
v-if="src && fileType ==='image'"
:key="viewFileUpdataKeys"
:src="src"
width="85%"
height="90%"
/>
</div>
</Drawer>
</div>
......@@ -1484,14 +1493,27 @@
this.fileType = e
this.viewFileUpdataKeys++
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf' || e.suffix === '.JPG' || e.suffix === '.JPEG' || e.suffix === '.PNG' || e.suffix === '.PDF'
) {
fun('image', e)
} else if (e.suffix === '.doc' || e.suffix === '.docx' || e.suffix === '.xls'
|| e.suffix === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
let strategy = {
'.jpg': () => fun('image', e),
'.jpeg': () => fun('image', e),
'.png': () => fun('image', e),
'.JPG': () => fun('image', e),
'.JPEG': () => fun('image', e),
'.PNG': () => fun('image', e),
'.PDF': () => fun('pdf', e),
'.pdf': () => fun('pdf', e),
'.doc': () => fun('office', e),
'.docx': () => fun('office', e),
'.xls': () => fun('office', e),
'.xlsx': () => fun('office', e),
'.DOC': () => fun('office', e),
'.DOCX': () => fun('office', e),
'.XLS': () => fun('office', e),
'.XLSX': () => fun('office', e),
}
strategy[e.suffix]()
},
viewFile(e) {
const fun = (e, url) => {
......@@ -1500,14 +1522,27 @@
this.fileType = e
this.drawerPreview = true
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf' || e.suffix === '.JPG' || e.suffix === '.JPEG' || e.suffix === '.PNG' || e.suffix === '.PDF'
) {
fun('image', e)
} else if (e.suffix === '.doc' || e.suffix === '.docx' || e.suffix === '.xls'
|| e.suffix === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
let strategy = {
'.jpg': () => fun('image', e),
'.jpeg': () => fun('image', e),
'.png': () => fun('image', e),
'.JPG': () => fun('image', e),
'.JPEG': () => fun('image', e),
'.PNG': () => fun('image', e),
'.PDF': () => fun('pdf', e),
'.pdf': () => fun('pdf', e),
'.doc': () => fun('office', e),
'.docx': () => fun('office', e),
'.xls': () => fun('office', e),
'.xlsx': () => fun('office', e),
'.DOC': () => fun('office', e),
'.DOCX': () => fun('office', e),
'.XLS': () => fun('office', e),
'.XLSX': () => fun('office', e),
}
strategy[e.suffix]()
},
GetFlowLogList(form_id) {
hook.getInitListRequest(() => {
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或