chenrui
2025-03-07 14bc915349f56e1276793aedd7598380b385e5aa
src/views/CNAS/process/ensureResults/ensureResultsValidity/components/ViewRecord.vue
@@ -6,7 +6,7 @@
                   :action="fileAction"
                   :auto-upload="true"
                   :before-upload="fileBeforeUpload" :data="{detailsEvaluateId: info.detailsEvaluateId}"
                   :headers="headers" :on-error="onError"
                   :headers="uploadHeader" :on-error="onError"
                   :on-success="handleSuccessUp"
                   :show-file-list="false"
                   accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar' style="width: 80px !important;">
@@ -32,6 +32,11 @@
import file from '@/utils/file';
import filePreview from '@/components/Preview/filePreview.vue';
import limsTable from "@/components/Table/lims-table.vue";
import {
  delVerifyEvaluateFileList,
  getEvaluateFileList
} from '@/api/cnas/process/ensureResults/qualityMonitor'
export default {
  name: 'ViewRecord',
@@ -96,10 +101,11 @@
    // 查询附件列表
    searchTableList () {
      this.tableLoading = true
      this.$axios.get(this.$api.qualityMonitor.getEvaluateFileList + '?detailsEvaluateId=' + this.info.detailsEvaluateId).then(res => {
      getEvaluateFileList({detailsEvaluateId:this.info.detailsEvaluateId}).then(res => {
        this.tableLoading = false
        if (res.code === 201) return
        this.tableData = res.data
        if (res.code === 200){
          this.tableData = res.data
        }
      }).catch(err => {
        this.tableLoading = false
        console.log('err---', err);
@@ -125,7 +131,7 @@
    // 删除
    delete (row) {
      this.tableLoading = true
      this.$axios.get(this.$api.qualityMonitor.delVerifyEvaluateFileList + '?evaluateFileId=' + row.evaluateFileId).then(res => {
      delVerifyEvaluateFileList({evaluateFileId : row.evaluateFileId}).then(res => {
        this.tableLoading = false
        if (res.code === 201) return
        this.$message.success('删除成功')
@@ -165,13 +171,8 @@
    },
  },
  computed: {
    headers() {
      return {
        'token': sessionStorage.getItem('token')
      }
    },
    fileAction() {
      return this.javaApi + this.$api.qualityMonitor.uploadEvaluateFile
      return this.javaApi + '/qualityMonitor/uploadEvaluateFile'
    }
  },