From 457f9c817adef8b003ee6379f493798bae5cbb69 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期一, 19 五月 2025 09:31:19 +0800
Subject: [PATCH] 修改

---
 src/views/Admin/components/sameLevelMod.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/views/Admin/components/sameLevelMod.vue b/src/views/Admin/components/sameLevelMod.vue
index f235579..cda1623 100644
--- a/src/views/Admin/components/sameLevelMod.vue
+++ b/src/views/Admin/components/sameLevelMod.vue
@@ -100,7 +100,7 @@
         phone: '',
         unittype: null,
         districtId: null,
-        peerRecipientGroupId: null
+        peerRecipientGroupId: ''
       },
       rules: {
         recipientName: [{ required: true, message: '请输入姓名或称呼', trigger: 'blur'}],
@@ -115,6 +115,11 @@
   methods:{
     openDialog(type,data,group){
       const t = this
+      group.forEach(item => {
+        if(item.name === '未分类'){
+          item.id = ''
+        }
+      })
       t.groupData = group
       console.log(t.groupData,'data222')
       if(type == 'add'){
@@ -126,7 +131,7 @@
           phone: '',
           unittype: null,
           districtId: null,
-          peerRecipientGroupId: null
+          peerRecipientGroupId: ''
         }
       }else{
         t.title = '编辑用户'
@@ -135,7 +140,7 @@
             t.form[i] = data[i]
           }
         }
-        t.form.peerRecipientGroupId = data.peerRecipientGroupId ? data.peerRecipientGroupId: null
+        t.form.peerRecipientGroupId = data.peerRecipientGroupId ? data.peerRecipientGroupId: ''
       }
       t.visible = true
     },

--
Gitblit v1.9.2