Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
b9314b31
Commit
b9314b31
authored
Nov 03, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
变量名修改
parent
493bb620
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
branch.vue
src/components/Mine/Branch/branch.vue
+2
-2
roleType.ts
src/types/roleType.ts
+3
-3
transformRole.ts
src/utils/transformRole.ts
+1
-1
tabList.ts
src/views/withMenu/tabList.ts
+3
-3
No files found.
src/components/Mine/Branch/branch.vue
View file @
b9314b31
...
@@ -165,7 +165,7 @@ import { getUserMsg } from "@/utils/userMsg";
...
@@ -165,7 +165,7 @@ import { getUserMsg } from "@/utils/userMsg";
import
{
eRole
}
from
"@/types/roleType"
;
import
{
eRole
}
from
"@/types/roleType"
;
const
disableChat
=
computed
(()
=>
{
const
disableChat
=
computed
(()
=>
{
return
getUserMsg
()?.
role2
==
(
eRole
.
staff
||
eRole
.
doNotChat
);
return
getUserMsg
()?.
role2
==
(
eRole
.
staff
||
eRole
.
manager
);
});
});
const
addressService
=
new
AddressService
();
const
addressService
=
new
AddressService
();
...
@@ -305,7 +305,7 @@ const handleClickChatWithClientManager = async () => {
...
@@ -305,7 +305,7 @@ const handleClickChatWithClientManager = async () => {
});
});
};
};
const
isNotChatUser
=
getUserMsg
()?.
role2
===
eRole
.
doNotChat
;
const
isNotChatUser
=
getUserMsg
()?.
role2
===
eRole
.
manager
;
console
.
log
(
isNotChatUser
,
'show isNotChatUser'
);
console
.
log
(
isNotChatUser
,
'show isNotChatUser'
);
</
script
>
</
script
>
...
...
src/types/roleType.ts
View file @
b9314b31
export
enum
eRole
{
export
enum
eRole
{
staff
=
1
,
staff
=
1
,
// role中为客服经理+管理员 role2中为客服经理
user
=
2
,
user
=
2
,
// 用户
doNotChat
=
3
,
manager
=
3
,
//管理员
}
}
export
enum
eLevel
{
export
enum
eLevel
{
...
...
src/utils/transformRole.ts
View file @
b9314b31
...
@@ -6,6 +6,6 @@ export default (role: eNewRoleRelatedToBackEnd | '') => {
...
@@ -6,6 +6,6 @@ export default (role: eNewRoleRelatedToBackEnd | '') => {
}
else
if
(
role
===
''
)
{
}
else
if
(
role
===
''
)
{
return
eRole
.
user
return
eRole
.
user
}
else
{
}
else
{
return
eRole
.
doNotChat
return
eRole
.
manager
}
}
}
}
src/views/withMenu/tabList.ts
View file @
b9314b31
...
@@ -6,7 +6,7 @@ export default [
...
@@ -6,7 +6,7 @@ export default [
routeName
:
'Home'
,
routeName
:
'Home'
,
icon
:
'icon-shouye-tab-xuanze1'
,
icon
:
'icon-shouye-tab-xuanze1'
,
icon1
:
'icon-shouye-tab'
,
icon1
:
'icon-shouye-tab'
,
roles
:
[
eRole
.
user
,
eRole
.
staff
,
eRole
.
doNotChat
],
roles
:
[
eRole
.
user
,
eRole
.
staff
,
eRole
.
manager
],
showNotLogin
:
true
,
showNotLogin
:
true
,
},
},
{
{
...
@@ -23,7 +23,7 @@ export default [
...
@@ -23,7 +23,7 @@ export default [
routeName
:
'Loan'
,
routeName
:
'Loan'
,
icon
:
'icon-daikuan-tab-xuanze'
,
icon
:
'icon-daikuan-tab-xuanze'
,
icon1
:
'icon-daikuan-tab'
,
icon1
:
'icon-daikuan-tab'
,
roles
:
[
eRole
.
user
,
eRole
.
staff
,
eRole
.
doNotChat
],
roles
:
[
eRole
.
user
,
eRole
.
staff
,
eRole
.
manager
],
showNotLogin
:
true
,
showNotLogin
:
true
,
hideInReviewMode
:
true
,
hideInReviewMode
:
true
,
},
},
...
@@ -32,7 +32,7 @@ export default [
...
@@ -32,7 +32,7 @@ export default [
routeName
:
'Mine'
,
routeName
:
'Mine'
,
icon
:
'icon-wode-tabdianji'
,
icon
:
'icon-wode-tabdianji'
,
icon1
:
'icon-wode-tab'
,
icon1
:
'icon-wode-tab'
,
roles
:
[
eRole
.
user
,
eRole
.
staff
,
eRole
.
doNotChat
],
roles
:
[
eRole
.
user
,
eRole
.
staff
,
eRole
.
manager
],
showNotLogin
:
true
,
showNotLogin
:
true
,
},
},
]
]
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