|
|
|
|
@ -134,6 +134,7 @@ |
|
|
|
|
:on-exceed="handleExceed" |
|
|
|
|
:file-list="fileList" |
|
|
|
|
accept=".pdf,.doc,.docx" |
|
|
|
|
v-if="subTitle == '执行'" |
|
|
|
|
> |
|
|
|
|
<div> |
|
|
|
|
<el-button type="primary">点击上传</el-button> |
|
|
|
|
@ -148,13 +149,13 @@ |
|
|
|
|
</el-upload> |
|
|
|
|
|
|
|
|
|
<div v-if="subTitle == '核查' || subTitle == '核准'" class="attachment-list"> |
|
|
|
|
<h4>附件下载</h4> |
|
|
|
|
<el-button type="text">附件下载</el-button> |
|
|
|
|
<ul> |
|
|
|
|
<li v-for="(file, index) in existingFiles" :key="index"> |
|
|
|
|
<a href="javascript:void(0)" @click="downloadFile(file)">{{ file.name }}</a> |
|
|
|
|
<el-button type="text" size="small" @click="removeExistingFile(index)" |
|
|
|
|
<!-- <el-button type="text" size="small" @click="removeExistingFile(index)" |
|
|
|
|
>删除</el-button |
|
|
|
|
> |
|
|
|
|
> --> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
@ -334,7 +335,7 @@ export default { |
|
|
|
|
console.log(response.data, 'response.data.link'); |
|
|
|
|
// this.ruleForm.attachId = response.data.attachId; |
|
|
|
|
|
|
|
|
|
this.fileList.push(response.data.link); |
|
|
|
|
this.fileList.push(response.data); |
|
|
|
|
}, |
|
|
|
|
handleExceed(files, fileList) { |
|
|
|
|
this.$message.error('标准文件只能上传一份'); |
|
|
|
|
|