Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
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
zhaochengxiang
szse
Commits
169a5eba
Commit
169a5eba
authored
Mar 16, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程
parent
5e5fb155
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
TaskDetail.jsx
src/view/Manage/AssetTask/TaskDetail.jsx
+5
-5
No files found.
src/view/Manage/AssetTask/TaskDetail.jsx
View file @
169a5eba
...
...
@@ -37,16 +37,16 @@ export const AuditProgress = ({ task }) => {
const
hightBackgroundColor
=
'#2E90F1'
;
const
stateCompleted
=
(
state
)
=>
{
const
index
=
task
?.
contents
?.
findIndex
(
item
=>
item
.
title
.
indexOf
(
state
)
!==-
1
);
const
index
=
task
?.
contents
?.
fi
lter
(
item
=>
item
.
status
===
'1'
).
fi
ndIndex
(
item
=>
item
.
title
.
indexOf
(
state
)
!==-
1
);
return
(
index
!==
-
1
);
}
const
stateContent
=
(
state
)
=>
{
return
task
?.
contents
?.
find
(
item
=>
item
.
title
.
indexOf
(
state
)
!==-
1
);
return
task
?.
contents
?.
fi
lter
(
item
=>
item
.
status
===
'1'
).
fi
nd
(
item
=>
item
.
title
.
indexOf
(
state
)
!==-
1
);
}
const
leftLineColor
=
(
state
)
=>
{
const
index
=
task
?.
contents
?.
findIndex
(
item
=>
item
.
title
.
indexOf
(
state
)
!==-
1
);
const
index
=
task
?.
contents
?.
fi
lter
(
item
=>
item
.
status
===
'1'
).
fi
ndIndex
(
item
=>
item
.
title
.
indexOf
(
state
)
!==-
1
);
return
(
index
!==
-
1
)
?
hightBackgroundColor
:
backgroundColor
;
}
...
...
@@ -66,7 +66,7 @@ export const AuditProgress = ({ task }) => {
{
auditStatus
.
map
((
item
,
index
)
=>
{
return
(
<
Col
span=
{
8
}
key=
{
index
}
style=
{
{
height
:
6
}
}
>
<
Col
span=
{
24
/
auditStatus
.
length
}
key=
{
index
}
style=
{
{
height
:
6
}
}
>
{
<
Row
align=
'middle'
>
<
Col
span=
{
11
}
style=
{
{
backgroundColor
:
leftLineColor
(
item
),
height
:
4
,
visibility
:
(
index
===
0
?
'hidden'
:
'visible'
)
}
}
></
Col
>
...
...
@@ -87,7 +87,7 @@ export const AuditProgress = ({ task }) => {
const
currentContent
=
stateContent
(
item
);
return
(
<
Col
span=
{
8
}
key=
{
index
}
>
<
Col
span=
{
24
/
auditStatus
.
length
}
key=
{
index
}
>
<
div
style=
{
{
textAlign
:
'center'
}
}
>
<
div
>
{
item
}
</
div
>
{
...
...
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