Commit 63c38bdb authored by 皮倩雯's avatar 皮倩雯

fix: '定时任务bug修复'

parent 856cb548
Pipeline #85161 passed with stages
...@@ -71,7 +71,7 @@ const AddModal = props => { ...@@ -71,7 +71,7 @@ const AddModal = props => {
: moment(new Date(new Date().toLocaleDateString()), 'YYYY-MM-DD 00:00:00'); : moment(new Date(new Date().toLocaleDateString()), 'YYYY-MM-DD 00:00:00');
form.setFieldsValue({ form.setFieldsValue({
name: record.Name, name: record.Name,
is_enable: record.Enabled, is_enable: !record.Enabled,
url_type: record.Absolute ? true : false, url_type: record.Absolute ? true : false,
url_path: record.Url, url_path: record.Url,
request_header: record.CustomHeader, request_header: record.CustomHeader,
...@@ -98,7 +98,7 @@ const AddModal = props => { ...@@ -98,7 +98,7 @@ const AddModal = props => {
.format('YYYY-MM-DD 00:00:00') .format('YYYY-MM-DD 00:00:00')
: moment().format('YYYY-MM-DD 00:00:00'); : moment().format('YYYY-MM-DD 00:00:00');
setExeTime(record.StartFrom ? record.StartFrom : startTimeValue); setExeTime(record.StartFrom ? record.StartFrom : startTimeValue);
setIsUse(record.Enabled); setIsUse(!record.Enabled);
changeLoopMode(record.LoopMode); changeLoopMode(record.LoopMode);
setReenCheck(record.AllowReentrant); setReenCheck(record.AllowReentrant);
setPostCheck(record.UsePostState); setPostCheck(record.UsePostState);
...@@ -181,7 +181,7 @@ const AddModal = props => { ...@@ -181,7 +181,7 @@ const AddModal = props => {
UsePostState: fv.post_state, UsePostState: fv.post_state,
AllowReentrant: fv.reentrant, AllowReentrant: fv.reentrant,
AllowLog: fv.enable_log, AllowLog: fv.enable_log,
Enabled: isUse, Enabled: !isUse,
Timeout: time_out ? parseInt(time_out) * 1000 : 30000, Timeout: time_out ? parseInt(time_out) * 1000 : 30000,
Absolute: fv.url_type, Absolute: fv.url_type,
SiteInfo: null, SiteInfo: null,
......
...@@ -126,9 +126,9 @@ const ScheduledTasks = () => { ...@@ -126,9 +126,9 @@ const ScheduledTasks = () => {
align: 'center', align: 'center',
width: 150, width: 150,
render: (text, record) => { render: (text, record) => {
if (text === true) { if (text === false) {
return <Tag color="blue"></Tag>; return <Tag color="blue"></Tag>;
} else if (text === false) { } else if (text === true) {
return <Tag color="green"></Tag>; return <Tag color="green"></Tag>;
} }
// return ( // return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment