Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
518a7f52
Commit
518a7f52
authored
Dec 16, 2022
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改消息定时计划BYLOOP为小写
parent
c52c507d
Pipeline
#65537
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
VisibleIISAgentConfig.jsx
...anage/components/IISAgentConfig/VisibleIISAgentConfig.jsx
+10
-10
No files found.
src/pages/platformCenter/messageManage/projectManage/components/IISAgentConfig/VisibleIISAgentConfig.jsx
View file @
518a7f52
...
...
@@ -50,7 +50,7 @@ const VisibleIISAgentConfig = props => {
const
[
loop_unit
,
setLoop_unit
]
=
useState
(
'Hour'
);
const
[
exeType
,
setExeType
]
=
useState
(
true
);
const
[
isType
,
setIsType
]
=
useState
(
'重复执行'
);
const
[
isTypeValue
,
setIsTypeValue
]
=
useState
(
'B
YLOOP
'
);
const
[
isTypeValue
,
setIsTypeValue
]
=
useState
(
'B
yLoop
'
);
const
[
time_out
,
setTime_out
]
=
useState
(
30
);
const
[
weekData
,
setWeekData
]
=
useState
([]);
const
[
exeTime
,
setExeTime
]
=
useState
(
moment
().
format
(
'YYYY-MM-DD 00:00:00'
));
...
...
@@ -120,12 +120,12 @@ const VisibleIISAgentConfig = props => {
form
.
setFieldsValue
({
type
:
'重复执行'
,
url_type
:
false
,
loop_mode
:
'B
YLOOP
'
,
loop_mode
:
'B
yLoop
'
,
start_time
:
moment
(
new
Date
(
new
Date
().
toLocaleDateString
()),
'YYYY-MM-DD 00:00:00'
),
});
setExeTime
(
moment
().
format
(
'YYYY-MM-DD 00:00:00'
));
setIsType
(
'重复执行'
);
changeLoopMode
(
'B
YLOOP
'
);
changeLoopMode
(
'B
yLoop
'
);
setIsUse
(
true
);
setInterval
(
1
);
setLoop_unit
(
'Hour'
);
...
...
@@ -157,7 +157,7 @@ const VisibleIISAgentConfig = props => {
CustomHeader
:
fv
.
request_header
||
''
,
StartFrom
:
fv
.
start_time
&&
fv
.
start_time
.
format
(
dateFormat
),
EndAt
:
fv
.
end_time
&&
fv
.
end_time
.
format
(
dateFormat
),
LoopMode
:
fv
.
loop_mode
===
'ByOnce'
?
'B
YLOOP
'
:
fv
.
loop_mode
,
LoopMode
:
fv
.
loop_mode
===
'ByOnce'
?
'B
yLoop
'
:
fv
.
loop_mode
,
LoopUnit
:
loop_unit
,
MonthOfYear
:
null
,
WeekOfMonth
:
null
,
...
...
@@ -216,7 +216,7 @@ const VisibleIISAgentConfig = props => {
setIsWeekLoopShow
(
false
);
setIsDayLoopShow
(
false
);
break
;
case
'B
YLOOP
'
:
case
'B
yLoop
'
:
setIsEndTimeShow
(
true
);
setIsLoopShow
(
true
);
setIsWeekLoopShow
(
false
);
...
...
@@ -238,7 +238,7 @@ const VisibleIISAgentConfig = props => {
};
const
onLoopModeChange
=
e
=>
{
changeLoopMode
(
e
.
target
.
value
);
if
(
e
.
target
.
value
===
'B
YLOOP
'
)
{
if
(
e
.
target
.
value
===
'B
yLoop
'
)
{
form
.
setFieldsValue
({
hour_of_day
:
''
,
day_of_week
:
''
,
...
...
@@ -280,10 +280,10 @@ const VisibleIISAgentConfig = props => {
}
setExeType
(
false
);
}
else
{
changeLoopMode
(
'B
YLOOP
'
);
changeLoopMode
(
'B
yLoop
'
);
setExeType
(
true
);
form
.
setFieldsValue
({
loop_mode
:
'B
YLOOP
'
,
loop_mode
:
'B
yLoop
'
,
end_time
:
''
,
});
if
(
!
agentConfig
)
{
...
...
@@ -376,7 +376,7 @@ const VisibleIISAgentConfig = props => {
{
exeType
&&
(
<
Item
label=
"执行方式"
name=
"loop_mode"
>
<
Radio
.
Group
onChange=
{
onLoopModeChange
}
>
<
Radio
value=
{
'B
YLOOP
'
}
>
循环
</
Radio
>
<
Radio
value=
{
'B
yLoop
'
}
>
循环
</
Radio
>
<
Radio
value=
{
'ByDay'
}
>
每天
</
Radio
>
<
Radio
value=
{
'ByWeek'
}
>
每周
</
Radio
>
</
Radio
.
Group
>
...
...
@@ -480,7 +480,7 @@ const VisibleIISAgentConfig = props => {
{
weekData
.
length
?
'执行'
:
''
}
</
span
>
)
}
{
isType
===
'重复执行'
&&
isTypeValue
===
'B
YLOOP
'
&&
(
{
isType
===
'重复执行'
&&
isTypeValue
===
'B
yLoop
'
&&
(
<
span
style=
{
{
color
:
'#909EB6FF'
}
}
>
从
{
exeTime
}
开始,每
{
interval
}
{
unitType
[
loop_unit
]
}
执行一次。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment