Commit ba9752bf by zhaochengxiang

清除terms

parent 6a7eed78
...@@ -136,6 +136,7 @@ const EditModel = (props) => { ...@@ -136,6 +136,7 @@ const EditModel = (props) => {
}, },
callback: () => { callback: () => {
setConfirmLoading(false); setConfirmLoading(false);
setTerms([]);
showMessage("success", '新增模型成功'); showMessage("success", '新增模型成功');
setActionData({ ...actionData, ...{ action: 'detail', modelerId: data.id||'', editable: data?.editable||false, stateId: data?.state?.id||'' } }); setActionData({ ...actionData, ...{ action: 'detail', modelerId: data.id||'', editable: data?.editable||false, stateId: data?.state?.id||'' } });
...@@ -148,6 +149,7 @@ const EditModel = (props) => { ...@@ -148,6 +149,7 @@ const EditModel = (props) => {
}) })
} else { } else {
setConfirmLoading(false); setConfirmLoading(false);
setTerms([]);
showMessage("success", '保存模型成功'); showMessage("success", '保存模型成功');
......
...@@ -275,13 +275,14 @@ const ModelTable = (props) => { ...@@ -275,13 +275,14 @@ const ModelTable = (props) => {
useEffect(() => { useEffect(() => {
if ((modelId||'') !== '') { // if ((modelId||'') !== '') {
window?.addEventListener("storage", (e) => { // window?.addEventListener("storage", (e) => {
if (e.key === 'modelChange') { // if (e.key === 'modelChange') {
getDataModel(); // getDataModel();
} // }
}); // });
} // }
//eslint-disable-next-line react-hooks/exhaustive-deps //eslint-disable-next-line react-hooks/exhaustive-deps
}, []) }, [])
...@@ -591,7 +592,6 @@ const ModelTable = (props) => { ...@@ -591,7 +592,6 @@ const ModelTable = (props) => {
return expanded ? <UpOutlined style={{ fontSize: 10 }} onClick={e => onExpand(record, e)} /> : <DownOutlined style={{ fontSize: 10 }} onClick={e => onExpand(record, e)} /> return expanded ? <UpOutlined style={{ fontSize: 10 }} onClick={e => onExpand(record, e)} /> : <DownOutlined style={{ fontSize: 10 }} onClick={e => onExpand(record, e)} />
}, },
rowExpandable: record => { rowExpandable: record => {
return record?.alreadyCheckedOut; return record?.alreadyCheckedOut;
} }
}; };
......
...@@ -49,6 +49,10 @@ const StartFlowModal = (props) => { ...@@ -49,6 +49,10 @@ const StartFlowModal = (props) => {
} }
LocalStorage.set('modelChange', !(LocalStorage.get('modelChange')||false)); LocalStorage.set('modelChange', !(LocalStorage.get('modelChange')||false));
let event = new Event('storage');
event.key = 'modelChange';
window?.dispatchEvent(event);
onCancel && onCancel(true); onCancel && onCancel(true);
}, },
error: () => { error: () => {
......
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