From 89f387786da0e4383cf06ee162526db54971f9cf Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 23 十月 2025 15:21:16 +0800
Subject: [PATCH] fix: s
---
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..96591f3 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