Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
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
wuhao
ems3.3
Commits
fd24e336
Commit
fd24e336
authored
2 years ago
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保养
parent
1f24c6c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
8 deletions
+20
-8
index.jsx
src/pages/maintain/plan/index.jsx
+20
-8
No files found.
src/pages/maintain/plan/index.jsx
View file @
fd24e336
...
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2023-01-16 15:35:00
* @Last Modified by: Li Hanlin
* @Last Modified time: 2023-01-1
6 17:33:58
* @Last Modified time: 2023-01-1
7 10:51:25
*/
import
*
as
React
from
'react'
;
...
...
@@ -202,7 +202,10 @@ function Plan(props) {
okText
:
'确认'
,
cancelText
:
'取消'
,
onConfirm
:
async
()
=>
{
await
runAsync
({
url
:
'/check/umEquipmentCheckPlan/shut'
,
params
:
{
id
:
row
?.
id
}
});
await
runAsync
({
url
:
'/maintain/umMaintainPlan/customsDeclaration'
,
params
:
{
id
:
row
?.
id
},
});
},
}
}
btn=
{
{
...
...
@@ -249,6 +252,7 @@ function Plan(props) {
title
:
'调整日期'
,
val
:
'detailaddon'
,
id
:
row
?.
id
,
from
:
'tz'
,
}));
},
}
}
...
...
@@ -276,23 +280,27 @@ function Plan(props) {
<
Popconfirm
title=
"是否开启或停用?"
onConfirm=
{
async
()
=>
{
if
(
row
.
checkEnable
==
1
)
{
if
(
row
.
isStopStatus
==
1
)
{
await
runAsync
({
url
:
'/
check/umEquipmentCheckPlan/enabl
e'
,
params
:
{
id
:
row
.
id
,
checkEnable
:
2
},
url
:
'/
maintain/umMaintainPlan/enableDeactivat
e'
,
params
:
{
id
:
row
.
id
,
isStopFlag
:
2
},
});
}
}
}
okText=
"确定"
cancelText=
"取消"
disabled=
{
!
(
row
.
status
==
1
||
(
row
.
status
==
2
&&
row
.
checkLoop
==
2
))
}
disabled=
{
!
(
row
.
maintainStatus
==
1
||
(
row
.
maintainStatus
==
2
&&
row
.
isCycle
==
2
))
}
>
<
Switch
checked=
{
row
.
checkEnable
==
1
?
true
:
false
}
checked=
{
row
.
isStopStatus
==
1
?
true
:
false
}
checkedChildren=
"开启"
unCheckedChildren=
"停用"
defaultChecked=
{
false
}
disabled=
{
!
(
row
.
status
==
1
||
(
row
.
status
==
2
&&
row
.
checkLoop
==
2
))
}
disabled=
{
!
(
row
.
maintainStatus
==
1
||
(
row
.
maintainStatus
==
2
&&
row
.
isCycle
==
2
))
}
/>
</
Popconfirm
>
)
:
(
...
...
@@ -313,6 +321,7 @@ function Plan(props) {
title
:
'调整日期'
,
val
:
'detailaddon'
,
id
:
row
?.
id
,
from
:
'tq'
,
}));
}
}
}
...
...
@@ -422,6 +431,9 @@ function Plan(props) {
onFinish=
{
async
(
vals
)
=>
{
delete
vals
.
isCycle
;
delete
vals
.
maintainFrequency
;
if
(
drawer
?.
from
==
'tq'
)
{
vals
.
isStopFlag
=
1
;
}
await
runAsync
({
url
:
'/maintain/umMaintainPlan/enableDeactivate'
,
params
:
{
...
vals
,
id
:
drawer
?.
item
?.
id
},
...
...
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