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 = () => {
if (!history) return;
setTimeout(() => {
const urlParams = new URL(window.location.href).searchParams;
window.location.href = urlParams.get('redirect') || '/';
history.replace(urlParams.get('redirect') || '/');
}, 10);
};
......
......@@ -19,6 +19,7 @@
import Pop from '@/components/Animation/Pop';
import { DangerDeleteIcon } from '@/components/Icons/CustomIcons';
import { Authorized } from '@/hooks/useAccess';
import AlertGroupForm from '@/pages/RegCenter/Alert/AlertGroup/components/AlertGroupForm';
import { getAlertIcon } from '@/pages/RegCenter/Alert/AlertInstance/function';
import { ALERT_MODEL_ASYNC } from '@/pages/RegCenter/Alert/AlertInstance/model';
......@@ -138,13 +139,15 @@ const AlertGroupTableList: React.FC = (props: any) => {
*/
const renderToolBar = () => {
return () => [
<Button
key={'CreateAlertGroup'}
type='primary'
onClick={() => setAlertGroupState((prevState) => ({ ...prevState, addedOpen: true }))}
>
<PlusOutlined /> {l('button.create')}
</Button>
<Authorized key='create' path='/registration/alert/group/new'>
<Button
key={'CreateAlertGroup'}
type='primary'
onClick={() => setAlertGroupState((prevState) => ({ ...prevState, addedOpen: true }))}
>
<PlusOutlined /> {l('button.create')}
</Button>
</Authorized>
];
};
......@@ -166,19 +169,23 @@ const AlertGroupTableList: React.FC = (props: any) => {
*/
const renderAlertGroupActionButton = (item: Alert.AlertGroup) => {
return [
<Button
className={'options-button'}
key={'AlertGroupEdit'}
icon={<EditTwoTone />}
title={l('button.edit')}
onClick={() => editClick(item)}
/>,
<Button
className={'options-button'}
key={'DeleteAlertGroupIcon'}
icon={<DangerDeleteIcon />}
onClick={() => handleDeleteSubmit(item.id)}
/>
<Authorized key={item.id} path='/registration/alert/group/edit'>
<Button
className={'options-button'}
key={'AlertGroupEdit'}
icon={<EditTwoTone />}
title={l('button.edit')}
onClick={() => editClick(item)}
/>
</Authorized>,
<Authorized key={item.id} path='/registration/alert/group/delete'>
<Button
className={'options-button'}
key={'DeleteAlertGroupIcon'}
icon={<DangerDeleteIcon />}
onClick={() => handleDeleteSubmit(item.id)}
/>
</Authorized>
];
};
......
......@@ -17,6 +17,7 @@
import { CreateBtn } from '@/components/CallBackButton/CreateBtn';
import { DangerDeleteIcon } from '@/components/Icons/CustomIcons';
import { Authorized } from '@/hooks/useAccess';
import {
getAlertIcon,
getJSONData,
......@@ -142,19 +143,23 @@ const AlertInstanceList: React.FC = () => {
*/
const renderAlertInstanceActionButton = (item: Alert.AlertInstance) => {
return [
<Button
className={'options-button'}
key={'AlertInstanceEdit'}
icon={<EditTwoTone />}
title={l('button.edit')}
onClick={() => editClick(item)}
/>,
<Button
className={'options-button'}
key={'DeleteAlertInstanceIcon'}
icon={<DangerDeleteIcon />}
onClick={() => handleDeleteSubmit(item.id)}
/>
<Authorized key={item.id} path='/registration/alert/instance/edit'>
<Button
className={'options-button'}
key={'AlertInstanceEdit'}
icon={<EditTwoTone />}
title={l('button.edit')}
onClick={() => editClick(item)}
/>
</Authorized>,
<Authorized key={item.id} path='/registration/alert/instance/delete'>
<Button
className={'options-button'}
key={'DeleteAlertInstanceIcon'}
icon={<DangerDeleteIcon />}
onClick={() => handleDeleteSubmit(item.id)}
/>
</Authorized>
];
};
......@@ -199,10 +204,12 @@ const AlertInstanceList: React.FC = () => {
*/
const renderToolBar = () => {
return () => [
<CreateBtn
key={'CreateAlertInstanceBtn'}
onClick={() => setAlertInstanceState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
<Authorized key='create' path='/registration/alert/instance/new'>
<CreateBtn
key={'CreateAlertInstanceBtn'}
onClick={() => setAlertInstanceState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
</Authorized>
];
};
......
......@@ -24,6 +24,7 @@ import { NormalDeleteBtn } from '@/components/CallBackButton/NormalDeleteBtn';
import { RunningBtn } from '@/components/CallBackButton/RunningBtn';
import { ClusterConfigIcon } from '@/components/Icons/HomeIcon';
import { DataAction } from '@/components/StyledComponents';
import { Authorized } from '@/hooks/useAccess';
import { imgStyle } from '@/pages/Home/constants';
import ConfigurationModal from '@/pages/RegCenter/Cluster/Configuration/components/ConfigurationModal';
import { CLUSTER_CONFIG_TYPE } from '@/pages/RegCenter/Cluster/Configuration/components/contants';
......@@ -194,8 +195,8 @@ export default () => {
*/
const renderDataActionButton = (item: Cluster.Config) => {
return [
<EditBtn key={`${item.id}_edit`} onClick={() => editClick(item)} />,
<NormalDeleteBtn key={`${item.id}_delete`} onClick={() => handleDeleteSubmit(item.id)} />,
<Authorized key={`${item.id}_edit`} path="/registration/cluster/config/edit"><EditBtn key={`${item.id}_edit`} onClick={() => editClick(item)} /></Authorized>,
<Authorized key={`${item.id}_delete`} path="/registration/cluster/config/delete"><NormalDeleteBtn key={`${item.id}_delete`} onClick={() => handleDeleteSubmit(item.id)} /></Authorized>,
<RunningBtn
key={`${item.id}_running`}
title={l('rc.cc.start')}
......@@ -249,10 +250,12 @@ export default () => {
* tool bar render
*/
const toolBarRender = () => [
<CreateBtn
key={'configcreate'}
onClick={() => setClusterConfigState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
<Authorized key='new' path='/registration/cluster/config/new'>
<CreateBtn
key={'configcreate'}
onClick={() => setClusterConfigState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
</Authorized>
];
/**
......
......@@ -21,6 +21,7 @@ import { CreateBtn } from '@/components/CallBackButton/CreateBtn';
import { EditBtn } from '@/components/CallBackButton/EditBtn';
import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn';
import { Authorized } from '@/hooks/useAccess';
import { CLUSTER_INSTANCE_STATUS_ENUM } from '@/pages/RegCenter/Cluster/Instance/components/contants';
import { renderWebUiRedirect } from '@/pages/RegCenter/Cluster/Instance/components/function';
import InstanceModal from '@/pages/RegCenter/Cluster/Instance/components/InstanceModal';
......@@ -225,12 +226,16 @@ export default () => {
valueType: 'option',
width: '8vw',
render: (_: any, record: Cluster.Instance) => [
<EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)} />,
<PopconfirmDeleteBtn
key={`${record.id}_delete`}
onClick={() => handleDelete(record.id)}
description={l('rc.ci.deleteConfirm')}
/>,
<Authorized key={`${record.id}_edit`} path='/registration/cluster/instance/edit'>
<EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)} />
</Authorized>,
<Authorized key={`${record.id}_delete`} path='/registration/cluster/instance/delete'>
<PopconfirmDeleteBtn
key={`${record.id}_delete`}
onClick={() => handleDelete(record.id)}
description={l('rc.ci.deleteConfirm')}
/>
</Authorized>,
renderWebUiRedirect(record)
]
}
......@@ -240,10 +245,12 @@ export default () => {
* tool bar render
*/
const toolBarRender = () => [
<CreateBtn
key={'instancecreate'}
onClick={() => setClusterInstanceStatus((prevState) => ({ ...prevState, addedOpen: true }))}
/>,
<Authorized key='/registration/cluster/instance/new' path='/registration/cluster/instance/new'>
<CreateBtn
key={'instancecreate'}
onClick={() => setClusterInstanceStatus((prevState) => ({ ...prevState, addedOpen: true }))}
/>
</Authorized>,
<Button
key={'heartbeat_all'}
type={'primary'}
......@@ -252,16 +259,21 @@ export default () => {
>
{l('button.heartbeat')}
</Button>,
<Popconfirm
key={'recycle'}
title={l('rc.ci.recycle')}
description={l('rc.ci.recycleConfirm')}
onConfirm={handleRecycle}
<Authorized
key='/registration/cluster/instance/recovery'
path='/registration/cluster/instance/recovery'
>
<Button key={'recycle_btn'} type={'primary'} icon={<ClearOutlined />}>
{l('button.recycle')}
</Button>
</Popconfirm>
<Popconfirm
key={'recycle'}
title={l('rc.ci.recycle')}
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';
import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { NormalDeleteBtn } from '@/components/CallBackButton/NormalDeleteBtn';
import { DataAction } from '@/components/StyledComponents';
import { Authorized } from '@/hooks/useAccess';
import { StateType, STUDIO_MODEL } from '@/pages/DataStudio/model';
import DataSourceDetail from '@/pages/RegCenter/DataSource/components/DataSourceDetail';
import { renderDBIcon } from '@/pages/RegCenter/DataSource/components/function';
......@@ -204,8 +205,8 @@ const DataSourceTable: React.FC<connect & StateType> = (props) => {
*/
const renderDataSourceActionButton = (item: DataSources.DataSource) => {
return [
<EditBtn key={`${item.id}_edit`} onClick={() => editClick(item)} />,
<NormalDeleteBtn key={`${item.id}_delete`} onClick={() => handleDeleteSubmit(item.id)} />,
<Authorized key={`${item.id}_edit`} path="/registration/database/new"><EditBtn key={`${item.id}_edit`} onClick={() => editClick(item)} /></Authorized>,
<Authorized key={`${item.id}_delete`} path="/registration/database/delete"><NormalDeleteBtn key={`${item.id}_delete`} onClick={() => handleDeleteSubmit(item.id)} /></Authorized>,
<Button
className={'options-button'}
key={`${item.id}_heart`}
......@@ -278,7 +279,9 @@ const DataSourceTable: React.FC<connect & StateType> = (props) => {
actionRef={actionRef}
headerTitle={l('rc.ds.management')}
toolBarRender={() => [
<CreateBtn key={'CreateBtn'} onClick={() => setModalVisible(true)} />
<Authorized key='create' path='/registration/database/new'>
<CreateBtn key={'CreateBtn'} onClick={() => setModalVisible(true)} />
</Authorized>
]}
dataSource={renderDataSource}
/>
......
......@@ -22,6 +22,7 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn';
import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn';
import CodeShow from '@/components/CustomEditor/CodeShow';
import { Authorized } from '@/hooks/useAccess';
import DocumentDrawer from '@/pages/RegCenter/Document/components/DocumentDrawer';
import DocumentModalForm from '@/pages/RegCenter/Document/components/DocumentModal';
import {
......@@ -169,12 +170,14 @@ const DocumentTableList: React.FC = () => {
valueEnum: STATUS_ENUM(),
render: (_, record) => {
return (
<EnableSwitchBtn
key={`${record.id}_enable`}
disabled={documentState.drawerOpen}
record={record}
onChange={() => handleChangeEnable(record)}
/>
<Authorized key={record.id} path='/registration/document/enable'>
<EnableSwitchBtn
key={`${record.id}_enable`}
disabled={documentState.drawerOpen}
record={record}
onChange={() => handleChangeEnable(record)}
/>
</Authorized>
);
}
},
......@@ -199,12 +202,16 @@ const DocumentTableList: React.FC = () => {
valueType: 'option',
width: '10vh',
render: (_, record) => [
<EditBtn key={`${record.id}_edit`} onClick={() => handleClickEdit(record)} />,
<PopconfirmDeleteBtn
key={`${record.id}_delete`}
onClick={() => handleDeleteSubmit(record.id)}
description={l('rc.doc.deleteConfirm')}
/>
<Authorized key={`${record.id}_edit`} path='/registration/document/edit'>
<EditBtn key={`${record.id}_edit`} onClick={() => handleClickEdit(record)} />
</Authorized>,
<Authorized key={`${record.id}_delete`} path='/registration/document/delete'>
<PopconfirmDeleteBtn
key={`${record.id}_delete`}
onClick={() => handleDeleteSubmit(record.id)}
description={l('rc.doc.deleteConfirm')}
/>
</Authorized>
]
}
];
......@@ -218,15 +225,17 @@ const DocumentTableList: React.FC = () => {
headerTitle={l('rc.doc.management')}
actionRef={actionRef}
toolBarRender={() => [
<CreateBtn
key={'doctable'}
onClick={() =>
setDocumentState((prevState) => ({
...prevState,
addedOpen: true
}))
}
/>
<Authorized key='create' path='/registration/document/new'>
<CreateBtn
key={'doctable'}
onClick={() =>
setDocumentState((prevState) => ({
...prevState,
addedOpen: true
}))
}
/>
</Authorized>
]}
request={(params, sorter, filter: any) =>
queryList(API_CONSTANTS.DOCUMENT, { ...params, sorter, filter })
......
......@@ -23,6 +23,7 @@ import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn';
import { ShowLogBtn } from '@/components/CallBackButton/ShowLogBtn';
import { ShowCodeTreeIcon } from '@/components/Icons/CustomIcons';
import { Authorized } from '@/hooks/useAccess';
import { BuildSteps } from '@/pages/RegCenter/GitProject/components/BuildSteps';
import ClassList from '@/pages/RegCenter/GitProject/components/BuildSteps/JarShow/JarList';
import { CodeTree } from '@/pages/RegCenter/GitProject/components/CodeTree';
......@@ -272,11 +273,13 @@ const ProjectProTable: React.FC = () => {
valueType: 'option',
width: '10vw',
render: (text: any, record: GitProject) => [
<ShowLogBtn
disabled={record.buildStep === 0}
key={`${record.id}_showLog`}
onClick={() => handleShowLog(record)}
/>,
<Authorized key={`${record.id}_showLog`} path='/registration/gitprojects/search'>
<ShowLogBtn
disabled={record.buildStep === 0}
key={`${record.id}_showLog`}
onClick={() => handleShowLog(record)}
/>
</Authorized>,
<Button
key={`${record.id}_code`}
className={'options-button'}
......@@ -284,24 +287,34 @@ const ProjectProTable: React.FC = () => {
icon={<ShowCodeTreeIcon />}
onClick={() => handleShowCodeTree(record)}
/>,
<Popconfirm
className={'options-button'}
key={`${record.id}_build`}
placement='topRight'
title={l('button.build')}
description={l('rc.gp.buildConfirm')}
onConfirm={() => handleBuild(record)}
okText={l('button.confirm')}
cancelText={l('button.cancel')}
>
<Button title={l('button.build')} key={`${record.id}_buildbtn`} icon={<BuildTwoTone />} />
</Popconfirm>,
<EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)} />,
<PopconfirmDeleteBtn
key={`${record.id}_delete`}
onClick={() => handleDeleteSubmit(record.id)}
description={l('rc.gp.deleteConfirm')}
/>
<Authorized key={`${record.id}_build`} path='/registration/gitprojects/build'>
<Popconfirm
className={'options-button'}
key={`${record.id}_build`}
placement='topRight'
title={l('button.build')}
description={l('rc.gp.buildConfirm')}
onConfirm={() => handleBuild(record)}
okText={l('button.confirm')}
cancelText={l('button.cancel')}
>
<Button
title={l('button.build')}
key={`${record.id}_buildbtn`}
icon={<BuildTwoTone />}
/>
</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 = () => {
actionRef={actionRef}
dragSortKey={'id'}
toolBarRender={() => [
<CreateBtn
key={'gittable'}
onClick={() => setGitProjectStatus((prevState) => ({ ...prevState, addedOpen: true }))}
/>
<Authorized key='create' path='/registration/gitprojects/new'>
<CreateBtn
key={'gittable'}
onClick={() =>
setGitProjectStatus((prevState) => ({ ...prevState, addedOpen: true }))
}
/>
</Authorized>
]}
expandable={{
expandRowByClick: false,
......
......@@ -22,6 +22,7 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn';
import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn';
import CodeShow from '@/components/CustomEditor/CodeShow';
import { Authorized } from '@/hooks/useAccess';
import GlobalVarDrawer from '@/pages/RegCenter/GlobalVar/components/GlobalVarDrawer';
import GlobalVarModal from '@/pages/RegCenter/GlobalVar/components/GlobalVarModal';
import { queryList } from '@/services/api';
......@@ -139,12 +140,14 @@ const GlobalVarProTable = () => {
width: '15vh',
render: (_, record) => {
return (
<EnableSwitchBtn
key={`${record.id}_enable`}
disabled={globalVarState.drawerOpen}
record={record}
onChange={() => handleChangeEnable(record)}
/>
<Authorized key={record.id} path='/registration/fragment/enable'>
<EnableSwitchBtn
key={`${record.id}_enable`}
disabled={globalVarState.drawerOpen}
record={record}
onChange={() => handleChangeEnable(record)}
/>
</Authorized>
);
},
filters: STATUS_MAPPING(),
......@@ -172,12 +175,16 @@ const GlobalVarProTable = () => {
width: '10vh',
valueType: 'option',
render: (_, record) => [
<EditBtn key={`${record.id}_edit`} onClick={() => handleClickEdit(record)} />,
<PopconfirmDeleteBtn
key={`${record.id}_delete`}
onClick={() => handleDeleteSubmit(record.id)}
description={l('rc.gv.deleteConfirm')}
/>
<Authorized key={`${record.id}_edit`} path='/registration/fragment/edit'>
<EditBtn key={`${record.id}_edit`} onClick={() => handleClickEdit(record)} />
</Authorized>,
<Authorized key={`${record.id}_delete`} path='/registration/fragment/delete'>
<PopconfirmDeleteBtn
key={`${record.id}_delete`}
onClick={() => handleDeleteSubmit(record.id)}
description={l('rc.gv.deleteConfirm')}
/>
</Authorized>
]
}
];
......@@ -194,10 +201,12 @@ const GlobalVarProTable = () => {
loading={globalVarState.loading}
{...PROTABLE_OPTIONS_PUBLIC}
toolBarRender={() => [
<CreateBtn
key={'vartable'}
onClick={() => setGlobalVarState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
<Authorized key='create' path='/registration/fragment/new'>
<CreateBtn
key={'vartable'}
onClick={() => setGlobalVarState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
</Authorized>
]}
request={(params, sorter, filter: any) =>
queryList(API_CONSTANTS.GLOBAL_VARIABLE, {
......
......@@ -18,6 +18,7 @@
*/
import RightContextMenu from '@/components/RightContextMenu';
import { AuthorizedObject, useAccess } from '@/hooks/useAccess';
import { RIGHT_CONTEXT_MENU } from '@/pages/RegCenter/Resource/components/constants';
import FileShow from '@/pages/RegCenter/Resource/components/FileShow';
import FileTree from '@/pages/RegCenter/Resource/components/FileTree';
......@@ -288,6 +289,8 @@ const ResourceOverView: React.FC = () => {
await refreshTreeData(id, path);
};
const access = useAccess();
/**
* render
*/
......@@ -316,7 +319,10 @@ const ResourceOverView: React.FC = () => {
openChange={() =>
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}
/>
</ProCard>
......
......@@ -37,25 +37,29 @@ export const RIGHT_CONTEXT_MENU = (isDisabled = false) => [
key: 'createFolder',
icon: <PlusCircleOutlined />,
label: l('right.menu.createFolder'),
disabled: isDisabled
disabled: isDisabled,
path: '/registration/resource/folder'
},
{
key: 'upload',
icon: <UploadOutlined />,
label: l('button.upload'),
disabled: isDisabled
disabled: isDisabled,
path: '/registration/resource/folder'
},
{
key: 'delete',
icon: <DeleteOutlined />,
label: l('right.menu.delete'),
disabled: isDisabled
disabled: isDisabled,
path: '/registration/resource/folder'
},
{
key: 'rename',
icon: <EditOutlined />,
label: l('right.menu.rename'),
disabled: isDisabled
disabled: isDisabled,
path: '/registration/resource/folder'
},
{
key: 'refresh',
......
......@@ -20,6 +20,7 @@ import { EditBtn } from '@/components/CallBackButton/EditBtn';
import { EnableSwitchBtn } from '@/components/CallBackButton/EnableSwitchBtn';
import { PopconfirmDeleteBtn } from '@/components/CallBackButton/PopconfirmDeleteBtn';
import CodeShow from '@/components/CustomEditor/CodeShow';
import { Authorized } from '@/hooks/useAccess';
import TemplateModal from '@/pages/RegCenter/UDF/components/TemplateModal';
import {
CODE_TYPE_ENUM,
......@@ -164,12 +165,14 @@ const TemplateTable: React.FC = () => {
hideInSearch: true,
render: (_: any, record: UDFTemplate) => {
return (
<EnableSwitchBtn
key={`${record.id}_enable`}
disabled={templateState.drawerOpen}
record={record}
onChange={() => handleChangeEnable(record)}
/>
<Authorized key={`${record.id}_enable`} path='/registration/udf/enable'>
<EnableSwitchBtn
key={`${record.id}_enable`}
disabled={templateState.drawerOpen}
record={record}
onChange={() => handleChangeEnable(record)}
/>
</Authorized>
);
}
},
......@@ -193,12 +196,16 @@ const TemplateTable: React.FC = () => {
hideInSearch: true,
hideInDescriptions: true,
render: (text: any, record: UDFTemplate) => [
<EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)} />,
<PopconfirmDeleteBtn
key={`${record.id}_delete`}
onClick={() => handleDeleteSubmit(record.id)}
description={l('rc.template.deleteConfirm')}
/>
<Authorized key={`${record.id}_edit`} path='/registration/udf/edit'>
<EditBtn key={`${record.id}_edit`} onClick={() => handleEdit(record)} />
</Authorized>,
<Authorized key={`${record.id}_delete`} path='/registration/udf/delete'>
<PopconfirmDeleteBtn
key={`${record.id}_delete`}
onClick={() => handleDeleteSubmit(record.id)}
description={l('rc.template.deleteConfirm')}
/>
</Authorized>
]
}
];
......@@ -211,10 +218,12 @@ const TemplateTable: React.FC = () => {
actionRef={actionRef}
headerTitle={l('rc.udf.management')}
toolBarRender={() => [
<CreateBtn
key={'template'}
onClick={() => setTemplateState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
<Authorized key='create' path='/registration/udf/new'>
<CreateBtn
key={'template'}
onClick={() => setTemplateState((prevState) => ({ ...prevState, addedOpen: true }))}
/>
</Authorized>
]}
request={(params, sorter, filter: any) =>
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,
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;
-- ----------------------------
......
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
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 (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;
update dinky_user set super_admin_flag =1 where id =1;
\ No newline at end of file
update dinky_user set super_admin_flag =1 where id =1;
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