'单位信息、从业人员管理、申请人员、申请人员、保安待培训人员管理、保安培训项目管理、保安考试管理页面对接处理'
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="titleBox">
|
||||
<page-title title="培训人员管理" />
|
||||
<el-button type="primary" @click="addEdit('add', row)">新增</el-button>
|
||||
<page-title title="培训人员" />
|
||||
<!-- <el-button type="primary" @click="addEdit('add', row)">新增</el-button> -->
|
||||
</div>
|
||||
<!-- 搜索 -->
|
||||
<div ref="searchBox">
|
||||
@ -17,10 +17,9 @@
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
<el-link type="primary" @click="addEdit('edit', row)">编辑</el-link>
|
||||
<el-link type="success">提交培训</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="handleXfrw(row)">离职</el-link>
|
||||
<el-link type="primary" @click="addEdit('view', row)">详情</el-link>
|
||||
</template>
|
||||
</MyTable>
|
||||
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
|
||||
@ -34,7 +33,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted, reactive, ref } from "vue";
|
||||
import { onMounted, reactive, ref, getCurrentInstance } from "vue";
|
||||
import MyTable from '@/components/aboutTable/MyTable.vue';
|
||||
import Pages from '@/components/aboutTable/Pages.vue';
|
||||
import Search from '@/components/aboutTable/Search.vue';
|
||||
@ -42,6 +41,7 @@ import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
|
||||
import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
||||
import AddTrainerDialog from "./components/addTrainerDialog.vue";
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const trainerRef = ref(null);
|
||||
const queryFrom = ref({});
|
||||
const isVisible = ref(false);
|
||||
@ -69,7 +69,7 @@ const searchConfiger = ref([
|
||||
]);
|
||||
|
||||
const pageData = reactive({
|
||||
tableData: [],
|
||||
tableData: [{}],
|
||||
keyCount: 0,
|
||||
tableConfiger: {
|
||||
rowHieght: 61,
|
||||
@ -86,8 +86,8 @@ const pageData = reactive({
|
||||
{ label: "姓名", prop: "xm" },
|
||||
{ label: "证件号码", prop: "sfzh" },
|
||||
{ label: "联系方式", prop: "lxdh" },
|
||||
{ label: "岗位", prop: "bxds", showSolt: true },
|
||||
{ label: "所属保安公司", prop: "pxgs" },
|
||||
{ label: "岗位", prop: "" },
|
||||
{ label: "所属保安公司", prop: "" },
|
||||
]
|
||||
});
|
||||
|
||||
@ -127,6 +127,20 @@ const getList = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 删除
|
||||
const handleDelete = async (ids) => {
|
||||
await proxy.$modal.confirm("是否确认删除该培训人员?")
|
||||
|
||||
try {
|
||||
await qcckPost({ ids }, "/mosty-base/baxx/pxry/remove")
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
await getList();
|
||||
} catch (error) {
|
||||
proxy.$modal.msgError("删除失败");
|
||||
console.log(error)
|
||||
}
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
tabHeightFn();
|
||||
getList();
|
||||
|
||||
Reference in New Issue
Block a user