流程管理问题修改

dev-scheduling
zhangdi 2 weeks ago
parent d3f3565b3c
commit 9c7ca296d3
  1. 9
      src/views/flowManagement/milestoneDialog.vue

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

Loading…
Cancel
Save