Unverified Commit e7fc3b36 authored by yqwoe's avatar yqwoe Committed by GitHub

Registry Authority Control (#2294)

* feat: use-service hooks * feat: 注册中心权限控制 * feat: 维护数据库脚本
parent 24d5e41d
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -24,7 +24,7 @@ export const gotoRedirectUrl = () => { ...@@ -24,7 +24,7 @@ export const gotoRedirectUrl = () => {
if (!history) return; if (!history) return;
setTimeout(() => { setTimeout(() => {
const urlParams = new URL(window.location.href).searchParams; const urlParams = new URL(window.location.href).searchParams;
window.location.href = urlParams.get('redirect') || '/'; history.replace(urlParams.get('redirect') || '/');
}, 10); }, 10);
}; };
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
import Pop from '@/components/Animation/Pop'; import Pop from '@/components/Animation/Pop';
import { DangerDeleteIcon } from '@/components/Icons/CustomIcons'; import { DangerDeleteIcon } from '@/components/Icons/CustomIcons';
import { Authorized } from '@/hooks/useAccess';
import AlertGroupForm from '@/pages/RegCenter/Alert/AlertGroup/components/AlertGroupForm'; import AlertGroupForm from '@/pages/RegCenter/Alert/AlertGroup/components/AlertGroupForm';
import { getAlertIcon } from '@/pages/RegCenter/Alert/AlertInstance/function'; import { getAlertIcon } from '@/pages/RegCenter/Alert/AlertInstance/function';
import { ALERT_MODEL_ASYNC } from '@/pages/RegCenter/Alert/AlertInstance/model'; import { ALERT_MODEL_ASYNC } from '@/pages/RegCenter/Alert/AlertInstance/model';
...@@ -138,13 +139,15 @@ const AlertGroupTableList: React.FC = (props: any) => { ...@@ -138,13 +139,15 @@ const AlertGroupTableList: React.FC = (props: any) => {
*/ */
const renderToolBar = () => { const renderToolBar = () => {
return () => [ return () => [
<Button <Authorized key='create' path='/registration/alert/group/new'>
key={'CreateAlertGroup'} <Button
type='primary' key={'CreateAlertGroup'}
onClick={() => setAlertGroupState((prevState) => ({ ...prevState, addedOpen: true }))} type='primary'
> onClick={() => setAlertGroupState((prevState) => ({ ...prevState, addedOpen: true }))}
<PlusOutlined /> {l('button.create')} >
</Button> <PlusOutlined /> {l('button.create')}
</Button>
</Authorized>
]; ];
}; };
...@@ -166,19 +169,23 @@ const AlertGroupTableList: React.FC = (props: any) => { ...@@ -166,19 +169,23 @@ const AlertGroupTableList: React.FC = (props: any) => {
*/ */
const renderAlertGroupActionButton = (item: Alert.AlertGroup) => { const renderAlertGroupActionButton = (item: Alert.AlertGroup) => {
return [ return [
<Button <Authorized key={item.id} path='/registration/alert/group/edit'>
className={'options-button'} <Button
key={'AlertGroupEdit'} className={'options-button'}
icon={<EditTwoTone />} key={'AlertGroupEdit'}
title={l('button.edit')} icon={<EditTwoTone />}
onClick={() => editClick(item)} title={l('button.edit')}
/>, onClick={() => editClick(item)}
<Button />
className={'options-button'} </Authorized>,
key={'DeleteAlertGroupIcon'} <Authorized key={item.id} path='/registration/alert/group/delete'>
icon={<DangerDeleteIcon />} <Button
onClick={() => handleDeleteSubmit(item.id)} className={'options-button'}
/> key={'DeleteAlertGroupIcon'}
icon={<DangerDeleteIcon />}
onClick={() => handleDeleteSubmit(item.id)}
/>
</Authorized>
]; ];
}; };
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
import { CreateBtn } from '@/components/CallBackButton/CreateBtn'; import { CreateBtn } from '@/components/CallBackButton/CreateBtn';
import { DangerDeleteIcon } from '@/components/Icons/CustomIcons'; import { DangerDeleteIcon } from '@/components/Icons/CustomIcons';
import { Authorized } from '@/hooks/useAccess';
import { import {
getAlertIcon, getAlertIcon,
getJSONData, getJSONData,
...@@ -142,19 +143,23 @@ const AlertInstanceList: React.FC = () => { ...@@ -142,19 +143,23 @@ const AlertInstanceList: React.FC = () => {
*/ */
const renderAlertInstanceActionButton = (item: Alert.AlertInstance) => { const renderAlertInstanceActionButton = (item: Alert.AlertInstance) => {
return [ return [
<Button <Authorized key={item.id} path='/registration/alert/instance/edit'>
className={'options-button'} <Button
key={'AlertInstanceEdit'} className={'options-button'}
icon={<EditTwoTone />} key={'AlertInstanceEdit'}
title={l('button.edit')} icon={<EditTwoTone />}
onClick={() => editClick(item)} title={l('button.edit')}
/>, onClick={() => editClick(item)}
<Button />
className={'options-button'} </Authorized>,
key={'DeleteAlertInstanceIcon'} <Authorized key={item.id} path='/registration/alert/instance/delete'>
icon={<DangerDeleteIcon />} <Button
onClick={() => handleDeleteSubmit(item.id)} className={'options-button'}
/> key={'DeleteAlertInstanceIcon'}
icon={<DangerDeleteIcon />}
onClick={() => handleDeleteSubmit(item.id)}
/>
</Authorized>
]; ];
}; };
...@@ -199,10 +204,12 @@ const AlertInstanceList: React.FC = () => { ...@@ -199,10 +204,12 @@ const AlertInstanceList: React.FC = () => {
*/ */
const renderToolBar = () => { const renderToolBar = () => {
return () => [ return () => [
<CreateBtn <Authorized key='create' path='/registration/alert/instance/new'>
key={'CreateAlertInstanceBtn'} <CreateBtn
onClick={() => setAlertInstanceState((prevState) => ({ ...prevState, addedOpen: true }))} key={'CreateAlertInstanceBtn'}
/> onClick={() => setAlertInstanceState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
</Authorized>
]; ];
}; };
......
...@@ -24,6 +24,7 @@ import { NormalDeleteBtn } from '@/components/CallBackButton/NormalDeleteBtn'; ...@@ -24,6 +24,7 @@ import { NormalDeleteBtn } from '@/components/CallBackButton/NormalDeleteBtn';
import { RunningBtn } from '@/components/CallBackButton/RunningBtn'; import { RunningBtn } from '@/components/CallBackButton/RunningBtn';
import { ClusterConfigIcon } from '@/components/Icons/HomeIcon'; import { ClusterConfigIcon } from '@/components/Icons/HomeIcon';
import { DataAction } from '@/components/StyledComponents'; import { DataAction } from '@/components/StyledComponents';
import { Authorized } from '@/hooks/useAccess';
import { imgStyle } from '@/pages/Home/constants'; import { imgStyle } from '@/pages/Home/constants';
import ConfigurationModal from '@/pages/RegCenter/Cluster/Configuration/components/ConfigurationModal'; import ConfigurationModal from '@/pages/RegCenter/Cluster/Configuration/components/ConfigurationModal';
import { CLUSTER_CONFIG_TYPE } from '@/pages/RegCenter/Cluster/Configuration/components/contants'; import { CLUSTER_CONFIG_TYPE } from '@/pages/RegCenter/Cluster/Configuration/components/contants';
...@@ -194,8 +195,8 @@ export default () => { ...@@ -194,8 +195,8 @@ export default () => {
*/ */
const renderDataActionButton = (item: Cluster.Config) => { const renderDataActionButton = (item: Cluster.Config) => {
return [ return [
<EditBtn key={`${item.id}_edit`} onClick={() => editClick(item)} />, <Authorized key={`${item.id}_edit`} path="/registration/cluster/config/edit"><EditBtn key={`${item.id}_edit`} onClick={() => editClick(item)} /></Authorized>,
<NormalDeleteBtn key={`${item.id}_delete`} onClick={() => handleDeleteSubmit(item.id)} />, <Authorized key={`${item.id}_delete`} path="/registration/cluster/config/delete"><NormalDeleteBtn key={`${item.id}_delete`} onClick={() => handleDeleteSubmit(item.id)} /></Authorized>,
<RunningBtn <RunningBtn
key={`${item.id}_running`} key={`${item.id}_running`}
title={l('rc.cc.start')} title={l('rc.cc.start')}
...@@ -249,10 +250,12 @@ export default () => { ...@@ -249,10 +250,12 @@ export default () => {
* tool bar render * tool bar render
*/ */
const toolBarRender = () => [ const toolBarRender = () => [
<CreateBtn <Authorized key='new' path='/registration/cluster/config/new'>
key={'configcreate'} <CreateBtn
onClick={() => setClusterConfigState((prevState) => ({ ...prevState, addedOpen: true }))} key={'configcreate'}
/> onClick={() => setClusterConfigState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
</Authorized>
]; ];
/** /**
......
...@@ -21,6 +21,7 @@ import { CreateBtn } from '@/components/CallBackButton/CreateBtn'; ...@@ -21,6 +21,7 @@ import { CreateBtn } from '@/components/CallBackButton/CreateBtn';
import { EditBtn } from '@/components/CallBackButton/EditBtn'; import { EditBtn } from '@/components/CallBackButton/EditBtn';
import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn'; import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn'; import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn';
import { Authorized } from '@/hooks/useAccess';
import { CLUSTER_INSTANCE_STATUS_ENUM } from '@/pages/RegCenter/Cluster/Instance/components/contants'; import { CLUSTER_INSTANCE_STATUS_ENUM } from '@/pages/RegCenter/Cluster/Instance/components/contants';
import { renderWebUiRedirect } from '@/pages/RegCenter/Cluster/Instance/components/function'; import { renderWebUiRedirect } from '@/pages/RegCenter/Cluster/Instance/components/function';
import InstanceModal from '@/pages/RegCenter/Cluster/Instance/components/InstanceModal'; import InstanceModal from '@/pages/RegCenter/Cluster/Instance/components/InstanceModal';
...@@ -225,12 +226,16 @@ export default () => { ...@@ -225,12 +226,16 @@ export default () => {
valueType: 'option', valueType: 'option',
width: '8vw', width: '8vw',
render: (_: any, record: Cluster.Instance) => [ render: (_: any, record: Cluster.Instance) => [
<EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)} />, <Authorized key={`${record.id}_edit`} path='/registration/cluster/instance/edit'>
<PopconfirmDeleteBtn <EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)} />
key={`${record.id}_delete`} </Authorized>,
onClick={() => handleDelete(record.id)} <Authorized key={`${record.id}_delete`} path='/registration/cluster/instance/delete'>
description={l('rc.ci.deleteConfirm')} <PopconfirmDeleteBtn
/>, key={`${record.id}_delete`}
onClick={() => handleDelete(record.id)}
description={l('rc.ci.deleteConfirm')}
/>
</Authorized>,
renderWebUiRedirect(record) renderWebUiRedirect(record)
] ]
} }
...@@ -240,10 +245,12 @@ export default () => { ...@@ -240,10 +245,12 @@ export default () => {
* tool bar render * tool bar render
*/ */
const toolBarRender = () => [ const toolBarRender = () => [
<CreateBtn <Authorized key='/registration/cluster/instance/new' path='/registration/cluster/instance/new'>
key={'instancecreate'} <CreateBtn
onClick={() => setClusterInstanceStatus((prevState) => ({ ...prevState, addedOpen: true }))} key={'instancecreate'}
/>, onClick={() => setClusterInstanceStatus((prevState) => ({ ...prevState, addedOpen: true }))}
/>
</Authorized>,
<Button <Button
key={'heartbeat_all'} key={'heartbeat_all'}
type={'primary'} type={'primary'}
...@@ -252,16 +259,21 @@ export default () => { ...@@ -252,16 +259,21 @@ export default () => {
> >
{l('button.heartbeat')} {l('button.heartbeat')}
</Button>, </Button>,
<Popconfirm <Authorized
key={'recycle'} key='/registration/cluster/instance/recovery'
title={l('rc.ci.recycle')} path='/registration/cluster/instance/recovery'
description={l('rc.ci.recycleConfirm')}
onConfirm={handleRecycle}
> >
<Button key={'recycle_btn'} type={'primary'} icon={<ClearOutlined />}> <Popconfirm
{l('button.recycle')} key={'recycle'}
</Button> title={l('rc.ci.recycle')}
</Popconfirm> description={l('rc.ci.recycleConfirm')}
onConfirm={handleRecycle}
>
<Button key={'recycle_btn'} type={'primary'} icon={<ClearOutlined />}>
{l('button.recycle')}
</Button>
</Popconfirm>
</Authorized>
]; ];
/** /**
......
...@@ -20,6 +20,7 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn'; ...@@ -20,6 +20,7 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn';
import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn'; import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { NormalDeleteBtn } from '@/components/CallBackButton/NormalDeleteBtn'; import { NormalDeleteBtn } from '@/components/CallBackButton/NormalDeleteBtn';
import { DataAction } from '@/components/StyledComponents'; import { DataAction } from '@/components/StyledComponents';
import { Authorized } from '@/hooks/useAccess';
import { StateType, STUDIO_MODEL } from '@/pages/DataStudio/model'; import { StateType, STUDIO_MODEL } from '@/pages/DataStudio/model';
import DataSourceDetail from '@/pages/RegCenter/DataSource/components/DataSourceDetail'; import DataSourceDetail from '@/pages/RegCenter/DataSource/components/DataSourceDetail';
import { renderDBIcon } from '@/pages/RegCenter/DataSource/components/function'; import { renderDBIcon } from '@/pages/RegCenter/DataSource/components/function';
...@@ -204,8 +205,8 @@ const DataSourceTable: React.FC<connect & StateType> = (props) => { ...@@ -204,8 +205,8 @@ const DataSourceTable: React.FC<connect & StateType> = (props) => {
*/ */
const renderDataSourceActionButton = (item: DataSources.DataSource) => { const renderDataSourceActionButton = (item: DataSources.DataSource) => {
return [ return [
<EditBtn key={`${item.id}_edit`} onClick={() => editClick(item)} />, <Authorized key={`${item.id}_edit`} path="/registration/database/new"><EditBtn key={`${item.id}_edit`} onClick={() => editClick(item)} /></Authorized>,
<NormalDeleteBtn key={`${item.id}_delete`} onClick={() => handleDeleteSubmit(item.id)} />, <Authorized key={`${item.id}_delete`} path="/registration/database/delete"><NormalDeleteBtn key={`${item.id}_delete`} onClick={() => handleDeleteSubmit(item.id)} /></Authorized>,
<Button <Button
className={'options-button'} className={'options-button'}
key={`${item.id}_heart`} key={`${item.id}_heart`}
...@@ -278,7 +279,9 @@ const DataSourceTable: React.FC<connect & StateType> = (props) => { ...@@ -278,7 +279,9 @@ const DataSourceTable: React.FC<connect & StateType> = (props) => {
actionRef={actionRef} actionRef={actionRef}
headerTitle={l('rc.ds.management')} headerTitle={l('rc.ds.management')}
toolBarRender={() => [ toolBarRender={() => [
<CreateBtn key={'CreateBtn'} onClick={() => setModalVisible(true)} /> <Authorized key='create' path='/registration/database/new'>
<CreateBtn key={'CreateBtn'} onClick={() => setModalVisible(true)} />
</Authorized>
]} ]}
dataSource={renderDataSource} dataSource={renderDataSource}
/> />
......
...@@ -22,6 +22,7 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn'; ...@@ -22,6 +22,7 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn';
import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn'; import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn'; import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn';
import CodeShow from '@/components/CustomEditor/CodeShow'; import CodeShow from '@/components/CustomEditor/CodeShow';
import { Authorized } from '@/hooks/useAccess';
import DocumentDrawer from '@/pages/RegCenter/Document/components/DocumentDrawer'; import DocumentDrawer from '@/pages/RegCenter/Document/components/DocumentDrawer';
import DocumentModalForm from '@/pages/RegCenter/Document/components/DocumentModal'; import DocumentModalForm from '@/pages/RegCenter/Document/components/DocumentModal';
import { import {
...@@ -169,12 +170,14 @@ const DocumentTableList: React.FC = () => { ...@@ -169,12 +170,14 @@ const DocumentTableList: React.FC = () => {
valueEnum: STATUS_ENUM(), valueEnum: STATUS_ENUM(),
render: (_, record) => { render: (_, record) => {
return ( return (
<EnableSwitchBtn <Authorized key={record.id} path='/registration/document/enable'>
key={`${record.id}_enable`} <EnableSwitchBtn
disabled={documentState.drawerOpen} key={`${record.id}_enable`}
record={record} disabled={documentState.drawerOpen}
onChange={() => handleChangeEnable(record)} record={record}
/> onChange={() => handleChangeEnable(record)}
/>
</Authorized>
); );
} }
}, },
...@@ -199,12 +202,16 @@ const DocumentTableList: React.FC = () => { ...@@ -199,12 +202,16 @@ const DocumentTableList: React.FC = () => {
valueType: 'option', valueType: 'option',
width: '10vh', width: '10vh',
render: (_, record) => [ render: (_, record) => [
<EditBtn key={`${record.id}_edit`} onClick={() => handleClickEdit(record)} />, <Authorized key={`${record.id}_edit`} path='/registration/document/edit'>
<PopconfirmDeleteBtn <EditBtn key={`${record.id}_edit`} onClick={() => handleClickEdit(record)} />
key={`${record.id}_delete`} </Authorized>,
onClick={() => handleDeleteSubmit(record.id)} <Authorized key={`${record.id}_delete`} path='/registration/document/delete'>
description={l('rc.doc.deleteConfirm')} <PopconfirmDeleteBtn
/> key={`${record.id}_delete`}
onClick={() => handleDeleteSubmit(record.id)}
description={l('rc.doc.deleteConfirm')}
/>
</Authorized>
] ]
} }
]; ];
...@@ -218,15 +225,17 @@ const DocumentTableList: React.FC = () => { ...@@ -218,15 +225,17 @@ const DocumentTableList: React.FC = () => {
headerTitle={l('rc.doc.management')} headerTitle={l('rc.doc.management')}
actionRef={actionRef} actionRef={actionRef}
toolBarRender={() => [ toolBarRender={() => [
<CreateBtn <Authorized key='create' path='/registration/document/new'>
key={'doctable'} <CreateBtn
onClick={() => key={'doctable'}
setDocumentState((prevState) => ({ onClick={() =>
...prevState, setDocumentState((prevState) => ({
addedOpen: true ...prevState,
})) addedOpen: true
} }))
/> }
/>
</Authorized>
]} ]}
request={(params, sorter, filter: any) => request={(params, sorter, filter: any) =>
queryList(API_CONSTANTS.DOCUMENT, { ...params, sorter, filter }) queryList(API_CONSTANTS.DOCUMENT, { ...params, sorter, filter })
......
...@@ -23,6 +23,7 @@ import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn'; ...@@ -23,6 +23,7 @@ import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn'; import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn';
import { ShowLogBtn } from '@/components/CallBackButton/ShowLogBtn'; import { ShowLogBtn } from '@/components/CallBackButton/ShowLogBtn';
import { ShowCodeTreeIcon } from '@/components/Icons/CustomIcons'; import { ShowCodeTreeIcon } from '@/components/Icons/CustomIcons';
import { Authorized } from '@/hooks/useAccess';
import { BuildSteps } from '@/pages/RegCenter/GitProject/components/BuildSteps'; import { BuildSteps } from '@/pages/RegCenter/GitProject/components/BuildSteps';
import ClassList from '@/pages/RegCenter/GitProject/components/BuildSteps/JarShow/JarList'; import ClassList from '@/pages/RegCenter/GitProject/components/BuildSteps/JarShow/JarList';
import { CodeTree } from '@/pages/RegCenter/GitProject/components/CodeTree'; import { CodeTree } from '@/pages/RegCenter/GitProject/components/CodeTree';
...@@ -272,11 +273,13 @@ const ProjectProTable: React.FC = () => { ...@@ -272,11 +273,13 @@ const ProjectProTable: React.FC = () => {
valueType: 'option', valueType: 'option',
width: '10vw', width: '10vw',
render: (text: any, record: GitProject) => [ render: (text: any, record: GitProject) => [
<ShowLogBtn <Authorized key={`${record.id}_showLog`} path='/registration/gitprojects/search'>
disabled={record.buildStep === 0} <ShowLogBtn
key={`${record.id}_showLog`} disabled={record.buildStep === 0}
onClick={() => handleShowLog(record)} key={`${record.id}_showLog`}
/>, onClick={() => handleShowLog(record)}
/>
</Authorized>,
<Button <Button
key={`${record.id}_code`} key={`${record.id}_code`}
className={'options-button'} className={'options-button'}
...@@ -284,24 +287,34 @@ const ProjectProTable: React.FC = () => { ...@@ -284,24 +287,34 @@ const ProjectProTable: React.FC = () => {
icon={<ShowCodeTreeIcon />} icon={<ShowCodeTreeIcon />}
onClick={() => handleShowCodeTree(record)} onClick={() => handleShowCodeTree(record)}
/>, />,
<Popconfirm <Authorized key={`${record.id}_build`} path='/registration/gitprojects/build'>
className={'options-button'} <Popconfirm
key={`${record.id}_build`} className={'options-button'}
placement='topRight' key={`${record.id}_build`}
title={l('button.build')} placement='topRight'
description={l('rc.gp.buildConfirm')} title={l('button.build')}
onConfirm={() => handleBuild(record)} description={l('rc.gp.buildConfirm')}
okText={l('button.confirm')} onConfirm={() => handleBuild(record)}
cancelText={l('button.cancel')} okText={l('button.confirm')}
> cancelText={l('button.cancel')}
<Button title={l('button.build')} key={`${record.id}_buildbtn`} icon={<BuildTwoTone />} /> >
</Popconfirm>, <Button
<EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)} />, title={l('button.build')}
<PopconfirmDeleteBtn key={`${record.id}_buildbtn`}
key={`${record.id}_delete`} icon={<BuildTwoTone />}
onClick={() => handleDeleteSubmit(record.id)} />
description={l('rc.gp.deleteConfirm')} </Popconfirm>
/> </Authorized>,
<Authorized key={`${record.id}_edit`} path='/registration/gitprojects/edit'>
<EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)} />
</Authorized>,
<Authorized key={`${record.id}_delete`} path='/registration/gitprojects/delete'>
<PopconfirmDeleteBtn
key={`${record.id}_delete`}
onClick={() => handleDeleteSubmit(record.id)}
description={l('rc.gp.deleteConfirm')}
/>
</Authorized>
] ]
} }
]; ];
...@@ -350,10 +363,14 @@ const ProjectProTable: React.FC = () => { ...@@ -350,10 +363,14 @@ const ProjectProTable: React.FC = () => {
actionRef={actionRef} actionRef={actionRef}
dragSortKey={'id'} dragSortKey={'id'}
toolBarRender={() => [ toolBarRender={() => [
<CreateBtn <Authorized key='create' path='/registration/gitprojects/new'>
key={'gittable'} <CreateBtn
onClick={() => setGitProjectStatus((prevState) => ({ ...prevState, addedOpen: true }))} key={'gittable'}
/> onClick={() =>
setGitProjectStatus((prevState) => ({ ...prevState, addedOpen: true }))
}
/>
</Authorized>
]} ]}
expandable={{ expandable={{
expandRowByClick: false, expandRowByClick: false,
......
...@@ -22,6 +22,7 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn'; ...@@ -22,6 +22,7 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn';
import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn'; import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn'; import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn';
import CodeShow from '@/components/CustomEditor/CodeShow'; import CodeShow from '@/components/CustomEditor/CodeShow';
import { Authorized } from '@/hooks/useAccess';
import GlobalVarDrawer from '@/pages/RegCenter/GlobalVar/components/GlobalVarDrawer'; import GlobalVarDrawer from '@/pages/RegCenter/GlobalVar/components/GlobalVarDrawer';
import GlobalVarModal from '@/pages/RegCenter/GlobalVar/components/GlobalVarModal'; import GlobalVarModal from '@/pages/RegCenter/GlobalVar/components/GlobalVarModal';
import { queryList } from '@/services/api'; import { queryList } from '@/services/api';
...@@ -139,12 +140,14 @@ const GlobalVarProTable = () => { ...@@ -139,12 +140,14 @@ const GlobalVarProTable = () => {
width: '15vh', width: '15vh',
render: (_, record) => { render: (_, record) => {
return ( return (
<EnableSwitchBtn <Authorized key={record.id} path='/registration/fragment/enable'>
key={`${record.id}_enable`} <EnableSwitchBtn
disabled={globalVarState.drawerOpen} key={`${record.id}_enable`}
record={record} disabled={globalVarState.drawerOpen}
onChange={() => handleChangeEnable(record)} record={record}
/> onChange={() => handleChangeEnable(record)}
/>
</Authorized>
); );
}, },
filters: STATUS_MAPPING(), filters: STATUS_MAPPING(),
...@@ -172,12 +175,16 @@ const GlobalVarProTable = () => { ...@@ -172,12 +175,16 @@ const GlobalVarProTable = () => {
width: '10vh', width: '10vh',
valueType: 'option', valueType: 'option',
render: (_, record) => [ render: (_, record) => [
<EditBtn key={`${record.id}_edit`} onClick={() => handleClickEdit(record)} />, <Authorized key={`${record.id}_edit`} path='/registration/fragment/edit'>
<PopconfirmDeleteBtn <EditBtn key={`${record.id}_edit`} onClick={() => handleClickEdit(record)} />
key={`${record.id}_delete`} </Authorized>,
onClick={() => handleDeleteSubmit(record.id)} <Authorized key={`${record.id}_delete`} path='/registration/fragment/delete'>
description={l('rc.gv.deleteConfirm')} <PopconfirmDeleteBtn
/> key={`${record.id}_delete`}
onClick={() => handleDeleteSubmit(record.id)}
description={l('rc.gv.deleteConfirm')}
/>
</Authorized>
] ]
} }
]; ];
...@@ -194,10 +201,12 @@ const GlobalVarProTable = () => { ...@@ -194,10 +201,12 @@ const GlobalVarProTable = () => {
loading={globalVarState.loading} loading={globalVarState.loading}
{...PROTABLE_OPTIONS_PUBLIC} {...PROTABLE_OPTIONS_PUBLIC}
toolBarRender={() => [ toolBarRender={() => [
<CreateBtn <Authorized key='create' path='/registration/fragment/new'>
key={'vartable'} <CreateBtn
onClick={() => setGlobalVarState((prevState) => ({ ...prevState, addedOpen: true }))} key={'vartable'}
/> onClick={() => setGlobalVarState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
</Authorized>
]} ]}
request={(params, sorter, filter: any) => request={(params, sorter, filter: any) =>
queryList(API_CONSTANTS.GLOBAL_VARIABLE, { queryList(API_CONSTANTS.GLOBAL_VARIABLE, {
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
import RightContextMenu from '@/components/RightContextMenu'; import RightContextMenu from '@/components/RightContextMenu';
import { AuthorizedObject, useAccess } from '@/hooks/useAccess';
import { RIGHT_CONTEXT_MENU } from '@/pages/RegCenter/Resource/components/constants'; import { RIGHT_CONTEXT_MENU } from '@/pages/RegCenter/Resource/components/constants';
import FileShow from '@/pages/RegCenter/Resource/components/FileShow'; import FileShow from '@/pages/RegCenter/Resource/components/FileShow';
import FileTree from '@/pages/RegCenter/Resource/components/FileTree'; import FileTree from '@/pages/RegCenter/Resource/components/FileTree';
...@@ -288,6 +289,8 @@ const ResourceOverView: React.FC = () => { ...@@ -288,6 +289,8 @@ const ResourceOverView: React.FC = () => {
await refreshTreeData(id, path); await refreshTreeData(id, path);
}; };
const access = useAccess();
/** /**
* render * render
*/ */
...@@ -316,7 +319,10 @@ const ResourceOverView: React.FC = () => { ...@@ -316,7 +319,10 @@ const ResourceOverView: React.FC = () => {
openChange={() => openChange={() =>
setResourceState((prevState) => ({ ...prevState, contextMenuOpen: false })) setResourceState((prevState) => ({ ...prevState, contextMenuOpen: false }))
} }
items={RIGHT_CONTEXT_MENU()} items={RIGHT_CONTEXT_MENU().filter(
(menu) =>
!!!menu.path || !!AuthorizedObject({ path: menu.path, children: menu, access })
)}
onClick={handleMenuClick} onClick={handleMenuClick}
/> />
</ProCard> </ProCard>
......
...@@ -37,25 +37,29 @@ export const RIGHT_CONTEXT_MENU = (isDisabled = false) => [ ...@@ -37,25 +37,29 @@ export const RIGHT_CONTEXT_MENU = (isDisabled = false) => [
key: 'createFolder', key: 'createFolder',
icon: <PlusCircleOutlined />, icon: <PlusCircleOutlined />,
label: l('right.menu.createFolder'), label: l('right.menu.createFolder'),
disabled: isDisabled disabled: isDisabled,
path: '/registration/resource/folder'
}, },
{ {
key: 'upload', key: 'upload',
icon: <UploadOutlined />, icon: <UploadOutlined />,
label: l('button.upload'), label: l('button.upload'),
disabled: isDisabled disabled: isDisabled,
path: '/registration/resource/folder'
}, },
{ {
key: 'delete', key: 'delete',
icon: <DeleteOutlined />, icon: <DeleteOutlined />,
label: l('right.menu.delete'), label: l('right.menu.delete'),
disabled: isDisabled disabled: isDisabled,
path: '/registration/resource/folder'
}, },
{ {
key: 'rename', key: 'rename',
icon: <EditOutlined />, icon: <EditOutlined />,
label: l('right.menu.rename'), label: l('right.menu.rename'),
disabled: isDisabled disabled: isDisabled,
path: '/registration/resource/folder'
}, },
{ {
key: 'refresh', key: 'refresh',
......
...@@ -20,6 +20,7 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn'; ...@@ -20,6 +20,7 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn';
import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn'; import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn'; import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn';
import CodeShow from '@/components/CustomEditor/CodeShow'; import CodeShow from '@/components/CustomEditor/CodeShow';
import { Authorized } from '@/hooks/useAccess';
import TemplateModal from '@/pages/RegCenter/UDF/components/TemplateModal'; import TemplateModal from '@/pages/RegCenter/UDF/components/TemplateModal';
import { import {
CODE_TYPE_ENUM, CODE_TYPE_ENUM,
...@@ -164,12 +165,14 @@ const TemplateTable: React.FC = () => { ...@@ -164,12 +165,14 @@ const TemplateTable: React.FC = () => {
hideInSearch: true, hideInSearch: true,
render: (_: any, record: UDFTemplate) => { render: (_: any, record: UDFTemplate) => {
return ( return (
<EnableSwitchBtn <Authorized key={`${record.id}_enable`} path='/registration/udf/enable'>
key={`${record.id}_enable`} <EnableSwitchBtn
disabled={templateState.drawerOpen} key={`${record.id}_enable`}
record={record} disabled={templateState.drawerOpen}
onChange={() => handleChangeEnable(record)} record={record}
/> onChange={() => handleChangeEnable(record)}
/>
</Authorized>
); );
} }
}, },
...@@ -193,12 +196,16 @@ const TemplateTable: React.FC = () => { ...@@ -193,12 +196,16 @@ const TemplateTable: React.FC = () => {
hideInSearch: true, hideInSearch: true,
hideInDescriptions: true, hideInDescriptions: true,
render: (text: any, record: UDFTemplate) => [ render: (text: any, record: UDFTemplate) => [
<EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)} />, <Authorized key={`${record.id}_edit`} path='/registration/udf/edit'>
<PopconfirmDeleteBtn <EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)} />
key={`${record.id}_delete`} </Authorized>,
onClick={() => handleDeleteSubmit(record.id)} <Authorized key={`${record.id}_delete`} path='/registration/udf/delete'>
description={l('rc.template.deleteConfirm')} <PopconfirmDeleteBtn
/> key={`${record.id}_delete`}
onClick={() => handleDeleteSubmit(record.id)}
description={l('rc.template.deleteConfirm')}
/>
</Authorized>
] ]
} }
]; ];
...@@ -211,10 +218,12 @@ const TemplateTable: React.FC = () => { ...@@ -211,10 +218,12 @@ const TemplateTable: React.FC = () => {
actionRef={actionRef} actionRef={actionRef}
headerTitle={l('rc.udf.management')} headerTitle={l('rc.udf.management')}
toolBarRender={() => [ toolBarRender={() => [
<CreateBtn <Authorized key='create' path='/registration/udf/new'>
key={'template'} <CreateBtn
onClick={() => setTemplateState((prevState) => ({ ...prevState, addedOpen: true }))} key={'template'}
/> onClick={() => setTemplateState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
</Authorized>
]} ]}
request={(params, sorter, filter: any) => request={(params, sorter, filter: any) =>
queryList(API_CONSTANTS.UDF_TEMPLATE, { ...params, sorter, filter }) queryList(API_CONSTANTS.UDF_TEMPLATE, { ...params, sorter, filter })
......
...@@ -1212,7 +1212,44 @@ INSERT INTO `dinky_sys_menu` VALUES (44, 5, 'BI', '/datastudio/bottom/bi', NULL, ...@@ -1212,7 +1212,44 @@ INSERT INTO `dinky_sys_menu` VALUES (44, 5, 'BI', '/datastudio/bottom/bi', NULL,
INSERT INTO `dinky_sys_menu` VALUES (45, 5, '血缘', '/datastudio/bottom/lineage', NULL, NULL, NULL, 'F', 0, 12, '2023-09-01 18:07:15', '2023-09-02 00:52:12', NULL); INSERT INTO `dinky_sys_menu` VALUES (45, 5, '血缘', '/datastudio/bottom/lineage', NULL, NULL, NULL, 'F', 0, 12, '2023-09-01 18:07:15', '2023-09-02 00:52:12', NULL);
INSERT INTO `dinky_sys_menu` VALUES (46, 5, '表数据监控', '/datastudio/bottom/process', NULL, NULL, NULL, 'F', 0, 13, '2023-09-01 18:07:55', '2023-09-02 00:52:21', NULL); INSERT INTO `dinky_sys_menu` VALUES (46, 5, '表数据监控', '/datastudio/bottom/process', NULL, NULL, NULL, 'F', 0, 13, '2023-09-01 18:07:55', '2023-09-02 00:52:21', NULL);
INSERT INTO `dinky_sys_menu` VALUES (47, 5, '小工具', '/datastudio/bottom/tool', NULL, NULL, NULL, 'F', 0, 14, '2023-09-01 18:08:18', '2023-09-01 18:08:18', NULL); INSERT INTO `dinky_sys_menu` VALUES (47, 5, '小工具', '/datastudio/bottom/tool', NULL, NULL, NULL, 'F', 0, 14, '2023-09-01 18:08:18', '2023-09-01 18:08:18', NULL);
INSERT INTO `dinky_sys_menu` VALUES (48, 28, '新建', '/registration/cluster/instance/new', NULL, NULL, 'PlusOutlined', 'F', 0, 15, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (49, 28, '回收', '/registration/cluster/instance/recovery', NULL, NULL, 'PlusOutlined', 'F', 0, 16, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (50, 28, '编辑', '/registration/cluster/instance/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (51, 28, '删除', '/registration/cluster/instance/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (52, 30, '新建', '/registration/cluster/config/new', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 09:00:31', '2023-09-06 09:00:31', NULL);
INSERT INTO `dinky_sys_menu` VALUES (53, 30, '编辑', '/registration/cluster/config/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (54, 30, '删除', '/registration/cluster/config/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (55, 10, '新建', '/registration/database/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (56, 10, '编辑', '/registration/database/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (57, 10, '删除', '/registration/database/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (58, 31, '新建', '/registration/alert/instance/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (59, 31, '编辑', '/registration/alert/instance/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (60, 31, '删除', '/registration/alert/instance/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (61, 29, '新建', '/registration/alert/group/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (62, 29, '编辑', '/registration/alert/group/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (63, 29, '删除', '/registration/alert/group/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (64, 13, '新建', '/registration/document/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (65, 13, '编辑', '/registration/document/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (66, 13, '删除', '/registration/document/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (67, 13, '启用', '/registration/document/enable', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (68, 14, '新建', '/registration/fragment/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (69, 14, '编辑', '/registration/fragment/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (70, 14, '删除', '/registration/fragment/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (71, 14, '启用', '/registration/fragment/enable', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (72, 15, '新建', '/registration/gitprojects/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (73, 15, '编辑', '/registration/gitprojects/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (74, 15, '删除', '/registration/gitprojects/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (75, 15, '启用', '/registration/gitprojects/enable', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (76, 15, '构建', '/registration/gitprojects/build', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (77, 15, '查询', '/registration/gitprojects/search', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (78, 16, '新建', '/registration/udf/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (79, 16, '编辑', '/registration/udf/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (80, 16, '删除', '/registration/udf/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (81, 16, '启用', '/registration/udf/enable', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (82, 19, '上传', '/registration/resource/upload', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (83, 19, '重命名', '/registration/resource/rename', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (84, 19, '删除', '/registration/resource/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (85, 19, '创建文件夹', '/registration/resource/folder', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
COMMIT; COMMIT;
-- ---------------------------- -- ----------------------------
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -98,9 +98,61 @@ INSERT INTO `dinky_sys_menu` VALUES (30, 9, 'cluster-config', '/registration/clu ...@@ -98,9 +98,61 @@ INSERT INTO `dinky_sys_menu` VALUES (30, 9, 'cluster-config', '/registration/clu
INSERT INTO `dinky_sys_menu` VALUES (31, 12, 'instance', '/registration/alert/instance', './RegCenter/Alert/AlertInstance', null, null, 'C', 0, 15, '2023-08-11 14:06:55', '2023-08-18 17:09:39', null); INSERT INTO `dinky_sys_menu` VALUES (31, 12, 'instance', '/registration/alert/instance', './RegCenter/Alert/AlertInstance', null, null, 'C', 0, 15, '2023-08-11 14:06:55', '2023-08-18 17:09:39', null);
INSERT INTO `dinky_sys_menu` VALUES (32, 1, '作业监控', '/home/jobOverView', 'JobOverView', 'show', 'AntCloudOutlined', 'F', 0, 2, '2023-08-15 16:52:59', '2023-08-18 17:09:39', null); INSERT INTO `dinky_sys_menu` VALUES (32, 1, '作业监控', '/home/jobOverView', 'JobOverView', 'show', 'AntCloudOutlined', 'F', 0, 2, '2023-08-15 16:52:59', '2023-08-18 17:09:39', null);
INSERT INTO `dinky_sys_menu` VALUES (33, 1, '数据开发', '/home/devOverView', 'DevOverView', 'show', 'AimOutlined', 'F', 0, 3, '2023-08-15 16:54:47', '2023-08-18 17:09:39', null); INSERT INTO `dinky_sys_menu` VALUES (33, 1, '数据开发', '/home/devOverView', 'DevOverView', 'show', 'AimOutlined', 'F', 0, 3, '2023-08-15 16:54:47', '2023-08-18 17:09:39', null);
INSERT INTO `dinky_sys_menu` VALUES (34, 5, '项目列表', '/datastudio/left/project', NULL, NULL, NULL, 'F', 0, 1, '2023-09-01 18:00:39', '2023-09-02 00:51:06', NULL);
INSERT INTO `dinky_sys_menu` VALUES (35, 5, '元数据', '/datastudio/left/metadata', NULL, NULL, NULL, 'F', 0, 2, '2023-09-01 18:01:09', '2023-09-02 00:51:12', NULL);
INSERT INTO `dinky_sys_menu` VALUES (36, 5, '结构', '/datastudio/left/structure', NULL, NULL, NULL, 'F', 0, 3, '2023-09-01 18:01:30', '2023-09-02 00:51:26', NULL);
INSERT INTO `dinky_sys_menu` VALUES (37, 5, '作业配置', '/datastudio/right/jobConfig', NULL, NULL, NULL, 'F', 0, 4, '2023-09-01 18:02:15', '2023-09-02 00:51:32', NULL);
INSERT INTO `dinky_sys_menu` VALUES (38, 5, '执行配置', '/datastudio/right/executeConfig', NULL, NULL, NULL, 'F', 0, 5, '2023-09-01 18:03:08', '2023-09-02 00:51:38', NULL);
INSERT INTO `dinky_sys_menu` VALUES (39, 5, '版本历史', '/datastudio/right/historyVision', NULL, NULL, NULL, 'F', 0, 6, '2023-09-01 18:03:29', '2023-09-02 00:51:56', NULL);
INSERT INTO `dinky_sys_menu` VALUES (40, 5, '保存点', '/datastudio/right/savePoint', NULL, NULL, NULL, 'F', 0, 7, '2023-09-01 18:03:58', '2023-09-02 00:51:47', NULL);
INSERT INTO `dinky_sys_menu` VALUES (41, 5, '作业信息', '/datastudio/right/jobInfo', NULL, NULL, NULL, 'F', 0, 8, '2023-09-01 18:04:31', '2023-09-02 00:52:06', NULL);
INSERT INTO `dinky_sys_menu` VALUES (42, 5, '控制台', '/datastudio/bottom/console', NULL, NULL, NULL, 'F', 0, 9, '2023-09-01 18:04:56', '2023-09-01 18:04:56', NULL);
INSERT INTO `dinky_sys_menu` VALUES (43, 5, '结果', '/datastudio/bottom/result', NULL, NULL, NULL, 'F', 0, 10, '2023-09-01 18:05:16', '2023-09-01 18:05:16', NULL);
INSERT INTO `dinky_sys_menu` VALUES (44, 5, 'BI', '/datastudio/bottom/bi', NULL, NULL, NULL, 'F', 0, 11, '2023-09-01 18:05:43', '2023-09-01 18:05:43', NULL);
INSERT INTO `dinky_sys_menu` VALUES (45, 5, '血缘', '/datastudio/bottom/lineage', NULL, NULL, NULL, 'F', 0, 12, '2023-09-01 18:07:15', '2023-09-02 00:52:12', NULL);
INSERT INTO `dinky_sys_menu` VALUES (46, 5, '表数据监控', '/datastudio/bottom/process', NULL, NULL, NULL, 'F', 0, 13, '2023-09-01 18:07:55', '2023-09-02 00:52:21', NULL);
INSERT INTO `dinky_sys_menu` VALUES (47, 5, '小工具', '/datastudio/bottom/tool', NULL, NULL, NULL, 'F', 0, 14, '2023-09-01 18:08:18', '2023-09-01 18:08:18', NULL);
INSERT INTO `dinky_sys_menu` VALUES (48, 28, '新建', '/registration/cluster/instance/new', NULL, NULL, 'PlusOutlined', 'F', 0, 15, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (49, 28, '回收', '/registration/cluster/instance/recovery', NULL, NULL, 'PlusOutlined', 'F', 0, 16, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (50, 28, '编辑', '/registration/cluster/instance/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (51, 28, '删除', '/registration/cluster/instance/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (52, 30, '新建', '/registration/cluster/config/new', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 09:00:31', '2023-09-06 09:00:31', NULL);
INSERT INTO `dinky_sys_menu` VALUES (53, 30, '编辑', '/registration/cluster/config/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (54, 30, '删除', '/registration/cluster/config/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (55, 10, '新建', '/registration/database/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (56, 10, '编辑', '/registration/database/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (57, 10, '删除', '/registration/database/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (58, 31, '新建', '/registration/alert/instance/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (59, 31, '编辑', '/registration/alert/instance/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (60, 31, '删除', '/registration/alert/instance/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (61, 29, '新建', '/registration/alert/group/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (62, 29, '编辑', '/registration/alert/group/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (63, 29, '删除', '/registration/alert/group/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (64, 13, '新建', '/registration/document/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (65, 13, '编辑', '/registration/document/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (66, 13, '删除', '/registration/document/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (67, 13, '启用', '/registration/document/enable', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (68, 14, '新建', '/registration/fragment/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (69, 14, '编辑', '/registration/fragment/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (70, 14, '删除', '/registration/fragment/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (71, 14, '启用', '/registration/fragment/enable', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (72, 15, '新建', '/registration/gitprojects/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (73, 15, '编辑', '/registration/gitprojects/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (74, 15, '删除', '/registration/gitprojects/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (75, 15, '启用', '/registration/gitprojects/enable', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (76, 15, '构建', '/registration/gitprojects/build', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (77, 15, '查询', '/registration/gitprojects/search', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (78, 16, '新建', '/registration/udf/new', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (79, 16, '编辑', '/registration/udf/edit', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (80, 16, '删除', '/registration/udf/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (81, 16, '启用', '/registration/udf/enable', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (82, 19, '上传', '/registration/resource/upload', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 09:01:05', '2023-09-06 09:01:05', NULL);
INSERT INTO `dinky_sys_menu` VALUES (83, 19, '重命名', '/registration/resource/rename', NULL, NULL, 'PlusOutlined', 'F', 0, 17, '2023-09-06 08:56:45', '2023-09-06 08:56:45', NULL);
INSERT INTO `dinky_sys_menu` VALUES (84, 19, '删除', '/registration/resource/delete', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
INSERT INTO `dinky_sys_menu` VALUES (85, 19, '创建文件夹', '/registration/resource/folder', NULL, NULL, 'PlusOutlined', 'F', 0, 18, '2023-09-06 08:57:30', '2023-09-06 08:57:30', NULL);
COMMIT; COMMIT;
update dinky_user set super_admin_flag =1 where id =1; update dinky_user set super_admin_flag =1 where id =1;
\ No newline at end of file
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