Commit d48ff204 by zhaochengxiang

服务管理隐藏启停OData

parent 6932dd5c
...@@ -129,7 +129,7 @@ const ResizeableHeaderCell = props => { ...@@ -129,7 +129,7 @@ const ResizeableHeaderCell = props => {
const ModelTable = (props) => { const ModelTable = (props) => {
const { data, onChange, onItemAction, onSelect, onHistory, catalogId, keyword, onAutoCreateTable, offset = null, modelId = null, modelPid = null, view, selectModelerIds, onSubSelect, modelState, user } = props; const { data, onChange, onItemAction, onSelect, onHistory, catalogId, keyword, onAutoCreateTable, offset = null, modelId = null, modelPid = null, view, selectModelerIds, onSubSelect, modelState, user, isOnlyEnding } = props;
const MENU_ID = (((modelId||'') !== '') ? `model-table-contextmenu-${modelId}` : 'model-table-contextmenu'); const MENU_ID = (((modelId||'') !== '') ? `model-table-contextmenu-${modelId}` : 'model-table-contextmenu');
...@@ -856,12 +856,12 @@ const ModelTable = (props) => { ...@@ -856,12 +856,12 @@ const ModelTable = (props) => {
</RcItem> </RcItem>
} }
{ {
getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && <RcItem id="enableOData" onClick={handleItemClick}> getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && !isOnlyEnding && <RcItem id="enableOData" onClick={handleItemClick}>
启动OData 启动OData
</RcItem> </RcItem>
} }
{ {
getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && <RcItem id="disableOData" onClick={handleItemClick}> getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && !isOnlyEnding && <RcItem id="disableOData" onClick={handleItemClick}>
停用OData 停用OData
</RcItem> </RcItem>
} }
......
...@@ -592,6 +592,7 @@ class Model extends React.Component { ...@@ -592,6 +592,7 @@ class Model extends React.Component {
<ModelTable <ModelTable
loading={loadingTableData} loading={loadingTableData}
user={app?.user} user={app?.user}
isOnlyEnding={isOnlyEnding}
catalogId={catalogId} catalogId={catalogId}
view={currentView} view={currentView}
data={filterTableData} data={filterTableData}
......
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