From 1b0bbe7fbe3d62779356f0729f086ceb3901e17b Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 09 四月 2025 16:39:18 +0800
Subject: [PATCH] feat: 接口

---
 src/views/Account/components/AddOrEditAccountDialog.vue |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/views/Account/components/AddOrEditAccountDialog.vue b/src/views/Account/components/AddOrEditAccountDialog.vue
index 97a542a..a9cf30c 100644
--- a/src/views/Account/components/AddOrEditAccountDialog.vue
+++ b/src/views/Account/components/AddOrEditAccountDialog.vue
@@ -30,6 +30,7 @@
         <ProFormText placeholder="璇疯緭鍏ユ墜鏈哄彿" v-model.trim="form.phoneNumber"></ProFormText>
       </ProFormItemV2>
       <ProFormItemV2
+        v-if="isEdit"
         label="瀵嗙爜:"
         prop="password"
         :check-rules="[{ message: '璇疯緭鍏ュ瘑鐮�', required: !form.id }]"
@@ -65,9 +66,7 @@
   ProForm,
   ProFormItemV2,
   ProFormText,
-  ProFormRadio,
   ProFormTextArea,
-  ProFormCheckbox,
 } from '@bole-core/components';
 import { BooleanOptions } from '@/constants';
 
@@ -87,17 +86,12 @@
   userName: string;
   name: string;
   phoneNumber: string;
-  channel: string;
   password: string;
-  roleName: string;
   remark: string;
-  isSendMessage?: boolean;
-  sendClaimMessage?: boolean;
-  sendBillExpireMessage?: boolean;
 };
 
 const form = defineModel<Form>('form');
-
+const isEdit = computed(() => !!form.value?.id);
 const emit = defineEmits<{
   (e: 'onConfirm'): void;
   (e: 'onCancel'): void;

--
Gitblit v1.9.1