| | |
| | | // 切换数据查看tab栏 |
| | | handleDataVisibleTab(m, i) { |
| | | this.dataVisibleIndex = i |
| | | this.pageFile.current = 1 |
| | | this.getFileList() |
| | | }, |
| | | // 查询回调 |
| | |
| | | this.entity.insOrderId = this.filesLookInfo.quarterOrderId |
| | | } |
| | | this.tableLoadingFile = true |
| | | const params = { ...this.entity } |
| | | const params = { ...this.entity, current: this.pageFile.current, size: this.pageFile.size } |
| | | getFileList(params).then(res => { |
| | | this.tableLoadingFile = false |
| | | if (res.code === 200) { |
| | |
| | | }) |
| | | }, |
| | | paginationFile(page) { |
| | | this.pageFile.current = page.page |
| | | this.pageFile.size = page.limit |
| | | this.getFileList() |
| | | }, |
| | | // 下载 |
| | | handleDown(row) { |
| | | downFile({ id: row.id, }).then(res => { |
| | | this.$download.saveAs(res.data.fileUrl, row.fileName); |
| | | return this.$download.attachment(res.data, row.fileName); |
| | | }).catch(error => { |
| | | |
| | | }) |