Commit 1005eaf3 authored by zhengke's avatar zhengke

修改

parent 85b79f3c
......@@ -14,7 +14,13 @@
</div>
<div class="row wrap">
<div class="col-12">
<q-btn color="accent" size="sm" icon="add" label="上传供应商合同" />
<div style="display:flex;align-items:center;">
<a :href="fileObj.FileUrl" style="margin-right:10px;">{{fileObj.FileName}}</a>
<el-upload class="upload-demo" action="" :show-file-list="false"
:http-request="UploadAttachment" :multiple="uploadMultple">
<q-btn color="accent" size="sm" icon="add" label="上传供应商合同" />
</el-upload>
</div>
</div>
</div>
<div class="row wrap">
......@@ -37,6 +43,9 @@
queryStudyAbroadInfo,
querySupplierList
} from '../../api/studyabroad/index'
import {
UploadSelfFile
} from '../../api/common/common'
export default {
props: {
saveObj: {
......@@ -59,6 +68,11 @@
optionTitle: "",
saveLoading: false,
supplierList: [], //供应商下拉数据
uploadMultple:true,
fileObj:{
FileName:'',
FileUrl:''
}
}
},
mounted() {
......@@ -126,7 +140,18 @@
this.supplierList.unshift(obj);
}
})
}
},
//上传附件
UploadAttachment(files) {
UploadSelfFile('Attachment', files.file, res => {
if (res.Code == 1) {
console.log(res);
this.fileObj.FileName = res.FileName;
this.fileObj.FileUrl = res.FileUrl;
this.objOption.SupplierContract = res.FileUrl;
}
})
},
}
}
......
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