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

fix: '定时任务bug修复'

parent 856cb548
Pipeline #85161 passed with stages
......@@ -71,7 +71,7 @@ const AddModal = props => {
: moment(new Date(new Date().toLocaleDateString()), 'YYYY-MM-DD 00:00:00');
form.setFieldsValue({
name: record.Name,
is_enable: record.Enabled,
is_enable: !record.Enabled,
url_type: record.Absolute ? true : false,
url_path: record.Url,
request_header: record.CustomHeader,
......@@ -98,7 +98,7 @@ const AddModal = props => {
.format('YYYY-MM-DD 00:00:00')
: moment().format('YYYY-MM-DD 00:00:00');
setExeTime(record.StartFrom ? record.StartFrom : startTimeValue);
setIsUse(record.Enabled);
setIsUse(!record.Enabled);
changeLoopMode(record.LoopMode);
setReenCheck(record.AllowReentrant);
setPostCheck(record.UsePostState);
......@@ -181,7 +181,7 @@ const AddModal = props => {
UsePostState: fv.post_state,
AllowReentrant: fv.reentrant,
AllowLog: fv.enable_log,
Enabled: isUse,
Enabled: !isUse,
Timeout: time_out ? parseInt(time_out) * 1000 : 30000,
Absolute: fv.url_type,
SiteInfo: null,
......
......@@ -126,9 +126,9 @@ const ScheduledTasks = () => {
align: 'center',
width: 150,
render: (text, record) => {
if (text === true) {
if (text === false) {
return <Tag color="blue"></Tag>;
} else if (text === false) {
} else if (text === true) {
return <Tag color="green"></Tag>;
}
// 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