Commit 0835f8a9 authored by renjintao's avatar renjintao

files

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