Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivManage
Commits
fb53a2a2
Commit
fb53a2a2
authored
Nov 20, 2020
by
张烨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/test/maintenance
parents
8884edef
bba774f2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
141 additions
and
56 deletions
+141
-56
index.jsx
src/components/CheckGroup/index.jsx
+2
-1
itemCard.less
src/components/CheckGroup/itemCard.less
+6
-1
AppMenu.js
src/pages/appConfig/AppMenu.js
+1
-1
MongDBTable.jsx
src/pages/database/databaseConfig/mongDB/MongDBTable.jsx
+3
-3
MySQLTable.jsx
src/pages/database/databaseConfig/mysqltable/MySQLTable.jsx
+4
-4
OracleTable.jsx
src/pages/database/databaseConfig/oracle/OracleTable.jsx
+3
-3
SQLServerTable.jsx
...ages/database/databaseConfig/sqlServer/SQLServerTable.jsx
+2
-2
index.js
src/pages/mobileConfig/index.js
+1
-1
ListCardItem.less
src/pages/orgnazation/ListCardItem.less
+5
-1
UserManage.js
src/pages/userCenter/UserManage.js
+0
-0
UserManage.less
src/pages/userCenter/UserManage.less
+37
-13
RoleManage.jsx
src/pages/userCenter/roleManage/RoleManage.jsx
+33
-14
RoleManage.less
src/pages/userCenter/roleManage/RoleManage.less
+7
-5
SiteManage.jsx
src/pages/userCenter/siteManage/SiteManage.jsx
+0
-0
SiteManage.less
src/pages/userCenter/siteManage/SiteManage.less
+11
-6
config.js
src/routes/config.js
+1
-1
api.js
src/services/userCenter/RoleManage/api.js
+4
-0
api.js
src/services/userCenter/siteManage/api.js
+4
-0
api.js
src/services/userCenter/userManage/api.js
+17
-0
No files found.
src/components/CheckGroup/index.jsx
View file @
fb53a2a2
...
@@ -21,6 +21,7 @@ export const checkChildrenByCondition = (item, fn, tag = 'every') => {
...
@@ -21,6 +21,7 @@ export const checkChildrenByCondition = (item, fn, tag = 'every') => {
};
};
const
ListCard
=
props
=>
{
const
ListCard
=
props
=>
{
console
.
log
(
props
,
'props'
);
const
{
const
{
ouid
,
ouid
,
searchWord
,
searchWord
,
...
@@ -85,7 +86,7 @@ const ListCard = props => {
...
@@ -85,7 +86,7 @@ const ListCard = props => {
/>
/>
))
))
)
:
(
)
:
(
<
Empty
/>
<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
)
}
)
}
</>
</>
)
}
)
}
...
...
src/components/CheckGroup/itemCard.less
View file @
fb53a2a2
...
@@ -25,7 +25,12 @@
...
@@ -25,7 +25,12 @@
.divSingle{
.divSingle{
border: none;
border: none;
margin-top: 20px;
margin-top: 20px;
flex:0 0 180px;
min-width: 180px;
flex-grow: 0;
flex-shrink: 0;
// flex:0 0 auto;
// flex-basis: auto;
margin-right: 10px;
background: transparent;
background: transparent;
}
}
.isSearch{
.isSearch{
...
...
src/pages/appConfig/AppMenu.js
View file @
fb53a2a2
...
@@ -153,7 +153,7 @@ const AppMenu = () => {
...
@@ -153,7 +153,7 @@ const AppMenu = () => {
<
/
>
<
/
>
),
),
key
:
menu
.
menuID
,
key
:
menu
.
menuID
,
icon
:
menu
.
leaf
?
<
FileOutlined
/>
:
<
FolderOpenOutlined
/>
,
//
icon: menu.leaf ? <FileOutlined /> : <FolderOpenOutlined />,
// 判断它是否存在子集,若果存在就进行再次进行遍历操作,知道不存在子集便对其他的元素进行操作
// 判断它是否存在子集,若果存在就进行再次进行遍历操作,知道不存在子集便对其他的元素进行操作
children
:
haveChildren
?
menu
.
children
.
map
(
i
=>
mapTree
(
i
))
:
[],
children
:
haveChildren
?
menu
.
children
.
map
(
i
=>
mapTree
(
i
))
:
[],
};
};
...
...
src/pages/database/databaseConfig/mongDB/MongDBTable.jsx
View file @
fb53a2a2
...
@@ -48,13 +48,13 @@ const MongDBTable = props => {
...
@@ -48,13 +48,13 @@ const MongDBTable = props => {
setTableLoading
(
false
);
setTableLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
success
)
{
notification
.
success
({
notification
.
success
({
message
:
'
通知
'
,
message
:
'
提示
'
,
description
:
res
.
message
||
'连接成功'
,
description
:
'连接成功'
,
duration
:
3
,
duration
:
3
,
});
});
}
else
{
}
else
{
notification
.
error
({
notification
.
error
({
message
:
'
通知
'
,
message
:
'
提示
'
,
description
:
res
.
message
||
'连接失败'
,
description
:
res
.
message
||
'连接失败'
,
duration
:
3
,
duration
:
3
,
});
});
...
...
src/pages/database/databaseConfig/mysqltable/MySQLTable.jsx
View file @
fb53a2a2
...
@@ -48,15 +48,15 @@ const MySQLTable = props => {
...
@@ -48,15 +48,15 @@ const MySQLTable = props => {
setTableLoading
(
false
);
setTableLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
success
)
{
notification
.
success
({
notification
.
success
({
message
:
'
通知
'
,
message
:
'
提示
'
,
description
:
res
.
message
||
'连接成功'
,
description
:
'连接成功'
,
duration
:
3
,
duration
:
3
,
});
});
}
else
{
}
else
{
notification
.
error
({
notification
.
error
({
message
:
'
通知
'
,
message
:
'
提示
'
,
description
:
res
.
message
||
'连接失败'
,
description
:
res
.
message
||
'连接失败'
,
duration
:
3
,
duration
:
15
,
});
});
}
}
})
})
...
...
src/pages/database/databaseConfig/oracle/OracleTable.jsx
View file @
fb53a2a2
...
@@ -48,13 +48,13 @@ const OracleTable = props => {
...
@@ -48,13 +48,13 @@ const OracleTable = props => {
setTableLoading
(
false
);
setTableLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
success
)
{
notification
.
success
({
notification
.
success
({
message
:
'
通知
'
,
message
:
'
提示
'
,
description
:
res
.
message
||
'连接成功'
,
description
:
'连接成功'
,
duration
:
3
,
duration
:
3
,
});
});
}
else
{
}
else
{
notification
.
error
({
notification
.
error
({
message
:
'
通知
'
,
message
:
'
提示
'
,
description
:
res
.
message
||
'连接失败'
,
description
:
res
.
message
||
'连接失败'
,
duration
:
3
,
duration
:
3
,
});
});
...
...
src/pages/database/databaseConfig/sqlServer/SQLServerTable.jsx
View file @
fb53a2a2
...
@@ -48,13 +48,13 @@ const SQLServerTable = props => {
...
@@ -48,13 +48,13 @@ const SQLServerTable = props => {
setTableLoading
(
false
);
setTableLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
success
)
{
notification
.
success
({
notification
.
success
({
message
:
'
通知
'
,
message
:
'
提示
'
,
description
:
'连接成功'
,
description
:
'连接成功'
,
duration
:
3
,
duration
:
3
,
});
});
}
else
{
}
else
{
notification
.
error
({
notification
.
error
({
message
:
'
通知
'
,
message
:
'
提示
'
,
description
:
res
.
message
||
'连接失败'
,
description
:
res
.
message
||
'连接失败'
,
duration
:
3
,
duration
:
3
,
});
});
...
...
src/pages/mobileConfig/index.js
View file @
fb53a2a2
...
@@ -7,7 +7,7 @@ import SiteConfig from './SiteConfig';
...
@@ -7,7 +7,7 @@ import SiteConfig from './SiteConfig';
import
MenuConfig
from
'./menuconfig/MenuConfig'
;
import
MenuConfig
from
'./menuconfig/MenuConfig'
;
const
{
TabPane
}
=
Tabs
;
const
{
TabPane
}
=
Tabs
;
const
MobileConfigPage
=
props
=>
{
const
MobileConfigPage
=
props
=>
{
const
[
activeKey
,
setActiveKey
]
=
useState
(
'
1
'
);
// tabs活动页
const
[
activeKey
,
setActiveKey
]
=
useState
(
'
0
'
);
// tabs活动页
const
[
miniTitle
,
setMiniTitle
]
=
useState
(
''
);
const
[
miniTitle
,
setMiniTitle
]
=
useState
(
''
);
const
[
flag
,
setFlag
]
=
useState
(
1
);
const
[
flag
,
setFlag
]
=
useState
(
1
);
useEffect
(()
=>
{
useEffect
(()
=>
{
...
...
src/pages/orgnazation/ListCardItem.less
View file @
fb53a2a2
...
@@ -25,7 +25,11 @@
...
@@ -25,7 +25,11 @@
flex-wrap: wrap;
flex-wrap: wrap;
align-items: center;
align-items: center;
.ant-checkbox-group-item{
.ant-checkbox-group-item{
flex:0 0 150px;
flex:0 0 auto;
flex-shrink: 0;
flex-grow: 0;
margin-right: 60px;
// min-width: 180px;
margin-bottom: 5px;
margin-bottom: 5px;
}
}
}
}
...
...
src/pages/userCenter/UserManage.js
View file @
fb53a2a2
This diff is collapsed.
Click to expand it.
src/pages/userCenter/UserManage.less
View file @
fb53a2a2
...
@@ -30,7 +30,15 @@
...
@@ -30,7 +30,15 @@
display: block;
display: block;
}
}
}
}
.ant-pagination-prev,.ant-pagination-next{
line-height: 8px !important;
}
.ant-input-search-button{
line-height: 1;
}
.ant-dropdown-menu-item > .anticon:first-child {
vertical-align: 0.15em !important;
}
}
}
.redText{
.redText{
color: red;
color: red;
...
@@ -78,9 +86,13 @@
...
@@ -78,9 +86,13 @@
height: calc(100vh - 74px);
height: calc(100vh - 74px);
float: left;
float: left;
padding: 10px;
padding: 10px;
width: 200px;
padding-right: 22px;
width: 240px;
background: white;
background: white;
overflow: auto;
overflow: auto;
margin-right:10px;
transform: translateX(0px);
transition: transform 0.5s;
.ant-tree{
.ant-tree{
padding-top: 6px;
padding-top: 6px;
.ant-tree-switcher{
.ant-tree-switcher{
...
@@ -89,16 +101,25 @@
...
@@ -89,16 +101,25 @@
.ant-tree-switcher-line-icon{
.ant-tree-switcher-line-icon{
margin-left: 5px;
margin-left: 5px;
}
}
}
}
}
.switcher{
color: #1890FF;
font-size: 18px;
position: absolute;
left: 220px;
top: 46%;
}
}
}
}
.hide{
display: none;
.orgContainerHide{
transform: translateX(-230px);
}
}
.userContainer{
.userContainer{
height: calc(100vh -
168
px) !important;
height: calc(100vh -
74
px) !important;
flex: 1;
flex: 1;
min-width:
84
0px;
min-width:
76
0px;
background: white;
background: white;
.ant-table-pagination{
.ant-table-pagination{
padding-right: 12px;
padding-right: 12px;
...
@@ -106,13 +127,12 @@
...
@@ -106,13 +127,12 @@
margin: 1px 0;
margin: 1px 0;
padding:8px;
padding:8px;
padding-right: 20px;
padding-right: 20px;
.ant-pagination-prev,.ant-pagination-next{
line-height: 8px !important;
}
}
}
.ant-btn-primary{
.ant-btn{
margin-left: 20px;
margin: 0px 10px;
background: #50aefc;
.ant-btn-primary{
background: #50aefc;
}
}
}
.ant-input-search-button{
.ant-input-search-button{
margin-left: 0px !important;
margin-left: 0px !important;
...
@@ -133,6 +153,10 @@
...
@@ -133,6 +153,10 @@
border-right: white;
border-right: white;
overflow: auto !important;
overflow: auto !important;
}
}
.ant-pagination{
z-index: 999;
border-top: 1px solid #f0eded;
}
}
}
}
}
}
}
...
...
src/pages/userCenter/roleManage/RoleManage.jsx
View file @
fb53a2a2
...
@@ -16,6 +16,7 @@ import { DoubleLeftOutlined, DoubleRightOutlined } from '@ant-design/icons';
...
@@ -16,6 +16,7 @@ import { DoubleLeftOutlined, DoubleRightOutlined } from '@ant-design/icons';
import
{
import
{
setMenuToRole
,
setMenuToRole
,
getRoleGroupList
,
getRoleGroupList
,
getMenuByRoleWithLevel
,
}
from
'@/services/userCenter/roleManage/api'
;
}
from
'@/services/userCenter/roleManage/api'
;
import
ListCard
,
{
import
ListCard
,
{
checkChildrenByCondition
,
checkChildrenByCondition
,
...
@@ -28,7 +29,6 @@ import AddModal from './AddModal';
...
@@ -28,7 +29,6 @@ import AddModal from './AddModal';
import
DelModal
from
'./DelModal'
;
import
DelModal
from
'./DelModal'
;
import
EditModal
from
'./EditModal'
;
import
EditModal
from
'./EditModal'
;
import
EditGroup
from
'./EditGroup'
;
import
EditGroup
from
'./EditGroup'
;
import
{
get
}
from
'@/services'
;
import
userStyles
from
'../UserManage.less'
;
import
userStyles
from
'../UserManage.less'
;
const
{
Search
}
=
Input
;
const
{
Search
}
=
Input
;
...
@@ -79,7 +79,7 @@ const SiteManage = () => {
...
@@ -79,7 +79,7 @@ const SiteManage = () => {
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
setSpinLoading
(
true
);
setSpinLoading
(
true
);
getRoleGroupList
({
userID
:
1
}).
then
(
res
=>
{
getRoleGroupList
({
userID
:
'1'
}).
then
(
res
=>
{
setSpinLoading
(
false
);
setSpinLoading
(
false
);
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
const
{
roleList
}
=
res
.
data
;
const
{
roleList
}
=
res
.
data
;
...
@@ -114,8 +114,7 @@ const SiteManage = () => {
...
@@ -114,8 +114,7 @@ const SiteManage = () => {
title
:
'默认组'
,
title
:
'默认组'
,
id
:
''
,
id
:
''
,
};
};
getMenuByRoleWithLevel
({
get
(
'/Cityinterface/rest/services/OMS.svc/W4_GetMenuByRoleWithLevel'
,
{
roleID
:
itemObj
.
roleID
,
roleID
:
itemObj
.
roleID
,
subSystemValue
:
itemObj
.
subSystemValue
,
subSystemValue
:
itemObj
.
subSystemValue
,
subSystemName
:
itemObj
.
subSystemValue
,
subSystemName
:
itemObj
.
subSystemValue
,
...
@@ -168,14 +167,28 @@ const SiteManage = () => {
...
@@ -168,14 +167,28 @@ const SiteManage = () => {
// 树形数据转换;
// 树形数据转换;
const
transTree
=
val
=>
{
const
transTree
=
val
=>
{
let
arr
=
val
;
let
arr
=
val
;
let
arr2
=
arr
.
map
(
item
=>
{
let
newArr
=
[];
let
arr2
=
arr
.
filter
(
item
=>
{
if
(
item
.
child
&&
item
.
child
.
length
>
0
)
{
if
(
item
.
child
&&
item
.
child
.
length
>
0
)
{
item
.
child
.
forEach
(
itemC
=>
{
item
.
child
.
forEach
(
itemC
=>
{
item
.
roleList
.
unshift
(
itemC
);
item
.
roleList
.
unshift
(
itemC
);
});
});
}
}
return
item
;
if
(
item
.
visibleTitle
===
'手持系统'
)
{
newArr
[
0
]
=
item
;
}
if
(
item
.
visibleTitle
===
'小程序'
)
{
newArr
[
1
]
=
item
;
}
return
(
item
.
visibleTitle
!==
'其它角色'
&&
item
.
visibleTitle
!==
'运维管理'
&&
item
.
visibleTitle
!==
'手持系统'
&&
item
.
visibleTitle
!==
'小程序'
);
});
});
arr2
=
arr2
.
concat
(
newArr
);
console
.
log
(
arr2
,
'arr2'
);
let
arr3
=
arr2
.
map
(
item
=>
{
let
arr3
=
arr2
.
map
(
item
=>
{
item
.
title
=
item
.
visibleTitle
||
''
;
item
.
title
=
item
.
visibleTitle
||
''
;
item
.
key
=
item
.
visibleValue
||
''
;
item
.
key
=
item
.
visibleValue
||
''
;
...
@@ -288,9 +301,8 @@ const SiteManage = () => {
...
@@ -288,9 +301,8 @@ const SiteManage = () => {
};
};
return
(
return
(
<
PageContainer
>
<
PageContainer
>
{
/* <GridContent> */
}
<
Row
gutter=
{
0
}
>
<
Row
gutter=
{
0
}
>
<
Col
lg
=
{
mulu
?
5
:
0
}
>
<
Col
span
=
{
mulu
?
5
:
0
}
>
<
Card
className=
{
styles
.
cardBox
}
>
<
Card
className=
{
styles
.
cardBox
}
>
<
Spin
<
Spin
tip=
"loading...."
tip=
"loading...."
...
@@ -338,21 +350,28 @@ const SiteManage = () => {
...
@@ -338,21 +350,28 @@ const SiteManage = () => {
confirmModal=
{
groupModal
}
confirmModal=
{
groupModal
}
/>
/>
</
Card
>
</
Card
>
<
div
>
{
mulu
&&
(
<
Tooltip
title=
"隐藏角色栏"
className=
{
styles
.
hide
}
>
<
DoubleLeftOutlined
onClick=
{
()
=>
handleHide
()
}
/>
</
Tooltip
>
)
}
</
div
>
</
Col
>
</
Col
>
<
Col
>
<
Col
span=
{
mulu
?
0
:
1
}
>
{
mulu
&&
(
{
/* {
mulu && (
<Tooltip title="隐藏角色栏" className={styles.hide}>
<Tooltip title="隐藏角色栏" className={styles.hide}>
<DoubleLeftOutlined onClick={() => handleHide()} />
<DoubleLeftOutlined onClick={() => handleHide()} />
</Tooltip>
</Tooltip>
)
}
)}
*/
}
{
!
mulu
&&
(
{
!
mulu
&&
(
<
Tooltip
title=
"显示角色栏"
className=
{
styles
.
hide
}
>
<
Tooltip
title=
"显示角色栏"
className=
{
styles
.
hide
}
>
<
DoubleRightOutlined
onClick=
{
()
=>
handleHide
()
}
/>
<
DoubleRightOutlined
onClick=
{
()
=>
handleHide
()
}
/>
</
Tooltip
>
</
Tooltip
>
)
}
)
}
</
Col
>
</
Col
>
<
Col
lg=
{
mulu
?
18
:
23
}
>
<
Col
span=
{
mulu
?
19
:
23
}
>
<
Card
style=
{
{
marginBottom
:
'10px'
}
}
>
<
Card
style=
{
{
marginBottom
:
'10px'
,
minWidth
:
'870px'
}
}
>
<
Row
align=
"middle"
>
<
Row
align=
"middle"
>
<
Col
span=
{
1
}
>
搜索
</
Col
>
<
Col
span=
{
1
}
>
搜索
</
Col
>
<
Col
span=
{
8
}
>
<
Col
span=
{
8
}
>
...
@@ -385,6 +404,7 @@ const SiteManage = () => {
...
@@ -385,6 +404,7 @@ const SiteManage = () => {
编辑角色
编辑角色
</
Button
>
</
Button
>
<
Button
<
Button
type=
"primary"
danger
danger
onClick=
{
()
=>
{
onClick=
{
()
=>
{
handleDel
();
handleDel
();
...
@@ -421,7 +441,6 @@ const SiteManage = () => {
...
@@ -421,7 +441,6 @@ const SiteManage = () => {
</
Card
>
</
Card
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
{
/* </GridContent> */
}
</
PageContainer
>
</
PageContainer
>
);
);
};
};
...
...
src/pages/userCenter/roleManage/RoleManage.less
View file @
fb53a2a2
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
min-height: calc(100vh - 80px);
min-height: calc(100vh - 80px);
max-height: calc(100vh - 80px);
max-height: calc(100vh - 80px);
overflow-y: scroll;
overflow-y: scroll;
margin-right: 20px;
}
}
.ant-tree-node-content-wrapper-open{
.ant-tree-node-content-wrapper-open{
display: flex;
display: flex;
...
@@ -26,6 +27,7 @@
...
@@ -26,6 +27,7 @@
align-items: center;
align-items: center;
}
}
.cardBoxR{
.cardBoxR{
min-width: 870px;
min-height: calc(100vh - 172px);
min-height: calc(100vh - 172px);
max-height: calc(100vh - 172px);
max-height: calc(100vh - 172px);
overflow-y: scroll;
overflow-y: scroll;
...
@@ -43,10 +45,11 @@
...
@@ -43,10 +45,11 @@
.hide{
.hide{
display: block;
display: block;
position:
relativ
e;
position:
absolut
e;
font-size: 20px;
font-size: 20px;
color: #1890FF!important;
color: #1890FF!important;
top: 45%;
top: 45%;
left: 50%;
right:0;
transform: translate(-50%,-50%);
transform: translate(0%,-50%);
}
z-index: 2;
\ No newline at end of file
}
src/pages/userCenter/siteManage/SiteManage.jsx
View file @
fb53a2a2
This diff is collapsed.
Click to expand it.
src/pages/userCenter/siteManage/SiteManage.less
View file @
fb53a2a2
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
min-height: calc(100vh - 80px);
min-height: calc(100vh - 80px);
max-height: calc(100vh - 80px);
max-height: calc(100vh - 80px);
overflow: auto;
overflow: auto;
margin-right: 20px;
}
}
.siteTitle{
.siteTitle{
font-size: 16px;
font-size: 16px;
margin: 0 0 6px 0;
margin: 0 0 6px 0;
...
@@ -14,6 +14,7 @@
...
@@ -14,6 +14,7 @@
.cardBoxR{
.cardBoxR{
min-height: calc(100vh - 172px);
min-height: calc(100vh - 172px);
max-height: calc(100vh - 172px);
max-height: calc(100vh - 172px);
min-width: 600px;
overflow-y: scroll;
overflow-y: scroll;
}
}
.ant-tree-node-content-wrapper-open{
.ant-tree-node-content-wrapper-open{
...
@@ -53,10 +54,14 @@
...
@@ -53,10 +54,14 @@
.hide{
.hide{
display: block;
display: block;
position:
relativ
e;
position:
absolut
e;
font-size: 20px;
font-size: 20px;
color: #1890FF!important;
color: #1890FF!important;
top: 45%;
top: 45%;
left: 50%;
right: 0;
transform: translate(-50%,-50%);
transform: translate(0%,-50%);
}
z-index: 2;
\ No newline at end of file
}
// .hide{
// left: 0;
// }
\ No newline at end of file
src/routes/config.js
View file @
fb53a2a2
...
@@ -80,7 +80,7 @@ export default {
...
@@ -80,7 +80,7 @@ export default {
// },
// },
{
{
path
:
'/dbm/dbInit'
,
path
:
'/dbm/dbInit'
,
name
:
'数据库
初始化
'
,
name
:
'数据库
连接
'
,
authority
:
adminAuthority
,
authority
:
adminAuthority
,
component
:
InitDataBase
,
component
:
InitDataBase
,
},
},
...
...
src/services/userCenter/RoleManage/api.js
View file @
fb53a2a2
...
@@ -53,3 +53,7 @@ export const deleteRole = params =>
...
@@ -53,3 +53,7 @@ export const deleteRole = params =>
// 编辑分组名称
// 编辑分组名称
export
const
setRoleGroupName
=
params
=>
export
const
setRoleGroupName
=
params
=>
get
(
'/Cityinterface/rest/services/OMS.svc/P_SetRoleGroupName'
,
params
);
get
(
'/Cityinterface/rest/services/OMS.svc/P_SetRoleGroupName'
,
params
);
// 保存选择的功能
export
const
getMenuByRoleWithLevel
=
params
=>
get
(
'/Cityinterface/rest/services/OMS.svc/W4_GetMenuByRoleWithLevel'
,
params
);
src/services/userCenter/siteManage/api.js
View file @
fb53a2a2
...
@@ -29,3 +29,7 @@ export const chooseUserToStation = (params, options) =>
...
@@ -29,3 +29,7 @@ export const chooseUserToStation = (params, options) =>
params
,
params
,
options
,
options
,
);
);
// 获取人员
export
const
getUserByStation
=
params
=>
get
(
'/Cityinterface/rest/services/OMS.svc/P_GetUserByStation'
,
params
);
src/services/userCenter/userManage/api.js
View file @
fb53a2a2
...
@@ -100,6 +100,15 @@ export const addToOrg = (userID, orgID, newOrgID) =>
...
@@ -100,6 +100,15 @@ export const addToOrg = (userID, orgID, newOrgID) =>
oldOUID
:
orgID
,
oldOUID
:
orgID
,
newOUID
:
newOrgID
,
newOUID
:
newOrgID
,
});
});
// 批量更改机构
export
const
addToOrgs
=
(
userIDs
,
orgIDs
,
newOrgID
)
=>
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/ModifyUserRole`
,
{
_version
:
9999
,
_dc
:
Date
.
now
(),
userIds
:
userIDs
,
oldGroupIds
:
orgIDs
,
newGroupId
:
newOrgID
,
});
export
const
updateUserPassword
=
(
export
const
updateUserPassword
=
(
userID
,
userID
,
...
@@ -141,6 +150,14 @@ export const deleteUser = userID =>
...
@@ -141,6 +150,14 @@ export const deleteUser = userID =>
_dc
:
Date
.
now
(),
_dc
:
Date
.
now
(),
userID
,
userID
,
});
});
// 批量删除用户
export
const
multiDeleteUsers
=
(
userIDs
,
orgIDs
)
=>
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/DeleteUsers`
,
{
_version
:
9999
,
_dc
:
Date
.
now
(),
userIds
:
userIDs
,
groupId
:
orgIDs
,
});
export
const
setUserRelation
=
(
userID
,
roleList
=
[],
stationList
)
=>
export
const
setUserRelation
=
(
userID
,
roleList
=
[],
stationList
)
=>
post
(
post
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment