wupengfei
2025-04-10 8fb20fc31b4be097e5408b9ecfeb5002ebe042f3
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;