Commit 861b63a0 by zhaochengxiang

已发布模型下的草稿选择送审状态没有实时改变

parent 91c96e87
...@@ -299,7 +299,7 @@ const ModelTable = (props) => { ...@@ -299,7 +299,7 @@ const ModelTable = (props) => {
setPagination({...pagination, pageNum: 1 }); setPagination({...pagination, pageNum: 1 });
} }
} else { } else {
getDataModel(); getCheckoutDataModel();
} }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, [ catalogId, keyword, offset, modelState ]); }, [ catalogId, keyword, offset, modelState ]);
...@@ -422,20 +422,20 @@ const ModelTable = (props) => { ...@@ -422,20 +422,20 @@ const ModelTable = (props) => {
}) })
} }
const getDataModel = () => { // const getDataModel = () => {
dispatch({ // dispatch({
type: 'datamodel.getDataModel', // type: 'datamodel.getDataModel',
payload: { // payload: {
id: modelId // id: modelId
}, // },
callback: data => { // callback: data => {
setSubData(data?[data]:[]); // setSubData(data?[data]:[]);
}, // },
error: () => { // error: () => {
} // }
}) // })
} // }
const editItem = (record) => { const editItem = (record) => {
onItemAction && onItemAction(record, 'edit'); onItemAction && onItemAction(record, 'edit');
......
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