diff --git a/src/layout/components/Header.vue b/src/layout/components/Header.vue index bb96c72..97af757 100644 --- a/src/layout/components/Header.vue +++ b/src/layout/components/Header.vue @@ -1,6 +1,6 @@ - @@ -41,12 +38,6 @@ onMounted(() => { deptName.value = localStorage.getItem("deptId") ? JSON.parse(localStorage.getItem("deptId"))[0].deptName : '' }) -// 路由跳转 -function goToHome() { - router.push(`/unitInformation`); - // window.location.href = "/"; -} - const active = ref(""); onMounted(() => { //登陆用户信息 diff --git a/src/router/index.js b/src/router/index.js index 8d59637..249512b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -42,7 +42,7 @@ export const publicRoutes = [ component: () => import("@/views/login/index") }, { - path: "/", + path: "/homeMy", name: "homeMy", component: () => import("@/views/homeMy/index") //街面巡防 }, @@ -56,6 +56,161 @@ export const publicRoutes = [ component: layout, redirect: "/user/department-ist", 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", 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", // name: "/basicsmanage", diff --git a/src/views/Training/SecurityQuestionBank/components/detailForm.vue b/src/views/Training/SecurityQuestionBank/components/detailForm.vue index 5be5d6d..e62704f 100644 --- a/src/views/Training/SecurityQuestionBank/components/detailForm.vue +++ b/src/views/Training/SecurityQuestionBank/components/detailForm.vue @@ -3,79 +3,131 @@
保安题库{{ title }}
- 保存 + 保存 关闭
- - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/src/views/securityManagement/personnelManagement/applicantPersonnel/index.vue b/src/views/securityManagement/personnelManagement/applicantPersonnel/index.vue index fcc830a..c1ed401 100644 --- a/src/views/securityManagement/personnelManagement/applicantPersonnel/index.vue +++ b/src/views/securityManagement/personnelManagement/applicantPersonnel/index.vue @@ -13,14 +13,17 @@ + @@ -47,16 +49,14 @@ import Search from '@/components/aboutTable/Search.vue'; import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js"; import PageTitle from "@/components/aboutTable/PageTitle.vue"; import AddTrainerDialog from "./components/addTrainerDialog.vue"; -import UploadDataDialog from "./components/uploadDataDialog.vue"; import selectTtaningDialog from "./components/selectTtaningDialog.vue"; const { proxy } = getCurrentInstance(); +const { D_BAXX_GWLX } = proxy.$dict("D_BAXX_GWLX") const trainerRef = ref(null); const selectTtaningRef = ref(null); -const uploadDataRef = ref(null); const queryFrom = ref({}); const isVisible = ref(false); -const uploadVisible = ref(false); const dialogVisible = ref(false); const searchBox = ref(null); const searchConfiger = ref([ @@ -98,7 +98,7 @@ const pageData = reactive({ { label: "姓名", prop: "xm" }, { label: "证件号码", prop: "zjhm" }, { label: "联系方式", prop: "lxdh" }, - { label: "岗位", prop: "gw" }, + { label: "岗位", prop: "gw", showSolt: true }, { label: "申请时间", prop: "xtCjsj" }, { label: "是否上传资料", prop: "pxgs", showSolt: true }, { label: "是否线上培训", prop: "sfpx", showSolt: true }, @@ -117,8 +117,6 @@ const tabHeightFn = () => { const addEdit = (type, row) => { if (type === 'select') { selectTtaningRef.value.open(row, type); - } else if (type === 'upload') { - uploadDataRef.value.open(row, type); } else { trainerRef.value.open(row, type); } @@ -151,7 +149,7 @@ const handleDelete = async (ids) => { await proxy.$modal.confirm("是否确认删除该培训人员?") try { - await qcckPost({ ids }, `/mosty-base/baxx/basq/remove`) + await qcckPost({ idList: ids }, `/mosty-base/baxx/basq/remove`) proxy.$modal.msgSuccess("删除成功"); await getList(); } catch (error) { diff --git a/src/views/securityManagement/personnelManagement/practitioner/components/addPractitionerDialog.vue b/src/views/securityManagement/personnelManagement/practitioner/components/addPractitionerDialog.vue index 46a0c74..eadd662 100644 --- a/src/views/securityManagement/personnelManagement/practitioner/components/addPractitionerDialog.vue +++ b/src/views/securityManagement/personnelManagement/practitioner/components/addPractitionerDialog.vue @@ -23,7 +23,7 @@ import { qcckPost } from "@/api/qcckApi.js"; import FormMessage from '@/components/aboutTable/FormMessage.vue' const { proxy } = getCurrentInstance() -const { D_BZ_WHCD } = proxy.$dict("D_BZ_WHCD"); +const { D_BZ_WHCD, D_BAXX_GWLX } = proxy.$dict("D_BZ_WHCD", "D_BAXX_GWLX"); const title = ref('新增从业人员') const loading = ref(false) const disabled = ref(false) @@ -64,7 +64,7 @@ const formList = reactive([ { label: "资格证类型", prop: "zgzlx", type: "input" }, { label: "资格证起始日期", prop: "zgzKssj", type: "date" }, { label: "资格证截至日期", prop: "zgzJssj", type: "date" }, - { label: "岗位", prop: "gw", type: "input" }, + { label: "岗位", prop: "gw", type: "select", options: D_BAXX_GWLX }, ], [ { label: "外派单位", prop: "wpdw", type: "input" }, diff --git a/src/views/securityManagement/personnelManagement/practitioner/index.vue b/src/views/securityManagement/personnelManagement/practitioner/index.vue index 3b2254f..9db36c9 100644 --- a/src/views/securityManagement/personnelManagement/practitioner/index.vue +++ b/src/views/securityManagement/personnelManagement/practitioner/index.vue @@ -13,7 +13,10 @@ +