'单位信息、从业人员管理、申请人员、申请人员、保安待培训人员管理、保安培训项目管理、保安考试管理页面对接处理'

This commit is contained in:
esacpe
2025-09-23 18:03:42 +08:00
parent 446099015c
commit c23bcb30df
24 changed files with 504 additions and 313 deletions

View File

@ -1,7 +1,7 @@
<template>
<div>
<div class="titleBox">
<page-title title="培训人员管理" />
<page-title title="申请人员" />
<el-button type="primary" @click="addEdit('add')">新增</el-button>
</div>
<!-- 搜索 -->
@ -12,12 +12,12 @@
<div class="tabBox">
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth">
<template #bxxLx="{ row }">
<DictTag :value="row.bxxLx" :tag="false" :options="D_BZ_BXDLX" />
<template #sfpx="{ row }">
{{ row?.sfpx === '01' ? `` : `` }}
</template>
<!-- 操作 -->
<template #controls="{ row }">
<el-link type="primary" @click="addEdit('upload', row)">上传资料</el-link>
<el-link type="success" @click="addEdit('upload', row)">上传资料</el-link>
<el-link type="danger" @click="handleDelete([row.id])">删除</el-link>
<el-link type="warning" @click="addEdit('view', row)">详情</el-link>
<el-link type="primary" @click="addEdit('select', row)">提交培训公司</el-link>
@ -36,7 +36,7 @@
</template>
<script setup>
import { onMounted, reactive, ref } from "vue";
import { getCurrentInstance, onMounted, reactive, ref } from "vue";
import MyTable from '@/components/aboutTable/MyTable.vue';
import Pages from '@/components/aboutTable/Pages.vue';
import Search from '@/components/aboutTable/Search.vue';
@ -45,13 +45,13 @@ import PageTitle from "@/components/aboutTable/PageTitle.vue";
import AddTrainerDialog from "./components/addTrainerDialog.vue";
import selectTtaningDialog from "./components/selectTtaningDialog.vue";
const { proxy } = getCurrentInstance();
const trainerRef = ref(null);
const selectTtaningRef = ref(null);
const queryFrom = ref({});
const isVisible = ref(false);
const dialogVisible = ref(false);
const searchBox = ref(null);
const D_BZ_BXDLX = ref([]);
const searchConfiger = ref([
{
label: "人员姓名",
@ -61,7 +61,7 @@ const searchConfiger = ref([
},
{
label: "证件号码",
prop: "sfzh",
prop: "zjhm",
placeholder: "请输入证件号码",
showType: "input"
},
@ -89,12 +89,12 @@ const pageData = reactive({
controlsWidth: 180,
tableColumn: [
{ label: "姓名", prop: "xm" },
{ label: "证件号码", prop: "sfzh" },
{ label: "证件号码", prop: "zjhm" },
{ label: "联系方式", prop: "lxdh" },
{ label: "岗位", prop: "bxds", showSolt: true },
{ label: "申请时间", prop: "pxgs" },
{ label: "岗位", prop: "gw" },
{ label: "申请时间", prop: "xtCjsj" },
{ label: "是否上传资料", prop: "pxgs" },
{ label: "是否线上培训", prop: "pxgs" },
{ label: "是否线上培训", prop: "sfpx", showSolt: true },
]
});
@ -128,7 +128,7 @@ const getList = async () => {
const res = await qcckPost({
...pageData.pageConfiger,
...queryFrom.value
}, `/mosty-base/baxx/pxry/page`)
}, `/mosty-base/baxx/basq/page`)
if(res) {
pageData.tableData = res.records || [];
@ -139,6 +139,20 @@ const getList = async () => {
}
}
const handleDelete = async (ids) => {
await proxy.$modal.confirm("是否确认删除该培训人员?")
try {
const res = await qcckDelete({ ids }, `/mosty-base/baxx/basq/delete`)
if (res) {
proxy.$modal.msgSuccess("删除成功");
await getList();
}
} catch (error) {
proxy.$modal.msgError("删除失败");
}
}
onMounted(() => {
tabHeightFn();
getList();
@ -146,9 +160,5 @@ onMounted(() => {
</script>
<style scoped lang="scss">
::v-deep {
.el-dialog__header {
background: transparent !important;
}
}
</style>