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
8d983700
Commit
8d983700
authored
Mar 25, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
评审提示
parent
174fc612
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
EditModel.jsx
src/view/Manage/Model/Component/EditModel.jsx
+30
-1
No files found.
src/view/Manage/Model/Component/EditModel.jsx
View file @
8d983700
...
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef, useMemo } from 'react';
...
@@ -2,7 +2,7 @@ import React, { useState, useEffect, useRef, useMemo } from 'react';
import
{
Form
,
Button
,
Space
,
Tooltip
,
Modal
,
Select
,
Input
}
from
'antd'
;
import
{
Form
,
Button
,
Space
,
Tooltip
,
Modal
,
Select
,
Input
}
from
'antd'
;
import
LocalStorage
from
'local-storage'
;
import
LocalStorage
from
'local-storage'
;
import
{
useMount
,
useUnmount
}
from
'ahooks'
;
import
{
useMount
,
useUnmount
}
from
'ahooks'
;
import
{
LeftCircleFilled
,
RightCircleFilled
}
from
'@ant-design/icons'
;
import
{
LeftCircleFilled
,
RightCircleFilled
,
QuestionCircleFilled
}
from
'@ant-design/icons'
;
import
copy
from
"copy-to-clipboard"
;
import
copy
from
"copy-to-clipboard"
;
import
ImportAction
from
'./ImportAction'
;
import
ImportAction
from
'./ImportAction'
;
...
@@ -20,6 +20,7 @@ import ExportModel from './ExportOtherModal';
...
@@ -20,6 +20,7 @@ import ExportModel from './ExportOtherModal';
import
ExportDDLModel
from
'./ExportDDLModal'
;
import
ExportDDLModel
from
'./ExportDDLModal'
;
import
'./EditModel.less'
;
import
'./EditModel.less'
;
import
{
getTimeProps
}
from
'antd/lib/date-picker/generatePicker'
;
const
EditModel
=
(
props
)
=>
{
const
EditModel
=
(
props
)
=>
{
...
@@ -746,6 +747,7 @@ export default EditModel;
...
@@ -746,6 +747,7 @@ export default EditModel;
const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange, onOk, onHistory, onExport }) => {
const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange, onOk, onHistory, onExport }) => {
const [item, setItem] = useState()
const [item, setItem] = useState()
const [waiting, setWaiting] = useState(false)
const [waiting, setWaiting] = useState(false)
const [tip, setTip] = useState()
useEffect(() => {
useEffect(() => {
if (data && id) {
if (data && id) {
...
@@ -756,6 +758,12 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange
...
@@ -756,6 +758,12 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange
}
}
}, [data, id])
}, [data, id])
useEffect(() => {
if (type) {
getTip()
}
}, [type])
const [index, canPrev, canNext] = useMemo(() => {
const [index, canPrev, canNext] = useMemo(() => {
if (data && id) {
if (data && id) {
const index = (data?.modelInfoList??[]).findIndex(item => item.id === id)
const index = (data?.modelInfoList??[]).findIndex(item => item.id === id)
...
@@ -767,6 +775,18 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange
...
@@ -767,6 +775,18 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange
return [0, false, false]
return [0, false, false]
}, [data, id])
}, [data, id])
const getTip = () => {
dispatch({
type: 'datamodel.getPhysicalModelApprovalTip',
payload: {
type
},
callback: data => {
setTip(data?.tip)
}
})
}
const onExportClick = () => {
const onExportClick = () => {
onExport?.()
onExport?.()
}
}
...
@@ -828,6 +848,15 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange
...
@@ -828,6 +848,15 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange
<Button type='primary' ghost onClick={onHistoryClick}>历史版本</Button>
<Button type='primary' ghost onClick={onHistoryClick}>历史版本</Button>
</Space>
</Space>
<Space>
<Space>
{
tip && <Tooltip title={
<div>
{(tip??'').split('\n').map((item, index) => (<div key={index}>{item}</div>))}
</div>}
>
<QuestionCircleFilled style={{ fontSize: 18, color: '#3B80D6' }} />
</Tooltip>
}
<Tooltip title={((type==='rule')&&!item?.designReviewPass) ? '设计评审不通过' : ''}>
<Tooltip title={((type==='rule')&&!item?.designReviewPass) ? '设计评审不通过' : ''}>
<Select
<Select
value={(type==='design')?item?.designReviewPass:item?.standardReviewPass}
value={(type==='design')?item?.designReviewPass:item?.standardReviewPass}
...
...
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