Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
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
吴迪
gs1
Commits
259d7711
Commit
259d7711
authored
Dec 26, 2021
by
Jianli Ou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
侧边栏处理
分中心管理员去除切换所属分中心功能
parent
fc6d8bf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
41 deletions
+43
-41
certificationDetail.vue
src/views/MyManage/Admin/certificationDetail.vue
+3
-1
index.vue
src/views/MyManage/index.vue
+40
-40
No files found.
src/views/MyManage/Admin/certificationDetail.vue
View file @
259d7711
<
template
>
<div
class=
"gs-admin-certification-detail"
>
<div
class=
"to-sub-center"
v-if=
"subCenter"
>
<div
class=
"to-sub-center"
v-if=
"subCenter
&& !isAdminBranch
"
>
企业所属分中心:
{{
subCenterName
}}
<el-popover
placement=
"left"
...
...
@@ -93,6 +93,7 @@ export default {
},
data
()
{
return
{
isAdminBranch
:
false
,
visible
:
false
,
dialogVisible
:
false
,
branchList
:
window
.
CodeTable
.
ANCCBranches
,
...
...
@@ -505,6 +506,7 @@ export default {
}
},
mounted
()
{
this
.
isAdminBranch
=
JSON
.
parse
(
localStorage
.
getItem
(
'gs-user'
)).
type
===
'adminBranch'
this
.
initData
()
}
}
...
...
src/views/MyManage/index.vue
View file @
259d7711
...
...
@@ -192,20 +192,20 @@ export default {
{
id
:
uuid
(
"gs_nav"
),
name
:
"实名认证业务审核"
,
index
:
0
,
index
:
1
,
link
:
""
,
children
:
[
{
id
:
uuid
(
"gs_nav"
),
name
:
"企业实名认证"
,
index
:
0
,
link
:
"/MyManage/admin/check"
,
link
:
"/MyManage/admin/check
?menu=1
"
,
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"企业实名认证变更"
,
index
:
1
,
link
:
"/MyManage/admin/check"
,
link
:
"/MyManage/admin/check
?menu=2
"
,
},
],
}
...
...
@@ -224,44 +224,44 @@ export default {
// // 2.系统成员
// // 3.管理员
// // 4.分中心管理员
//
if (user.type === 'admin') {
//
this.userType = ADMIN;
//
} else if (user.type === 'adminBranch') {
//
this.userType = ADMINBRANCH;
//
} else if (user.type === 'verify') {
//
this.userType = SYSTEM_MEMBER;
//
} else {
//
this.userType = UN_VERIFY;
//
}
//
//
if (this.userType === UN_VERIFY) {
//
if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
//
this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
//
}
//
if (this.loginInfo.userType === 3 && this.loginInfo.isQY === 1) {
//
this.$store.commit("system/SET_SUB_NAV", this.isQYRouterList);
//
return
//
}
//
this.$store.commit("system/SET_SUB_NAV", this.routerList);
//
} else if (this.userType === SYSTEM_MEMBER) {
//
if (this.loginInfo.userType !== 3) { // 业务大厅用户不展示厂商实名认证菜单
//
this.routerList[1].children = this.routerList[1].children.filter(item => item.index !== 1)
//
}
//
this.routerList[0].link = '/MyManage/SystemMember/index',
//
this.routerList[2].children.push({
//
id: uuid("gs_nav"),
//
name: "企业信息",
//
index: 3,
//
link: '/MyManage/SystemMember/companyInfo'
//
})
//
this.$store.commit("system/SET_SUB_NAV", this.routerList);
//
} else if (this.userType === ADMIN) {
//
this.$store.commit("system/SET_SUB_NAV", this.adminRouterList);
//
} else if (this.userType === ADMINBRANCH) {
//
this.$store.commit("system/SET_SUB_NAV", this.adminBranchRouterList);
//
}
if
(
user
.
type
===
'admin'
)
{
this
.
userType
=
ADMIN
;
}
else
if
(
user
.
type
===
'adminBranch'
)
{
this
.
userType
=
ADMINBRANCH
;
}
else
if
(
user
.
type
===
'verify'
)
{
this
.
userType
=
SYSTEM_MEMBER
;
}
else
{
this
.
userType
=
UN_VERIFY
;
}
if
(
this
.
userType
===
UN_VERIFY
)
{
if
(
this
.
loginInfo
.
userType
!==
3
)
{
// 业务大厅用户不展示厂商实名认证菜单
this
.
routerList
[
1
].
children
=
this
.
routerList
[
1
].
children
.
filter
(
item
=>
item
.
index
!==
1
)
}
if
(
this
.
loginInfo
.
userType
===
3
&&
this
.
loginInfo
.
isQY
===
1
)
{
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
this
.
isQYRouterList
);
return
}
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
this
.
routerList
);
}
else
if
(
this
.
userType
===
SYSTEM_MEMBER
)
{
if
(
this
.
loginInfo
.
userType
!==
3
)
{
// 业务大厅用户不展示厂商实名认证菜单
this
.
routerList
[
1
].
children
=
this
.
routerList
[
1
].
children
.
filter
(
item
=>
item
.
index
!==
1
)
}
this
.
routerList
[
0
].
link
=
'/MyManage/SystemMember/index'
,
this
.
routerList
[
2
].
children
.
push
({
id
:
uuid
(
"gs_nav"
),
name
:
"企业信息"
,
index
:
3
,
link
:
'/MyManage/SystemMember/companyInfo'
})
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
this
.
routerList
);
}
else
if
(
this
.
userType
===
ADMIN
)
{
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
this
.
adminRouterList
);
}
else
if
(
this
.
userType
===
ADMINBRANCH
)
{
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
this
.
adminBranchRouterList
);
}
this
.
$store
.
commit
(
"system/SET_SUB_NAV"
,
this
.
routerList
);
//
this.$store.commit("system/SET_SUB_NAV", this.routerList);
},
methods
:
{},
};
...
...
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