This commit is contained in:
zhoutianchi
2026-02-26 16:08:25 +08:00
parent 1ce6db425e
commit a9e5e2b368
10 changed files with 619 additions and 171 deletions

View File

@@ -102,6 +102,10 @@
>
导出
</el-button>
<el-button v-if="hasAuth('recruit_preexamPeople_add')" type="primary" plain icon="UserFilled" class="ml10" @click="editExam">
审核人员管理
</el-button>
</div>
<!-- 表格 -->
@@ -191,6 +195,8 @@
:planMajorList="planMajorList"
:schoolList="schoolList"
/>
<pre-exam-people-index ref="PreExamPeopleIndexRef"></pre-exam-people-index>
</div>
</div>
</template>
@@ -208,6 +214,9 @@ import { listcz } from '/@/api/recruit/recruitstudentplan'
import { queryByGroupId as schoolListApi} from '/@/api/recruit/recruitstudentschool'
import { getDeptListByLevelTwo } from '/@/api/basic/basicdept'
const PreExamPeopleIndex = defineAsyncComponent(() => import('@/views/recruit/recruitPreexamPeople/index.vue'));
const PreExamPeopleIndexRef=ref()
const TableForm = defineAsyncComponent(() => import('./enrolplantemplate-form.vue'))
const { hasAuth } = useAuth()
// 消息提示 hooks
@@ -380,6 +389,22 @@ const dataExportHandle = async () => {
}
}
// 编辑审核人员
const editExam = () => {
// 如果组件已经加载,立即初始化
if (PreExamPeopleIndexRef.value && typeof PreExamPeopleIndexRef.value.init === 'function') {
nextTick(() => {
try {
PreExamPeopleIndexRef.value.init();
} catch (error: any) {
message.error('初始化预登记人员弹窗失败:' + (error.message || '未知错误'));
}
});
}
// 否则等待 watch 监听器处理
};
onMounted(() => {
init()
})