Commit bbb4d965 authored by 田翔's avatar 田翔
parents 1336a950 63c38bdb
Pipeline #85163 waiting for manual action with stages
......@@ -127,7 +127,7 @@
"js-calendar-converter": "0.0.4",
"lodash": "4.17.11",
"minimist": "1.2.0",
"panda-xform": "5.9.9",
"panda-xform": "5.9.11",
"parseForm": "^2.3.8",
"prop-types": "15.7.2",
"qrcode.react": "^3.1.0",
......
......@@ -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