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
750df460
Commit
750df460
authored
May 14, 2021
by
shaoan123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改策略下发的bug
parent
70ecf5f9
Pipeline
#27708
skipped with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AddModal.jsx
...ges/artificial/policiesIssued/strategyConfig/AddModal.jsx
+3
-3
No files found.
src/pages/artificial/policiesIssued/strategyConfig/AddModal.jsx
View file @
750df460
...
...
@@ -25,7 +25,7 @@ const AddModal = props => {
const
[
predictCode
,
setPredictCode
]
=
useState
([]);
//预测编码列表
const
[
deviceList
,
setDeviceList
]
=
useState
([]);
//设备列表
const
[
card
,
setCard
]
=
useState
([]);
//卡片列表值
const
[
dateArr
,
setDateArr
]
=
useState
({
DeviationType
:
'
'
,
DeviationValue
:
''
,
DurationType
:
''
,
DurationValue
:
''
});
//偏移量,时段时长
const
[
dateArr
,
setDateArr
]
=
useState
({
DeviationType
:
'
秒'
,
DeviationValue
:
0
,
DurationType
:
'秒'
,
DurationValue
:
0
});
//偏移量,时段时长
const
[
source
,
setSource
]
=
useState
([])
const
[
showTime
,
setShowTime
]
=
useState
(
true
)
const
[
PredictID
,
setPredictID
]
=
useState
()
...
...
@@ -107,7 +107,7 @@ const AddModal = props => {
setCard
([])
setDeviceList
([])
setShowTime
(
true
)
setDateArr
({
DeviationType
:
'秒'
,
DeviationValue
:
''
,
DurationType
:
'秒'
,
DurationValue
:
''
})
setDateArr
({
DeviationType
:
'秒'
,
DeviationValue
:
0
,
DurationType
:
'秒'
,
DurationValue
:
0
})
}
else
{
let
{
DeviationType
,
DeviationValue
,
DurationType
,
DurationValue
}
=
formObj
...
...
@@ -285,7 +285,7 @@ const AddModal = props => {
value
===
'时段控制'
?
setShowTime
(
true
)
:
setShowTime
(
false
)
const
newArr
=
{
...
dateArr
}
newArr
.
DurationValue
=
0
newArr
.
DurationType
=
''
newArr
.
DurationType
=
'
秒
'
setDateArr
(
newArr
)
}
return
(
...
...
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