'修改图片参数转换处理'

This commit is contained in:
esacpe
2025-09-26 16:08:24 +08:00
parent 5208ce4fde
commit 7a19a82318
10 changed files with 595 additions and 465 deletions

View File

@ -14,42 +14,45 @@ const whiteList = ['/login','/', '/oatuh_login', '/sso_redirect', '/editPassword
* next 往下走 * next 往下走
*/ */
let onRun = true; let onRun = true;
// router.beforeEach(async (to, from, next) => { router.beforeEach(async (to, from, next) => {
// // 存在 token ,进入主页 // 存在 token ,进入主页
// // if (store.state.user.token) { // if (store.state.user.token) {
// // 快捷访问 // 快捷访问
// if (store.getters.token) { if (store.getters.token) {
// // 判断用户资料是否获取 // 判断用户资料是否获取
// // 若不存在用户信息,则需要获取用户信息 // 若不存在用户信息,则需要获取用户信息
// // 触发获取用户信息的 action并获取用户当前权限 // 触发获取用户信息的 action并获取用户当前权限
// await store.commit('permission/setRouteReady', true) await store.commit('permission/setRouteReady', true)
// // 添加完动态路由之后,需要在进行一次主动跳转 // 添加完动态路由之后,需要在进行一次主动跳转
// const afterMenuList = await getItem('menusPermission'); const afterMenuList = await getItem('menusPermission');
// // 处理用户权限,筛选出需要添加的权限 // 处理用户权限,筛选出需要添加的权限
// if (store.state.permission.routes == 0) { if (store.state.permission.routes == 0) {
// const filterRoutes = await store.dispatch('permission/filterRoutes', afterMenuList) const filterRoutes = await store.dispatch('permission/filterRoutes', afterMenuList)
// filterRoutes.forEach(item => {
// router.addRoute(item) console.log(filterRoutes);
// })
// next({ filterRoutes.forEach(item => {
// ...to, router.addRoute(item)
// replace: true })
// }) next({
// } else { ...to,
// next() replace: true
// } })
// // 利用 addRoute 循环添加 } else {
// } else { next()
// const isOatuh = getItem('isOatuh') }
// // 没有token的情况下可以进入白名单 // 利用 addRoute 循环添加
// if (whiteList.indexOf(to.path) > -1) { } else {
// next() const isOatuh = getItem('isOatuh')
// } else { // 没有token的情况下可以进入白名单
// if (isOatuh) { if (whiteList.indexOf(to.path) > -1) {
// next('/oatuh_login') next()
// } else { } else {
// next('/login') if (isOatuh) {
// } next('/oatuh_login')
// } } else {
// } next('/login')
// }) }
}
}
})

View File

@ -15,7 +15,270 @@ import store from "@/store";
* 私有路由表 * 私有路由表
*/ */
export const privateRoutes = []; export const privateRoutes = [
{
path: "/",
name: "unitManagement",
component: layout,
redirect: "/unitManagement/unitInformation",
meta: {
title: "单位管理",
icon: "personnel"
},
children: [
{
path: "/unitManagement/unitInformation",
name: "unitInformation",
component: () =>
import("@/views/securityManagement/unitManagement/unitInformation/index"),
meta: {
title: "单位信息",
icon: "personnel"
},
}
]
},
{
path: "/personnelManagement",
name: "personnelManagement",
component: layout,
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",
component: layout,
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: "/trainingManagement/examManagement",
name: "examManagement",
component: () =>
import("@/views/securityManagement/trainingManagement/examManagement/index"),
meta: {
title: "保安考试管理",
icon: "personnel"
},
},
]
},
{
path: "/training",
name: "training",
component: layout,
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: "/njxx",
name: "njxx",
component: layout,
meta: {
title: "年检信息",
icon: "personnel"
},
children: [
{
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",
component: layout,
meta: {
title: "系统管理",
icon: "personnel"
},
children: [
{
path: "/user/userList",
name: "userList",
component: () =>
import("@/views/backOfficeSystem/systemConfig/user-list/index"),
meta: {
title: "用户管理",
icon: "role"
}
},
{
path: "/user/role",
name: "userRoleIndex",
component: () =>
import("@/views/backOfficeSystem/systemConfig/role-list/index"),
meta: {
title: "角色列表",
icon: "role"
}
},
{
path: "/user/menuList",
name: "menuList",
component: () =>
import("@/views/backOfficeSystem/systemConfig/menu-list/index"),
meta: {
title: "菜单管理",
icon: "personnel-manage"
}
},
{
path: "/dict/detail",
name: "dictDetail",
component: () =>
import("@/views/backOfficeSystem/systemConfig/dict/detail"),
meta: {
title: "字典数据"
}
},
{
path: "/dict/index",
name: "dictIndex",
component: () =>
import("@/views/backOfficeSystem/systemConfig/dict/index"),
meta: {
title: "字典列表",
icon: "article-ranking"
}
},
{
path: "/user/deptAllocationUser/:id",
name: "deptAllocationUser",
component: () =>
import(
"@/views/backOfficeSystem/systemConfig/department-list/deptAllocationUser"
),
meta: {
title: "管理用户"
}
},
{
path: "/user/allocationUser/:id",
name: "allocationUser",
component: () =>
import(
"@/views/backOfficeSystem/systemConfig/role-list/allocationUser"
),
meta: {
title: "分配用户"
}
},
]
},
];
/** /**
* 公开路由表 * 公开路由表
@ -51,424 +314,270 @@ export const publicRoutes = [
// name: "dataBI", // name: "dataBI",
// component: () => import("@/views/dataBI/index") //警保 // component: () => import("@/views/dataBI/index") //警保
// }, // },
{ // {
path: "/editPassword", // 注意:带有路径"/"的记录中的组件"默认"是一个不返回 Promise 的函数 // path: "/editPassword", // 注意:带有路径"/"的记录中的组件"默认"是一个不返回 Promise 的函数
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: "/njxx",
name: "njxx",
meta: {
title: "年检信息",
icon: "personnel"
},
children: [
{
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: "/",
// name: "systemConfigModel", // name: "unitInformation",
// component: () =>
// import("@/views/securityManagement/unitInformation/index"),
// meta: { // meta: {
// title: "系统管理", // title: "单位信息",
// icon: "personnel" // icon: "personnel"
// }, // },
// children: [ // },
// { // {
// path: "/user/department-ist", // path: "/systemConfig",
// name: "departmentList", // name: "systemConfigModel",
// component: () => // meta: {
// import( // title: "系统管理",
// "@/views/backOfficeSystem/systemConfig/department-list/index" // icon: "personnel"
// ), // },
// meta: { // children: [
// title: "部门管理", // {
// icon: "personnel-manage" // path: "/user/department-ist",
// } // name: "departmentList",
// }, // component: () =>
// { // import(
// path: "/user/userList", // "@/views/backOfficeSystem/systemConfig/department-list/index"
// name: "userList", // ),
// component: () => // meta: {
// import("@/views/backOfficeSystem/systemConfig/user-list/index"), // title: "部门管理",
// meta: { // icon: "personnel-manage"
// title: "用户管理", // }
// icon: "role" // },
// } // {
// }, // path: "/user/userList",
// { // name: "userList",
// path: "/user/role", // component: () =>
// name: "userRoleIndex", // import("@/views/backOfficeSystem/systemConfig/user-list/index"),
// component: () => // meta: {
// import("@/views/backOfficeSystem/systemConfig/role-list/index"), // title: "用户管理",
// meta: { // icon: "role"
// title: "角色列表", // }
// icon: "role" // },
// } // {
// }, // path: "/user/role",
// { // name: "userRoleIndex",
// path: "/user/menuList", // component: () =>
// name: "menuList", // import("@/views/backOfficeSystem/systemConfig/role-list/index"),
// component: () => // meta: {
// import("@/views/backOfficeSystem/systemConfig/menu-list/index"), // title: "角色列表",
// meta: { // icon: "role"
// title: "菜单管理", // }
// icon: "personnel-manage" // },
// } // {
// }, // path: "/user/menuList",
// { // name: "menuList",
// path: "/user/publicSecurity", // component: () =>
// name: "publicSecurity", // import("@/views/backOfficeSystem/systemConfig/menu-list/index"),
// component: () => // meta: {
// import( // title: "菜单管理",
// "@/views/backOfficeSystem/systemConfig/publicSecurity/index" // icon: "personnel-manage"
// ), // }
// meta: { // },
// title: "公安机关要素", // {
// icon: "personnel-manage" // path: "/user/publicSecurity",
// } // name: "publicSecurity",
// }, // component: () =>
// { // import(
// path: "/dict/detail", // "@/views/backOfficeSystem/systemConfig/publicSecurity/index"
// name: "dictDetail", // ),
// component: () => // meta: {
// import("@/views/backOfficeSystem/systemConfig/dict/detail"), // title: "公安机关要素",
// meta: { // icon: "personnel-manage"
// title: "字典数据" // }
// } // },
// }, // {
// { // path: "/dict/detail",
// path: "/dict/index", // name: "dictDetail",
// name: "dictIndex", // component: () =>
// component: () => // import("@/views/backOfficeSystem/systemConfig/dict/detail"),
// import("@/views/backOfficeSystem/systemConfig/dict/index"), // meta: {
// meta: { // title: "字典数据"
// title: "字典列表", // }
// icon: "article-ranking" // },
// } // {
// }, // path: "/dict/index",
// { // name: "dictIndex",
// path: "/user/job", // component: () =>
// name: "userJob", // import("@/views/backOfficeSystem/systemConfig/dict/index"),
// component: () => // meta: {
// import("@/views/backOfficeSystem/systemConfig/job-list/index"), // title: "字典列表",
// meta: { // icon: "article-ranking"
// title: "岗位列表", // }
// icon: "personnel-manage" // },
// } // {
// }, // path: "/user/job",
// { // name: "userJob",
// path: "/user/deptAllocationUser/:id", // component: () =>
// name: "deptAllocationUser", // import("@/views/backOfficeSystem/systemConfig/job-list/index"),
// component: () => // meta: {
// import( // title: "岗位列表",
// "@/views/backOfficeSystem/systemConfig/department-list/deptAllocationUser" // icon: "personnel-manage"
// ), // }
// meta: { // },
// title: "管理用户" // {
// } // path: "/user/deptAllocationUser/:id",
// }, // name: "deptAllocationUser",
// { // component: () =>
// path: "/user/allocationUser/:id", // import(
// name: "allocationUser", // "@/views/backOfficeSystem/systemConfig/department-list/deptAllocationUser"
// component: () => // ),
// import( // meta: {
// "@/views/backOfficeSystem/systemConfig/role-list/allocationUser" // title: "管理用户"
// ), // }
// meta: { // },
// title: "分配用户" // {
// } // path: "/user/allocationUser/:id",
// }, // name: "allocationUser",
// { // component: () =>
// path: "/sys/systemFxMx", // import(
// name: "systemFxMx", // "@/views/backOfficeSystem/systemConfig/role-list/allocationUser"
// component: () => // ),
// import("@/views/backOfficeSystem/systemConfig/systemFxMx/index"), // meta: {
// meta: { // title: "分配用户"
// title: "系统分析模型", // }
// icon: "personnel-manage" // },
// } // {
// }, // path: "/sys/systemFxMx",
// // { // name: "systemFxMx",
// // path: "/sys/ysjq", // component: () =>
// // name: "ysjq", // import("@/views/backOfficeSystem/systemConfig/systemFxMx/index"),
// // component: () => import("@/views/backOfficeSystem/systemConfig/ysjq/index"), // meta: {
// // meta: { // title: "系统分析模型",
// // title: "演示警情", // icon: "personnel-manage"
// // icon: "personnel-manage" // }
// // } // },
// // }, // {
// { // path: "/sys/ysjq",
// path: "/user/systemConfig", // name: "ysjq",
// name: "systemConfig", // component: () => import("@/views/backOfficeSystem/systemConfig/ysjq/index"),
// component: () => // meta: {
// import( // title: "演示警情",
// "@/views/backOfficeSystem/systemConfig/system-config-list/index" // icon: "personnel-manage"
// ), // }
// meta: { // },
// title: "系统配置", // {
// icon: "personnel-manage" // path: "/user/systemConfig",
// } // name: "systemConfig",
// }, // component: () =>
// import(
// "@/views/backOfficeSystem/systemConfig/system-config-list/index"
// ),
// meta: {
// title: "系统配置",
// icon: "personnel-manage"
// }
// },
// { // {
// path: "/user/systemVersion", // path: "/user/systemVersion",
// name: "systemVersion", // name: "systemVersion",
// component: () => // component: () =>
// import( // import(
// "@/views/backOfficeSystem/systemConfig/system-version-list/index" // "@/views/backOfficeSystem/systemConfig/system-version-list/index"
// ), // ),
// meta: { // meta: {
// title: "系统版本管理", // title: "系统版本管理",
// icon: "personnel-manage" // icon: "personnel-manage"
// } // }
// }, // },
// { // {
// path: "/user/useQk", // path: "/user/useQk",
// name: "useQk", // name: "useQk",
// component: () => // component: () =>
// import("@/views/backOfficeSystem/systemConfig/useQk/index"), // import("@/views/backOfficeSystem/systemConfig/useQk/index"),
// meta: { // meta: {
// title: "系统使用情况", // title: "系统使用情况",
// icon: "personnel-manage" // icon: "personnel-manage"
// } // }
// }, // },
// { // {
// path: "/user/zdqyFz", // path: "/user/zdqyFz",
// name: "zdqyFz", // name: "zdqyFz",
// component: () => // component: () =>
// import("@/views/backOfficeSystem/systemConfig/zdqyFz/index"), // import("@/views/backOfficeSystem/systemConfig/zdqyFz/index"),
// meta: { // meta: {
// title: "重点区域分值", // title: "重点区域分值",
// icon: "personnel-manage" // icon: "personnel-manage"
// } // }
// }, // },
// { // {
// path: "/user/log", // path: "/user/log",
// name: "/user/log", // name: "/user/log",
// meta: { // meta: {
// title: "日志", // title: "日志",
// icon: "article" // icon: "article"
// }, // },
// children: [ // children: [
// { // {
// path: "/user/operateLog", // path: "/user/operateLog",
// name: "/user/operateLog", // name: "/user/operateLog",
// component: () => // component: () =>
// import( // import(
// "@/views/backOfficeSystem/systemConfig/log-manage/operateLog/index" // "@/views/backOfficeSystem/systemConfig/log-manage/operateLog/index"
// ), // ),
// meta: { // meta: {
// title: "操作日志", // title: "操作日志",
// icon: "article-ranking" // icon: "article-ranking"
// } // }
// }, // },
// { // {
// path: "/user/loginLog", // path: "/user/loginLog",
// name: "/user/loginLog", // name: "/user/loginLog",
// component: () => // component: () =>
// import( // import(
// "@/views/backOfficeSystem/systemConfig/log-manage/loginLog/index" // "@/views/backOfficeSystem/systemConfig/log-manage/loginLog/index"
// ), // ),
// meta: { // meta: {
// title: "登录日志", // title: "登录日志",
// icon: "article-ranking" // icon: "article-ranking"
// } // }
// } // }
// ] // ]
// }, // },
// { // {
// path: "/developer", // path: "/developer",
// name: "developer", // name: "developer",
// component: () => import("@/views/developer/index"), // component: () => import("@/views/developer/index"),
// meta: { // meta: {
// title: "开发者中心", // title: "开发者中心",
// icon: "article-ranking" // icon: "article-ranking"
// } // }
// }, // },
// { // {
// //如果三级 需要把路由注册出来 // //如果三级 需要把路由注册出来
// path: "/user/operateLog", // path: "/user/operateLog",
// name: "/user/operateLog", // name: "/user/operateLog",
// component: () => // component: () =>
// import( // import(
// "@/views/backOfficeSystem/systemConfig/log-manage/operateLog/index" // "@/views/backOfficeSystem/systemConfig/log-manage/operateLog/index"
// ) // )
// }, // },
// { // {
// path: "/user/loginLog", // path: "/user/loginLog",
// name: "/user/loginLog", // name: "/user/loginLog",
// component: () => // component: () =>
// import( // import(
// "@/views/backOfficeSystem/systemConfig/log-manage/loginLog/index" // "@/views/backOfficeSystem/systemConfig/log-manage/loginLog/index"
// ) // )
// }, // },
// { // {
// path: "/tool/gen-edit/index/:tableId", // path: "/tool/gen-edit/index/:tableId",
// name: "gen-edit", // name: "gen-edit",
// component: () => // component: () =>
// import("@/views/backOfficeSystem/systemConfig/gen/editTable"), // import("@/views/backOfficeSystem/systemConfig/gen/editTable"),
// meta: { // meta: {
// title: "代码生成编辑" // title: "代码生成编辑"
// } // }
// } // }
// ] // ]
// }, // },
// { // {
// path: "/basicsmanage", // path: "/basicsmanage",
@ -1425,8 +1534,8 @@ export const publicRoutes = [
// } // }
// ] // ]
// } // }
] // ]
} // }
]; ];
const router = createRouter({ const router = createRouter({

View File

@ -49,7 +49,7 @@ const formList = reactive([
{ label: "学时安排", prop: "gksc", type: "input" }, { label: "学时安排", prop: "gksc", type: "input" },
], ],
[ [
{ label: "上传附件", prop: "fj", type: "upload" }, { label: "上传附件", prop: "fj", type: "upload", isAll: true, showBtn: true, isImg: false },
], ],
]) ])
@ -64,7 +64,7 @@ const init = (type, id,) => {
function getDateById (id) { function getDateById (id) {
qcckPost({},`/mosty-base/baxx/jxda/getInfo/${id}`).then((res) => { qcckPost({},`/mosty-base/baxx/jxda/getInfo/${id}`).then((res) => {
res.fj = res.fj ? res.fj.split(','):[] res.fj = res.fj ? JSON.parse(res.fj):[]
listQuery.value = res || {}; listQuery.value = res || {};
}) })
} }
@ -74,7 +74,11 @@ const save = () => {
loading.value = true; loading.value = true;
let url = title.value == '新增' ? `/mosty-base/baxx/jxda/add` : `/mosty-base/baxx/jxda/edit`; let url = title.value == '新增' ? `/mosty-base/baxx/jxda/add` : `/mosty-base/baxx/jxda/edit`;
let params = { ...val } let params = { ...val }
params.fj = params.fj ? params.fj.join(','):'' params.fj = params.fj ? JSON.stringify(params.fj):''
console.log(params, val);
return
qcckPost(params, url).then(() => { qcckPost(params, url).then(() => {
loading.value = false; loading.value = false;
proxy.$message.success("保存成功"); proxy.$message.success("保存成功");
@ -87,7 +91,7 @@ const save = () => {
} }
const close = () => { const close = () => {
dialogForm.value = false; dialogForm.value = false;
listQuery.value = {fj:[]} listQuery.value.fj = []
FormRef.value.reset() FormRef.value.reset()
};; };;

View File

@ -141,7 +141,8 @@ const handleLogin = () => {
loading.value = false; loading.value = false;
// 登录后操作; // 登录后操作;
if (res.deptList.length === 1) { if (res.deptList.length === 1) {
window.location.href = "/"; // router.push("/unitManagement/unitInformation");
window.location.href = "/bagl";
} else { } else {
deptList.value = [...res.deptList]; deptList.value = [...res.deptList];
loginDialog.value = true; loginDialog.value = true;

View File

@ -57,11 +57,10 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="授课教员" :prop="`pxkcList[${index}].skjy`" style="width: 100%;" :rules="rules.skjy"> <el-form-item label="授课教员" :prop="`pxkcList[${index}].skjy`" style="width: 100%;" :rules="rules.skjy">
<el-input v-model="item.skjy" placeholder="请选择授课教员" style="width: 100%;"></el-input> <!-- <el-input v-model="item.skjy" placeholder="请选择授课教员" style="width: 100%;"></el-input> -->
<!-- <el-select v-model="item.skjy" placeholder="请选择授课教员" style="width: 100%;"> <el-select v-model="item.skjy" placeholder="请选择授课教员" style="width: 100%;">
<el-option label="张三" value="张三"></el-option> <el-option v-for="items in cyryList" :key="items.id" :label="items?.xm" :value="items.id"></el-option>
<el-option label="李四" value="李四"></el-option> </el-select>
</el-select> -->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
@ -102,6 +101,7 @@ import SelectPersonnelDialog from "./selectPersonnelDialog.vue";
const { proxy } = getCurrentInstance() const { proxy } = getCurrentInstance()
const visible = ref(false) const visible = ref(false)
const showDialog = ref(false) const showDialog = ref(false)
const cyryList = ref([])
const formData = ref({ const formData = ref({
pxkcList: [{ pxkcList: [{
pxkcxm: '', //课程名称 pxkcxm: '', //课程名称
@ -173,6 +173,7 @@ const delItem = (item,index) => {
} }
const init = () => { const init = () => {
getCyryList()
showDialog.value = true showDialog.value = true
} }
@ -197,6 +198,18 @@ const handleChange = (val) => {
pageData.tableData = [...pageData.tableData, ...val]?.filter((i, index, arr) => arr?.findIndex(s => i?.id === s?.id) === index) pageData.tableData = [...pageData.tableData, ...val]?.filter((i, index, arr) => arr?.findIndex(s => i?.id === s?.id) === index)
} }
// 获取授课教员
const getCyryList = async () => {
const res = await qcckPost({
pxgsid: "",
gw: '04'
}, `/mosty-base//baxx/cyry/list`)
if (res) {
cyryList.value = res
}
}
const save = () => { const save = () => {
if (pageData.tableData.length === 0) return proxy.$message.warning('请选择培训保安人员') if (pageData.tableData.length === 0) return proxy.$message.warning('请选择培训保安人员')
const ryidList = pageData.tableData?.map(i => i?.id) const ryidList = pageData.tableData?.map(i => i?.id)

View File

@ -11,7 +11,7 @@
<el-descriptions column="3" border label-width="180px"> <el-descriptions column="3" border label-width="180px">
<el-descriptions-item label="单位名称(营业执照登记名称)">{{ formData.dwmc }}</el-descriptions-item> <el-descriptions-item label="单位名称(营业执照登记名称)">{{ formData.dwmc }}</el-descriptions-item>
<el-descriptions-item label="统一社会信用代码">{{ formData.xydm }}</el-descriptions-item> <el-descriptions-item label="统一社会信用代码">{{ formData.xydm }}</el-descriptions-item>
<el-descriptions-item label="娱乐场所图片" :rowspan="4"> <el-descriptions-item label="单位图片" :rowspan="4">
<div class="imgWrapper"> <div class="imgWrapper">
<Upload v-model="formData.cszp" /> <Upload v-model="formData.cszp" />
</div> </div>