'考试管理人员管理'
This commit is contained in:
@ -13,16 +13,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
::v-deep .el-input__inner {
|
::v-deep .el-input__inner {
|
||||||
background-color: #fff;
|
// background-color: #fff;
|
||||||
border: 1px solid #e9e9e9 !important;
|
// border: 1px solid #e9e9e9 !important;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border: 1px solid #0065d8;
|
// border: 1px solid #0065d8;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
&:focus {
|
||||||
border: 1px solid #1c84fa;
|
// border: 1px solid #1c84fa;
|
||||||
box-shadow: 0px 0px 8px #0a6bfc;
|
// box-shadow: 0px 0px 8px #0a6bfc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -97,14 +97,6 @@ div:focus {
|
|||||||
border-color: rgb(8, 85, 170);
|
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 {
|
.new-btn-class-bj {
|
||||||
color: #409eff;
|
color: #409eff;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
@ -117,4 +109,12 @@ div:focus {
|
|||||||
}
|
}
|
||||||
.new-btn-class-sc:hover {
|
.new-btn-class-sc:hover {
|
||||||
border-bottom: 1px solid #f56c6c;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@ -17,7 +17,7 @@ export function getDict(...args) {
|
|||||||
getSysDictByCode({
|
getSysDictByCode({
|
||||||
dictCode: d
|
dictCode: d
|
||||||
}).then(result => {
|
}).then(result => {
|
||||||
result.itemList.forEach(p => {
|
result?.itemList?.forEach(p => {
|
||||||
p.label = p.zdmc
|
p.label = p.zdmc
|
||||||
p.value = p.dm
|
p.value = p.dm
|
||||||
p.id = p.dm
|
p.id = p.dm
|
||||||
@ -27,7 +27,7 @@ export function getDict(...args) {
|
|||||||
}
|
}
|
||||||
p.children = p.itemList
|
p.children = p.itemList
|
||||||
})
|
})
|
||||||
res.value[d] = result.itemList
|
res.value[d] = result?.itemList
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
return toRefs(res.value);
|
return toRefs(res.value);
|
||||||
@ -66,9 +66,9 @@ export function setCascader(id, array, childDeptList = 'childDeptList', fun) {
|
|||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 当type=1时获取出生日期,type=2时获取性别,type=3时获取年龄 all
|
* 当type=1时获取出生日期,type=2时获取性别,type=3时获取年龄 all
|
||||||
* @param {*} IdCard
|
* @param {*} IdCard
|
||||||
* @param {*} type
|
* @param {*} type
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
export function IdCard(IdCard, type) {
|
export function IdCard(IdCard, type) {
|
||||||
let user = {
|
let user = {
|
||||||
|
|||||||
@ -22,7 +22,7 @@ import { ref, reactive,defineEmits,getCurrentInstance } from 'vue';
|
|||||||
const emit = defineEmits(["refresh"]);
|
const emit = defineEmits(["refresh"]);
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance();
|
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 dialogForm = ref(false);
|
||||||
const title = ref('');
|
const title = ref('');
|
||||||
@ -45,7 +45,7 @@ const rules = reactive({
|
|||||||
|
|
||||||
const formList = 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" },
|
{ label: "题目", prop: "tm", type: "input" },
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
}"></Pages>
|
}"></Pages>
|
||||||
</div>
|
</div>
|
||||||
<!-- 详情 -->
|
<!-- 详情 -->
|
||||||
<DetailForm ref="detailDiloag" @refresh="getList" :dict="{ D_BAXX_KTLX }" />
|
<DetailForm ref="detailDiloag" @refresh="getList" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -49,7 +49,6 @@ import { qcckGet, qcckPost, qcckDelete } from "@/api/qcckApi.js";
|
|||||||
import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
|
import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
|
|
||||||
const { D_BAXX_KTLX } = proxy.$dict("D_BAXX_KTLX")
|
|
||||||
const detailDiloag = ref();
|
const detailDiloag = ref();
|
||||||
const searchBox = ref(); //搜索框
|
const searchBox = ref(); //搜索框
|
||||||
const baseUrl = 'data:image/jpeg;base64,'
|
const baseUrl = 'data:image/jpeg;base64,'
|
||||||
|
|||||||
@ -8,8 +8,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cntinfo">
|
<div class="cntinfo">
|
||||||
<FormMessage ref="FormRef" v-model="listQuery" :disabled="openType == 'detail'" :rules="rules" :formList="formList">
|
<FormMessage ref="FormRef" v-model="listQuery" :disabled="openType == 'detail'" :rules="rules" :formList="formList" />
|
||||||
</FormMessage>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -27,8 +27,8 @@
|
|||||||
>
|
>
|
||||||
<!-- 操作 -->
|
<!-- 操作 -->
|
||||||
<template #controls="{ row }">
|
<template #controls="{ row }">
|
||||||
<el-link v-if="!visible" @click="handleCertificate(row)">申请证件</el-link>
|
<el-link v-if="!visible && row?.ksfs >= 60" @click="handleCertificate(row)">申请证件</el-link>
|
||||||
<template v-else>
|
<template v-if="visible">
|
||||||
<el-link v-if="!row?.ksfs" type="primary" @click="addEdit('updata', row)">上传成绩</el-link>
|
<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>
|
<el-link v-else type="primary" @click="addEdit('view', row)">查看成绩</el-link>
|
||||||
</template>
|
</template>
|
||||||
@ -96,9 +96,9 @@ const pageData = reactive({
|
|||||||
{ label: "姓名", prop: "xm" },
|
{ label: "姓名", prop: "xm" },
|
||||||
{ label: "证件号码", prop: "sfzh" },
|
{ label: "证件号码", prop: "sfzh" },
|
||||||
{ label: "联系方式", prop: "lxdh" },
|
{ label: "联系方式", prop: "lxdh" },
|
||||||
{ label: "线上培训时间", prop: "sfzh" },
|
{ label: "线上培训时间", prop: "" },
|
||||||
{ label: "线下培训课程", prop: "lxdh" },
|
{ label: "线下培训课程", prop: "" },
|
||||||
{ label: "考试成绩", prop: "lxdh" },
|
{ label: "考试成绩", prop: "ksfs" },
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ const close = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 根据项目id获取培训人员
|
// 根据项目id获取培训人员
|
||||||
const getList = async ({ id = "" }) => {
|
const getList = async ({ id = "" }, type = '') => {
|
||||||
const res = await qcckPost({
|
const res = await qcckPost({
|
||||||
...pageData.pageConfiger,
|
...pageData.pageConfiger,
|
||||||
// sfcjpx: 1,
|
// sfcjpx: 1,
|
||||||
@ -118,11 +118,12 @@ const getList = async ({ id = "" }) => {
|
|||||||
if (res) {
|
if (res) {
|
||||||
pageData.tableData = res.records || [];
|
pageData.tableData = res.records || [];
|
||||||
pageData.total = res.total;
|
pageData.total = res.total;
|
||||||
|
if (!type) emits("refresh");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const open = (row = {}, type = 'add') => {
|
const open = (row = {}, type = 'add') => {
|
||||||
getList(row)
|
getList(row, type)
|
||||||
disabled.value = false
|
disabled.value = false
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
formData.value = { ...row }
|
formData.value = { ...row }
|
||||||
|
|||||||
@ -39,7 +39,7 @@ const props = defineProps({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const emits = defineEmits(['update:modelValue'])
|
const emits = defineEmits(['update:modelValue', 'refresh'])
|
||||||
|
|
||||||
const dialogVisible = computed({
|
const dialogVisible = computed({
|
||||||
get() {
|
get() {
|
||||||
@ -66,7 +66,8 @@ const formList = reactive([
|
|||||||
{ label: "身份证反面", prop: "ryzpfm", type: "upload", limit: 1 },
|
{ 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 },
|
{ label: "无犯罪记录证明", prop: "wfzzmjl", type: "upload", limit: 1 },
|
||||||
@ -76,7 +77,7 @@ const formList = reactive([
|
|||||||
const rules = {
|
const rules = {
|
||||||
ryzpzm: [{ required: true, message: "请上传身份证正面", trigger: "change" }],
|
ryzpzm: [{ required: true, message: "请上传身份证正面", trigger: "change" }],
|
||||||
ryzpfm: [{ 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" }],
|
wfzzmjl: [{ required: true, message: "请上传无犯罪记录证明", trigger: "change" }],
|
||||||
xm: [{ required: true, message: "请输入姓名", trigger: "change" }],
|
xm: [{ required: true, message: "请输入姓名", trigger: "change" }],
|
||||||
zjhm: [
|
zjhm: [
|
||||||
@ -122,11 +123,11 @@ const rules = {
|
|||||||
const formData = ref({})
|
const formData = ref({})
|
||||||
|
|
||||||
const close = () => {
|
const close = () => {
|
||||||
|
FormRef.value?.reset()
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
const open = (row = {}, type = 'add') => {
|
const open = (row = {}, type = 'add') => {
|
||||||
FormRef.value?.reset()
|
|
||||||
disabled.value = false
|
disabled.value = false
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
formData.value = { ...row }
|
formData.value = { ...row }
|
||||||
|
|||||||
@ -10,9 +10,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, ref, reactive } from 'vue';
|
import { computed, ref, reactive, getCurrentInstance } from 'vue';
|
||||||
import FormMessage from '@/components/aboutTable/FormMessage.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({
|
const props = defineProps({
|
||||||
modelValue: {
|
modelValue: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
@ -39,7 +42,7 @@ const formData = ref({})
|
|||||||
|
|
||||||
const formList = reactive([
|
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
|
visible.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleSubmit = () => {
|
const handleSubmit = async () => {
|
||||||
try {
|
try {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
FormRef.value.submit(res => {
|
await FormRef.value.submit()
|
||||||
console.log(res)
|
await qcckPost({ id: formData.value?.id, }, `/mosty/base/`)
|
||||||
visible.value = false
|
visible.value = false
|
||||||
})
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@ -36,7 +36,7 @@ const props = defineProps({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
const emits = defineEmits(['update:modelValue'])
|
const emits = defineEmits(['update:modelValue', 'refresh'])
|
||||||
|
|
||||||
const dialogVisible = computed({
|
const dialogVisible = computed({
|
||||||
get() {
|
get() {
|
||||||
@ -69,7 +69,7 @@ const formList = reactive([
|
|||||||
[
|
[
|
||||||
{ label: "外派单位", prop: "wpdw", type: "input" },
|
{ 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 },
|
{ label: "保安证件", prop: "bazzp", type: "upload", limit: 1 },
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@ const props = defineProps({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const emits = defineEmits(['update:modelValue'])
|
const emits = defineEmits(['update:modelValue', 'refresh'])
|
||||||
|
|
||||||
const dialogVisible = computed({
|
const dialogVisible = computed({
|
||||||
get() {
|
get() {
|
||||||
@ -89,11 +89,11 @@ const rules = {
|
|||||||
const formData = ref({})
|
const formData = ref({})
|
||||||
|
|
||||||
const close = () => {
|
const close = () => {
|
||||||
|
FormRef.value?.reset()
|
||||||
dialogVisible.value = false
|
dialogVisible.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
const open = (row = {}, type = 'add') => {
|
const open = (row = {}, type = 'add') => {
|
||||||
FormRef.value?.reset()
|
|
||||||
disabled.value = false
|
disabled.value = false
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
formData.value = { ...row }
|
formData.value = { ...row }
|
||||||
|
|||||||
Reference in New Issue
Block a user