Commit b9314b31 authored by chenqikuai's avatar chenqikuai

变量名修改

parent 493bb620
...@@ -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>
......
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 {
......
...@@ -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
} }
} }
...@@ -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,
}, },
] ]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment