mirror of https://gitee.com/topiam/eiam
✨ 应用管理
parent
7adb8641c7
commit
a60d6b670c
|
@ -145,28 +145,37 @@ export default [
|
|||
name: 'app',
|
||||
icon: 'AppstoreOutlined',
|
||||
path: '/app',
|
||||
component: './app/AppList',
|
||||
},
|
||||
//创建应用
|
||||
{
|
||||
name: 'app.create',
|
||||
path: '/app/create',
|
||||
hideInMenu: true,
|
||||
component: './app/AppCreate',
|
||||
},
|
||||
//应用详情
|
||||
{
|
||||
name: 'app.detail',
|
||||
path: '/app/detail',
|
||||
hideInMenu: true,
|
||||
component: './app/AppDetail',
|
||||
},
|
||||
//应用分组
|
||||
{
|
||||
name: 'app.group',
|
||||
path: '/app/group',
|
||||
hideInMenu: true,
|
||||
component: './app/AppGroup',
|
||||
routes: [
|
||||
{
|
||||
path: '/app',
|
||||
redirect: '/app/list',
|
||||
},
|
||||
//创建应用
|
||||
{
|
||||
name: 'create',
|
||||
path: '/app/create',
|
||||
component: './app/AppCreate',
|
||||
},
|
||||
//应用列表
|
||||
{
|
||||
name: 'list',
|
||||
path: '/app/list',
|
||||
component: './app/AppList',
|
||||
},
|
||||
//应用详情
|
||||
{
|
||||
name: 'detail',
|
||||
path: '/app/list/detail',
|
||||
hideInMenu: true,
|
||||
component: './app/AppDetail',
|
||||
},
|
||||
//应用分组
|
||||
{
|
||||
name: 'group',
|
||||
path: '/app/group',
|
||||
component: './app/AppGroup',
|
||||
},
|
||||
],
|
||||
},
|
||||
//行为审计
|
||||
{
|
||||
|
|
|
@ -23,7 +23,7 @@ import { useRef, useState } from 'react';
|
|||
import CreateModal from './components/CreateModal';
|
||||
import UpdateModal from './components/UpdateModal';
|
||||
import { createAppGroup, removeAppGroup, updateAppGroup } from './service';
|
||||
import { history, useIntl } from '@@/exports';
|
||||
import { useIntl } from '@@/exports';
|
||||
import { getAppGroupList } from '@/services/app';
|
||||
|
||||
export default () => {
|
||||
|
@ -101,7 +101,7 @@ export default () => {
|
|||
key: 'option',
|
||||
width: 100,
|
||||
align: 'center',
|
||||
render: (text, record) => [
|
||||
render: (_text, record) => [
|
||||
<a
|
||||
key="editable"
|
||||
onClick={() => {
|
||||
|
@ -157,12 +157,7 @@ export default () => {
|
|||
];
|
||||
|
||||
return (
|
||||
<PageContainer
|
||||
content={intl.formatMessage({ id: 'pages.app_group.list.desc' })}
|
||||
onBack={() => {
|
||||
history.push('/app');
|
||||
}}
|
||||
>
|
||||
<PageContainer content={intl.formatMessage({ id: 'pages.app_group.list.desc' })}>
|
||||
<ProTable<AppAPI.AppGroupList>
|
||||
columns={columns}
|
||||
actionRef={actionRef}
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import { getAllAppGroupList, getAppList, removeApp } from '@/services/app';
|
||||
import { PlusOutlined, QuestionCircleOutlined, GroupOutlined } from '@ant-design/icons';
|
||||
import { PlusOutlined, QuestionCircleOutlined } from '@ant-design/icons';
|
||||
import type { ActionType } from '@ant-design/pro-components';
|
||||
import { PageContainer, ProList } from '@ant-design/pro-components';
|
||||
import { App, Avatar, Button, Popconfirm, Space, Tag } from 'antd';
|
||||
|
@ -92,15 +92,6 @@ export default () => {
|
|||
<PlusOutlined />
|
||||
{intl.formatMessage({ id: 'pages.app.list.tool_bar_render.add_app' })}
|
||||
</Button>,
|
||||
<Button
|
||||
key="app-group"
|
||||
icon={<GroupOutlined />}
|
||||
onClick={() => {
|
||||
history.push('/app/group');
|
||||
}}
|
||||
>
|
||||
分组管理
|
||||
</Button>,
|
||||
]}
|
||||
metas={{
|
||||
title: {
|
||||
|
@ -122,17 +113,17 @@ export default () => {
|
|||
},
|
||||
avatar: {
|
||||
search: false,
|
||||
render: (text, row) => {
|
||||
render: (_text, row) => {
|
||||
return <Avatar key={row.id} shape="square" size={45} src={row.icon} />;
|
||||
},
|
||||
},
|
||||
description: { search: false, dataIndex: 'remark' },
|
||||
content: {
|
||||
search: false,
|
||||
render: (text, row) => [<ListContent key="context" {...row} />],
|
||||
render: (_text, row) => [<ListContent key="context" {...row} />],
|
||||
},
|
||||
actions: {
|
||||
render: (text, row) => [
|
||||
render: (_text, row) => [
|
||||
row.enabled ? (
|
||||
<Popconfirm
|
||||
title={intl.formatMessage({
|
||||
|
|
Loading…
Reference in New Issue