'修改保安培训项目'

This commit is contained in:
esacpe
2025-09-25 18:01:31 +08:00
parent 7e78feae87
commit 5007c2413e
7 changed files with 61 additions and 26 deletions

View File

@ -20,7 +20,7 @@
</template>
<!-- 操作 -->
<template #controls="{ row }">
<el-link type="success">提交培训</el-link>
<el-link type="success" @click="handleSubmitTraining(row)">提交培训</el-link>
<el-link type="danger" @click="handleDelete([row.id])">删除</el-link>
<el-link type="primary" @click="addEdit('view', row)">详情</el-link>
</template>
@ -119,7 +119,8 @@ const getList = async () => {
pageData.tableConfiger.loading = true;
const res = await qcckPost({
...pageData.pageConfiger,
...queryFrom.value
...queryFrom.value,
sfcjpx: 0
}, `/mosty-base/baxx/pxry/page`)
if(res) {
@ -131,6 +132,23 @@ const getList = async () => {
}
}
// 提交培训
const handleSubmitTraining = async (row) => {
await proxy.$modal.confirm("是否确认提交该人员进行待培训?")
try {
await qcckPost({
...row,
sfcjpx: 1
}, "/mosty-base/baxx/pxry/edit")
proxy.$modal.msgSuccess("提交培训成功");
await getList();
} catch (error) {
proxy.$modal.msgError("提交培训失败");
console.log(error)
}
};
// 删除
const handleDelete = async (ids) => {
await proxy.$modal.confirm("是否确认删除该培训人员?")