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
cde70839
Commit
cde70839
authored
May 29, 2024
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '维保配置新增小时配置逻辑'
parent
49caf071
Pipeline
#89239
passed with stages
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
AddModalNew.jsx
...s/bsmanager/patrolMaintenance/maintenance/AddModalNew.jsx
+10
-0
BaseTimeConfig.jsx
...trolMaintenance/maintenance/components/BaseTimeConfig.jsx
+0
-0
No files found.
src/pages/bsmanager/patrolMaintenance/maintenance/AddModalNew.jsx
View file @
cde70839
...
@@ -517,6 +517,7 @@ const AddModal = props => {
...
@@ -517,6 +517,7 @@ const AddModal = props => {
form
.
validateFields
().
then
(
validate
=>
{
form
.
validateFields
().
then
(
validate
=>
{
if
(
validate
)
{
if
(
validate
)
{
let
obj
=
form
.
getFieldsValue
();
let
obj
=
form
.
getFieldsValue
();
console
.
log
(
obj
,
'objobjobjobj'
);
let
mappingFields
=
formAdd
.
getFieldValue
(
'parmars'
);
let
mappingFields
=
formAdd
.
getFieldValue
(
'parmars'
);
mappingFields
&&
mappingFields
&&
mappingFields
.
forEach
(
i
=>
{
mappingFields
.
forEach
(
i
=>
{
...
@@ -530,6 +531,7 @@ const AddModal = props => {
...
@@ -530,6 +531,7 @@ const AddModal = props => {
let
StartExecLen
=
0
;
let
StartExecLen
=
0
;
let
EndExecLen
=
0
;
let
EndExecLen
=
0
;
let
data
=
timeData
.
current
.
getdata
;
let
data
=
timeData
.
current
.
getdata
;
console
.
log
(
data
,
'datadatadata'
);
let
startLen
=
data
.
startLen
;
let
startLen
=
data
.
startLen
;
if
(
data
.
Unit
==
'week'
)
{
if
(
data
.
Unit
==
'week'
)
{
StartExecLen
=
getNum
(
data
.
cities
,
data
);
StartExecLen
=
getNum
(
data
.
cities
,
data
);
...
@@ -546,6 +548,10 @@ const AddModal = props => {
...
@@ -546,6 +548,10 @@ const AddModal = props => {
StartExecLen
=
obg
[
data
.
MonthType1
]
*
31
+
data
.
MonthDayType1
*
1
-
startLen
;
StartExecLen
=
obg
[
data
.
MonthType1
]
*
31
+
data
.
MonthDayType1
*
1
-
startLen
;
EndExecLen
=
obg
[
data
.
MonthType2
]
*
31
+
data
.
MonthDayType2
*
1
-
startLen
;
EndExecLen
=
obg
[
data
.
MonthType2
]
*
31
+
data
.
MonthDayType2
*
1
-
startLen
;
}
}
if
(
data
.
Unit
==
'hour'
)
{
StartExecLen
=
data
.
HourDayType1
EndExecLen
=
data
.
HourType
===
'今'
?
data
.
HourDayType2
:
24
+
data
.
HourDayType2
;
}
let
UnitObj
=
{
let
UnitObj
=
{
hour
:
'小时'
,
hour
:
'小时'
,
day
:
'日'
,
day
:
'日'
,
...
@@ -569,11 +575,15 @@ const AddModal = props => {
...
@@ -569,11 +575,15 @@ const AddModal = props => {
}
else
if
(
data
.
Unit
===
'week'
)
{
}
else
if
(
data
.
Unit
===
'week'
)
{
lastData
.
StartExecLen
=
1
;
lastData
.
StartExecLen
=
1
;
lastData
.
EndExecLen
=
7
;
lastData
.
EndExecLen
=
7
;
}
else
if
(
data
.
Unit
===
'hour'
)
{
lastData
.
StartExecLen
=
0
;
lastData
.
EndExecLen
=
1
;
}
}
}
else
{
}
else
{
lastData
.
time
=
true
;
lastData
.
time
=
true
;
}
}
obj
.
docycle
=
JSON
.
stringify
(
lastData
);
obj
.
docycle
=
JSON
.
stringify
(
lastData
);
console
.
log
(
obj
.
docycle
,
'ssssssssssss'
);
let
arr
=
[];
let
arr
=
[];
dataSource
.
forEach
(
i
=>
{
dataSource
.
forEach
(
i
=>
{
arr
.
push
(
i
.
name
);
arr
.
push
(
i
.
name
);
...
...
src/pages/bsmanager/patrolMaintenance/maintenance/components/BaseTimeConfig.jsx
View file @
cde70839
This diff is collapsed.
Click to expand it.
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