Commit a632c8be authored by 李苏's avatar 李苏 💬

调整

parent cc872aa7
......@@ -8,7 +8,7 @@
:auto-upload="false">
<el-button slot="trigger" size="small" type="primary">选择文件</el-button>
<div class="flex" style="margin-top: 10px;">
<span style="line-height: 30px;width: 50px;font-size: 14px;" >年份:</span> <RelYearSelect v-model="year" />
<span style="line-height: 30px;width: 45px;font-size: 12px;" >日期:</span> <el-date-picker type="date" v-model="date" />
</div>
<div slot="tip" class="el-upload__tip">如没有模板文件请点击<span @click="toDownload"
......@@ -49,7 +49,7 @@
},
data() {
return {
year:new Date().getFullYear(),
date:new Date().getTime(),
fileList: [],
loading:false,
......@@ -78,7 +78,7 @@
/* 拦截默认上传事件 */
let formData = new FormData();
formData.append('file', file)
formData.append('year', this.year)
formData.append('date', this.date)
importTemp(formData, this.app.url).then(res => {
if (res.success) {
this.$success('上传成功')
......
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