import React from 'react'; import { debounce } from 'lodash'; import { Row, Input, Radio, Col, Select } from "antd"; import { useStore } from '../index'; import { RoleTypeEnum, UseTypeEnum } from '../entity'; const Search = Input.Search; const RadioButton = Radio.Button; const RadioGroup = Radio.Group; const Option = Select.Option; export default function RoleFilter() { const { setParams, systems, innerParams } = useStore(); const fetchListByName = debounce(value => { setParams({ ...innerParams, roleName: value, current: 1 }, true); }, 500); return ( setParams({ ...innerParams, status: e.target.value, current: 1 }, true)}> 全部 启用 禁用 {/* 已删除 */} fetchListByName(e.target.value || undefined)} onSearch={value => setParams({ ...innerParams, roleName: value || undefined, current: 1 }, true)} style={{ width: 200, marginRight: 10, marginBottom: 10 }} /> ) }