From 8166fa31e0f1d356468a5fe8af17f0e03af7f4fc Mon Sep 17 00:00:00 2001 From: guochunsi <1595020186@qq.com> Date: Wed, 14 Jan 2026 18:32:09 +0800 Subject: [PATCH] a --- src/utils/dictLabel.ts | 35 + .../recruitImitateAdjustBatch/detaiform.vue | 9 +- .../recruitImitateAdjustBatch/index.vue | 16 +- .../recruit/recruitexampeople/add-form.vue | 129 ++ src/views/recruit/recruitexampeople/index.vue | 193 ++- .../recruit/recruitplanmajor/detaiform.vue | 55 +- src/views/recruit/recruitplanmajor/index.vue | 39 +- .../recruitplanmajor/majorGroupByDept.vue | 96 +- .../enrolplantemplate-form.vue | 65 +- src/views/recruit/recruitprestudent/index.vue | 28 +- .../detaiform.vue | 15 +- .../index.vue | 30 +- .../enrolplantemplate-form.vue | 56 +- .../recruit/recruitstudentplangroup/index.vue | 131 +- .../recruitstudentschool/detaiform.vue | 20 +- .../recruit/recruitstudentschool/index.vue | 22 +- .../AdmissionNoticeDialog.vue | 86 ++ .../DelayPayTimeDialog.vue | 79 + .../recruitstudentsignup/PayQrcodeDialog.vue | 131 ++ .../recruitstudentsignup/areaStaticByCZ.vue | 251 ++-- .../areaStaticByOther.vue | 268 ++-- .../contanctByDeptStatic.vue | 241 +-- .../contanctByUserStatic.vue | 332 ++-- .../recruitstudentsignup/detaiform.vue | 1107 +++++++------- .../recruit/recruitstudentsignup/dormFW.vue | 248 +-- .../recruitstudentsignup/dorm_analysis.vue | 182 ++- .../recruit/recruitstudentsignup/index.vue | 265 +--- .../recruitstudentsignup/indexClass.vue | 1331 +++++++++-------- .../recruitstudentsignup/interviewForm.vue | 90 +- .../recruitstudentsignup/majorChange.vue | 565 +++---- .../recruit/recruitstudentsignup/showMap.vue | 192 +-- .../recruit/recruitstudentsignup/studorm.vue | 38 +- .../recruit/recruitstudentsignup/update.vue | 964 ++++++------ 33 files changed, 3926 insertions(+), 3383 deletions(-) create mode 100644 src/utils/dictLabel.ts create mode 100644 src/views/recruit/recruitexampeople/add-form.vue create mode 100644 src/views/recruit/recruitstudentsignup/AdmissionNoticeDialog.vue create mode 100644 src/views/recruit/recruitstudentsignup/DelayPayTimeDialog.vue create mode 100644 src/views/recruit/recruitstudentsignup/PayQrcodeDialog.vue diff --git a/src/utils/dictLabel.ts b/src/utils/dictLabel.ts new file mode 100644 index 0000000..5e49123 --- /dev/null +++ b/src/utils/dictLabel.ts @@ -0,0 +1,35 @@ +// 通用:根据字典列表和 value 获取 label 文本 +export function getLabelValue( + list: Array<{ label: string; value: string | number }>, + value: string | number | null | undefined, +): string { + if (!list || !Array.isArray(list)) return '' + const item = list.find((it: any) => String(it.value) === String(value)) + return item ? item.label : '' +} + +// 通用:根据指定 key/value 字段,从列表中取 label(原 global.getLabelValueByPropes) +export function getLabelValueByProps( + list: any[], + key: string | number | null | undefined, + props: { key: string; value: string }, +): string { + if (!list || !Array.isArray(list)) return '' + const item = list.find((it: any) => String(it[props.key]) === String(key)) + return item ? item[props.value] : '' +} + +// 通用:根据 key 取“专业名称 || 学制年制”展示(原 global.getLabelValueByPropes2) +export function getMajorLabelWithYears( + list: any[], + key: string | number | null | undefined, + props: { key: string; value: string }, +): string { + if (!list || !Array.isArray(list)) return '' + const item = list.find((it: any) => String(it[props.key]) === String(key)) + if (!item) return '' + const majorName = item[props.value] ?? '' + const years = item.xz != null ? `${item.xz} 年制` : '' + return years ? `${majorName} || ${years}` : majorName +} + diff --git a/src/views/recruit/recruitImitateAdjustBatch/detaiform.vue b/src/views/recruit/recruitImitateAdjustBatch/detaiform.vue index b177ec0..7873c81 100644 --- a/src/views/recruit/recruitImitateAdjustBatch/detaiform.vue +++ b/src/views/recruit/recruitImitateAdjustBatch/detaiform.vue @@ -2,11 +2,12 @@ - + - + import { ref, reactive, nextTick } from 'vue' import { ElNotification } from 'element-plus' -import { addObj, getObj, putObj } from '@/api/recruit/recruitImitateAdjustBatch' -import { list } from "@/api/recruit/recruitstudentplangroup" +import { addObj, getObj, putObj } from '/@/api/recruit/recruitImitateAdjustBatch' +import { list } from '/@/api/recruit/recruitstudentplangroup' // Emits const emit = defineEmits<{ diff --git a/src/views/recruit/recruitImitateAdjustBatch/index.vue b/src/views/recruit/recruitImitateAdjustBatch/index.vue index 16f5444..8f78cdf 100644 --- a/src/views/recruit/recruitImitateAdjustBatch/index.vue +++ b/src/views/recruit/recruitImitateAdjustBatch/index.vue @@ -19,7 +19,7 @@
- + 查询 - 重置 + 重置 @@ -50,7 +50,7 @@ icon="FolderAdd" @click="addOrUpdateHandle" > - 新增 + 新 增
@@ -118,8 +118,8 @@ /> - - + +
@@ -206,8 +206,9 @@ const init = async () => { } // 新增 / 修改 -const addOrUpdateHandle = (id?: string) => { - addOrUpdateVisible.value = true +const addOrUpdateHandle = (payload?: string | MouseEvent) => { + // 新增按钮未传参时会传入 MouseEvent,这里统一转换为 id 或 null + const id = typeof payload === 'string' ? payload : null nextTick(() => { addOrUpdateRef.value?.init(id) }) @@ -215,7 +216,6 @@ const addOrUpdateHandle = (id?: string) => { // 显示模拟列表 const showTable = (batchNo: string, groupId: string) => { - mnTableVisible.value = true nextTick(() => { mnTableRef.value?.init(batchNo, groupId) }) diff --git a/src/views/recruit/recruitexampeople/add-form.vue b/src/views/recruit/recruitexampeople/add-form.vue new file mode 100644 index 0000000..5a92873 --- /dev/null +++ b/src/views/recruit/recruitexampeople/add-form.vue @@ -0,0 +1,129 @@ + + + + + + + + diff --git a/src/views/recruit/recruitexampeople/index.vue b/src/views/recruit/recruitexampeople/index.vue index 9819f97..7cd2c1e 100644 --- a/src/views/recruit/recruitexampeople/index.vue +++ b/src/views/recruit/recruitexampeople/index.vue @@ -20,64 +20,75 @@ title="招生审核人员管理" :close-on-click-modal="false" v-model="visible" + width="800" + :append-to-body="true" + destroy-on-close > -
-
-
- -
- - - +
+ + + + + 查询 - 重置 - - - 新增 + 重置 +
+ + 新 增 + +
- + +
- - - - - - - + + + + + + + + + +
- + +
- -
- - - -
- - -
+ diff --git a/src/views/recruit/recruitprestudent/enrolplantemplate-form.vue b/src/views/recruit/recruitprestudent/enrolplantemplate-form.vue index 69b8072..94e4de7 100644 --- a/src/views/recruit/recruitprestudent/enrolplantemplate-form.vue +++ b/src/views/recruit/recruitprestudent/enrolplantemplate-form.vue @@ -2,11 +2,13 @@ - + v-model="visible" + width="600px" + > + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + ([]) const planListLocal = ref([]) - -const sexyList = [ - { - label: '男', - value: '1' - }, - { - label: '女', - value: '2' - } -] +const sexyList = ref([]) const dataForm = reactive({ id: "", @@ -402,9 +395,11 @@ const init = (id: string | null) => { nextTick(() => { dataFormRef.value?.resetFields() - queryAllTeacherByRecruit().then((res: any) => { - contactNameList.value = res.data + // 获取性别字典 + getDicts('sexy').then((res: any) => { + sexyList.value = res.data || [] }) + // 这里如果需要教师列表,可以改用新的教师接口;当前项目中常用的是 queryTeacherBaseByNoByAssets if (dataForm.id) { getObj(dataForm.id).then((response: any) => { Object.assign(dataForm, response.data) diff --git a/src/views/recruit/recruitprestudent/index.vue b/src/views/recruit/recruitprestudent/index.vue index a098976..d462ef5 100644 --- a/src/views/recruit/recruitprestudent/index.vue +++ b/src/views/recruit/recruitprestudent/index.vue @@ -19,9 +19,9 @@
- + - + - + - + - + @@ -78,7 +78,7 @@ 查询 - 重置 + 重置 @@ -154,7 +154,7 @@ - + - diff --git a/src/views/recruit/recruitstudentsignup/dorm_analysis.vue b/src/views/recruit/recruitstudentsignup/dorm_analysis.vue index b6a89cc..8d1551d 100644 --- a/src/views/recruit/recruitstudentsignup/dorm_analysis.vue +++ b/src/views/recruit/recruitstudentsignup/dorm_analysis.vue @@ -1,8 +1,7 @@