多租户与景区关系

This commit is contained in:
2025-09-29 19:29:41 +08:00
parent 4c154ec746
commit dbd4d4d198
37 changed files with 997 additions and 267 deletions
@@ -1,5 +1,6 @@
import React from 'react';
import React from 'react';
import { ModalForm, ProForm, ProFormRadio, ProFormText } from '@ant-design/pro-components';
import TenantSelector from '@/components/ui/TenantSelector';
import { RoleItem } from '@/services/role';
export interface RoleFormProps {
@@ -22,13 +23,14 @@ const RoleForm: React.FC<RoleFormProps> = ({ open, title, initialValues, onOpenC
width={500}
>
<ProForm.Group>
<TenantSelector hideIncludeChildren rulesTenant={[{ required: true, message: '请选择所属租户' }]} />
<ProFormText name="name" label="角色名称" rules={[{ required: true, message: '角色名不能为空' }]} width="lg" />
<ProFormText name="code" label="编码" rules={[{ required: true, message: '编码不能为空' }]} width="lg" />
<ProFormRadio.Group
name="dataScope"
label="数据权限"
width="lg"
options={[{ label: '全部', value: 'ALL' }, { label: '本人', value: 'CREATOR' }]}
options={[{ label: '全部', value: 'ALL' }, { label: '自定义', value: 'CREATOR' }]}
/>
</ProForm.Group>
</ModalForm>
@@ -36,3 +38,4 @@ const RoleForm: React.FC<RoleFormProps> = ({ open, title, initialValues, onOpenC
};
export default RoleForm;