1:首页时间选择优化 2:用户管理页面查询优化
This commit is contained in:
@@ -9,7 +9,7 @@ import RoleForm from './components/RoleForm';
|
||||
import AssignAuth from './components/AssignAuth';
|
||||
|
||||
const RolePage: React.FC = () => {
|
||||
const [params, setParams] = useState<{ tenantId?: string; includeChildren?: boolean; searchKey?: string; searchValue?: string }>({});
|
||||
const [params, setParams] = useState<{ tenantId?: string; includeChildren?: boolean; searchKey?: string; searchValue?: string; _timestamp?: number }>({});
|
||||
const [createOpen, setCreateOpen] = useState(false);
|
||||
const [editOpen, setEditOpen] = useState(false);
|
||||
const [assignOpen, setAssignOpen] = useState(false);
|
||||
@@ -72,9 +72,11 @@ const RolePage: React.FC = () => {
|
||||
split
|
||||
span={6}
|
||||
onTenantChanged={(tenantId, includeChildren) => {
|
||||
setParams((prev) => ({ ...(prev || {}), tenantId, includeChildren }));
|
||||
setParams((prev) => ({ ...(prev || {}), tenantId, includeChildren, _timestamp: Date.now() }));
|
||||
}}
|
||||
onFinish={async (values) => {
|
||||
setParams((prev) => ({ ...(prev || {}), ...values, _timestamp: Date.now() }));
|
||||
}}
|
||||
onFinish={async (values) => setParams(values)}
|
||||
>
|
||||
<ProFormSelect name="searchKey" label="搜索" valueEnum={{ name: '角色名称' }} />
|
||||
<ProFormText name="searchValue" placeholder="请输入关键字" />
|
||||
|
||||
Reference in New Issue
Block a user