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
53382b58
Commit
53382b58
authored
1 year ago
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '修改设备库配置接口, 增加三周一次'
parent
fa858fee
Pipeline
#82659
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
23 deletions
+3
-23
BaseTimeConfig.jsx
...trolMaintenance/maintenance/components/BaseTimeConfig.jsx
+1
-22
maintenance.jsx
...s/bsmanager/patrolMaintenance/maintenance/maintenance.jsx
+2
-1
No files found.
src/pages/bsmanager/patrolMaintenance/maintenance/components/BaseTimeConfig.jsx
View file @
53382b58
...
...
@@ -230,29 +230,8 @@ const BaseConfig = (props, ref) => {
}
}
onChange=
{
value
=>
{
setCycleLen
(
value
);
if
(
value
===
1
)
{
setMonthType1
(
1
);
setMonthType2
(
1
);
if
(
MonthDayType1
<
startLen
)
{
setMonthDayType1
(
startLen
);
}
if
(
MonthDayType2
<
startLen
)
{
setMonthDayType2
(
'31'
);
}
}
else
if
(
value
===
2
)
{
if
(
MonthType2
===
3
)
{
setMonthType1
(
1
);
setMonthType2
(
1
);
if
(
MonthDayType1
<
startLen
)
{
setMonthDayType1
(
startLen
);
}
if
(
MonthDayType2
<
startLen
)
{
setMonthDayType2
(
'31'
);
}
}
}
}
}
options=
{
[
1
,
2
].
map
(
province
=>
({
options=
{
[
1
,
2
,
3
].
map
(
province
=>
({
label
:
province
,
value
:
province
,
}))
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/patrolMaintenance/maintenance/maintenance.jsx
View file @
53382b58
...
...
@@ -11,6 +11,7 @@ import {
CM_XWBPlan_ChangeOrder
,
NewCM_XWBPlan_ChangeOrder
,
GetDeviceConfigList
,
NewGetDeviceConfigList
,
EditDeviceConfig
,
}
from
'@/services/maintenance/api'
;
import
{
...
...
@@ -102,7 +103,7 @@ const maintenance = () => {
};
const
getConfigList
=
()
=>
{
GetDeviceConfigList
().
then
(
res
=>
{
New
GetDeviceConfigList
().
then
(
res
=>
{
setTreeLoading
(
false
);
if
(
res
.
code
===
0
)
{
setTableData
(
res
.
data
);
...
...
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