更新页面
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<header class="headerWrapper">
|
<header class="headerWrapper">
|
||||||
<div class="logo flex align-center" @click="goToHome"><img width="45" class="mr10" src="@/assets/images/jinghui.png" alt="">保安管理</div>
|
<div class="logo flex align-center"><img width="45" class="mr10" src="@/assets/images/jinghui.png" alt="">保安管理</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<div><img src="@/assets/images/peo.png" /></div>
|
<div><img src="@/assets/images/peo.png" /></div>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
@ -19,9 +19,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div @click="goToHome">
|
|
||||||
<img src="@/assets/images/meun.png" />
|
|
||||||
</div> -->
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
</template>
|
</template>
|
||||||
@ -41,12 +38,6 @@ onMounted(() => {
|
|||||||
deptName.value = localStorage.getItem("deptId") ? JSON.parse(localStorage.getItem("deptId"))[0].deptName : ''
|
deptName.value = localStorage.getItem("deptId") ? JSON.parse(localStorage.getItem("deptId"))[0].deptName : ''
|
||||||
})
|
})
|
||||||
|
|
||||||
// 路由跳转
|
|
||||||
function goToHome() {
|
|
||||||
router.push(`/unitInformation`);
|
|
||||||
// window.location.href = "/";
|
|
||||||
}
|
|
||||||
|
|
||||||
const active = ref("");
|
const active = ref("");
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
//登陆用户信息
|
//登陆用户信息
|
||||||
|
|||||||
@ -42,7 +42,7 @@ export const publicRoutes = [
|
|||||||
component: () => import("@/views/login/index")
|
component: () => import("@/views/login/index")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/",
|
path: "/homeMy",
|
||||||
name: "homeMy",
|
name: "homeMy",
|
||||||
component: () => import("@/views/homeMy/index") //街面巡防
|
component: () => import("@/views/homeMy/index") //街面巡防
|
||||||
},
|
},
|
||||||
@ -56,6 +56,161 @@ export const publicRoutes = [
|
|||||||
component: layout,
|
component: layout,
|
||||||
redirect: "/user/department-ist",
|
redirect: "/user/department-ist",
|
||||||
children: [
|
children: [
|
||||||
|
|
||||||
|
{
|
||||||
|
path: "/",
|
||||||
|
name: "unitInformation",
|
||||||
|
component: () =>
|
||||||
|
import("@/views/securityManagement/unitInformation/index"),
|
||||||
|
meta: {
|
||||||
|
title: "单位信息",
|
||||||
|
icon: "personnel"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/personnelManagement",
|
||||||
|
name: "personnelManagement",
|
||||||
|
meta: {
|
||||||
|
title: "人员管理",
|
||||||
|
icon: "personnel"
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: "/personnelManagement/practitioner",
|
||||||
|
name: "practitioner",
|
||||||
|
component: () =>
|
||||||
|
import("@/views/securityManagement/personnelManagement/practitioner/index"),
|
||||||
|
meta: {
|
||||||
|
title: "从业人员管理",
|
||||||
|
icon: "personnel"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/personnelManagement/applicantPersonnel",
|
||||||
|
name: "applicantPersonnel",
|
||||||
|
component: () =>
|
||||||
|
import("@/views/securityManagement/personnelManagement/applicantPersonnel/index"),
|
||||||
|
meta: {
|
||||||
|
title: "申请人员",
|
||||||
|
icon: "personnel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/trainingManagement",
|
||||||
|
name: "/trainingManagement",
|
||||||
|
meta: {
|
||||||
|
title: "培训管理",
|
||||||
|
icon: "personnel"
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: "/trainingManagement/trainer",
|
||||||
|
name: "trainer",
|
||||||
|
component: () =>
|
||||||
|
import("@/views/securityManagement/trainingManagement/trainer/index"),
|
||||||
|
meta: {
|
||||||
|
title: "培训人员",
|
||||||
|
icon: "personnel"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/trainingManagement/personnelTraining",
|
||||||
|
name: "personnelTraining",
|
||||||
|
component: () =>
|
||||||
|
import("@/views/securityManagement/trainingManagement/personnelTraining/index"),
|
||||||
|
meta: {
|
||||||
|
title: "保安待培训人员管理",
|
||||||
|
icon: "personnel"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/trainingManagement/trainingProject",
|
||||||
|
name: "trainingProject",
|
||||||
|
component: () =>
|
||||||
|
import("@/views/securityManagement/trainingManagement/trainingProject/index"),
|
||||||
|
meta: {
|
||||||
|
title: "保安培训项目管理",
|
||||||
|
icon: "personnel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/examManagement",
|
||||||
|
name: "examManagement",
|
||||||
|
component: () =>
|
||||||
|
import("@/views/securityManagement/examManagement/index"),
|
||||||
|
meta: {
|
||||||
|
title: "保安考试管理",
|
||||||
|
icon: "personnel"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/training",
|
||||||
|
name: "training",
|
||||||
|
meta: {
|
||||||
|
title: "培训中心",
|
||||||
|
icon: "personnel"
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: "/training/securityTrainingVideo",
|
||||||
|
name: "securityTrainingVideo",
|
||||||
|
component: () => import("@/views/Training/SecurityTrainingVideo/index"),
|
||||||
|
meta: {
|
||||||
|
title: "保安培训视频",
|
||||||
|
icon: "personnel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/training/securityQuestionBank",
|
||||||
|
name: "securityQuestionBank",
|
||||||
|
component: () => import("@/views/Training/SecurityQuestionBank/index"),
|
||||||
|
meta: {
|
||||||
|
title: "保安题库",
|
||||||
|
icon: "personnel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/training/securityTrainingSyllabus",
|
||||||
|
name: "securityTrainingSyllabus",
|
||||||
|
component: () => import("@/views/Training/SecurityTrainingSyllabus/index"),
|
||||||
|
meta: {
|
||||||
|
title: "保安培训教学大纲",
|
||||||
|
icon: "personnel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/training/annualInspectionTraining",
|
||||||
|
name: "annualInspectionTraining",
|
||||||
|
component: () => import("@/views/Training/AnnualInspectionTraining/index"),
|
||||||
|
meta: {
|
||||||
|
title: "年检培训",
|
||||||
|
icon: "personnel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/training/annualInspectionApplicants",
|
||||||
|
name: "annualInspectionApplicants",
|
||||||
|
component: () => import("@/views/Training/AnnualInspectionApplicants/index"),
|
||||||
|
meta: {
|
||||||
|
title: "年检申请人员",
|
||||||
|
icon: "personnel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: "/training/annualInspection",
|
||||||
|
name: "annualInspection",
|
||||||
|
component: () => import("@/views/Training/AnnualInspection/index"),
|
||||||
|
meta: {
|
||||||
|
title: "年检",
|
||||||
|
icon: "personnel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/systemConfig",
|
path: "/systemConfig",
|
||||||
name: "systemConfigModel",
|
name: "systemConfigModel",
|
||||||
@ -305,160 +460,6 @@ export const publicRoutes = [
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: "/unitInformation",
|
|
||||||
name: "unitInformation",
|
|
||||||
component: () =>
|
|
||||||
import("@/views/securityManagement/unitInformation/index"),
|
|
||||||
meta: {
|
|
||||||
title: "单位信息",
|
|
||||||
icon: "personnel"
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/personnelManagement",
|
|
||||||
name: "personnelManagement",
|
|
||||||
meta: {
|
|
||||||
title: "人员管理",
|
|
||||||
icon: "personnel"
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: "/personnelManagement/practitioner",
|
|
||||||
name: "practitioner",
|
|
||||||
component: () =>
|
|
||||||
import("@/views/securityManagement/personnelManagement/practitioner/index"),
|
|
||||||
meta: {
|
|
||||||
title: "从业人员管理",
|
|
||||||
icon: "personnel"
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/personnelManagement/applicantPersonnel",
|
|
||||||
name: "applicantPersonnel",
|
|
||||||
component: () =>
|
|
||||||
import("@/views/securityManagement/personnelManagement/applicantPersonnel/index"),
|
|
||||||
meta: {
|
|
||||||
title: "申请人员",
|
|
||||||
icon: "personnel"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/trainingManagement",
|
|
||||||
name: "/trainingManagement",
|
|
||||||
meta: {
|
|
||||||
title: "培训管理",
|
|
||||||
icon: "personnel"
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: "/trainingManagement/trainer",
|
|
||||||
name: "trainer",
|
|
||||||
component: () =>
|
|
||||||
import("@/views/securityManagement/trainingManagement/trainer/index"),
|
|
||||||
meta: {
|
|
||||||
title: "培训人员",
|
|
||||||
icon: "personnel"
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/trainingManagement/personnelTraining",
|
|
||||||
name: "personnelTraining",
|
|
||||||
component: () =>
|
|
||||||
import("@/views/securityManagement/trainingManagement/personnelTraining/index"),
|
|
||||||
meta: {
|
|
||||||
title: "保安待培训人员管理",
|
|
||||||
icon: "personnel"
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/trainingManagement/trainingProject",
|
|
||||||
name: "trainingProject",
|
|
||||||
component: () =>
|
|
||||||
import("@/views/securityManagement/trainingManagement/trainingProject/index"),
|
|
||||||
meta: {
|
|
||||||
title: "保安培训项目管理",
|
|
||||||
icon: "personnel"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/examManagement",
|
|
||||||
name: "examManagement",
|
|
||||||
component: () =>
|
|
||||||
import("@/views/securityManagement/examManagement/index"),
|
|
||||||
meta: {
|
|
||||||
title: "保安考试管理",
|
|
||||||
icon: "personnel"
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/training",
|
|
||||||
name: "training",
|
|
||||||
meta: {
|
|
||||||
title: "培训中心",
|
|
||||||
icon: "personnel"
|
|
||||||
},
|
|
||||||
children: [
|
|
||||||
{
|
|
||||||
path: "/training/securityTrainingVideo",
|
|
||||||
name: "securityTrainingVideo",
|
|
||||||
component: () => import("@/views/Training/SecurityTrainingVideo/index"),
|
|
||||||
meta: {
|
|
||||||
title: "保安培训视频",
|
|
||||||
icon: "personnel"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/training/securityQuestionBank",
|
|
||||||
name: "securityQuestionBank",
|
|
||||||
component: () => import("@/views/Training/SecurityQuestionBank/index"),
|
|
||||||
meta: {
|
|
||||||
title: "保安题库",
|
|
||||||
icon: "personnel"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/training/securityTrainingSyllabus",
|
|
||||||
name: "securityTrainingSyllabus",
|
|
||||||
component: () => import("@/views/Training/SecurityTrainingSyllabus/index"),
|
|
||||||
meta: {
|
|
||||||
title: "保安培训教学大纲",
|
|
||||||
icon: "personnel"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/training/annualInspectionTraining",
|
|
||||||
name: "annualInspectionTraining",
|
|
||||||
component: () => import("@/views/Training/AnnualInspectionTraining/index"),
|
|
||||||
meta: {
|
|
||||||
title: "年检培训",
|
|
||||||
icon: "personnel"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/training/annualInspectionApplicants",
|
|
||||||
name: "annualInspectionApplicants",
|
|
||||||
component: () => import("@/views/Training/AnnualInspectionApplicants/index"),
|
|
||||||
meta: {
|
|
||||||
title: "年检申请人员",
|
|
||||||
icon: "personnel"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: "/training/annualInspection",
|
|
||||||
name: "annualInspection",
|
|
||||||
component: () => import("@/views/Training/AnnualInspection/index"),
|
|
||||||
meta: {
|
|
||||||
title: "年检",
|
|
||||||
icon: "personnel"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
]
|
|
||||||
}
|
|
||||||
// {
|
// {
|
||||||
// path: "/basicsmanage",
|
// path: "/basicsmanage",
|
||||||
// name: "/basicsmanage",
|
// name: "/basicsmanage",
|
||||||
|
|||||||
@ -141,8 +141,7 @@ const handleLogin = () => {
|
|||||||
loading.value = false;
|
loading.value = false;
|
||||||
// 登录后操作;
|
// 登录后操作;
|
||||||
if (res.deptList.length === 1) {
|
if (res.deptList.length === 1) {
|
||||||
router.push("/user/department-ist");
|
window.location.href = "/";
|
||||||
// window.location.href = "/";
|
|
||||||
} else {
|
} else {
|
||||||
deptList.value = [...res.deptList];
|
deptList.value = [...res.deptList];
|
||||||
loginDialog.value = true;
|
loginDialog.value = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user