Commit 0835f8a9 authored by renjintao's avatar renjintao

files

parent a25dc3f1
......@@ -20,6 +20,7 @@
<p>将文件拖到此处,或点击上传</p>
</div>
<Button icon="ios-cloud-upload-outline" v-if="!cloudIco">上传文件</Button>
<span style="font-size:10px;color:#aaa" v-if="fileFormat">文件格式:{{JSON.stringify(formatList).replace('[', '').replace(']', '').replace(/\"/g, '')}};文件最大:{{maxSize}}k</span>
</Upload>
<Progress :percent="per" :stroke-width="5" v-show="vshowPro" />
<Tag
......@@ -47,7 +48,7 @@ export default {
fileUrlPath: "",
nameList: [],
hbaseFileListNew: [],
formatList: ["png", "jpg", "gif"],
formatList: ["jpg","gif","png"],
multiple: true,
postUrl: "",
style: "",
......@@ -81,6 +82,10 @@ export default {
cloudIco: {
type: Boolean,
default: false
},
fileFormat:{
type: Boolean,
default: false
}
},
methods: {
......@@ -155,15 +160,15 @@ export default {
formatL() {
if (this.files) {
this.formatList = [
"jpg",
"gif",
"png",
"pdf",
"docx",
"doc",
"xls",
"xlsx",
"txt",
"png",
"jpg",
"gif"
];
}
return this.formatList;
......
......@@ -132,7 +132,7 @@
<Col :span="24">
<FormItem label="多媒体附件" prop="files">
<files ref="refFile" :parms="parms" files />
<files ref="refFile" :parms="parms" fileFormat/>
</FormItem>
</Col>
</Row>
......
......@@ -129,7 +129,7 @@
<Col :span="24">
<FormItem label="多媒体附件" prop="files">
<files ref="refFile" :parms="parms" files />
<files ref="refFile" :parms="parms" fileFormat/>
</FormItem>
</Col>
</Row>
......
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