chenrui
2025-02-28 ff28e6db2f3535812a753a7213cc106ece8f297c
src/views/CNAS/personnel/personnelInfo/components/ViewRecord.vue
@@ -35,6 +35,7 @@
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',
@@ -126,6 +127,11 @@
    },
    // 删除
    delete (row) {
      this.$confirm('是否删除当前数据?', "警告", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      }).then(() => {
      this.tableLoading = true
      delTrainingDetailedFileList({detailedFileId: row.detailedFileId}).then(res => {
        this.tableLoading = false
@@ -135,6 +141,7 @@
        this.tableLoading = false
        console.log('err---', err);
      })
      }).catch(() => {})
    },
    // 上传验证
    fileBeforeUpload(file) {
@@ -167,7 +174,7 @@
  },
  computed: {
    fileAction() {
      return this.javaApi + '/personTraining/delTrainingDetailedFileList'
      return this.javaApi + '/personTraining/uploadTrainingDetailedFile'
    }
  },