mirror of https://github.com/openspug/spug
U web update
parent
21eb3f27d3
commit
5632ed1ea7
|
@ -1,5 +1,5 @@
|
|||
export default [
|
||||
{icon: 'desktop', title: '工作台', path: '/home'},
|
||||
{icon: 'desktop', title: '工作台', auth: 'home.home.view', path: '/home'},
|
||||
{icon: 'cloud-server', title: '主机管理', auth: 'host.host.view', path: '/host'},
|
||||
{
|
||||
icon: 'code', title: '批量执行', auth: 'exec.task.do|exec.template.view', child: [
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Button } from 'antd';
|
||||
import { Input, Button } from 'antd';
|
||||
import { SearchForm, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import store from './store';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Button } from 'antd';
|
||||
import { Input, Button } from 'antd';
|
||||
import { SearchForm, AuthDiv, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import store from './store';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Button } from 'antd';
|
||||
import { Input, Button } from 'antd';
|
||||
import { SearchForm, AuthDiv, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import store from './store';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Button } from 'antd';
|
||||
import { Input, Button } from 'antd';
|
||||
import { SearchForm, AuthDiv, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import ComForm from './Form';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Button } from 'antd';
|
||||
import { Input, Button } from 'antd';
|
||||
import { SearchForm, AuthDiv, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import store from './store';
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Button } from 'antd';
|
||||
import { Input, Button } from 'antd';
|
||||
import { SearchForm, AuthDiv, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import store from './store';
|
||||
|
||||
export default observer(function () {
|
||||
return (
|
||||
<Card auth="config.src.view">
|
||||
<AuthCard auth="config.src.view">
|
||||
<SearchForm>
|
||||
<SearchForm.Item span={8} title="服务名称">
|
||||
<Input allowClear onChange={e => store.f_name = e.target.value} placeholder="请输入"/>
|
||||
|
@ -20,6 +20,6 @@ export default observer(function () {
|
|||
<Button type="primary" icon="plus" onClick={() => store.showForm()}>新建</Button>
|
||||
</AuthDiv>
|
||||
<ComTable/>
|
||||
</Card>
|
||||
</AuthCard>
|
||||
)
|
||||
})
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Button } from 'antd';
|
||||
import { Input, Button } from 'antd';
|
||||
import { SearchForm, AuthDiv, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import ComForm from './Form';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Button } from 'antd';
|
||||
import { Input, Button } from 'antd';
|
||||
import { SearchForm, AuthDiv, AuthCard } from 'components';
|
||||
import SelectApp from './SelectApp';
|
||||
import Ext1Form from './Ext1Form';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Form, Button, Tag } from 'antd';
|
||||
import { Form, Button, Tag } from 'antd';
|
||||
import { ACEditor, AuthCard } from 'components';
|
||||
import HostSelector from './HostSelector';
|
||||
import TemplateSelector from './TemplateSelector';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Select, Button } from 'antd';
|
||||
import { Input, Select, Button } from 'antd';
|
||||
import { SearchForm, AuthDiv, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import store from './store';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Button, Select } from 'antd';
|
||||
import { Input, Button, Select } from 'antd';
|
||||
import { SearchForm, AuthDiv, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import store from './store';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { Card, Input, Select, Button } from 'antd';
|
||||
import { Input, Select, Button } from 'antd';
|
||||
import { SearchForm, AuthDiv, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import store from './store';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Select, Button } from 'antd';
|
||||
import { Input, Select, Button } from 'antd';
|
||||
import { SearchForm, AuthDiv, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import store from './store';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { Card, Input, Select, Button } from 'antd';
|
||||
import { Input, Select, Button } from 'antd';
|
||||
import { SearchForm, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import store from './store';
|
||||
|
|
|
@ -1,4 +1,14 @@
|
|||
export default [{
|
||||
key: 'home',
|
||||
label: '工作台',
|
||||
pages: [{
|
||||
key: 'home',
|
||||
label: '工作台',
|
||||
perms: [
|
||||
{key: 'view', label: '查看工作台'}
|
||||
]
|
||||
}]
|
||||
}, {
|
||||
key: 'host',
|
||||
label: '主机管理',
|
||||
pages: [{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import { observer } from 'mobx-react';
|
||||
import { Card, Input, Button } from 'antd';
|
||||
import { Input, Button } from 'antd';
|
||||
import { SearchForm, AuthCard } from 'components';
|
||||
import ComTable from './Table';
|
||||
import ComForm from './Form';
|
||||
|
|
Loading…
Reference in New Issue