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
ff43a8d0
Commit
ff43a8d0
authored
Jun 26, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型负责人
parent
6f19e169
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
ImportActionManage.jsx
src/view/Manage/Model/Component/ImportActionManage.jsx
+17
-10
No files found.
src/view/Manage/Model/Component/ImportActionManage.jsx
View file @
ff43a8d0
...
...
@@ -67,7 +67,7 @@ const FC = (props) => {
const
getUsers
=
()
=>
{
setLoadingUsers
(
true
)
dispatch
({
type
:
'
user.getOA
Users'
,
type
:
'
datamodel.getCooperation
Users'
,
callback
:
data
=>
{
setLoadingUsers
(
false
)
setUsers
(
data
)
...
...
@@ -124,12 +124,12 @@ const FC = (props) => {
<
Form
form=
{
form
}
{
...
formItemLayout
}
onValuesChange=
{
onValuesChange
}
>
<
Row
gutter=
{
10
}
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
'技术负责人'
name=
'technicalManager
Id
'
>
<
Form
.
Item
label=
'技术负责人'
name=
'technicalManager
User
'
>
<
UsersItem
loading=
{
loadingUsers
}
users=
{
users
}
/>
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
'业务负责人'
name=
'businessManager
Id
'
>
<
Form
.
Item
label=
'业务负责人'
name=
'businessManager
User
'
>
<
UsersItem
loading=
{
loadingUsers
}
users=
{
users
}
/>
</
Form
.
Item
>
</
Col
>
...
...
@@ -145,10 +145,10 @@ const FC = (props) => {
)
:
(
<
Descriptions
column=
{
3
}
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
106
}
}
>
技术负责人
</
div
>
}
>
{
modelerData
?.
technicalManager
N
ame
}
{
modelerData
?.
technicalManager
User
?.
n
ame
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
106
}
}
>
业务负责人
</
div
>
}
>
{
modelerData
?.
businessManager
N
ame
}
{
modelerData
?.
businessManager
User
?.
n
ame
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
106
}
}
>
维护历史
</
div
>
}
>
<
div
style=
{
{
maxHeight
:
70
,
overflow
:
'auto'
}
}
>
...
...
@@ -177,10 +177,10 @@ const UsersItem = ({ loading, users, value, onChange }) => {
useDebounceEffect
(()
=>
{
setOptions
(
(
users
??[])
.
filter
(
item
=>
!
searchValue
||
(
item
.
loginName
??
''
).
indexOf
(
searchValue
)
!==-
1
||
(
item
.
realN
ame
??
''
).
indexOf
(
searchValue
)
!==-
1
)
.
filter
(
item
=>
!
searchValue
||
(
item
.
name
??
''
).
indexOf
(
searchValue
)
!==-
1
||
(
item
.
dn
ame
??
''
).
indexOf
(
searchValue
)
!==-
1
)
.
map
(
item
=>
({
label
:
item
.
realN
ame
,
value
:
`
${
item
.
id
}
`
,
label
:
item
.
n
ame
,
value
:
item
.
name
,
}))
)
},
[
searchValue
,
users
],
{
wait
:
300
})
...
...
@@ -188,7 +188,7 @@ const UsersItem = ({ loading, users, value, onChange }) => {
return
(
<
Select
loading=
{
loading
}
allowClear
showSearch
placeholder=
'请选择用户'
value=
{
(
options
??[]).
length
>
0
?
value
:
undefined
}
value=
{
(
options
??[]).
length
>
0
?
value
?.
name
:
undefined
}
searchValue=
{
searchValue
}
onSearch=
{
(
val
)
=>
{
setSearchValue
(
val
)
...
...
@@ -199,7 +199,14 @@ const UsersItem = ({ loading, users, value, onChange }) => {
filterOption=
{
false
}
options=
{
options
}
onChange=
{
(
val
)
=>
{
onChange
?.(
val
)
if
(
val
)
{
const
index
=
(
users
??[]).
findIndex
(
item
=>
item
.
name
===
val
)
if
(
index
!==
-
1
)
{
onChange
?.(
users
[
index
])
}
}
else
{
onChange
?.()
}
}
}
/>
)
...
...
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