Commit ec0fb0fe authored by zhangderong's avatar zhangderong

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

parent 9b1a2ee6
...@@ -748,6 +748,7 @@ export default { ...@@ -748,6 +748,7 @@ export default {
this.contentName='' this.contentName=''
}, },
showOriginal(){ showOriginal(){
this.addCss()
this.getData() this.getData()
this.showPDF() this.showPDF()
this.isShowPdf=true this.isShowPdf=true
...@@ -756,6 +757,7 @@ export default { ...@@ -756,6 +757,7 @@ export default {
}, },
showStandard(){ showStandard(){
this.isShowPdf=false this.isShowPdf=false
this.addCss()
// this.showOriginalDisabled=false // this.showOriginalDisabled=false
console.log(84377847) console.log(84377847)
this.clearPDF() this.clearPDF()
...@@ -975,7 +977,7 @@ export default { ...@@ -975,7 +977,7 @@ export default {
document.querySelector('#app').style.removeProperty('overflow-x') document.querySelector('#app').style.removeProperty('overflow-x')
} }
}, },
async mounted(){ async mounted(){
this.getDETAIL() this.getDETAIL()
this.boxIsShow=true this.boxIsShow=true
this.judeBtn() this.judeBtn()
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
:class="['prefixCls' + '-input']" :class="['prefixCls' + '-input']"
@change="handleChange" @change="handleChange"
:multiple="true" :multiple="true"
:format="['word','pdf']" :format="['pdf','doc','docx']"
:accept="accept" :accept="accept"
> >
<Button @click='selFiles' style='width:20%;margin-top:40px;margin-left:-4px;color:black'>选择文件</Button> <Button @click='selFiles' style='width:20%;margin-top:40px;margin-left:-4px;color:black'>选择文件</Button>
...@@ -227,7 +227,7 @@ import {uploadFile} from '../../service/ajax' ...@@ -227,7 +227,7 @@ import {uploadFile} from '../../service/ajax'
filetile:'上传中请稍后...', filetile:'上传中请稍后...',
totalSize:null, totalSize:null,
uploadModal: false, uploadModal: false,
accept: '.word,.pdf', accept: '.doc,.docx,.pdf',
fileSize:2048, fileSize:2048,
progressStatus: { progressStatus: {
'0': 'active', '0': 'active',
...@@ -417,7 +417,6 @@ import {uploadFile} from '../../service/ajax' ...@@ -417,7 +417,6 @@ import {uploadFile} from '../../service/ajax'
page = typeof(page)=='number'?page:1 page = typeof(page)=='number'?page:1
this.searchInfo.pageIndex = page this.searchInfo.pageIndex = page
this.pageIndex = page this.pageIndex = page
console.log(this.batchNum,899898989)
let parmars={ let parmars={
pageSize:this.searchInfo.pageSize, pageSize:this.searchInfo.pageSize,
pageIndex:this.searchInfo.pageIndex, 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