| | |
| | | this.tableLoading = true |
| | | getInternalCorrectFileList({ correctId: this.info.correctId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data |
| | | }).catch(err => { |
| | | this.tableLoading = false |
| | |
| | | }, |
| | | // 下载 |
| | | upload(row) { |
| | | this.$download.downloadFileFromUrl(row.fileUrl, row.fileName) |
| | | this.$download.saveAs(row.fileUrl, row.fileName) |
| | | }, |
| | | // 删除 |
| | | delete(row) { |
| | | this.tableLoading = true |
| | | delInternalCorrectFile({ correctFileId: row.correctFileId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('删除成功') |
| | | this.searchTableList() |
| | | }).catch(err => { |