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
43772b49
Commit
43772b49
authored
Mar 12, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程详情
parent
e630ae77
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
76 additions
and
42 deletions
+76
-42
datamodel.js
src/model/datamodel.js
+4
-0
datamodeler.js
src/service/datamodeler.js
+3
-0
index.jsx
src/view/Manage/ModelReview/index.jsx
+69
-42
No files found.
src/model/datamodel.js
View file @
43772b49
...
@@ -628,6 +628,10 @@ export function* addPhysicalModelApproval(payload) {
...
@@ -628,6 +628,10 @@ export function* addPhysicalModelApproval(payload) {
return
yield
call
(
datamodelerService
.
addPhysicalModelApproval
,
payload
)
return
yield
call
(
datamodelerService
.
addPhysicalModelApproval
,
payload
)
}
}
export
function
*
getPhysicalModelApproval
(
payload
)
{
return
yield
call
(
datamodelerService
.
getPhysicalModelApproval
,
payload
)
}
export
function
*
updatePhysicalModelApproval
(
payload
)
{
export
function
*
updatePhysicalModelApproval
(
payload
)
{
return
yield
call
(
datamodelerService
.
updatePhysicalModelApproval
,
payload
)
return
yield
call
(
datamodelerService
.
updatePhysicalModelApproval
,
payload
)
}
}
...
...
src/service/datamodeler.js
View file @
43772b49
...
@@ -575,6 +575,9 @@ export function getCooperationUsers() {
...
@@ -575,6 +575,9 @@ export function getCooperationUsers() {
export
function
addPhysicalModelApproval
(
payload
)
{
export
function
addPhysicalModelApproval
(
payload
)
{
return
PostJSON
(
"/datamodeler/easyDataModelerApproval/addPhysicalModelApproval"
,
payload
)
return
PostJSON
(
"/datamodeler/easyDataModelerApproval/addPhysicalModelApproval"
,
payload
)
}
}
export
function
getPhysicalModelApproval
(
payload
)
{
return
GetJSON
(
"/datamodeler/easyDataModelerApproval/getPhysicalModelApprovalById"
,
payload
)
}
export
function
updatePhysicalModelApproval
(
payload
)
{
export
function
updatePhysicalModelApproval
(
payload
)
{
return
PostJSON
(
"/datamodeler/easyDataModelerApproval/updatePhysicalModelApproval"
,
payload
)
return
PostJSON
(
"/datamodeler/easyDataModelerApproval/updatePhysicalModelApproval"
,
payload
)
...
...
src/view/Manage/ModelReview/index.jsx
View file @
43772b49
import
React
from
"react"
import
React
from
"react"
import
{
Space
,
Button
,
Descriptions
,
Form
,
Input
,
Tooltip
,
Typography
,
Select
,
}
from
"antd"
import
{
Space
,
Button
,
Descriptions
,
Form
,
Input
,
Tooltip
,
Typography
,
Select
,
Spin
}
from
"antd"
import
produce
from
"immer"
import
produce
from
"immer"
import
Table
from
'../../../util/Component/Table'
import
Table
from
'../../../util/Component/Table'
import
{
isSzseEnv
}
from
"../../../util"
import
{
isSzseEnv
,
getQueryParam
}
from
"../../../util"
import
{
dispatch
}
from
'../../../model'
;
const
FC
=
(
props
)
=>
{
const
FC
=
(
props
)
=>
{
const
[
loading
,
setLoading
]
=
React
.
useState
(
false
)
const
[
data
,
setData
]
=
React
.
useState
()
const
[
form
]
=
Form
.
useForm
()
const
[
form
]
=
Form
.
useForm
()
const
id
=
getQueryParam
(
'id'
,
props
.
location
?.
search
)
const
listRef
=
React
.
useRef
()
const
listRef
=
React
.
useRef
()
React
.
useEffect
(()
=>
{
getDetail
()
},
[])
const
getDetail
=
()
=>
{
setLoading
(
true
)
dispatch
({
type
:
'datamodel.getPhysicalModelApproval'
,
payload
:
{
id
,
},
callback
:
(
data
)
=>
{
setLoading
(
false
)
setData
(
data
)
},
error
:
()
=>
{
setLoading
(
false
)
}
})
}
const
onGraghClick
=
()
=>
{
const
onGraghClick
=
()
=>
{
}
}
...
@@ -34,49 +60,50 @@ const FC = (props) => {
...
@@ -34,49 +60,50 @@ const FC = (props) => {
}
}
return
(
return
(
<
div
className=
'p-5'
style=
{
{
height
:
'100%'
}
}
>
<
Spin
spinning=
{
loading
}
>
<
div
className=
'flex'
style=
{
{
justifyContent
:
'space-between'
}
}
>
<
div
className=
'p-5'
style=
{
{
height
:
'100%'
}
}
>
<
Button
type=
'link'
onClick=
{
onGraghClick
}
>
流程图
</
Button
>
<
div
className=
'flex'
style=
{
{
justifyContent
:
'space-between'
}
}
>
<
Space
>
<
Space
>
<
Button
onClick=
{
onCloseClick
}
>
关闭
</
Button
>
<
Button
onClick=
{
onCloseClick
}
>
关闭
</
Button
>
<
Button
onClick=
{
onSaveClick
}
>
保存
</
Button
>
<
Button
onClick=
{
onSaveClick
}
>
保存
</
Button
>
<
Button
onClick=
{
onSubmitClick
}
>
提交
</
Button
>
<
Button
onClick=
{
onSubmitClick
}
>
提交
</
Button
>
</
Space
>
</
Space
>
</
div
>
<
div
>
<
div
className=
'flex my-3'
style=
{
{
justifyContent
:
'center'
}
}
>
<
h3
>
模型评审流程
</
h3
>
</
div
>
</
div
>
<
Descriptions
bordered
size=
'small'
column=
{
2
}
>
<
div
>
<
Descriptions
.
Item
label=
"流程名称"
></
Descriptions
.
Item
>
<
div
className=
'flex my-3'
style=
{
{
justifyContent
:
'center'
}
}
>
<
Descriptions
.
Item
label=
"送审人"
></
Descriptions
.
Item
>
<
h3
>
模型评审流程
</
h3
>
<
Descriptions
.
Item
label=
"当前环节"
></
Descriptions
.
Item
>
</
div
>
<
Descriptions
.
Item
label=
"送审时间"
></
Descriptions
.
Item
>
<
Descriptions
bordered
size=
'small'
column=
{
2
}
>
<
Descriptions
.
Item
label=
"送审说明"
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"流程名称"
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"附件"
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"送审人"
></
Descriptions
.
Item
>
</
Descriptions
>
<
Descriptions
.
Item
label=
"当前环节"
></
Descriptions
.
Item
>
</
div
>
<
Descriptions
.
Item
label=
"送审时间"
></
Descriptions
.
Item
>
<
div
className=
'my-5'
>
<
Descriptions
.
Item
label=
"送审说明"
></
Descriptions
.
Item
>
<
Form
<
Descriptions
.
Item
label=
"附件"
></
Descriptions
.
Item
>
form=
{
form
}
</
Descriptions
>
autoComplete=
"off"
</
div
>
>
<
div
className=
'my-5'
>
<
Form
.
Item
<
Form
label=
"流程意见"
form=
{
form
}
name=
"suggest"
autoComplete=
"off"
rules=
{
[{
required
:
true
,
message
:
'请填写流程意见!'
}]
}
style=
{
{
marginBottom
:
0
}
}
>
>
<
Input
.
TextArea
<
Form
.
Item
autoSize=
{
{
minRows
:
1
,
maxRows
:
20
}
}
label=
"流程意见"
allowClear
name=
"suggest"
placeholder=
'请输入流程意见'
rules=
{
[{
required
:
true
,
message
:
'请填写流程意见!'
}]
}
/>
style=
{
{
marginBottom
:
0
}
}
</
Form
.
Item
>
>
</
Form
>
<
Input
.
TextArea
autoSize=
{
{
minRows
:
1
,
maxRows
:
20
}
}
allowClear
placeholder=
'请输入流程意见'
/>
</
Form
.
Item
>
</
Form
>
</
div
>
<
List
ref=
{
listRef
}
/>
</
div
>
</
div
>
<
List
ref=
{
listRef
}
/>
</
Spin
>
</
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