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