This commit is contained in:
zhutianqi
2021-12-27 20:43:46 +08:00
parent cd450ce285
commit 3d24519c51
2 changed files with 6 additions and 4 deletions
@@ -47,7 +47,7 @@
<span @click="clickButtonToUpload(item)">{{ item.name }}</span> <span @click="clickButtonToUpload(item)">{{ item.name }}</span>
<el-button <el-button
size="small" size="small"
@click="updateFile(item)" @click="updateFile2(item)"
icon="el-icon-download" icon="el-icon-download"
style="height: 32px; margin-left: 5px;" style="height: 32px; margin-left: 5px;"
></el-button> ></el-button>
@@ -63,7 +63,7 @@
<span @click="clickButtonToUpload(item)">{{ item.name }}</span> <span @click="clickButtonToUpload(item)">{{ item.name }}</span>
<el-button <el-button
size="small" size="small"
@click="updateFile(item)" @click="updateFile2(item)"
icon="el-icon-download" icon="el-icon-download"
style="height: 32px; margin-left: 5px;" style="height: 32px; margin-left: 5px;"
></el-button> ></el-button>
@@ -346,6 +346,9 @@
updateFile (item) { updateFile (item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.fileId window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.fileId
}, },
updateFile2 (item) {
window.location.href = '/api/att/attFile/downloadFile?fileId=' + item.id
},
// 导入按钮 上传之前的钩子 // 导入按钮 上传之前的钩子
beginImportFile (file) { beginImportFile (file) {
var filename = file.name var filename = file.name
@@ -385,7 +388,6 @@
} }
}, },
fileUpload () { fileUpload () {
this.fileMadel = true this.fileMadel = true
}, },
handleTabs(name) { handleTabs(name) {
@@ -464,7 +464,7 @@ export default {
if (this.commentText) { if (this.commentText) {
this.isSubmit = true this.isSubmit = true
var json = this.json var json = this.json
json.directorFlag = '0' json.directorFlag = '1'
json.commentText = this.commentText json.commentText = this.commentText
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json), json: JSON.stringify(json),