Commit 8a5eeb76 by zhaochengxiang

评审支持修改模型内容

parent 2cc11b22
......@@ -612,6 +612,7 @@ const EditModel = (props) => {
onHistory={() => {
setHistoryAndVersionDrawerVisible(true)
}}
onEdit={edit}
onChange={(val) => {
setApprovalModelId(val)
}}
......@@ -765,7 +766,7 @@ const EditModel = (props) => {
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 [waiting, setWaiting] = useState(false)
const [tip, setTip] = useState()
......@@ -816,6 +817,10 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange
onHistory?.()
}
const onEditClick = () => {
onEdit?.()
}
const onPrevClick = () => {
if (data?.modelInfoList[index-1]) {
onChange?.(data?.modelInfoList[index-1].id)
......@@ -867,6 +872,7 @@ const PhysicalModelApprovalBottom = ({ loading, type, data, id, taskId, onChange
<Space>
<Button type='primary' ghost onClick={onExportClick}>导出</Button>
<Button type='primary' ghost onClick={onHistoryClick}>历史版本</Button>
<Button type='primary' onClick={onEditClick}>编辑</Button>
</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