|
@@ -207,6 +207,7 @@ export default {
|
|
|
price: '',
|
|
|
datetime: ''
|
|
|
},
|
|
|
+ excelFile:{},
|
|
|
rules: {
|
|
|
// name: [
|
|
|
// {required: true, message: '请输入报告名称', trigger: 'blur'}
|
|
@@ -307,17 +308,7 @@ export default {
|
|
|
|
|
|
},
|
|
|
uploadProjectCreateExcelFile (param) {
|
|
|
- const formData = new FormData()
|
|
|
- let config = {
|
|
|
- //添加请求头
|
|
|
- headers: {'Content-Type': 'multipart/form-data'},
|
|
|
- }
|
|
|
- formData.append('file', param.file)
|
|
|
- Http.upload(Apis.PROJECT.ADD_PROJECT_BY_EXCEL, formData, config).then((res) => {
|
|
|
- console.log('上传成功')
|
|
|
- this.project.excelFileUrl = res.data
|
|
|
- console.log(res.data)
|
|
|
- })
|
|
|
+ this.excelFile = param.file
|
|
|
},
|
|
|
uploadRequireDoc (param) {
|
|
|
const formData = new FormData()
|