mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-25 00:16:06 +08:00
修复退出登录和定时任务搜索
This commit is contained in:
parent
ce6aa23d5b
commit
7ef3de1367
|
@ -272,7 +272,7 @@ export default function (props: any) {
|
||||||
collapsed={collapsed}
|
collapsed={collapsed}
|
||||||
rightContentRender={() =>
|
rightContentRender={() =>
|
||||||
ctx.isPhone && (
|
ctx.isPhone && (
|
||||||
<Dropdown overlay={menu} trigger={['click', 'hover']}>
|
<Dropdown overlay={menu} placement="bottomRight" trigger={['click']}>
|
||||||
<span className="side-menu-user-wrapper">
|
<span className="side-menu-user-wrapper">
|
||||||
<Avatar shape="square" size="small" icon={<UserOutlined />} />
|
<Avatar shape="square" size="small" icon={<UserOutlined />} />
|
||||||
<span style={{ marginLeft: 5 }}>admin</span>
|
<span style={{ marginLeft: 5 }}>admin</span>
|
||||||
|
@ -289,7 +289,7 @@ export default function (props: any) {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{!collapsed && !ctx.isPhone && (
|
{!collapsed && !ctx.isPhone && (
|
||||||
<Dropdown overlay={menu} trigger={['hover']}>
|
<Dropdown overlay={menu} placement="topLeft" trigger={['hover']}>
|
||||||
<span className="side-menu-user-wrapper">
|
<span className="side-menu-user-wrapper">
|
||||||
<Avatar shape="square" size="small" icon={<UserOutlined />} />
|
<Avatar shape="square" size="small" icon={<UserOutlined />} />
|
||||||
<span style={{ marginLeft: 5 }}>admin</span>
|
<span style={{ marginLeft: 5 }}>admin</span>
|
||||||
|
|
|
@ -96,7 +96,7 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => {
|
||||||
style={{ cursor: 'point' }}
|
style={{ cursor: 'point' }}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
setSearchText(`label:${label}`);
|
setSearchValue(`label:${label}`);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<a>{label}</a>
|
<a>{label}</a>
|
||||||
|
@ -364,6 +364,7 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => {
|
||||||
const [tableScrollHeight, setTableScrollHeight] = useState<number>();
|
const [tableScrollHeight, setTableScrollHeight] = useState<number>();
|
||||||
const [isDetailModalVisible, setIsDetailModalVisible] = useState(false);
|
const [isDetailModalVisible, setIsDetailModalVisible] = useState(false);
|
||||||
const [detailCron, setDetailCron] = useState<any>();
|
const [detailCron, setDetailCron] = useState<any>();
|
||||||
|
const [searchValue, setSearchValue] = useState('');
|
||||||
|
|
||||||
const goToScriptManager = (record: any) => {
|
const goToScriptManager = (record: any) => {
|
||||||
const cmd = record.command.split(' ') as string[];
|
const cmd = record.command.split(' ') as string[];
|
||||||
|
@ -842,7 +843,8 @@ const Crontab = ({ headerStyle, isPhone, theme }: any) => {
|
||||||
enterButton
|
enterButton
|
||||||
allowClear
|
allowClear
|
||||||
loading={loading}
|
loading={loading}
|
||||||
value={searchText}
|
value={searchValue}
|
||||||
|
onChange={(e) => setSearchValue(e.target.value)}
|
||||||
onSearch={onSearch}
|
onSearch={onSearch}
|
||||||
/>,
|
/>,
|
||||||
<Button key="2" type="primary" onClick={() => addCron()}>
|
<Button key="2" type="primary" onClick={() => addCron()}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user