Commit 8a5eeb76 by zhaochengxiang

评审支持修改模型内容

parent 2cc11b22
...@@ -612,6 +612,7 @@ const EditModel = (props) => { ...@@ -612,6 +612,7 @@ const EditModel = (props) => {
onHistory={() => { onHistory={() => {
setHistoryAndVersionDrawerVisible(true) setHistoryAndVersionDrawerVisible(true)
}} }}
onEdit={edit}
onChange={(val) => { onChange={(val) => {
setApprovalModelId(val) setApprovalModelId(val)
}} }}
...@@ -765,7 +766,7 @@ const EditModel = (props) => { ...@@ -765,7 +766,7 @@ const EditModel = (props) => {
export default EditModel; 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, onEdit }) => {
const [item, setItem] = useState() const [item, setItem] = useState()
const [waiting, setWaiting] = useState(false) const [waiting, setWaiting] = useState(false)
const [tip, setTip] = useState() const [tip, setTip] = useState()
...@@ -816,6 +817,10 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange ...@@ -816,6 +817,10 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange
onHistory?.() onHistory?.()
} }
const onEditClick = () => {
onEdit?.()
}
const onPrevClick = () => { const onPrevClick = () => {
if (data?.modelInfoList[index-1]) { if (data?.modelInfoList[index-1]) {
onChange?.(data?.modelInfoList[index-1].id) onChange?.(data?.modelInfoList[index-1].id)
...@@ -867,6 +872,7 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange ...@@ -867,6 +872,7 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange
<Space> <Space>
<Button type='primary' ghost onClick={onExportClick}>导出</Button> <Button type='primary' ghost onClick={onExportClick}>导出</Button>
<Button type='primary' ghost onClick={onHistoryClick}>历史版本</Button> <Button type='primary' ghost onClick={onHistoryClick}>历史版本</Button>
<Button type='primary' onClick={onEditClick}>编辑</Button>
</Space> </Space>
<Space> <Space>
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment