| | |
| | | <div class="title"> |
| | | <div class="logo"> |
| | | <img class="pics2" :src="logoPng"> |
| | | <span style="font-size: 40px;color: black">沙湾市安全培训</span> |
| | | <span style="font-size: 40px;color: black"></span> |
| | | <div style="width: 2px;height: 40px;background-color: #1C68A7;margin-top: 5px;margin-left: 15px;margin-right: 15px"></div> |
| | | <span style="font-size: 28px;color: white">危化品全生命周期管理系统</span> |
| | | </div> |
| | | <div class="content"> |
| | | <div class="imgBox"> |
| | | <div class="imG"></div> |
| | | <div class="imG"> |
| | | <img style="width: auto;height: 420px" :src="back"> |
| | | </div> |
| | | </div> |
| | | <div class="formBox"> |
| | | <div class="loginTitle">账号登录</div> |
| | |
| | | import menu from "@/layout/components/Sidebar/menu"; |
| | | import dataPng from "@/assets/images/login-data.png" |
| | | import searchPng from "@/assets/images/login-search.png" |
| | | import logoPng from "@/assets/logo/logo3.png" |
| | | import logoPng from "@/assets/logo/logo1.png" |
| | | import back from "@/assets/images/logo22.png" |
| | | import {ElMessage} from "element-plus"; |
| | | |
| | | const userStore = useUserStore() |
| | | const route = useRoute(); |
| | |
| | | // Cookies.set('routers',JSON.stringify(sidebarRouters.value)) |
| | | // } |
| | | const userInfo = JSON.parse(Cookies.get('userInfo')) |
| | | |
| | | if(userInfo.userType === 0) { |
| | | sidebarRouters.value = menu.adminMenu |
| | | Cookies.set('routers',JSON.stringify(sidebarRouters.value)) |
| | | }else { |
| | | sidebarRouters.value = menu.companyMenu |
| | | }else if(userInfo.userType === 1){ |
| | | const config = JSON.parse(Cookies.get('configInfo')) |
| | | if(config){ |
| | | if(config.useProd === 0){ |
| | | sidebarRouters.value = menu.companyMenu.filter(item => item.path != '/finishedBasicInfo') |
| | | }else { |
| | | sidebarRouters.value = menu.companyMenu |
| | | |
| | | } |
| | | }else { |
| | | ElMessage.warning('请联系管理员完善企业配置') |
| | | sidebarRouters.value = menu.companyMenu |
| | | } |
| | | Cookies.set('routers',JSON.stringify(sidebarRouters.value)) |
| | | }else if(userInfo.userType === 2){ |
| | | const config = JSON.parse(Cookies.get('configInfo')) |
| | | if(config){ |
| | | if(config.useProd === 0){ |
| | | sidebarRouters.value = menu.commonMenu.filter(item => item.path != '/finishedBasicInfo') |
| | | }else { |
| | | sidebarRouters.value = menu.commonMenu |
| | | } |
| | | }else { |
| | | // ElMessage.warning('请联系管理员完善企业配置') |
| | | sidebarRouters.value = menu.commonMenu |
| | | } |
| | | Cookies.set('routers',JSON.stringify(sidebarRouters.value)) |
| | | } |
| | | let path = "" |
| | |
| | | //background-repeat: no-repeat; |
| | | background-size: cover; |
| | | height: 100%; |
| | | min-height: 931px; |
| | | :deep(.el-form-item__content .el-form-item) { |
| | | display: block; |
| | | } |
| | |
| | | margin: 25px 0; |
| | | } |
| | | .imG{ |
| | | width: 500px; |
| | | height: 500px; |
| | | background-image: url(../assets/images/ad.png) ; |
| | | //width: 500px; |
| | | //height: 500px; |
| | | //background-image: url(../assets/images/logo11.jpg) ; |
| | | background-repeat: no-repeat; |
| | | position: absolute; |
| | | left: 30px; |
| | | left: -30px; |
| | | top: 30px; |
| | | } |
| | | .formBox{ |