Commit 2a617a4c by zhaochengxiang

隐藏编辑衍生表

parent 8e34106c
...@@ -8,7 +8,7 @@ import copy from "copy-to-clipboard"; ...@@ -8,7 +8,7 @@ import copy from "copy-to-clipboard";
import ImportAction from './ImportAction'; import ImportAction from './ImportAction';
import CatalogModal from './CatalogModal'; import CatalogModal from './CatalogModal';
import { dispatchLatest, dispatch } from '../../../../model'; import { dispatchLatest, dispatch } from '../../../../model';
import { getQueryParam, showMessage, showNotifaction } from '../../../../util'; import { getQueryParam, isSzseEnv, showMessage, showNotifaction } from '../../../../util';
import { Action, CatalogId, ModelerId, Hints, ModelerData, PermitCheckOut, Editable, StateId, VersionId, Holder, DDL, ReadOnly, BranchId, ApprovalId, ApprovalType, TaskId } from '../../../../util/constant'; import { Action, CatalogId, ModelerId, Hints, ModelerData, PermitCheckOut, Editable, StateId, VersionId, Holder, DDL, ReadOnly, BranchId, ApprovalId, ApprovalType, TaskId } from '../../../../util/constant';
import HistoryAndVersionDrawer from './HistoryAndVersionDrawer'; import HistoryAndVersionDrawer from './HistoryAndVersionDrawer';
import { EditModelContext } from './ContextManage'; import { EditModelContext } from './ContextManage';
...@@ -538,7 +538,7 @@ const EditModel = (props) => { ...@@ -538,7 +538,7 @@ const EditModel = (props) => {
{ {
readOnly!=='true' && <Space> readOnly!=='true' && <Space>
{ {
!modelerData?.inheritedFromEasyDataModelerDataModel && !branchId && <PermissionButton !isSzseEnv && !modelerData?.inheritedFromEasyDataModelerDataModel && !branchId && <PermissionButton
type='primary' type='primary'
onClick={() => { onClick={() => {
if (importActionRef.current && importActionRef.current.isLoading()) { if (importActionRef.current && importActionRef.current.isLoading()) {
...@@ -632,7 +632,7 @@ const EditModel = (props) => { ...@@ -632,7 +632,7 @@ const EditModel = (props) => {
历史版本 历史版本
</PermissionButton> </PermissionButton>
{ {
!modelerData?.inheritedFromEasyDataModelerDataModel && <PermissionButton !isSzseEnv && !modelerData?.inheritedFromEasyDataModelerDataModel && <PermissionButton
type='primary' type='primary'
onClick={() => { onClick={() => {
if (importActionRef.current && importActionRef.current.isLoading()) { if (importActionRef.current && importActionRef.current.isLoading()) {
......
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