From b1187d1141a17fea3a7c184db73f232ca9877a85 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 15 二月 2025 15:41:39 +0800
Subject: [PATCH] 能力范围-零件绑定联调

---
 src/components/capability/EditForm.vue |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/components/capability/EditForm.vue b/src/components/capability/EditForm.vue
index 2a74a3f..3543847 100644
--- a/src/components/capability/EditForm.vue
+++ b/src/components/capability/EditForm.vue
@@ -317,9 +317,7 @@
           let obj = this.HaveJson(this.editForm)
           obj.method = JSON.stringify(obj.method)
           obj.sample = JSON.stringify(obj.sample)
-          if (obj.radiusList !== null && obj.radiusList.length > 0) {
-            obj.radiusList = JSON.stringify(obj.radiusList)
-          }
+          obj.radiusList = JSON.stringify(obj.radiusList)
           if(obj.id){
             // 淇敼
             upItemParameter(obj).then(res => {
@@ -329,7 +327,7 @@
               }
               this.$message.success('淇敼鎴愬姛')
               this.editFormDia = false
-              this.$emit('refreshTable')
+              this.$emit('refreshList')
             }).catch(e => {
               this.editLoad = false
             })
@@ -342,7 +340,7 @@
               }
               this.$message.success('娣诲姞鎴愬姛')
               this.editFormDia = false
-              this.$emit('refreshTable')
+              this.$emit('refreshList')
             }).catch(e => {
               this.editLoad = false
             })
@@ -353,7 +351,7 @@
     // 鍏抽棴寮规
     closeDia () {
       this.editFormDia = false
-      this.$refs.editForm.resetFields()
+      this.resetForm("editForm");
     },
     selectTestObjectByName() {
       getItemTree().then(res => {

--
Gitblit v1.9.3