实现对文件是否重命名的控制,目前设定为管理员上传的文件不会重命名,完善日志输出存储

This commit is contained in:
F嘉阳
2018-02-24 21:29:46 +08:00
parent fc3ef4f9af
commit a0c995c07e
9 changed files with 94 additions and 40 deletions

View File

@@ -18,6 +18,21 @@
</el-row>
</el-col>
<el-col :md="13" :lg="13" :xl="13" :sm="18" :xs="23" :offset="1">
<el-row>
<span>上传模板文件</span>
<el-upload class="upload-demo" ref="upload"
:action="uploadURL()"
:on-preview="handlePreview"
:on-remove="handleRemove" :file-list="fileList" :auto-upload="false"
name="imageFile">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<el-button style="margin-left: 10px;" size="small" type="success"
@click="submitUpload">
上传到服务器
</el-button>
<!--<div slot="tip" class="el-upload__tip">只能上传jpg/png文件且不超过500kb</div>-->
</el-upload>
</el-row>
<el-row>
<h4>发布公告</h4>
<el-form :model="form">