From 0b73bba28e2a8473ab71f5c8b4760c1995ff4fc1 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期二, 21 十月 2025 18:29:07 +0800
Subject: [PATCH] fix: s
---
src/views/Account/components/AddOrEditAccountDialog.vue | 30 ++----------------------------
1 files changed, 2 insertions(+), 28 deletions(-)
diff --git a/src/views/Account/components/AddOrEditAccountDialog.vue b/src/views/Account/components/AddOrEditAccountDialog.vue
index c0d3ffa..96591f3 100644
--- a/src/views/Account/components/AddOrEditAccountDialog.vue
+++ b/src/views/Account/components/AddOrEditAccountDialog.vue
@@ -29,14 +29,8 @@
>
<ProFormText placeholder="璇疯緭鍏ユ墜鏈哄彿" v-model.trim="form.phoneNumber"></ProFormText>
</ProFormItemV2>
- <ProFormItemV2 label="娓犻亾:" prop="channel" :check-rules="[{ message: '璇疯緭鍏ユ笭閬�' }]">
- <ProFormText
- placeholder="璇疯緭鍏ユ笭閬�"
- v-model.trim="form.channel"
- :maxlength="30"
- ></ProFormText>
- </ProFormItemV2>
<ProFormItemV2
+ v-if="!isEdit"
label="瀵嗙爜:"
prop="password"
:check-rules="[{ message: '璇疯緭鍏ュ瘑鐮�', required: !form.id }]"
@@ -46,16 +40,6 @@
v-model.trim="form.password"
:maxlength="30"
></ProFormText>
- </ProFormItemV2>
- <ProFormItemV2 label="瑙掕壊:" prop="roleName" :check-rules="[{ message: '璇烽�夋嫨瑙掕壊' }]">
- <ProFormRadio
- v-model.trim="form.roleName"
- :value-enum="allRoleList"
- :button-style="false"
- enum-label-key="name"
- enum-value-key="realName"
- :disabled="!!form.id"
- />
</ProFormItemV2>
<ProFormItemV2 label="澶囨敞:" prop="remark">
@@ -82,12 +66,9 @@
ProForm,
ProFormItemV2,
ProFormText,
- ProFormRadio,
ProFormTextArea,
- ProFormCheckbox,
} from '@bole-core/components';
import { BooleanOptions } from '@/constants';
-import { useAllRoleList } from '@/hooks';
defineOptions({
name: 'AddOrEditAccountDialog',
@@ -105,25 +86,18 @@
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;
}>();
const dialogForm = ref<FormInstance>();
-
-const { allRoleList } = useAllRoleList();
function onDialogClose() {
if (!dialogForm.value) return;
--
Gitblit v1.9.1