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
fa728aed
Commit
fa728aed
authored
Oct 11, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '优化维保方案样式'
parent
0e016648
Pipeline
#79854
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
maintenance.jsx
...s/bsmanager/patrolMaintenance/maintenance/maintenance.jsx
+11
-11
No files found.
src/pages/bsmanager/patrolMaintenance/maintenance/maintenance.jsx
View file @
fa728aed
...
...
@@ -367,15 +367,15 @@ const maintenance = () => {
align
:
'center'
,
render
:
record
=>
{
if
(
record
===
'保养'
)
{
return
<
Tag
color=
"
#2db7f5
"
>
保养
</
Tag
>;
return
<
Tag
color=
"
purple
"
>
保养
</
Tag
>;
}
else
if
(
record
===
'巡检'
)
{
return
<
Tag
color=
"
#08979c
"
>
巡检
</
Tag
>;
return
<
Tag
color=
"
geekblue
"
>
巡检
</
Tag
>;
}
else
if
(
record
===
'水箱清洗'
)
{
return
<
Tag
color=
"
#d3adf7
"
>
水箱清洗
</
Tag
>;
return
<
Tag
color=
"
cyan
"
>
水箱清洗
</
Tag
>;
}
else
if
(
record
===
'扫码巡检'
)
{
return
<
Tag
color=
"
#e3799e
"
>
扫码巡检
</
Tag
>;
return
<
Tag
color=
"
cyan
"
>
扫码巡检
</
Tag
>;
}
else
if
(
record
)
{
return
<
Tag
color=
"
#f50
"
>
{
record
}
</
Tag
>;
return
<
Tag
color=
"
orange
"
>
{
record
}
</
Tag
>;
}
},
},
...
...
@@ -384,10 +384,10 @@ const maintenance = () => {
dataIndex
:
'docycle'
,
key
:
'docycle'
,
align
:
'center'
,
width
:
1
0
0
,
width
:
1
2
0
,
onCell
:
()
=>
({
style
:
{
maxWidth
:
1
0
0
,
maxWidth
:
1
2
0
,
overflow
:
'hidden'
,
whiteSpace
:
'nowrap'
,
textOverflow
:
'ellipsis'
,
...
...
@@ -400,13 +400,13 @@ const maintenance = () => {
}
else
{
let
list
=
JSON
.
parse
(
record
);
if
(
list
.
type
===
'小时'
)
{
return
`
${
list
.
cycle
}
小时一次`
;
return
<
Tag
color=
"#2db7f5"
>
{
list
.
cycle
}
小时一次
</
Tag
>
;
}
else
if
(
list
.
type
===
'日'
)
{
return
`
${
list
.
cycle
}
日一次`
;
return
<
Tag
color=
"#08979c"
>
{
list
.
cycle
}
日一次
</
Tag
>
;
}
else
if
(
list
.
type
===
'周'
)
{
return
`一周一次`
;
return
<
Tag
color=
"#d3adf7"
>
一周一次
</
Tag
>
;
}
else
if
(
list
.
type
===
'月'
)
{
return
`
${
list
.
cycle
}
月一次`
;
return
<
Tag
color=
"#e3799e"
>
{
list
.
cycle
}
月一次
</
Tag
>
;
}
}
}
...
...
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