'考试管理人员管理'

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

@ -13,16 +13,16 @@
}
::v-deep .el-input__inner {
background-color: #fff;
border: 1px solid #e9e9e9 !important;
// background-color: #fff;
// border: 1px solid #e9e9e9 !important;
&:hover {
border: 1px solid #0065d8;
// border: 1px solid #0065d8;
}
&:focus {
border: 1px solid #1c84fa;
box-shadow: 0px 0px 8px #0a6bfc;
// border: 1px solid #1c84fa;
// box-shadow: 0px 0px 8px #0a6bfc;
}
}

View File

@ -97,14 +97,6 @@ div:focus {
border-color: rgb(8, 85, 170);
}
::v-deep {
.el-input__inner, .el-input__inner:hover, .el-input__inner:focus {
border: none !important;
box-shadow: none;
background-color: transparent;
}
}
.new-btn-class-bj {
color: #409eff;
margin-right: 10px;
@ -118,3 +110,11 @@ div:focus {
.new-btn-class-sc:hover {
border-bottom: 1px solid #f56c6c;
}
::v-deep {
.el-input__inner, .el-input__inner:hover, .el-input__inner:focus {
border: none !important;
box-shadow: none;
background-color: transparent;
}
}

View File

@ -17,7 +17,7 @@ export function getDict(...args) {
getSysDictByCode({
dictCode: d
}).then(result => {
result.itemList.forEach(p => {
result?.itemList?.forEach(p => {
p.label = p.zdmc
p.value = p.dm
p.id = p.dm
@ -27,7 +27,7 @@ export function getDict(...args) {
}
p.children = p.itemList
})
res.value[d] = result.itemList
res.value[d] = result?.itemList
})
})
return toRefs(res.value);

View File

@ -22,7 +22,7 @@ import { ref, reactive,defineEmits,getCurrentInstance } from 'vue';
const emit = defineEmits(["refresh"]);
const { proxy } = getCurrentInstance();
const { D_BAXX_KTLX } = proxy.dict("D_BAXX_KTLX");
const { D_BAXX_KTLX } = proxy.$dict("D_BAXX_KTLX");
const dialogForm = ref(false);
const title = ref('');
@ -45,7 +45,7 @@ const rules = reactive({
const formList = reactive([
[
{ label: "题型", prop: "type", type: "select", options: D_BAXX_KTLX },
{ label: "题型", prop: "type", type: "select", options: D_BAXX_KTLX, },
{ label: "题目", prop: "tm", type: "input" },
],
[

View File

@ -35,7 +35,7 @@
}"></Pages>
</div>
<!-- 详情 -->
<DetailForm ref="detailDiloag" @refresh="getList" :dict="{ D_BAXX_KTLX }" />
<DetailForm ref="detailDiloag" @refresh="getList" />
</div>
</template>
@ -49,7 +49,6 @@ import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
const { proxy } = getCurrentInstance();
const { D_BAXX_KTLX } = proxy.$dict("D_BAXX_KTLX")
const detailDiloag = ref();
const searchBox = ref(); //搜索框
const baseUrl = 'data:image/jpeg;base64,'

View File

@ -8,8 +8,7 @@
</div>
</div>
<div class="cntinfo">
<FormMessage ref="FormRef" v-model="listQuery" :disabled="openType == 'detail'" :rules="rules" :formList="formList">
</FormMessage>
<FormMessage ref="FormRef" v-model="listQuery" :disabled="openType == 'detail'" :rules="rules" :formList="formList" />
</div>
</div>
</template>

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 }

View File

@ -39,7 +39,7 @@ const props = defineProps({
}
})
const emits = defineEmits(['update:modelValue'])
const emits = defineEmits(['update:modelValue', 'refresh'])
const dialogVisible = computed({
get() {
@ -66,7 +66,8 @@ const formList = reactive([
{ label: "身份证反面", prop: "ryzpfm", type: "upload", limit: 1 },
],
[
{ label: "体检报告", prop: "", type: "upload", limit: 1 },
{ label: "体检报告", prop: "tjbg", type: "upload", limit: 3 },
{ label: "上传资料", prop: "zl", type: "upload", limit: 3, },
],
[
{ label: "无犯罪记录证明", prop: "wfzzmjl", type: "upload", limit: 1 },
@ -76,7 +77,7 @@ const formList = reactive([
const rules = {
ryzpzm: [{ required: true, message: "请上传身份证正面", trigger: "change" }],
ryzpfm: [{ required: true, message: "请上传身份证反面", trigger: "change" }],
// tjbj: [{ required: true, message: "请上传体检报告", trigger: "change" }],
tjbg: [{ required: true, message: "请上传体检报告", trigger: "change" }],
wfzzmjl: [{ required: true, message: "请上传无犯罪记录证明", trigger: "change" }],
xm: [{ required: true, message: "请输入姓名", trigger: "change" }],
zjhm: [
@ -122,11 +123,11 @@ const rules = {
const formData = ref({})
const close = () => {
FormRef.value?.reset()
dialogVisible.value = false
}
const open = (row = {}, type = 'add') => {
FormRef.value?.reset()
disabled.value = false
dialogVisible.value = true
formData.value = { ...row }

View File

@ -10,9 +10,12 @@
</template>
<script setup>
import { computed, ref, reactive } from 'vue';
import { computed, ref, reactive, getCurrentInstance } from 'vue';
import FormMessage from '@/components/aboutTable/FormMessage.vue'
import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
const { proxy } = getCurrentInstance();
const { D_BAXX_DWLX } = proxy.$dict("D_BAXX_DWLX")
const props = defineProps({
modelValue: {
type: Boolean,
@ -39,7 +42,7 @@ const formData = ref({})
const formList = reactive([
[
{ label: "培训公司", prop: "cj", type: "select" },
{ label: "培训公司", prop: "cj", type: "select", options: D_BAXX_DWLX },
],
])
@ -59,13 +62,12 @@ const handleClose = () => {
visible.value = false
}
const handleSubmit = () => {
const handleSubmit = async () => {
try {
loading.value = true
FormRef.value.submit(res => {
console.log(res)
await FormRef.value.submit()
await qcckPost({ id: formData.value?.id, }, `/mosty/base/`)
visible.value = false
})
} catch (error) {
console.log(error)
} finally {

View File

@ -36,7 +36,7 @@ const props = defineProps({
},
})
const emits = defineEmits(['update:modelValue'])
const emits = defineEmits(['update:modelValue', 'refresh'])
const dialogVisible = computed({
get() {
@ -69,7 +69,7 @@ const formList = reactive([
[
{ label: "外派单位", prop: "wpdw", type: "input" },
],
{ label: "从业人员照片", prop: "", type: "upload", limit: 2 },
{ label: "从业人员照片", prop: "tp", type: "upload", limit: 2 },
{ label: "保安证件", prop: "bazzp", type: "upload", limit: 1 },
])

View File

@ -41,7 +41,7 @@ const props = defineProps({
}
})
const emits = defineEmits(['update:modelValue'])
const emits = defineEmits(['update:modelValue', 'refresh'])
const dialogVisible = computed({
get() {
@ -89,11 +89,11 @@ const rules = {
const formData = ref({})
const close = () => {
FormRef.value?.reset()
dialogVisible.value = false
}
const open = (row = {}, type = 'add') => {
FormRef.value?.reset()
disabled.value = false
dialogVisible.value = true
formData.value = { ...row }