| | |
| | | <top-nav id="topmenu-container" class="topmenu-container" v-if="settingsStore.topNav" /> |
| | | |
| | | <div class="right-menu"> |
| | | <div class="backBtn" @click="backToMenu">返回菜单</div> |
| | | <template v-if="appStore.device !== 'mobile'"> |
| | | <!-- <header-search id="header-search" class="right-menu-item" />--> |
| | | |
| | |
| | | import Cookies from "js-cookie"; |
| | | import {getUserById} from "@/api/sysUsers"; |
| | | import menu from "@/layout/components/Sidebar/menu"; |
| | | import userDialog from '@/views/onlineEducation/systemManage/user/components/userDialog.vue' |
| | | import userDialog from '@/views/build/conpanyFunctionConsult/staffManage/staffRegister/components/staffDialog.vue' |
| | | import router from "@/router"; |
| | | |
| | | const appStore = useAppStore() |
| | | const userStore = useUserStore() |
| | |
| | | if(getToken()){ |
| | | userInfo.value = JSON.parse(Cookies.get('userInfo')) |
| | | userName.value = userInfo.value.username |
| | | userTypeName.value = userInfo.value.userType == 0 ? '管理员' : userInfo.value.userType == 1 ? '企业级' :userInfo.value.userType == 2 ? '部门级':userInfo.value.userType == 3 ? '车间级' :userInfo.value.userType == 4 ? '其他' : '学员' |
| | | console.log("userInfo",userInfo.value ) |
| | | userTypeName.value = userInfo.value.userType == 0 ? '系统管理员' : userInfo.value.userType == 1 ? '企业管理员' :userInfo.value.userType == 2 ? '部门级':userInfo.value.userType == 3 ? '车间级' :userInfo.value.userType == 6 ? '企业用户' :userInfo.value.userType == 4 ? '其他' : '学员' |
| | | } |
| | | // getState(); |
| | | }) |
| | |
| | | } |
| | | |
| | | function getInfo() { |
| | | console.log("getInfo",userInfo.value) |
| | | reviewRef.value.openDialog('view',userInfo.value) |
| | | } |
| | | function editPsd() { |
| | |
| | | location.href = '/homePage'; |
| | | |
| | | }).catch(() => { }); |
| | | } |
| | | |
| | | const backToMenu = ()=>{ |
| | | router.push({path: '/menuPage'}) |
| | | } |
| | | |
| | | const emits = defineEmits(['setLayout']) |
| | |
| | | &:focus { |
| | | outline: none; |
| | | } |
| | | .backBtn{ |
| | | margin-right: 20px; |
| | | font-size: 16px; |
| | | cursor: pointer; |
| | | } |
| | | |
| | | .right-menu-item { |
| | | display: inline-block; |