| | |
| | | </div> |
| | | <div class="btns"> |
| | | <el-button size="small" type="primary" |
| | | @click="addDialogVisible = true, addInfo = {}, currentFile = {}, title = '文件变更申请'">文件变更申请</el-button> |
| | | @click="addDialogVisible = true, addInfo = {}, currentFile = {}, title = '文件变更申请', file = null">文件变更申请</el-button> |
| | | <el-button :loading="outLoading" size="small" type="primary" @click="handleOut">导出</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | | <!-- <ValueTable :key="upIndex" ref="ValueTable" :componentData="componentData" |
| | | :delUrl="$api.manageDocumentList.delManageDocumentAlter" |
| | | :url="$api.manageDocumentList.pageManageDocumentAlter" /> --> |
| | | <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading" |
| | | :height="'calc(100vh - 290px)'" @pagination="pagination"></lims-table> |
| | | </div> |
| | |
| | | this.addInfo = this.HaveJson(row) |
| | | let alterBeforeCode = this.addInfo.alterBeforeCode |
| | | this.getCurrentFile(alterBeforeCode) |
| | | this.file = null |
| | | this.addDialogVisible = true |
| | | }, |
| | | // 预览 |
| | |
| | | // 下载附件 |
| | | handleDown(row) { |
| | | if (!row.alterAfterUrl) return this.$message.warning('文件未上传') |
| | | let url = this.javaApi + '/word/' + row.alterAfterUrl |
| | | this.$download.saveAs(url, row.alterAfterUrl) |
| | | this.$download.downloadFileFromUrl(row.alterAfterUrl, row.alterAfterUrl) |
| | | }, |
| | | // 打开审核弹框 |
| | | handleCheck(row) { |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageDocumentAlter({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | }); |