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
03d16e7a
Commit
03d16e7a
authored
Nov 13, 2020
by
张烨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/test/maintenance
parents
6b83c760
bacac5ec
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
206 additions
and
90 deletions
+206
-90
ItemCard.jsx
src/components/CheckGroup/ItemCard.jsx
+17
-17
index.jsx
src/components/CheckGroup/index.jsx
+9
-4
AppMenu.js
src/pages/appConfig/AppMenu.js
+0
-0
AppMenu.less
src/pages/appConfig/AppMenu.less
+18
-17
SevenParams.js
src/pages/appConfig/SevenParams.js
+3
-10
SiteConfig.jsx
src/pages/mobileConfig/SiteConfig.jsx
+1
-1
LeftPart.jsx
src/pages/mobileConfig/menuconfig/LeftPart.jsx
+0
-0
LeftPart.less
src/pages/mobileConfig/menuconfig/LeftPart.less
+69
-0
MenuConfig.jsx
src/pages/mobileConfig/menuconfig/MenuConfig.jsx
+2
-1
UserManage.js
src/pages/userCenter/UserManage.js
+1
-1
RoleManage.jsx
src/pages/userCenter/roleManage/RoleManage.jsx
+72
-35
api.js
src/services/appConfig/api.js
+5
-3
api.js
src/services/userCenter/RoleManage/api.js
+9
-1
No files found.
src/components/CheckGroup/ItemCard.jsx
View file @
03d16e7a
...
@@ -8,10 +8,12 @@ const ListCardItem = props => {
...
@@ -8,10 +8,12 @@ const ListCardItem = props => {
const
{
const
{
getValueCallback
,
getValueCallback
,
itemid
,
itemid
,
userList
,
// userList,
Child
,
OUName
,
OUName
,
searchWord
,
searchWord
,
Child
,
children
,
text
,
}
=
props
;
}
=
props
;
const
[
indeterminate
,
setIndeterminate
]
=
useState
(
false
);
const
[
indeterminate
,
setIndeterminate
]
=
useState
(
false
);
const
[
childValues
,
setChildValues
]
=
useState
({});
const
[
childValues
,
setChildValues
]
=
useState
({});
...
@@ -23,20 +25,18 @@ const ListCardItem = props => {
...
@@ -23,20 +25,18 @@ const ListCardItem = props => {
useEffect
(()
=>
{
useEffect
(()
=>
{
let
arr
=
[];
let
arr
=
[];
userList
.
map
((
item
,
index
)
=>
{
children
.
map
((
item
,
index
)
=>
{
let
obj
=
{
...
item
};
let
obj
=
{
...
item
};
obj
.
label
=
(
obj
.
label
=
(
<
span
<
span
className=
{
className=
{
searchWord
&&
obj
.
userName
.
includes
(
searchWord
)
searchWord
&&
obj
.
text
.
includes
(
searchWord
)
?
styles
.
isSearch
:
''
?
styles
.
isSearch
:
''
}
}
>
>
{
obj
.
userName
||
obj
.
roleName
||
obj
.
stationName
}
{
obj
.
text
}
</
span
>
</
span
>
);
);
obj
.
value
=
obj
.
userID
||
obj
.
roleID
||
obj
.
stationID
;
obj
.
value
=
obj
.
userID
||
obj
.
roleID
||
obj
.
stationID
||
obj
.
id
;
arr
.
push
(
obj
);
arr
.
push
(
obj
);
});
});
setDefaultList
(
arr
);
setDefaultList
(
arr
);
...
@@ -44,19 +44,19 @@ const ListCardItem = props => {
...
@@ -44,19 +44,19 @@ const ListCardItem = props => {
useEffect
(()
=>
{
useEffect
(()
=>
{
let
arr2
=
[];
let
arr2
=
[];
userList
.
map
((
item
,
index
)
=>
{
children
.
map
((
item
,
index
)
=>
{
if
(
item
.
isChecked
)
{
if
(
item
.
isChecked
)
{
arr2
.
push
(
item
.
userID
||
item
.
roleID
||
item
.
stationID
);
arr2
.
push
(
item
.
userID
||
item
.
roleID
||
item
.
stationID
||
item
.
id
);
}
}
});
});
// eslint-disable-next-line no-unused-expressions
// eslint-disable-next-line no-unused-expressions
getValueCallback
&&
getValueCallback
(
arr2
,
itemid
);
getValueCallback
&&
getValueCallback
(
arr2
,
itemid
);
const
all
=
userList
.
every
(
u
=>
u
.
isChecked
);
const
all
=
children
.
every
(
u
=>
u
.
isChecked
);
setIndeterminate
(
!
all
&&
userList
.
some
(
u
=>
u
.
isChecked
));
setIndeterminate
(
!
all
&&
children
.
some
(
u
=>
u
.
isChecked
));
setAllChecked
(
all
);
setAllChecked
(
all
);
setCheckList
(
arr2
);
setCheckList
(
arr2
);
},
[
userList
]);
},
[
children
]);
const
handleAllChecked
=
e
=>
{
const
handleAllChecked
=
e
=>
{
const
{
checked
}
=
e
.
target
;
const
{
checked
}
=
e
.
target
;
...
@@ -82,9 +82,6 @@ const ListCardItem = props => {
...
@@ -82,9 +82,6 @@ const ListCardItem = props => {
getValueCallback
(
e
,
itemid
);
getValueCallback
(
e
,
itemid
);
}
}
};
};
if
(
defaultList
.
length
===
0
)
{
return
null
;
}
const
handleChildValueCallback
=
(
arr
,
childIndex
)
=>
{
const
handleChildValueCallback
=
(
arr
,
childIndex
)
=>
{
childValues
[
childIndex
]
=
arr
;
childValues
[
childIndex
]
=
arr
;
...
@@ -105,6 +102,9 @@ const ListCardItem = props => {
...
@@ -105,6 +102,9 @@ const ListCardItem = props => {
/>
/>
));
));
if
(
defaultList
.
length
===
0
)
{
return
null
;
}
return
(
return
(
<>
<>
<
div
className=
{
`${styles.divBox}`
}
>
<
div
className=
{
`${styles.divBox}`
}
>
...
@@ -116,7 +116,7 @@ const ListCardItem = props => {
...
@@ -116,7 +116,7 @@ const ListCardItem = props => {
handleAllChecked
(
e
);
handleAllChecked
(
e
);
}
}
}
}
>
>
{
OUName
}
{
text
}
</
Checkbox
>
</
Checkbox
>
</
div
>
</
div
>
<
div
style=
{
{
width
:
'100%'
}
}
className=
{
styles
.
checkdiv
}
>
<
div
style=
{
{
width
:
'100%'
}
}
className=
{
styles
.
checkdiv
}
>
...
...
src/components/CheckGroup/index.jsx
View file @
03d16e7a
...
@@ -24,10 +24,15 @@ const ListCard = props => {
...
@@ -24,10 +24,15 @@ const ListCard = props => {
title
:
'默认组'
,
title
:
'默认组'
,
id
:
''
,
id
:
''
,
};
};
// /Cityinterface/rest/services/OMS.svc/P_GetUserByStation
//
// /Cityinterface/rest/services/OMS.svc/U_GetUserListForBatchOper
// /Cityinterface/rest/services/OMS.svc/U_GetUserListForBatchOper
get
(
'/Cityinterface/rest/services/OMS.svc/
P_GetUserByStation
'
,
{
get
(
'/Cityinterface/rest/services/OMS.svc/
W4_GetMenuByRoleWithLevel
'
,
{
// OUID:ouid||'',
// OUID:ouid||'',
stationID
:
ouid
||
''
,
// stationID: ouid || '',
roleID
:
ouid
,
subSystemValue
:
'city'
,
subSystemName
:
'city'
,
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
})
})
...
@@ -35,8 +40,8 @@ const ListCard = props => {
...
@@ -35,8 +40,8 @@ const ListCard = props => {
setLoading
(
false
);
setLoading
(
false
);
const
list
=
[];
const
list
=
[];
// eslint-disable-next-line no-unused-expressions
// eslint-disable-next-line no-unused-expressions
res
&&
res
.
success
&&
res
.
forEach
(
item
=>
{
res
.
root
.
forEach
(
item
=>
{
list
.
push
({
...
defaultConfig
,
...
item
});
list
.
push
({
...
defaultConfig
,
...
item
});
});
});
setdataList
(
list
);
setdataList
(
list
);
...
...
src/pages/appConfig/AppMenu.js
View file @
03d16e7a
This diff is collapsed.
Click to expand it.
src/pages/appConfig/AppMenu.less
View file @
03d16e7a
.contentContainer{
.contentContainer{
// min-height: calc(100vh - 194px);
// min-height: calc(100vh - 194px);
overflow-x: auto;
display: flex;
display: flex;
.menuContainer{
.menuContainer{
min-width: 300px;
min-width: 300px;
border:1px solid #abaeb1;
border:1px solid #abaeb1;
min-height:calc(100vh - 300px);
//
min-height:calc(100vh - 300px);
overflow-y:auto;
overflow-y:auto;
.ant-tree-list{
.ant-tree-list{
padding: 10px;
padding: 10px;
height:calc(100vh - 3
0
0px);
height:calc(100vh - 3
3
0px);
.ant-tree-switcher{
.ant-tree-switcher{
line-height: 1;
line-height: 1;
color:#1890FF;
color:#1890FF;
...
@@ -19,11 +20,23 @@
...
@@ -19,11 +20,23 @@
}
}
}
}
}
}
.
preview
Container{
.
edit
Container{
margin-left: 12px;
margin-left: 12px;
flex: 1;
flex: 1;
padding: 16px;
float: left;
float: left;
// background: white;
min-width: 500px;
border:1px solid #abaeb1;
.ant-table-pagination-right{
padding-right: 12px;
}
}
.previewContainer{
margin-left: 12px;
// flex: 1;
float: left;
min-width: 400px;
border:1px solid #abaeb1;
.ant-table-pagination-right{
.ant-table-pagination-right{
padding-right: 12px;
padding-right: 12px;
}
}
...
@@ -54,15 +67,3 @@
...
@@ -54,15 +67,3 @@
color: red;
color: red;
cursor: pointer;
cursor: pointer;
}
}
\ No newline at end of file
// .ant-modal-root{
// .ant-tree-switcher{
// line-height: 1;
// color:#1890FF;
// }
// }
// .menuContainer{
// width: 300px;
// padding: 10px;
// background: #1890FF;
// }
\ No newline at end of file
src/pages/appConfig/SevenParams.js
View file @
03d16e7a
...
@@ -206,9 +206,9 @@ const SevenParams = () => {
...
@@ -206,9 +206,9 @@ const SevenParams = () => {
return
(
return
(
<
Form
<
Form
form
=
{
sevenForm
}
form
=
{
sevenForm
}
labelCol
=
{{
span
:
4
,
offset
:
4
}}
labelCol
=
{{
span
:
2
,
offset
:
2
}}
wrapperCol
=
{{
span
:
16
,
offset
:
1
}}
wrapperCol
=
{{
span
:
16
,
offset
:
1
}}
style
=
{{
width
:
'900px
'
}}
style
=
{{
height
:
'calc(100vh - 300px)
'
}}
onFinish
=
{
submitSevenParams
}
onFinish
=
{
submitSevenParams
}
initialValues
=
{{
ellipseType
:
'1'
,
transType
:
'1'
}}
initialValues
=
{{
ellipseType
:
'1'
,
transType
:
'1'
}}
>
>
...
@@ -324,14 +324,7 @@ const SevenParams = () => {
...
@@ -324,14 +324,7 @@ const SevenParams = () => {
<
/Form.Item
>
<
/Form.Item
>
<
/
>
<
/
>
)}
)}
<
Form
.
Item
<
Form
.
Item
wrapperCol
=
{{
offset
:
12
}}
>
wrapperCol
=
{{
sm
:
{
span
:
16
,
offset
:
16
,
},
}}
>
<
Button
type
=
"primary"
htmlType
=
"submit"
>
<
Button
type
=
"primary"
htmlType
=
"submit"
>
提交
提交
<
/Button
>
<
/Button
>
...
...
src/pages/mobileConfig/SiteConfig.jsx
View file @
03d16e7a
...
@@ -101,7 +101,7 @@ const SiteConfig = props => {
...
@@ -101,7 +101,7 @@ const SiteConfig = props => {
</
Item
>
</
Item
>
<
Item
label=
"系统图标预览:"
>
<
Item
label=
"系统图标预览:"
>
<
PicturesWall
maxLen=
{
3
}
/>
<
PicturesWall
/>
</
Item
>
</
Item
>
<
Item
<
Item
label=
"登陆页面:"
label=
"登陆页面:"
...
...
src/pages/mobileConfig/menuconfig/LeftPart.jsx
0 → 100644
View file @
03d16e7a
This diff is collapsed.
Click to expand it.
src/pages/mobileConfig/menuconfig/LeftPart.less
0 → 100644
View file @
03d16e7a
.contentContainer{
// min-height: calc(100vh - 194px);
display: flex;
.menuContainer{
min-width: 300px;
border:1px solid #abaeb1;
min-height:calc(100vh - 300px);
overflow-y:auto;
.ant-tree-list{
padding: 10px;
height:calc(100vh - 300px);
.ant-tree-switcher{
line-height: 1;
color:#1890FF;
}
.ant-tree-iconEle{
line-height: 1.2;
color:#1890FF;
}
}
}
.previewContainer{
margin-left: 12px;
flex: 1;
float: left;
// background: white;
.ant-table-pagination-right{
padding-right: 12px;
}
}
.ant-tree-treenode{
width: 100% !important;
.ant-tree-node-content-wrapper{
display: inline-block;
width: 100%;
}
.iconWraper1{
float: right;
span{
display: none;
}
}
}
.ant-tree-treenode:hover{
.iconWraper1>span{
margin-left: 12px;
font-size: 18px;
display: inline-block;
}
}
}
.redText{
color: red;
cursor: pointer;
}
// .ant-modal-root{
// .ant-tree-switcher{
// line-height: 1;
// color:#1890FF;
// }
// }
// .menuContainer{
// width: 300px;
// padding: 10px;
// background: #1890FF;
// }
\ No newline at end of file
src/pages/mobileConfig/menuconfig/MenuConfig.jsx
View file @
03d16e7a
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
ProCard
from
'@ant-design/pro-card'
;
import
ProCard
from
'@ant-design/pro-card'
;
import
AddForm
from
'./AddForm'
;
import
AddForm
from
'./AddForm'
;
import
LeftPart
from
'./LeftPart'
;
const
MenuConfig
=
props
=>
{
const
MenuConfig
=
props
=>
{
const
[
flag
,
setFlag
]
=
useState
(
1
);
const
[
flag
,
setFlag
]
=
useState
(
1
);
return
(
return
(
<
ProCard
split=
"vertical"
>
<
ProCard
split=
"vertical"
>
<
ProCard
colSpan=
"400px"
>
<
ProCard
colSpan=
"400px"
>
<
div
style=
{
{
height
:
'60px'
,
backgroundColor
:
'red'
}
}
>
a
</
div
>
<
LeftPart
/
>
</
ProCard
>
</
ProCard
>
<
ProCard
>
<
ProCard
>
<
AddForm
/>
<
AddForm
/>
...
...
src/pages/userCenter/UserManage.js
View file @
03d16e7a
...
@@ -58,7 +58,7 @@ const UserManage = () => {
...
@@ -58,7 +58,7 @@ const UserManage = () => {
const
[
loading
,
setLoading
]
=
useState
(
true
);
const
[
loading
,
setLoading
]
=
useState
(
true
);
const
[
treeData
,
setTreeData
]
=
useState
([]);
// 用户机构树
const
[
treeData
,
setTreeData
]
=
useState
([]);
// 用户机构树
const
[
treeData1
,
setTreeData1
]
=
useState
([]);
const
[
treeData1
,
setTreeData1
]
=
useState
([]);
// 用户机构树-备份,供更改机构使用
const
[
treeData2
,
setTreeData2
]
=
useState
([]);
const
[
treeData2
,
setTreeData2
]
=
useState
([]);
const
[
tableData
,
setTableData
]
=
useState
([]);
// 用户表
const
[
tableData
,
setTableData
]
=
useState
([]);
// 用户表
const
[
searchData
,
setSearchData
]
=
useState
([]);
const
[
searchData
,
setSearchData
]
=
useState
([]);
...
...
src/pages/userCenter/roleManage/RoleManage.jsx
View file @
03d16e7a
...
@@ -5,11 +5,13 @@ import { PageContainer, GridContent } from '@ant-design/pro-layout';
...
@@ -5,11 +5,13 @@ import { PageContainer, GridContent } from '@ant-design/pro-layout';
import
{
import
{
getWebModuleTree
,
getWebModuleTree
,
chooseUserToStation
,
chooseUserToStation
,
getUserRelationList
,
setMenuToRole
,
}
from
'@/services/userCenter/roleManage/api'
;
}
from
'@/services/userCenter/roleManage/api'
;
import
ListCard
from
'@/pages/orgnazation/ListCard'
;
import
ListCard
from
'@/components/CheckGroup'
;
// import ListCard from '@/pages/orgnazation/ListCard';
import
qs
from
'qs'
;
import
qs
from
'qs'
;
import
styles
from
'@/pages/userCenter/roleManage/RoleManage.less'
;
import
styles
from
'@/pages/userCenter/roleManage/RoleManage.less'
;
import
{
version
}
from
'less'
;
import
AddModal
from
'./AddModal'
;
import
AddModal
from
'./AddModal'
;
import
DelModal
from
'./DelModal'
;
import
DelModal
from
'./DelModal'
;
import
EditModal
from
'./EditModal'
;
import
EditModal
from
'./EditModal'
;
...
@@ -39,31 +41,43 @@ const SiteManage = () => {
...
@@ -39,31 +41,43 @@ const SiteManage = () => {
setOuid
(
saveTreeId
);
setOuid
(
saveTreeId
);
}
}
};
};
// useEffect(() => {
// setSpinLoading(true);
// getWebModuleTree({
// userMode: 'super',
// select: '',
// _version: 9999,
// _dc: Date.now(),
// node: -2,
// })
// .then(res => {
// setSpinLoading(false);
// let arr = [];
// if (res) {
// arr.push(res.find(item => item.id === 'Web4StationRoot'));
// console.log(arr, 'arr');
// }
// let arr2 = transTree(arr);
// setTreeData(arr2);
// })
// .catch(err => {
// setSpinLoading(false);
// console.error(err);
// });
// }, [flag]);
useEffect
(()
=>
{
useEffect
(()
=>
{
setSpinLoading
(
true
);
getUserRelationList
({
getWebModuleTree
({
userID
:
82
,
userMode
:
'super'
,
select
:
''
,
_version
:
9999
,
_version
:
9999
,
_dc
:
Date
.
now
(),
_dc
:
Date
.
now
(),
node
:
-
2
,
}).
then
(
res
=>
{
})
let
arr
=
res
.
roleList
;
.
then
(
res
=>
{
let
arr2
=
transTree2
(
arr
);
setSpinLoading
(
false
);
console
.
log
(
arr2
,
'arr2'
);
let
arr
=
[];
if
(
res
)
{
arr
.
push
(
res
.
find
(
item
=>
item
.
id
===
'Web4StationRoot'
));
console
.
log
(
arr
,
'arr'
);
}
let
arr2
=
transTree
(
arr
);
setTreeData
(
arr2
);
setTreeData
(
arr2
);
})
.
catch
(
err
=>
{
setSpinLoading
(
false
);
console
.
error
(
err
);
});
});
},
[
flag
]);
},
[]);
const
Title
=
props
=>
{
const
Title
=
props
=>
{
const
{
text
}
=
props
;
const
{
text
}
=
props
;
console
.
log
(
props
);
console
.
log
(
props
);
...
@@ -111,25 +125,46 @@ const SiteManage = () => {
...
@@ -111,25 +125,46 @@ const SiteManage = () => {
setEditVisible
(
true
);
setEditVisible
(
true
);
};
};
// 树形数据转换
// 树形数据转换
const
transTree
=
val
=>
{
// const transTree = val => {
console
.
log
(
val
);
// console.log(val);
// let arr = val;
// return arr.map((item, index) => {
// item.title = Title(item) || item.text;
// item.key = item.stationID || '';
// let obj = {};
// if (Array.isArray(item.children) && item.children.length > 0) {
// transTree(item.children);
// obj = item;
// return obj;
// }
// return item;
// });
// };
const
transTree2
=
val
=>
{
let
arr
=
val
;
let
arr
=
val
;
return
arr
.
map
((
item
,
index
)
=>
{
console
.
log
(
arr
,
'arr'
);
item
.
title
=
Title
(
item
)
||
item
.
text
;
let
arr2
=
arr
.
map
((
item
,
index
)
=>
{
item
.
key
=
item
.
stationID
||
''
;
item
.
title
=
item
.
visibleTitle
;
let
obj
=
{};
item
.
key
=
item
.
visibleValue
;
if
(
Array
.
isArray
(
item
.
children
)
&&
item
.
children
.
length
>
0
)
{
if
(
item
.
roleList
&&
item
.
roleList
.
length
>
0
)
{
transTree
(
item
.
children
);
item
.
roleList
.
map
(
child
=>
{
obj
=
item
;
child
.
title
=
child
.
roleName
;
return
obj
;
child
.
key
=
child
.
roleID
;
});
}
}
item
.
children
=
item
.
roleList
;
return
item
;
return
item
;
});
});
return
arr2
;
};
};
// 获取搜索框的值
// 获取搜索框的值
const
handleSearch
=
value
=>
{
const
handleSearch
=
value
=>
{
setSearchWord
(
value
);
setSearchWord
(
value
);
};
};
const
handleChange
=
e
=>
{
const
{
value
}
=
e
.
target
;
setSearchWord
(
value
);
};
const
confirmModal
=
e
=>
{
const
confirmModal
=
e
=>
{
setModalVisible
(
false
);
setModalVisible
(
false
);
setFlag
(
flag
+
1
);
setFlag
(
flag
+
1
);
...
@@ -147,10 +182,10 @@ const SiteManage = () => {
...
@@ -147,10 +182,10 @@ const SiteManage = () => {
};
};
const
handleCommit
=
value
=>
{
const
handleCommit
=
value
=>
{
let
arr
=
Object
.
values
(
subList
);
let
arr
=
Object
.
values
(
subList
);
chooseUserToStation
(
setMenuToRole
(
qs
.
stringify
({
qs
.
stringify
({
userList
:
String
(
arr
.
flat
())
,
roleID
:
ouid
,
stationID
:
ouid
,
menuNameList
:
String
(
arr
.
flat
())
,
}),
}),
{
{
headers
:
{
headers
:
{
...
@@ -193,6 +228,7 @@ const SiteManage = () => {
...
@@ -193,6 +228,7 @@ const SiteManage = () => {
showIcon
showIcon
onSelect=
{
e
=>
handleTreeSelect
(
e
)
}
onSelect=
{
e
=>
handleTreeSelect
(
e
)
}
treeData=
{
treeData
}
treeData=
{
treeData
}
blockNode
/>
/>
</
Spin
>
</
Spin
>
<
AddModal
<
AddModal
...
@@ -223,6 +259,7 @@ const SiteManage = () => {
...
@@ -223,6 +259,7 @@ const SiteManage = () => {
allowClear
allowClear
placeholder=
{
placeholder
}
placeholder=
{
placeholder
}
onSearch=
{
handleSearch
}
onSearch=
{
handleSearch
}
onChange=
{
handleChange
}
enterButton
enterButton
/>
/>
</
Col
>
</
Col
>
...
...
src/services/appConfig/api.js
View file @
03d16e7a
...
@@ -76,7 +76,6 @@ export const addMenuGroupApi = (
...
@@ -76,7 +76,6 @@ export const addMenuGroupApi = (
subSystemValue
:
'miniapp'
,
subSystemValue
:
'miniapp'
,
relatedRoleList
:
''
,
relatedRoleList
:
''
,
});
});
// 获取角色列表
// 获取角色列表
export
const
getRoleList
=
()
=>
export
const
getRoleList
=
()
=>
get
(
`/Cityinterface/rest/services/OMS.svc/P_GetRoleListPlain`
,
{
get
(
`/Cityinterface/rest/services/OMS.svc/P_GetRoleListPlain`
,
{
...
@@ -84,14 +83,17 @@ export const getRoleList = () =>
...
@@ -84,14 +83,17 @@ export const getRoleList = () =>
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
subSystemValue
:
'miniapp'
,
subSystemValue
:
'miniapp'
,
});
});
// 获取菜单
//
编辑-
获取菜单
export
const
getMenuInfo
=
id
=>
export
const
getMenuInfo
=
id
=>
get
(
`/Cityinterface/rest/services/OMS.svc/Mini_GetMenuInfo`
,
{
get
(
`/Cityinterface/rest/services/OMS.svc/Mini_GetMenuInfo`
,
{
_version
:
9999
,
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
_dc
:
new
Date
().
getTime
(),
menuID
:
id
,
menuID
:
id
,
});
});
// 获取菜单
// 编辑-提交菜单
export
const
submitMenuInfo
=
params
=>
get
(
`/Cityinterface/rest/services/OMS.svc/MiniApp_EditMenu`
,
params
);
// 删除菜单
export
const
deleteMenuApi
=
id
=>
export
const
deleteMenuApi
=
id
=>
get
(
`/Cityinterface/rest/services/OMS.svc/MiniApp_DeleteMenu`
,
{
get
(
`/Cityinterface/rest/services/OMS.svc/MiniApp_DeleteMenu`
,
{
_version
:
9999
,
_version
:
9999
,
...
...
src/services/userCenter/RoleManage/api.js
View file @
03d16e7a
...
@@ -24,4 +24,12 @@ export const chooseUserToStation = (params, options) =>
...
@@ -24,4 +24,12 @@ export const chooseUserToStation = (params, options) =>
// 获取所有角色信息
// 获取所有角色信息
export
const
getUserRelationList
=
params
=>
export
const
getUserRelationList
=
params
=>
get
(
'Cityinterface/rest/services/OMS.svc/W4_GetUserRelationList'
,
params
);
get
(
'/Cityinterface/rest/services/OMS.svc/W4_GetUserRelationList'
,
params
);
// 角色管理保存选择
export
const
setMenuToRole
=
(
params
,
options
)
=>
post
(
'/Cityinterface/rest/services/OMS.svc/P_SetMenuToRole?_version: 9999'
,
params
,
options
,
);
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