From dab59f7624a2fb8d4114bb67b554ff09d91f810c Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 10 四月 2025 13:07:36 +0800
Subject: [PATCH] Merge branch 'radio-frequency-cable' of http://114.132.189.42:9002/r/lims-ruoyi-before into radio-frequency-cable

---
 src/views/CNAS/personnel/personnelInfo/components/Edit.vue |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/views/CNAS/personnel/personnelInfo/components/Edit.vue b/src/views/CNAS/personnel/personnelInfo/components/Edit.vue
index 2e6d1dd..717ca98 100644
--- a/src/views/CNAS/personnel/personnelInfo/components/Edit.vue
+++ b/src/views/CNAS/personnel/personnelInfo/components/Edit.vue
@@ -137,7 +137,7 @@
 import {
   newPersonnelAddedToTrainingRecords,
   outOfFocusPreservation, trainingAndAssessmentRecordsAdded, trainingAndAssessmentRecordsEvaluate,
-  trainingAndAssessmentRecordsPage
+  trainingAndAssessmentRecordsPage, deleteTrainingAndAssessmentRecords
 } from "@/api/cnas/personal/personalTraining";
 
 export default {
@@ -221,6 +221,7 @@
       },
       addUserTableInfo: {
         name: null,
+        type: 2
       },
       multipleSelection: [],
       userList: [],
@@ -300,15 +301,13 @@
     },
     batchDelete() {
       if (this.multipleSelection.length > 0) {
-        let ids = this.multipleSelection.map(item => item.trainingRecordId)
+        let ids = this.multipleSelection.map(item => item.trainingRecordId).join(',')
         this.$confirm('鏄惁纭鍒犻櫎鎵�閫夋嫨鐨勬暟鎹�?', '鎻愮ず', {
           confirmButtonText: '纭畾',
           cancelButtonText: '鍙栨秷',
           type: 'warning'
         }).then(() => {
-          let formData = new FormData()
-          formData.append('ids', ids)
-          deleteTrainingAndAssessmentRecords(formData).then(res => {
+          deleteTrainingAndAssessmentRecords({ids: ids}).then(res => {
             if (res.code == 200) {
               this.$message.success('鍒犻櫎鎴愬姛');
               this.getInfo()

--
Gitblit v1.9.3