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

- 20240927 优化保存

上级 f1918c91
文件已添加
......@@ -91,7 +91,7 @@ _# 竞赛管理系统
- 20240927
1. 附件预览》兼容大写文件后缀名
2. 待办、已办、我的全部流程“类别”下拉框该为多选;flow_id传数组。GetAlreadyFlowTaskList、GetMyFlowTaskList、GetFlowTaskList
......
[data-v-5570dc2d] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-5570dc2d] .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-5570dc2d]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-5570dc2d]:hover{color:red;transform:scale(1.5)}[data-v-646029d0] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-646029d0] .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-646029d0]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-646029d0]: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-c7779820]{display:flex;justify-content:center;flex-wrap:wrap}.tableList .container1[data-v-c7779820]{border-collapse:collapse;width:100%;margin-bottom:20px}.tableList .container1 .row[data-v-c7779820]{width:100%;height:100%}.tableList .container1 .colTitle[data-v-c7779820]{text-align:center;width:200px;height:50px}.tableList .container1 .colContent[data-v-c7779820]{width:500px;height:50px;text-align:center}.tableList .container1 .aText[data-v-c7779820]:hover{transform:scale(1.2)}.tableList .container1 .Atext[data-v-c7779820]{float:right;margin-bottom:.7vw;margin-top:.7vw;font-size:16px}.tableList .container1 .Atext[data-v-c7779820]:hover{transform:scale(1.2)}.carClass[data-v-c7779820]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-c7779820] .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
[data-v-646029d0] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-646029d0] .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-646029d0]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-646029d0]:hover{color:red;transform:scale(1.5)}[data-v-5570dc2d] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}[data-v-5570dc2d] .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-5570dc2d]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-5570dc2d]: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)}.carClass[data-v-a3726f28]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-a3726f28] .ivu-card{display:block;background:#fff;border-radius:0!important;font-size:14px;position:relative;transition:all .2s ease-in-out}[data-v-a3726f28] .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-a3726f28]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-a3726f28]:hover{color:red;transform:scale(1.5)}.teamCardExtraText[data-v-a3726f28]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.Atext[data-v-a3726f28]{margin-bottom:.7vw;margin-top:.7vw;font-size:16px;position:absolute}.Atext[data-v-a3726f28]:hover{transform:scale(1.2)}.container[data-v-a3726f28]{width:100%;min-height:687px;height:auto;display:flex;align-content:center;justify-content:center;flex-wrap:wrap;overflow-y:auto}.carClass[data-v-4133c13e]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-4133c13e] .ivu-card{display:block;background:#fff;border-radius:0!important;font-size:14px;position:relative;transition:all .2s ease-in-out}[data-v-4133c13e] .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-4133c13e]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-4133c13e]:hover{color:red;transform:scale(1.5)}.teamCardExtraText[data-v-4133c13e]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.Atext[data-v-4133c13e]{margin-bottom:.7vw;margin-top:.7vw;font-size:16px;position:absolute}.Atext[data-v-4133c13e]:hover{transform:scale(1.2)}.container[data-v-4133c13e]{min-height:687px;height:auto;align-content:center;overflow-y:auto}.con[data-v-cc7f2272],.container[data-v-4133c13e]{width:100%;display:flex;justify-content:center;flex-wrap:wrap}.con[data-v-cc7f2272]{height:100%}.card[data-v-cc7f2272]{height:410px;margin:15px auto;padding:15px 50px;background-color:#fff;overflow-y:auto}.filelist[data-v-cc7f2272]:hover{color:#1e93ff;background-color:#f7f7f7;cursor:pointer}.fileddelete[data-v-cc7f2272]:hover{color:red;transform:scale(1.5)}[data-v-14f2980c] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}.Select[data-v-14f2980c] .ivu-select-dropdown{width:500px;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}.con[data-v-14f2980c]{width:100%;height:100%;display:flex;justify-content:center;flex-wrap:wrap}.card[data-v-14f2980c]{height:410px;margin:15px auto;padding:15px 50px;background-color:#fff;overflow-y:auto}.filelist[data-v-14f2980c]:hover{color:#1e93ff;background-color:#f7f7f7;cursor:pointer}.fileddelete[data-v-14f2980c]:hover{color:red;transform:scale(1.5)}.con[data-v-7907c181]{width:100%;height:100%;display:flex;justify-content:center;flex-wrap:wrap}.card[data-v-7907c181]{height:410px;margin:15px auto;padding:15px 50px;background-color:#fff;overflow-y:auto}.filelist[data-v-7907c181]:hover{color:#1e93ff;background-color:#f7f7f7;cursor:pointer}.fileddelete[data-v-7907c181]:hover{color:red;transform:scale(1.5)}[data-v-1f6f9472] .ivu-select-single .ivu-select-selection .ivu-select-placeholder{color:#515a6e}.Select[data-v-1f6f9472] .ivu-select-dropdown{width:500px;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}.con[data-v-1f6f9472]{width:100%;height:100%;display:flex;justify-content:center;flex-wrap:wrap}.card[data-v-1f6f9472]{height:410px;margin:15px auto;padding:15px 50px;background-color:#fff;overflow-y:auto}.filelist[data-v-1f6f9472]:hover{color:#1e93ff;background-color:#f7f7f7;cursor:pointer}.fileddelete[data-v-1f6f9472]:hover{color:red;transform:scale(1.5)}.cancel{cursor:not-allowed;color:#c5c8ce}
\ No newline at end of file
.teamCardExtraText[data-v-1e79f1c0]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.container[data-v-1e79f1c0]{height:100vh;width:100vw}.container .header[data-v-1e79f1c0]{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-1e79f1c0],.container .header .h_right[data-v-1e79f1c0]{width:20%;height:100%;background-color:#fff}.container .header .h_content[data-v-1e79f1c0]{width:60%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#fff}.container .content[data-v-1e79f1c0]{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-1e79f1c0]{display:flex;justify-content:center;flex-wrap:wrap;max-width:1200px}.container .content .tableList .container1[data-v-1e79f1c0]{border-collapse:collapse;box-sizing:border-box;width:100%;margin-bottom:20px}.container .content .tableList .container1 .row[data-v-1e79f1c0]{width:100%;height:100%}.container .content .tableList .container1 .colTitle[data-v-1e79f1c0]{text-align:center;width:30%;height:50px}.container .content .tableList .container1 .colContent[data-v-1e79f1c0]{height:50px;text-align:center}.container .content .card[data-v-1e79f1c0]{padding:5px 5px}.container .content .teamInfo[data-v-1e79f1c0]{color:#1e93ff;cursor:pointer}.container .content .text[data-v-1e79f1c0]:hover{transform:scale(1.3)}.container .content .aText[data-v-1e79f1c0]:hover{transform:scale(1.2)}.container .content .Atext[data-v-1e79f1c0]{float:right;margin-bottom:.7vw;margin-top:.7vw;font-size:16px}.container .content .Atext[data-v-1e79f1c0]:hover{transform:scale(1.2)}.carClass[data-v-1e79f1c0]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-1e79f1c0] .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-a3726f28]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-a3726f28] .ivu-card{display:block;background:#fff;border-radius:0!important;font-size:14px;position:relative;transition:all .2s ease-in-out}[data-v-a3726f28] .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-a3726f28]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-a3726f28]:hover{color:red;transform:scale(1.5)}.teamCardExtraText[data-v-a3726f28]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.Atext[data-v-a3726f28]{margin-bottom:.7vw;margin-top:.7vw;font-size:16px;position:absolute}.Atext[data-v-a3726f28]:hover{transform:scale(1.2)}.container[data-v-a3726f28]{width:100%;min-height:687px;height:auto;align-content:center;overflow-y:auto}.container[data-v-a3726f28],.tableList[data-v-2892d53c]{display:flex;justify-content:center;flex-wrap:wrap}.tableList .container1[data-v-2892d53c]{border-collapse:collapse;width:100%}.tableList .container1 .row[data-v-2892d53c]{width:100%;height:100%}.tableList .container1 .colTitle[data-v-2892d53c]{text-align:center;width:200px;height:50px}.tableList .container1 .colContent[data-v-2892d53c]{width:500px;height:50px;text-align:center}.Atext[data-v-2892d53c]{margin-bottom:.7vw;margin-top:.7vw;font-size:16px}.teamCardExtraText[data-v-2892d53c]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.carClass[data-v-2892d53c]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-2892d53c] .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-4133c13e]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-4133c13e] .ivu-card{display:block;background:#fff;border-radius:0!important;font-size:14px;position:relative;transition:all .2s ease-in-out}[data-v-4133c13e] .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-4133c13e]:hover{color:#1e93ff;background-color:#f7f7f7}.fileddelete[data-v-4133c13e]:hover{color:red;transform:scale(1.5)}.teamCardExtraText[data-v-4133c13e]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.Atext[data-v-4133c13e]{margin-bottom:.7vw;margin-top:.7vw;font-size:16px;position:absolute}.Atext[data-v-4133c13e]:hover{transform:scale(1.2)}.container[data-v-4133c13e]{width:100%;min-height:687px;height:auto;align-content:center;overflow-y:auto}.container[data-v-4133c13e],.tableList[data-v-ed4e8cf6]{display:flex;justify-content:center;flex-wrap:wrap}.tableList .container1[data-v-ed4e8cf6]{border-collapse:collapse;width:100%}.tableList .container1 .row[data-v-ed4e8cf6]{width:100%;height:100%}.tableList .container1 .colTitle[data-v-ed4e8cf6]{text-align:center;width:200px;height:50px}.tableList .container1 .colContent[data-v-ed4e8cf6]{width:500px;height:50px;text-align:center}.Atext[data-v-ed4e8cf6]{margin-bottom:.7vw;margin-top:.7vw;font-size:16px}.teamCardExtraText[data-v-ed4e8cf6]{font-size:18px;font-weight:600;font-family:宋体;color:#1e93ff}.carClass[data-v-ed4e8cf6]{border-radius:0!important;margin-bottom:20px}.carClass[data-v-ed4e8cf6] .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.c0ef6bde.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.5453d208.js></script><script src=js/app~748942c6.c1fa6848.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.c0ef6bde.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.43a5f72d.js></script><script src=js/app~748942c6.736c84ff.js></script></body></html>
\ No newline at end of file
此差异已折叠。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
此差异已折叠。
因为 它太大了无法显示 源差异 。您可以改为 查看blob。
此差异已折叠。
此差异已折叠。
......@@ -221,7 +221,7 @@
</Drawer>
<!-- office 和图片预览-->
<Drawer :draggable="true" width="90" closable v-model="drawerPreview">
<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>
......@@ -767,10 +767,12 @@
this.fileType = e
this.viewFileUpdataKeys++
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf') {
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 === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
}
},
......@@ -781,10 +783,12 @@
this.fileType = e
this.drawerPreview = true
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf') {
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 === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
}
},
......
......@@ -296,10 +296,12 @@
</Card>
<!-- (团队信息)教师工作量信息:-->
<div v-if="isCompetitionAClass">
<div
style=" width: 100%;height: 5vh;display: flex;align-items: center;color: white; background-color: #2C8CF0">
v-if="teamObjectData.some(cur=>{
return !!cur.guide_teacher_list.length || !!cur.contestant_teacher_list.length
})"
style="width: 100%;height: 5vh;display: flex;align-items: center;color: white; background-color: #2C8CF0">
<h3 v-text-family>(团队信息)教师工作量信息:</h3>
</div>
<div v-for="(item,index) in teamObjectData" :key="index+'3'">
......@@ -351,6 +353,9 @@
<div v-if="formValidate.competition_method == 0 && isCompetitionAClass">
<!-- (团队信息)学生补助信息:-->
<div
v-if="teamObjectData.some(cur=>{
return !!cur.student_list.length
})"
style=" width: 100%;height: 5vh;display: flex;align-items: center;color: white; background-color: #2C8CF0">
<h3 v-text-family>(团队信息)学生补助信息:</h3>
</div>
......
......@@ -262,7 +262,7 @@
<!-- <drawerOnlineViewFiel ref="drawerOnlineViewFiel" :file_list="flagObject.files_list"></drawerOnlineViewFiel>-->
<!-- office 和图片预览-->
<Drawer :draggable="true" width="90" closable v-model="drawerPreview">
<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>
......@@ -917,10 +917,12 @@
this.fileType = e
this.viewFileUpdataKeys++
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf') {
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 === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
}
},
......@@ -931,10 +933,12 @@
this.fileType = e
this.drawerPreview = true
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf') {
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 === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
}
},
......
......@@ -320,7 +320,7 @@
<!-- 在线预览附件 -->
<!-- <drawerOnlineViewFiel ref="drawerOnlineViewFiel" :file_list="flagObject.files_list"></drawerOnlineViewFiel>-->
<!-- office 和图片预览-->
<Drawer v-model="drawerPreview" :draggable="true" closable width="90">
<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>
......@@ -340,11 +340,11 @@
type="office">
</VueDocPreview>
<!-- v-if="src && fileType ==='image'"-->
<iframe
<i-frame
v-if="src && fileType ==='image'"
:key="viewFileUpdataKeys"
:src="src"
></iframe>
></i-frame>
</Drawer>
</div>
</template>
......@@ -845,10 +845,12 @@
this.fileType = e
this.viewFileUpdataKeys++
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf') {
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 === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
}
},
......@@ -859,10 +861,12 @@
this.fileType = e
this.drawerPreview = true
}
if (e.suffix === '.jpg' || e.suffix === '.jpeg' || e.suffix === '.png' || e.suffix === '.pdf') {
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 === '.xlsx' || e.suffix === '.DOC' || e.suffix === '.DOCX' || e.suffix === '.XLS'
|| e.suffix === '.XLSX') {
fun('office', e)
}
},
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或