U web update

pull/22/head
vapao 2020-01-14 10:28:23 +08:00
parent 21eb3f27d3
commit 5632ed1ea7
17 changed files with 28 additions and 18 deletions

View File

@ -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: [

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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>
)
})

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -1,4 +1,14 @@
export default [{
key: 'home',
label: '工作台',
pages: [{
key: 'home',
label: '工作台',
perms: [
{key: 'view', label: '查看工作台'}
]
}]
}, {
key: 'host',
label: '主机管理',
pages: [{

View File

@ -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';