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
c940cb75
Commit
c940cb75
authored
Jul 05, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型送审
parent
43074321
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
43 deletions
+60
-43
datamodel.js
src/model/datamodel.js
+2
-2
datamodeler.js
src/service/datamodeler.js
+2
-2
start-flow.jsx
src/view/Manage/Model/Component/start-flow.jsx
+54
-37
index.jsx
src/view/Manage/ModelReview/index.jsx
+2
-2
No files found.
src/model/datamodel.js
View file @
c940cb75
...
@@ -720,8 +720,8 @@ export function* getForkEasyDataModelerDataModelDistributions(payload) {
...
@@ -720,8 +720,8 @@ export function* getForkEasyDataModelerDataModelDistributions(payload) {
return
yield
call
(
datamodelerService
.
getForkEasyDataModelerDataModelDistributions
,
payload
)
return
yield
call
(
datamodelerService
.
getForkEasyDataModelerDataModelDistributions
,
payload
)
}
}
export
function
*
getCooperationUsers
()
{
export
function
*
getCooperationUsers
(
payload
)
{
return
yield
call
(
datamodelerService
.
getCooperationUsers
)
return
yield
call
(
datamodelerService
.
getCooperationUsers
,
payload
)
}
}
export
function
*
getCooperatorCandidates
(
payload
)
{
export
function
*
getCooperatorCandidates
(
payload
)
{
...
...
src/service/datamodeler.js
View file @
c940cb75
...
@@ -709,8 +709,8 @@ export function approvalDeleteFile(payload) {
...
@@ -709,8 +709,8 @@ export function approvalDeleteFile(payload) {
}
}
/*协同工作*/
/*协同工作*/
export
function
getCooperationUsers
()
{
export
function
getCooperationUsers
(
payload
)
{
return
GetJSON
(
"/datamodeler/easyDataModelerCooperation/users"
)
return
GetJSON
(
"/datamodeler/easyDataModelerCooperation/users"
,
payload
)
}
}
//权限共享
//权限共享
...
...
src/view/Manage/Model/Component/start-flow.jsx
View file @
c940cb75
...
@@ -92,9 +92,6 @@ export default FC
...
@@ -92,9 +92,6 @@ export default FC
const
Basic
=
React
.
forwardRef
(
function
({},
ref
)
{
const
Basic
=
React
.
forwardRef
(
function
({},
ref
)
{
const
[
uploading
,
setUploading
]
=
React
.
useState
(
false
)
const
[
uploading
,
setUploading
]
=
React
.
useState
(
false
)
const
[
loadingUsers
,
setLoadingUsers
]
=
React
.
useState
(
false
)
const
[
users
,
setUsers
]
=
React
.
useState
()
const
[
form
]
=
Form
.
useForm
()
const
[
form
]
=
Form
.
useForm
()
React
.
useImperativeHandle
(
ref
,
()
=>
({
React
.
useImperativeHandle
(
ref
,
()
=>
({
...
@@ -108,28 +105,10 @@ const Basic = React.forwardRef(function ({}, ref) {
...
@@ -108,28 +105,10 @@ const Basic = React.forwardRef(function ({}, ref) {
uploading
,
uploading
,
}),
[
form
,
uploading
])
}),
[
form
,
uploading
])
React
.
useEffect
(()
=>
{
getUsers
()
},
[])
const
marginBottom
=
React
.
useMemo
(()
=>
{
const
marginBottom
=
React
.
useMemo
(()
=>
{
return
15
return
15
},
[])
},
[])
const
getUsers
=
()
=>
{
setLoadingUsers
(
true
)
dispatch
({
type
:
'datamodel.getCooperationUsers'
,
callback
:
data
=>
{
setLoadingUsers
(
false
)
setUsers
(
data
)
},
error
:
()
=>
{
setLoadingUsers
(
false
)
}
})
}
const
onValuesChange
=
(
changedValues
,
allValues
)
=>
{
const
onValuesChange
=
(
changedValues
,
allValues
)
=>
{
}
}
...
@@ -187,7 +166,7 @@ const Basic = React.forwardRef(function ({}, ref) {
...
@@ -187,7 +166,7 @@ const Basic = React.forwardRef(function ({}, ref) {
style=
{
{
marginBottom
}
}
style=
{
{
marginBottom
}
}
rules=
{
[{
required
:
true
,
message
:
'请选择设计评审人员!'
}]
}
rules=
{
[{
required
:
true
,
message
:
'请选择设计评审人员!'
}]
}
>
>
<
DesignUsersItem
loading=
{
loadingUsers
}
users=
{
users
}
/>
<
DesignUsersItem
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
<
Form
.
Item
...
@@ -210,7 +189,7 @@ const Basic = React.forwardRef(function ({}, ref) {
...
@@ -210,7 +189,7 @@ const Basic = React.forwardRef(function ({}, ref) {
}
}
}]
}
}]
}
>
>
<
RuleReviewItem
loading=
{
loadingUsers
}
users=
{
users
}
/>
<
RuleReviewItem
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
<
Form
.
Item
...
@@ -232,21 +211,40 @@ const Basic = React.forwardRef(function ({}, ref) {
...
@@ -232,21 +211,40 @@ const Basic = React.forwardRef(function ({}, ref) {
)
)
})
})
const
RuleReviewItem
=
({
value
=
{},
onChange
,
loading
,
users
})
=>
{
const
RuleReviewItem
=
({
value
=
{},
onChange
})
=>
{
const
[
loading
,
setLoading
]
=
React
.
useState
(
false
)
const
[
ruleReviewSelected
,
setRuleReviewSelected
]
=
React
.
useState
()
const
[
ruleReviewSelected
,
setRuleReviewSelected
]
=
React
.
useState
()
const
[
searchValue
,
setSearchValue
]
=
React
.
useState
()
const
[
searchValue
,
setSearchValue
]
=
React
.
useState
()
const
[
options
,
setOptions
]
=
React
.
useState
()
const
[
options
,
setOptions
]
=
React
.
useState
()
useDebounceEffect
(()
=>
{
useDebounceEffect
(()
=>
{
if
(
searchValue
)
{
getUsers
()
}
},
[
searchValue
],
{
wait
:
300
})
const
getUsers
=
()
=>
{
setLoading
(
true
)
dispatch
({
type
:
'datamodel.getCooperationUsers'
,
payload
:
{
match
:
searchValue
,
},
callback
:
data
=>
{
setLoading
(
false
)
setOptions
(
setOptions
(
(
users
??[])
(
data
??[]).
map
(
item
=>
({
.
filter
(
item
=>
!
searchValue
||
(
item
.
name
??
''
).
indexOf
(
searchValue
)
!==-
1
||
(
item
.
dname
??
''
).
indexOf
(
searchValue
)
!==-
1
)
label
:
`
${
item
.
dname
}
(
${
item
.
name
}
)`
,
.
map
(
item
=>
({
label
:
item
.
name
,
value
:
item
.
name
,
value
:
item
.
name
,
...
item
}))
}))
)
)
},
[
searchValue
,
users
],
{
wait
:
300
})
},
error
:
()
=>
{
setLoading
(
false
)
}
})
}
const
triggerChange
=
(
changedValue
)
=>
{
const
triggerChange
=
(
changedValue
)
=>
{
onChange
?.({
onChange
?.({
...
@@ -279,7 +277,7 @@ const RuleReviewItem = ({ value = {}, onChange, loading, users }) => {
...
@@ -279,7 +277,7 @@ const RuleReviewItem = ({ value = {}, onChange, loading, users }) => {
options=
{
options
}
options=
{
options
}
onChange=
{
(
val
)
=>
{
onChange=
{
(
val
)
=>
{
triggerChange
({
triggerChange
({
standardApprovalUserList
:
(
user
s
??[])
standardApprovalUserList
:
(
option
s
??[])
.
filter
(
item
=>
val
===
item
.
name
)
.
filter
(
item
=>
val
===
item
.
name
)
})
})
}
}
}
}
...
@@ -392,20 +390,39 @@ const List = React.forwardRef(function ({ items }, ref) {
...
@@ -392,20 +390,39 @@ const List = React.forwardRef(function ({ items }, ref) {
)
)
})
})
const
DesignUsersItem
=
({
value
,
onChange
,
loading
,
users
})
=>
{
const
DesignUsersItem
=
({
value
,
onChange
})
=>
{
const
[
loading
,
setLoading
]
=
React
.
useState
(
false
)
const
[
searchValue
,
setSearchValue
]
=
React
.
useState
()
const
[
searchValue
,
setSearchValue
]
=
React
.
useState
()
const
[
options
,
setOptions
]
=
React
.
useState
()
const
[
options
,
setOptions
]
=
React
.
useState
()
useDebounceEffect
(()
=>
{
useDebounceEffect
(()
=>
{
if
(
searchValue
)
{
getUsers
()
}
},
[
searchValue
],
{
wait
:
300
})
const
getUsers
=
()
=>
{
setLoading
(
true
)
dispatch
({
type
:
'datamodel.getCooperationUsers'
,
payload
:
{
match
:
searchValue
,
},
callback
:
data
=>
{
setLoading
(
false
)
setOptions
(
setOptions
(
(
users
??[])
(
data
??[]).
map
(
item
=>
({
.
filter
(
item
=>
!
searchValue
||
(
item
.
name
??
''
).
indexOf
(
searchValue
)
!==-
1
||
(
item
.
dname
??
''
).
indexOf
(
searchValue
)
!==-
1
)
label
:
`
${
item
.
dname
}
(
${
item
.
name
}
)`
,
.
map
(
item
=>
({
label
:
item
.
name
,
value
:
item
.
name
,
value
:
item
.
name
,
...
item
}))
}))
)
)
},
[
searchValue
,
users
],
{
wait
:
300
})
},
error
:
()
=>
{
setLoading
(
false
)
}
})
}
return
(
return
(
<
Select
showSearch
loading=
{
loading
}
allowClear
<
Select
showSearch
loading=
{
loading
}
allowClear
...
@@ -422,7 +439,7 @@ const DesignUsersItem = ({ value, onChange, loading, users }) => {
...
@@ -422,7 +439,7 @@ const DesignUsersItem = ({ value, onChange, loading, users }) => {
options=
{
options
}
options=
{
options
}
onChange=
{
(
val
)
=>
{
onChange=
{
(
val
)
=>
{
onChange
?.(
onChange
?.(
(
user
s
??[])
(
option
s
??[])
.
filter
(
item
=>
val
===
item
.
name
)
.
filter
(
item
=>
val
===
item
.
name
)
)
)
}
}
}
}
...
...
src/view/Manage/ModelReview/index.jsx
View file @
c940cb75
...
@@ -126,8 +126,8 @@ const FC = (props) => {
...
@@ -126,8 +126,8 @@ const FC = (props) => {
<
h3
>
模型评审流程
</
h3
>
<
h3
>
模型评审流程
</
h3
>
</
div
>
</
div
>
<
Descriptions
bordered
size=
'small'
column=
{
2
}
>
<
Descriptions
bordered
size=
'small'
column=
{
2
}
>
<
Descriptions
.
Item
label=
"流程名称"
>
{
data
?.
creator
?.
userName
?
`${data?.creator?.user
Name}
发起的物理模型评审流程`
:
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"流程名称"
>
{
data
?.
creator
?.
userName
?
`${data?.creator?.user
CnName}(${data?.creator?.userName})
发起的物理模型评审流程`
:
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"送审人"
>
{
data
?.
creator
?.
userName
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"送审人"
>
{
`${data?.creator?.userCnName}(${data?.creator?.userName})`
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"当前环节"
>
{
type
===
'design'
?
'设计评审'
:
'规范评审'
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"当前环节"
>
{
type
===
'design'
?
'设计评审'
:
'规范评审'
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"送审时间"
>
{
data
?.
createdTs
?
new
Date
(
data
?.
createdTs
).
toLocaleString
():
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"送审时间"
>
{
data
?.
createdTs
?
new
Date
(
data
?.
createdTs
).
toLocaleString
():
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"送审说明"
>
{
data
?.
sendReviewExplain
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"送审说明"
>
{
data
?.
sendReviewExplain
}
</
Descriptions
.
Item
>
...
...
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