'考试管理人员管理'
This commit is contained in:
@ -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 }
|
||||
|
||||
@ -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)
|
||||
visible.value = false
|
||||
})
|
||||
await FormRef.value.submit()
|
||||
await qcckPost({ id: formData.value?.id, }, `/mosty/base/`)
|
||||
visible.value = false
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user