Commit a2dbffa1 by zhaochengxiang

模型目录定位

parent b88b0b88
...@@ -7,7 +7,7 @@ import { useContextMenu, Menu as RcMenu, Item as RcItem } from "react-contexify" ...@@ -7,7 +7,7 @@ import { useContextMenu, Menu as RcMenu, Item as RcItem } from "react-contexify"
import UpdateTreeItemModal from './UpdateTreeItemModal'; import UpdateTreeItemModal from './UpdateTreeItemModal';
import { dispatch } from '../../../../model'; import { dispatch } from '../../../../model';
import { showMessage, getQueryParam, highlightSearchContentByTerms, getDataModelerRole } from '../../../../util'; import { showMessage, getQueryParam, highlightSearchContentByTerms, getDataModelerRole } from '../../../../util';
import { AnchorId, AnchorTimestamp, DataModelerRoleAdmin } from '../../../../util/constant'; import { AnchorDirId, AnchorId, AnchorTimestamp, DataModelerRoleAdmin } from '../../../../util/constant';
import { AppContext } from "../../../../App"; import { AppContext } from "../../../../App";
import './ModelTree.less'; import './ModelTree.less';
...@@ -60,6 +60,7 @@ const ModelTree = (props) => { ...@@ -60,6 +60,7 @@ const ModelTree = (props) => {
const timestamp = getQueryParam(AnchorTimestamp, props.location?.search||''); const timestamp = getQueryParam(AnchorTimestamp, props.location?.search||'');
const id = getQueryParam(AnchorId, props.location?.search||''); const id = getQueryParam(AnchorId, props.location?.search||'');
const did = getQueryParam(AnchorDirId, props.location?.search||'');
useEffect(() => { useEffect(() => {
getShowSyncAndDomains(); getShowSyncAndDomains();
...@@ -75,6 +76,8 @@ const ModelTree = (props) => { ...@@ -75,6 +76,8 @@ const ModelTree = (props) => {
if ((id||'') !== '') { if ((id||'') !== '') {
getDataModelLocationThenGetDirTreeData(); getDataModelLocationThenGetDirTreeData();
} else if ((did||'') !== '') {
getDirTreeData(did);
} else { } else {
getDirTreeData(); getDirTreeData();
} }
......
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