'考试管理人员管理'

This commit is contained in:
esacpe
2025-09-24 20:32:05 +08:00
parent 10a8094a3c
commit 6fe683e97e
11 changed files with 48 additions and 46 deletions

View File

@ -27,8 +27,8 @@
>
<!-- 操作 -->
<template #controls="{ row }">
<el-link v-if="!visible" @click="handleCertificate(row)">申请证件</el-link>
<template v-else>
<el-link v-if="!visible && row?.ksfs >= 60" @click="handleCertificate(row)">申请证件</el-link>
<template v-if="visible">
<el-link v-if="!row?.ksfs" type="primary" @click="addEdit('updata', row)">上传成绩</el-link>
<el-link v-else type="primary" @click="addEdit('view', row)">查看成绩</el-link>
</template>
@ -96,9 +96,9 @@ const pageData = reactive({
{ label: "姓名", prop: "xm" },
{ label: "证件号码", prop: "sfzh" },
{ label: "联系方式", prop: "lxdh" },
{ label: "线上培训时间", prop: "sfzh" },
{ label: "线下培训课程", prop: "lxdh" },
{ label: "考试成绩", prop: "lxdh" },
{ label: "线上培训时间", prop: "" },
{ label: "线下培训课程", prop: "" },
{ label: "考试成绩", prop: "ksfs" },
]
});
@ -109,7 +109,7 @@ const close = () => {
}
// 根据项目id获取培训人员
const getList = async ({ id = "" }) => {
const getList = async ({ id = "" }, type = '') => {
const res = await qcckPost({
...pageData.pageConfiger,
// sfcjpx: 1,
@ -118,11 +118,12 @@ const getList = async ({ id = "" }) => {
if (res) {
pageData.tableData = res.records || [];
pageData.total = res.total;
if (!type) emits("refresh");
}
}
const open = (row = {}, type = 'add') => {
getList(row)
getList(row, type)
disabled.value = false
dialogVisible.value = true
formData.value = { ...row }