|
|
@@ -125,11 +125,8 @@
|
|
|
<el-tab-pane label="批量创建项目">
|
|
|
<el-form :model="project" :rules="rules" ref="project" label-width="12%" class="demo-report">
|
|
|
<el-form-item prop="file" label="Excel模板文件">
|
|
|
- <div>
|
|
|
- <a :href="downloadFile"><i
|
|
|
- class="fa fa-file-text-o"></i>
|
|
|
- {{downloadFile}}</a>
|
|
|
- </div>
|
|
|
+ <a :href="downloadFile"><el-link :underline="false" type="primary"><i
|
|
|
+ class="el-icon-document"></i>下载文档</el-link></a>
|
|
|
</el-form-item>
|
|
|
<el-form-item type="file" prop="file" label="Excel文件">
|
|
|
<el-upload
|
|
|
@@ -253,7 +250,7 @@ export default {
|
|
|
serviceType: [],
|
|
|
platforms: [],
|
|
|
isFormSubmit: true,
|
|
|
- downloadFile: '123.xls',
|
|
|
+ downloadFile: '',
|
|
|
project: {
|
|
|
name: '',
|
|
|
description: '',
|
|
|
@@ -626,10 +623,12 @@ export default {
|
|
|
this.user = storageGet('user')
|
|
|
},
|
|
|
setTemplateExcel () {
|
|
|
+ this.showLoading()
|
|
|
getGreenChannelAddProjectExcelTemplateFile(this.setTemplateExcelSuccess, this.setTemplateExcelFail)
|
|
|
},
|
|
|
setTemplateExcelSuccess (res) {
|
|
|
- this.showLoading()
|
|
|
+ this.hideLoading()
|
|
|
+ this.downloadFile = res.fileUrl
|
|
|
},
|
|
|
setTemplateExcelFail (error) {
|
|
|
this.hideLoading()
|