From e5454b769d44a34af423bf87ac8a740bf8c20341 Mon Sep 17 00:00:00 2001
From: Crunchy <3114200645@qq.com>
Date: 星期二, 29 四月 2025 13:25:29 +0800
Subject: [PATCH] Merge branch 'dev' into dev_tides

---
 src/views/CNAS/personnel/personnelInfo/components/ViewRecord.vue |   27 +++++++++++++++++----------
 1 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/src/views/CNAS/personnel/personnelInfo/components/ViewRecord.vue b/src/views/CNAS/personnel/personnelInfo/components/ViewRecord.vue
index 36364cf..e9938c7 100644
--- a/src/views/CNAS/personnel/personnelInfo/components/ViewRecord.vue
+++ b/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,15 +127,21 @@
     },
     // 鍒犻櫎
     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) {
@@ -167,7 +174,7 @@
   },
   computed: {
     fileAction() {
-      return this.javaApi + '/personTraining/delTrainingDetailedFileList'
+      return this.javaApi + '/personTraining/uploadTrainingDetailedFile'
 
     }
   },

--
Gitblit v1.9.3