Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
shenshaokai
jinfa-platform
Commits
eb28d5f3
Commit
eb28d5f3
authored
Jun 25, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改进度条样式以及考评必填项
parent
a630d757
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
7 deletions
+32
-7
index.less
src/components/AuditProcess/index.less
+14
-5
index.tsx
src/components/AuditProcess/index.tsx
+14
-2
add.tsx
src/pages/member/complaintsAndSuggests/common/schema/add.tsx
+4
-0
No files found.
src/components/AuditProcess/index.less
View file @
eb28d5f3
.steps {
padding-top: 2px;
overflow: auto;
}
\ No newline at end of file
.steps {
padding-top: 2px;
overflow: auto;
:global {
.ant-steps-item-title {
margin-right: 16px;
// &:last-child {
// margin-right: 0px;
// }
}
}
}
src/components/AuditProcess/index.tsx
View file @
eb28d5f3
...
...
@@ -8,6 +8,7 @@
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Steps
,
Tooltip
,
}
from
'antd'
;
import
MellowCard
,
{
MellowCardProps
}
from
'@/components/MellowCard'
;
import
ButtonSwitch
from
'@/components/ButtonSwitch'
;
...
...
@@ -102,6 +103,17 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
),
].
filter
(
Boolean
);
const
titleRender
=
(
stepTitle
:
string
,
stepLength
:
number
)
=>
{
if
(
stepLength
<=
6
)
{
return
<
span
>
{
stepTitle
}
</
span
>
}
return
(
<
Tooltip
placement=
"top"
title=
{
stepTitle
}
>
<
span
style=
{
{
maxWidth
:
'100px'
,
marginRight
:
'8px'
,
textAlign
:
'center'
}
}
>
{
`${stepTitle}`
}
</
span
>
</
Tooltip
>
)
}
return
(
<
MellowCard
title=
"流转进度"
...
...
@@ -120,7 +132,7 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
{
outerVerifySteps
&&
outerVerifySteps
.
map
(
item
=>
(
<
Steps
.
Step
key=
{
customKey
?
item
[
customKey
]
:
item
.
step
}
title=
{
customTitleKey
?
item
[
customTitleKey
]
:
item
.
stepName
}
title=
{
titleRender
(
customTitleKey
?
item
[
customTitleKey
]
:
item
.
stepName
,
outerVerifySteps
.
length
)
}
description=
{
item
.
roleName
}
status=
{
item
.
status
}
/>
...
...
@@ -134,7 +146,7 @@ const AuditProcess: React.FC<AuditProcessProp> = ({
{
innerVerifySteps
&&
innerVerifySteps
.
map
(
item
=>
(
<
Steps
.
Step
key=
{
customKey
?
item
[
customKey
]
:
item
.
step
}
title=
{
customTitleKey
?
item
[
customTitleKey
]
:
item
.
stepName
}
title=
{
titleRender
(
customTitleKey
?
item
[
customTitleKey
]
:
item
.
stepName
,
innerVerifySteps
.
length
)
}
description=
{
item
.
roleName
}
status=
{
item
.
status
}
/>
...
...
src/pages/member/complaintsAndSuggests/common/schema/add.tsx
View file @
eb28d5f3
...
...
@@ -192,6 +192,10 @@ export const complaintAddSchema: ISchema = {
{
limitByte
:
true
,
// 自定义校验规则
maxByte
:
60
},
{
required
:
true
,
message
:
"请填写事件描述"
}
]
},
...
...
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