Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
huamu
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
郭铭瑶
huamu
Commits
689e07c5
Commit
689e07c5
authored
Sep 26, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改权限编码取值及组织架构拎出4个独立菜单
parent
ff7b7d25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
16 deletions
+51
-16
actions.ts
src/store/actions.ts
+16
-14
struct-modal.vue
src/view/components/struct-modal.vue
+35
-2
No files found.
src/store/actions.ts
View file @
689e07c5
...
@@ -22,19 +22,21 @@ export default {
...
@@ -22,19 +22,21 @@ export default {
async
getAuth
({
commit
}:
Method
)
{
async
getAuth
({
commit
}:
Method
)
{
if
(
process
.
env
.
NODE_ENV
!==
'production'
)
{
if
(
process
.
env
.
NODE_ENV
!==
'production'
)
{
/* 开发环境、测试环境用 */
/* 开发环境、测试环境用 */
commit
(
'SET_AUTH'
,
{
setTimeout
(()
=>
{
userid
:
91541
,
commit
(
'SET_AUTH'
,
{
orgid
:
'000001'
,
userid
:
91541
,
code
:
'001.001.031.014.205'
,
// 最高权限
orgid
:
'000001'
,
// code: '001.001.031.014.205.001', // 行政党组
code
:
'001.001.031.014.205'
,
// 最高权限
// code: '001.001.031.014.205.002', // 社区党委
// code: '001.001.031.014.205.001', // 行政党组
// code: '001.001.031.014.205.002.001', //牡丹社区委员会
// code: '001.001.031.014.205.002', // 社区党委
// code: '001.001.031.014.205.002.001.601', // 牡丹第一居民区总支部委员会
// code: '001.001.031.014.205.002.001', //牡丹社区委员会
// code: '001.001.031.014.205.002.007', // 杉杉控股
// code: '001.001.031.014.205.002.001.601', // 牡丹第一居民区总支部委员会
// code: '001.001.031.014.205.002.804', // 钦洋投资管理中心总支委员会
// code: '001.001.031.014.205.002.007', // 杉杉控股
// code: '001.001.031.014.205.003', // 机关事业单位
// code: '001.001.031.014.205.002.804', // 钦洋投资管理中心总支委员会
// code: '001.001.031.014.205.003.701', // 机关第一支部委员会
// code: '001.001.031.014.205.003', // 机关事业单位
})
// code: '001.001.031.014.205.003.701', // 机关第一支部委员会
})
},
3000
)
return
return
}
}
...
@@ -54,7 +56,7 @@ export default {
...
@@ -54,7 +56,7 @@ export default {
keys
:
'权限编码'
,
keys
:
'权限编码'
,
q
:
`paths @ "组织id" && string == "
${
orgid
}
"`
,
q
:
`paths @ "组织id" && string == "
${
orgid
}
"`
,
})
})
)?.[
0
]?.[
'权限编码'
]
||
''
)?.[
0
]?.[
'权限编码'
]
?.[
0
]
||
''
commit
(
'SET_AUTH'
,
{
userid
,
orgid
,
code
})
commit
(
'SET_AUTH'
,
{
userid
,
orgid
,
code
})
},
},
...
...
src/view/components/struct-modal.vue
View file @
689e07c5
...
@@ -613,6 +613,22 @@ const handleExpand = (val: string[]) => {
...
@@ -613,6 +613,22 @@ const handleExpand = (val: string[]) => {
curKey
.
value
=
curMenu
.
value
?.
key
curKey
.
value
=
curMenu
.
value
?.
key
return
return
}
}
if
(
expandedKeys
.
value
[
1
]
===
'3-menu'
)
{
menus
.
value
.
forEach
((
menu
)
=>
{
if
(
menu
.
key
===
'3-menu'
)
{
curMenu
.
value
=
menu
}
else
{
menu
.
children
&&
menu
.
children
.
forEach
((
child
)
=>
{
if
(
child
.
key
===
'3-menu'
)
{
curMenu
.
value
=
child
}
})
}
})
curKey
.
value
=
'3-menu'
return
}
curKey
.
value
=
expandedKeys
.
value
[
0
]
curKey
.
value
=
expandedKeys
.
value
[
0
]
const
cur
=
menus
.
value
.
find
((
e
)
=>
e
.
key
===
curKey
.
value
)
const
cur
=
menus
.
value
.
find
((
e
)
=>
e
.
key
===
curKey
.
value
)
subKey
.
value
=
null
subKey
.
value
=
null
...
@@ -777,13 +793,30 @@ async function setCommunityParty() {
...
@@ -777,13 +793,30 @@ async function setCommunityParty() {
const
bigSixChildren
:
any
[]
=
[]
const
bigSixChildren
:
any
[]
=
[]
const
twoNewChildren
:
any
[]
=
[]
const
twoNewChildren
:
any
[]
=
[]
const
datasource
=
data
.
filter
((
item
:
any
)
=>
item
[
'是否虚拟组织'
])
||
[]
const
datasource
=
data
.
filter
((
item
:
any
)
=>
item
[
'是否虚拟组织'
])
||
[]
data
.
forEach
((
item
:
any
)
=>
{
data
.
forEach
(
async
(
item
:
any
)
=>
{
if
(
item
[
'是否虚拟组织'
])
return
if
(
item
[
'是否虚拟组织'
])
return
if
(
item
[
'类别'
]
===
'居民区'
)
{
if
(
item
[
'类别'
]
===
'居民区'
)
{
bigSixChildren
.
push
(
item
)
bigSixChildren
.
push
(
item
)
}
else
if
(
item
[
'类别'
]
===
'两新'
)
{
}
else
if
(
item
[
'类别'
]
===
'两新'
&&
!
item
[
'党组织名称'
].
includes
(
'花木经济发展总公司'
)
&&
!
item
[
'党组织名称'
].
includes
(
'花木房地产开发经营'
)
&&
!
item
[
'党组织名称'
].
includes
(
'鑫荣勤力'
)
&&
!
item
[
'党组织名称'
].
includes
(
'上海钦洋投资管理中心总支委员会'
)
)
{
twoNewChildren
.
push
(
item
)
twoNewChildren
.
push
(
item
)
}
else
{
}
else
{
if
(
item
[
'党组织名称'
].
includes
(
'上海钦洋投资管理中心总支委员会'
))
{
const
children
=
await
checkHasChildren
(
item
)
item
.
key
=
'3-menu'
item
.
children
=
children
?.
map
((
child
:
any
,
index
:
number
)
=>
({
...
child
,
label
:
child
[
'党组织名称'
]
.
replace
(
'浦东新区花木街道'
,
''
)
.
replace
(
'中共'
,
''
),
key
:
item
.
key
+
'-'
+
(
index
+
1
),
}))
}
datasource
.
push
(
item
)
datasource
.
push
(
item
)
}
}
})
})
...
...
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