Commit d48ff204 by zhaochengxiang

服务管理隐藏启停OData

parent 6932dd5c
......@@ -129,7 +129,7 @@ const ResizeableHeaderCell = 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');
......@@ -856,12 +856,12 @@ const ModelTable = (props) => {
</RcItem>
}
{
getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && <RcItem id="enableOData" onClick={handleItemClick}>
getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && !isOnlyEnding && <RcItem id="enableOData" onClick={handleItemClick}>
启动OData
</RcItem>
}
{
getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && <RcItem id="disableOData" onClick={handleItemClick}>
getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant' && !isOnlyEnding && <RcItem id="disableOData" onClick={handleItemClick}>
停用OData
</RcItem>
}
......
......@@ -592,6 +592,7 @@ class Model extends React.Component {
<ModelTable
loading={loadingTableData}
user={app?.user}
isOnlyEnding={isOnlyEnding}
catalogId={catalogId}
view={currentView}
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