From 5632ed1ea7311e5f9cda9bb145842da9ce501001 Mon Sep 17 00:00:00 2001 From: vapao Date: Tue, 14 Jan 2020 10:28:23 +0800 Subject: [PATCH] U web update --- spug_web/src/menus.js | 2 +- spug_web/src/pages/alarm/alarm/index.js | 2 +- spug_web/src/pages/alarm/contact/index.js | 2 +- spug_web/src/pages/alarm/group/index.js | 2 +- spug_web/src/pages/config/app/index.js | 2 +- spug_web/src/pages/config/environment/index.js | 2 +- spug_web/src/pages/config/service/index.js | 6 +++--- spug_web/src/pages/deploy/app/index.js | 2 +- spug_web/src/pages/deploy/request/index.js | 2 +- spug_web/src/pages/exec/task/index.js | 2 +- spug_web/src/pages/exec/template/index.js | 2 +- spug_web/src/pages/host/index.js | 2 +- spug_web/src/pages/monitor/index.js | 2 +- spug_web/src/pages/schedule/index.js | 2 +- spug_web/src/pages/system/account/index.js | 2 +- spug_web/src/pages/system/role/codes.js | 10 ++++++++++ spug_web/src/pages/system/role/index.js | 2 +- 17 files changed, 28 insertions(+), 18 deletions(-) diff --git a/spug_web/src/menus.js b/spug_web/src/menus.js index 7345c84..e769b71 100644 --- a/spug_web/src/menus.js +++ b/spug_web/src/menus.js @@ -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: [ diff --git a/spug_web/src/pages/alarm/alarm/index.js b/spug_web/src/pages/alarm/alarm/index.js index 52267ae..2de0001 100644 --- a/spug_web/src/pages/alarm/alarm/index.js +++ b/spug_web/src/pages/alarm/alarm/index.js @@ -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'; diff --git a/spug_web/src/pages/alarm/contact/index.js b/spug_web/src/pages/alarm/contact/index.js index 63ed8d9..b8724b1 100644 --- a/spug_web/src/pages/alarm/contact/index.js +++ b/spug_web/src/pages/alarm/contact/index.js @@ -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'; diff --git a/spug_web/src/pages/alarm/group/index.js b/spug_web/src/pages/alarm/group/index.js index 92d3433..1d9e6b5 100644 --- a/spug_web/src/pages/alarm/group/index.js +++ b/spug_web/src/pages/alarm/group/index.js @@ -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'; diff --git a/spug_web/src/pages/config/app/index.js b/spug_web/src/pages/config/app/index.js index 2dadee7..4d296a8 100644 --- a/spug_web/src/pages/config/app/index.js +++ b/spug_web/src/pages/config/app/index.js @@ -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'; diff --git a/spug_web/src/pages/config/environment/index.js b/spug_web/src/pages/config/environment/index.js index cf8cc9c..81c2d9f 100644 --- a/spug_web/src/pages/config/environment/index.js +++ b/spug_web/src/pages/config/environment/index.js @@ -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'; diff --git a/spug_web/src/pages/config/service/index.js b/spug_web/src/pages/config/service/index.js index b57b89d..76f95d9 100644 --- a/spug_web/src/pages/config/service/index.js +++ b/spug_web/src/pages/config/service/index.js @@ -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 ( - + store.f_name = e.target.value} placeholder="请输入"/> @@ -20,6 +20,6 @@ export default observer(function () { - + ) }) \ No newline at end of file diff --git a/spug_web/src/pages/deploy/app/index.js b/spug_web/src/pages/deploy/app/index.js index 5924e03..89d9825 100644 --- a/spug_web/src/pages/deploy/app/index.js +++ b/spug_web/src/pages/deploy/app/index.js @@ -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'; diff --git a/spug_web/src/pages/deploy/request/index.js b/spug_web/src/pages/deploy/request/index.js index 2e7b9d7..4603d55 100644 --- a/spug_web/src/pages/deploy/request/index.js +++ b/spug_web/src/pages/deploy/request/index.js @@ -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'; diff --git a/spug_web/src/pages/exec/task/index.js b/spug_web/src/pages/exec/task/index.js index 033ff77..3f10292 100644 --- a/spug_web/src/pages/exec/task/index.js +++ b/spug_web/src/pages/exec/task/index.js @@ -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'; diff --git a/spug_web/src/pages/exec/template/index.js b/spug_web/src/pages/exec/template/index.js index c2bf5ae..b36ce42 100644 --- a/spug_web/src/pages/exec/template/index.js +++ b/spug_web/src/pages/exec/template/index.js @@ -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'; diff --git a/spug_web/src/pages/host/index.js b/spug_web/src/pages/host/index.js index 3c6139e..6dd068f 100644 --- a/spug_web/src/pages/host/index.js +++ b/spug_web/src/pages/host/index.js @@ -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'; diff --git a/spug_web/src/pages/monitor/index.js b/spug_web/src/pages/monitor/index.js index ddff341..2b21afd 100644 --- a/spug_web/src/pages/monitor/index.js +++ b/spug_web/src/pages/monitor/index.js @@ -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'; diff --git a/spug_web/src/pages/schedule/index.js b/spug_web/src/pages/schedule/index.js index a74a261..68eab39 100644 --- a/spug_web/src/pages/schedule/index.js +++ b/spug_web/src/pages/schedule/index.js @@ -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'; diff --git a/spug_web/src/pages/system/account/index.js b/spug_web/src/pages/system/account/index.js index 4cc3658..c485ab2 100644 --- a/spug_web/src/pages/system/account/index.js +++ b/spug_web/src/pages/system/account/index.js @@ -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'; diff --git a/spug_web/src/pages/system/role/codes.js b/spug_web/src/pages/system/role/codes.js index 1fe4095..3af14bd 100644 --- a/spug_web/src/pages/system/role/codes.js +++ b/spug_web/src/pages/system/role/codes.js @@ -1,4 +1,14 @@ export default [{ + key: 'home', + label: '工作台', + pages: [{ + key: 'home', + label: '工作台', + perms: [ + {key: 'view', label: '查看工作台'} + ] + }] +}, { key: 'host', label: '主机管理', pages: [{ diff --git a/spug_web/src/pages/system/role/index.js b/spug_web/src/pages/system/role/index.js index 4091a49..269d701 100644 --- a/spug_web/src/pages/system/role/index.js +++ b/spug_web/src/pages/system/role/index.js @@ -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';