Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
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
office
haoban-3
Commits
a138df5c
Commit
a138df5c
authored
Oct 13, 2022
by
Jings
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature/九月迭代' into dev
parents
85b9981a
e9cfa108
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
3 deletions
+32
-3
guide-setting-new.vue
src/views/enterprise/guide-setting-new.vue
+32
-3
No files found.
src/views/enterprise/guide-setting-new.vue
View file @
a138df5c
...
...
@@ -4,7 +4,7 @@
* @Author: Drama
* @Date: 2022-09-14 11:09:43
* @LastEditors: Drama
* @LastEditTime: 2022-10-1
0 09:45:04
* @LastEditTime: 2022-10-1
3 12:29:28
* @FilePath: /haoban-3/src/views/enterprise/guide-setting-new.vue
* Copyright (C) 2022 huzhenhong. All rights reserved.
-->
...
...
@@ -24,7 +24,7 @@
</div>
</el-form-item>
<el-form-item
label=
""
prop=
""
class=
""
>
<vue-gic-auth-tree
class=
"auth-tree"
default-expand-all
:data=
"treeData"
show-checkbox
ref=
"tree"
node-key=
"menuCode"
:default-checked-keys=
"withoutParents"
:props=
"defaultProps"
showButtonFlag
></vue-gic-auth-tree>
<vue-gic-auth-tree
class=
"auth-tree"
openAuthRelated
default-expand-all
:data=
"treeData"
show-checkbox
ref=
"tree"
node-key=
"menuCode"
:default-checked-keys=
"withoutParents"
:props=
"defaultProps"
></vue-gic-auth-tree>
</el-form-item>
</el-form>
</div>
...
...
@@ -156,17 +156,46 @@ export default {
if
(
item
.
menuType
==
0
)
{
item
.
parentCode
=
0
;
}
if
(
item
.
menuBOList
.
length
)
{
item
.
menuBOList
=
item
.
menuBOList
.
filter
(
data
=>
data
.
menuType
!=
2
);
item
.
menuBOList
.
forEach
(
v
=>
{
if
(
v
.
menuBOList
.
length
)
{
v
.
menuBOList
=
v
.
menuBOList
.
filter
(
f
=>
f
.
menuType
!=
2
);
}
});
}
});
let
result
=
deepClone
(
arrToTree
(
arr
,
0
,
{
idName
:
'menuCode'
,
parentIdName
:
'parentCode'
,
childName
:
'menuBOList'
}));
// result.forEach(item => {
// item.fold = false;
// item.menuBOList.forEach(el => {
// el.menuBOList = el.menuBOList ? el.menuBOList : [];
// if (el.menuBOList.length > 0) {
// el.foldBool = 1;
// }
// });
// item.rightId = item.menuCode;
// });
result
.
forEach
(
item
=>
{
item
.
fold
=
false
;
item
.
childList
=
item
.
menuBOList
;
// 构造childList
item
.
rightType
=
'0'
;
item
.
rightId
=
item
.
menuCode
;
if
(
item
.
menuBOList
.
length
)
{
// 二级
item
.
menuBOList
.
forEach
(
el
=>
{
el
.
menuBOList
=
el
.
menuBOList
?
el
.
menuBOList
:
[];
el
.
childList
=
el
.
menuBOList
;
el
.
rightType
=
el
.
menuType
==
3
?
'0'
:
'5'
;
if
(
el
.
menuBOList
.
length
>
0
)
{
el
.
foldBool
=
1
;
el
.
menuBOList
.
forEach
(
item_3
=>
{
item_3
.
childList
=
item_3
.
menuBOList
;
item_3
.
rightType
=
item_3
.
menuType
==
1
?
'5'
:
'0'
;
});
}
});
item
.
rightId
=
item
.
menuCode
;
}
});
this
[
'treeData_'
+
clerkType
]
=
deepClone
(
result
);
if
(
clerkType
==
0
)
{
...
...
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