Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ujia
/
uj-store
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a2560816
authored
Oct 12, 2026
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.0.0' of
http://192.168.3.233:8090/ujia/uj-store
into v1.0.0
2 parents
823aa6f3
7a373041
Pipeline
#333
for
a2560816
failed
in 0 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
8 deletions
src/components/CombiForm/index.tsx
src/pages/AccountManage/index.tsx
src/pages/RoleManage/components/RoleModal.tsx
src/pages/RoleManage/index.tsx
src/components/CombiForm/index.tsx
View file @
a256081
...
...
@@ -76,6 +76,10 @@ export function CombiForm<T extends Record<string, unknown>>({
<USelect
options={field.options}
mode={field.type === 'selectMultiple' ? 'multiple' : undefined}
placeholder={
field.selectProps?.placeholder ??
'请选择' + (typeof field.label === 'string' ? field.label : '')
}
disabled={disabled}
style={{ width: '100%' }}
{...field.selectProps}
...
...
src/pages/AccountManage/index.tsx
View file @
a256081
...
...
@@ -123,18 +123,19 @@ export default function AccountManage() {
{
title: '账号',
dataIndex: 'account',
width: 180,
width: 160,
line: 1,
render: (value) => (
<UText style={{ color: '#315ce8', fontFamily: 'monospace' }}>{value}</UText>
),
},
{ title: '姓名', dataIndex: 'name', width: 110 },
{ title: '姓名', dataIndex: 'name', width: 110
, line: 1
},
{ title: '手机号', dataIndex: 'mobile', width: 120 },
{ title: '所属组织', dataIndex: 'orgPath', width: 2
6
0, line: 1 },
{ title: '所属组织', dataIndex: 'orgPath', width: 2
3
0, line: 1 },
{
title: '角色',
dataIndex: 'roleNames',
width: 2
2
0,
width: 2
8
0,
render: (names: string[]) =>
names.length
? names.map((name) => (
...
...
src/pages/RoleManage/components/RoleModal.tsx
View file @
a256081
...
...
@@ -34,7 +34,7 @@ export function RoleModal({ open, roleItem, onCancel, onSuccess }: RoleModalProp
mutationFn: (values: RoleFormValues) => {
const payload = {
roleName: values.roleName.trim(),
defaultDataScope: Number(
values.defaultDataScope
),
defaultDataScope: Number(
1
),
sort: Number(values.sort),
status: Number(values.status),
description: values.description?.trim() || undefined,
...
...
@@ -58,7 +58,7 @@ export function RoleModal({ open, roleItem, onCancel, onSuccess }: RoleModalProp
sort: String(roleItem?.sort ?? 10),
status: roleItem?.status ?? 1,
description: roleItem?.description ?? '',
defaultDataScope:
roleItem?.defaultDataScope
,
defaultDataScope:
Number(roleItem?.defaultDataScope ?? 1)
,
});
}, [form, open, roleItem]);
...
...
@@ -117,6 +117,7 @@ export function RoleModal({ open, roleItem, onCancel, onSuccess }: RoleModalProp
name: 'defaultDataScope',
label: '默认数据域',
type: 'select',
disabled: true,
section: '数据域',
options: dataScopeOptions,
rules: [{ required: true, message: '请选择默认数据域' }],
...
...
src/pages/RoleManage/index.tsx
View file @
a256081
...
...
@@ -110,16 +110,17 @@ export default function RoleManage() {
},
];
const columns: DataTableColumnsType<Row> = [
{ title: '角色名称', dataIndex: 'name', width: 200 },
{ title: '角色名称', dataIndex: 'name', width: 200
, line: 1
},
{
title: '角色编码',
dataIndex: 'code',
width: 150,
line: 1,
render: (v) => <UText style={{ color: '#315ce8', fontFamily: 'monospace' }}>{v}</UText>,
},
{ title: '默认数据域', dataIndex: 'scope', width: 130 },
{ title: '账号数', dataIndex: 'userCount', width: 90 },
{ title: '角色描述', dataIndex: 'description', width: 3
2
0, line: 1 },
{ title: '角色描述', dataIndex: 'description', width: 3
8
0, line: 1 },
{
title: '类型',
dataIndex: 'type',
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment