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
bacac5ec
Commit
bacac5ec
authored
Nov 13, 2020
by
陈前坚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 菜单管理
parent
ac0652d0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
32 deletions
+28
-32
AppMenu.js
src/pages/appConfig/AppMenu.js
+0
-0
AppMenu.less
src/pages/appConfig/AppMenu.less
+19
-18
SevenParams.js
src/pages/appConfig/SevenParams.js
+3
-10
UserManage.js
src/pages/userCenter/UserManage.js
+1
-1
api.js
src/services/appConfig/api.js
+5
-3
No files found.
src/pages/appConfig/AppMenu.js
View file @
bacac5ec
This diff is collapsed.
Click to expand it.
src/pages/appConfig/AppMenu.less
View file @
bacac5ec
.contentContainer{
// min-height: calc(100vh - 194px);
overflow-x: auto;
display: flex;
.menuContainer{
min-width: 300px;
border:1px solid #abaeb1;
min-height:calc(100vh - 300px);
//
min-height:calc(100vh - 300px);
overflow-y:auto;
.ant-tree-list{
padding: 10px;
height:calc(100vh - 3
0
0px);
height:calc(100vh - 3
3
0px);
.ant-tree-switcher{
line-height: 1;
color:#1890FF;
...
...
@@ -19,11 +20,23 @@
}
}
}
.
preview
Container{
.
edit
Container{
margin-left: 12px;
flex: 1;
padding: 16px;
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{
padding-right: 12px;
}
...
...
@@ -53,16 +66,4 @@
.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
}
\ No newline at end of file
src/pages/appConfig/SevenParams.js
View file @
bacac5ec
...
...
@@ -206,9 +206,9 @@ const SevenParams = () => {
return
(
<
Form
form
=
{
sevenForm
}
labelCol
=
{{
span
:
4
,
offset
:
4
}}
labelCol
=
{{
span
:
2
,
offset
:
2
}}
wrapperCol
=
{{
span
:
16
,
offset
:
1
}}
style
=
{{
width
:
'900px
'
}}
style
=
{{
height
:
'calc(100vh - 300px)
'
}}
onFinish
=
{
submitSevenParams
}
initialValues
=
{{
ellipseType
:
'1'
,
transType
:
'1'
}}
>
...
...
@@ -324,14 +324,7 @@ const SevenParams = () => {
<
/Form.Item
>
<
/
>
)}
<
Form
.
Item
wrapperCol
=
{{
sm
:
{
span
:
16
,
offset
:
16
,
},
}}
>
<
Form
.
Item
wrapperCol
=
{{
offset
:
12
}}
>
<
Button
type
=
"primary"
htmlType
=
"submit"
>
提交
<
/Button
>
...
...
src/pages/userCenter/UserManage.js
View file @
bacac5ec
...
...
@@ -58,7 +58,7 @@ const UserManage = () => {
const
[
loading
,
setLoading
]
=
useState
(
true
);
const
[
treeData
,
setTreeData
]
=
useState
([]);
// 用户机构树
const
[
treeData1
,
setTreeData1
]
=
useState
([]);
const
[
treeData1
,
setTreeData1
]
=
useState
([]);
// 用户机构树-备份,供更改机构使用
const
[
treeData2
,
setTreeData2
]
=
useState
([]);
const
[
tableData
,
setTableData
]
=
useState
([]);
// 用户表
const
[
searchData
,
setSearchData
]
=
useState
([]);
...
...
src/services/appConfig/api.js
View file @
bacac5ec
...
...
@@ -76,7 +76,6 @@ export const addMenuGroupApi = (
subSystemValue
:
'miniapp'
,
relatedRoleList
:
''
,
});
// 获取角色列表
export
const
getRoleList
=
()
=>
get
(
`/Cityinterface/rest/services/OMS.svc/P_GetRoleListPlain`
,
{
...
...
@@ -84,14 +83,17 @@ export const getRoleList = () =>
_dc
:
new
Date
().
getTime
(),
subSystemValue
:
'miniapp'
,
});
// 获取菜单
//
编辑-
获取菜单
export
const
getMenuInfo
=
id
=>
get
(
`/Cityinterface/rest/services/OMS.svc/Mini_GetMenuInfo`
,
{
_version
:
9999
,
_dc
:
new
Date
().
getTime
(),
menuID
:
id
,
});
// 获取菜单
// 编辑-提交菜单
export
const
submitMenuInfo
=
params
=>
get
(
`/Cityinterface/rest/services/OMS.svc/MiniApp_EditMenu`
,
params
);
// 删除菜单
export
const
deleteMenuApi
=
id
=>
get
(
`/Cityinterface/rest/services/OMS.svc/MiniApp_DeleteMenu`
,
{
_version
:
9999
,
...
...
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