Add code and execute page to tool management

This commit is contained in:
2024-02-02 17:42:40 +08:00
parent 06213d3414
commit 838c37595d
18 changed files with 770 additions and 30 deletions

View File

@@ -77,7 +77,7 @@ const User = () => {
const dataColumns: _ColumnsType<UserWithRoleInfoVo> = [
{
dataIndex: 'username',
title: '用户',
title: '用户',
render: (value, record) => <AntdTooltip title={record.id}>{value}</AntdTooltip>,
width: '0'
},
@@ -249,7 +249,7 @@ const User = () => {
}
if (pagination.pageSize !== tableParams.pagination?.pageSize) {
setGroupData([])
setUserData([])
}
}
@@ -584,7 +584,7 @@ const User = () => {
}
}
const handleOnSearchNameKeyDown = (e: KeyboardEvent) => {
const handleOnSearchValueKeyDown = (e: KeyboardEvent) => {
if (e.key === 'Enter') {
getUser()
}
@@ -936,7 +936,7 @@ const User = () => {
allowClear
value={searchValue}
onChange={handleOnSearchValueChange}
onKeyDown={handleOnSearchNameKeyDown}
onKeyDown={handleOnSearchValueKeyDown}
status={isRegexLegal ? undefined : 'error'}
/>
</Card>