mirror of
https://github.com/whyour/qinglong.git
synced 2025-07-27 14:46:06 +08:00
修改cron新建label
This commit is contained in:
parent
a722b59a13
commit
962a81c81e
|
@ -362,7 +362,7 @@ const Config = () => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleCancel = (cookies: any[]) => {
|
const handleCancel = (cookies?: any[]) => {
|
||||||
setIsModalVisible(false);
|
setIsModalVisible(false);
|
||||||
if (cookies && cookies.length > 0) {
|
if (cookies && cookies.length > 0) {
|
||||||
handleCookies(cookies);
|
handleCookies(cookies);
|
||||||
|
|
|
@ -10,7 +10,7 @@ const CookieModal = ({
|
||||||
}: {
|
}: {
|
||||||
cookie?: any;
|
cookie?: any;
|
||||||
visible: boolean;
|
visible: boolean;
|
||||||
handleCancel: (needUpdate?: boolean) => void;
|
handleCancel: (cks?: any[]) => void;
|
||||||
}) => {
|
}) => {
|
||||||
const [form] = Form.useForm();
|
const [form] = Form.useForm();
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
|
@ -92,7 +92,7 @@ const CookieModal = ({
|
||||||
<Input.TextArea
|
<Input.TextArea
|
||||||
rows={4}
|
rows={4}
|
||||||
autoSize={true}
|
autoSize={true}
|
||||||
placeholder="请输入cookie,多个cookie换行输入"
|
placeholder="请输入cookie,可直接换行输入多个cookie"
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form>
|
</Form>
|
||||||
|
|
|
@ -68,14 +68,14 @@ const CronModal = ({
|
||||||
>
|
>
|
||||||
<Form form={form} layout="vertical" name="form_in_modal" preserve={false}>
|
<Form form={form} layout="vertical" name="form_in_modal" preserve={false}>
|
||||||
<Form.Item name="name" label="名称">
|
<Form.Item name="name" label="名称">
|
||||||
<Input />
|
<Input placeholder="请输入任务名称" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item name="command" label="任务" rules={[{ required: true }]}>
|
<Form.Item name="command" label="命令" rules={[{ required: true }]}>
|
||||||
<Input />
|
<Input placeholder="请输入要执行的命令" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="schedule"
|
name="schedule"
|
||||||
label="时间"
|
label="定时规则"
|
||||||
rules={[
|
rules={[
|
||||||
{ required: true },
|
{ required: true },
|
||||||
{
|
{
|
||||||
|
@ -89,7 +89,7 @@ const CronModal = ({
|
||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<Input />
|
<Input placeholder="秒(可选) 分 时 天 月 周" />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form>
|
</Form>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user