Commit ec0fb0fe authored by zhangderong's avatar zhangderong

上传限制只能上传word,PDF格式

parent 9b1a2ee6
......@@ -748,6 +748,7 @@ export default {
this.contentName=''
},
showOriginal(){
this.addCss()
this.getData()
this.showPDF()
this.isShowPdf=true
......@@ -756,6 +757,7 @@ export default {
},
showStandard(){
this.isShowPdf=false
this.addCss()
// this.showOriginalDisabled=false
console.log(84377847)
this.clearPDF()
......
......@@ -11,7 +11,7 @@
:class="['prefixCls' + '-input']"
@change="handleChange"
:multiple="true"
:format="['word','pdf']"
:format="['pdf','doc','docx']"
:accept="accept"
>
<Button @click='selFiles' style='width:20%;margin-top:40px;margin-left:-4px;color:black'>选择文件</Button>
......@@ -227,7 +227,7 @@ import {uploadFile} from '../../service/ajax'
filetile:'上传中请稍后...',
totalSize:null,
uploadModal: false,
accept: '.word,.pdf',
accept: '.doc,.docx,.pdf',
fileSize:2048,
progressStatus: {
'0': 'active',
......@@ -417,7 +417,6 @@ import {uploadFile} from '../../service/ajax'
page = typeof(page)=='number'?page:1
this.searchInfo.pageIndex = page
this.pageIndex = page
console.log(this.batchNum,899898989)
let parmars={
pageSize:this.searchInfo.pageSize,
pageIndex:this.searchInfo.pageIndex,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment