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

调整

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