| | |
| | | import filePreview from '@/components/Preview/filePreview.vue'; |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import {delTrainingDetailedFileList, getTrainingDetailedFileList} from "@/api/cnas/personal/personalTraining"; |
| | | import {delCustomById} from "@/api/system/customer"; |
| | | |
| | | export default { |
| | | name: 'ViewRecord', |
| | |
| | | }, |
| | | // 删除 |
| | | delete (row) { |
| | | this.tableLoading = true |
| | | delTrainingDetailedFileList({detailedFileId: row.detailedFileId}).then(res => { |
| | | this.tableLoading = false |
| | | this.$message.success('删除成功') |
| | | this.searchTableList() |
| | | }).catch(err => { |
| | | this.tableLoading = false |
| | | console.log('err---', err); |
| | | }) |
| | | this.$confirm('是否删除当前数据?', "警告", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }).then(() => { |
| | | this.tableLoading = true |
| | | delTrainingDetailedFileList({detailedFileId: row.detailedFileId}).then(res => { |
| | | this.tableLoading = false |
| | | this.$message.success('删除成功') |
| | | this.searchTableList() |
| | | }).catch(err => { |
| | | this.tableLoading = false |
| | | console.log('err---', err); |
| | | }) |
| | | }).catch(() => {}) |
| | | }, |
| | | // 上传验证 |
| | | fileBeforeUpload(file) { |
| | |
| | | }, |
| | | computed: { |
| | | fileAction() { |
| | | return this.javaApi + '/personTraining/delTrainingDetailedFileList' |
| | | return this.javaApi + '/personTraining/uploadTrainingDetailedFile' |
| | | |
| | | } |
| | | }, |