This commit is contained in:
zhoutianchi
2026-02-09 18:02:02 +08:00
parent 9ac3a36efa
commit 707545f51e
4 changed files with 68 additions and 17 deletions

View File

@@ -1,10 +1,22 @@
<template>
<el-dialog v-model="visible" :title="title" width="600" append-to-body>
<div style="text-align: center; margin-bottom: 20px">
<div style="text-align: center; margin-bottom: 20px" v-if="currentType!='R10003'">
<el-button type="success" :icon="Download" @click="handleDownloadTemplate">下载模板</el-button>
</div>
<el-upload
<el-alert
v-if="currentType=='R10003'"
type="warning"
:closable="false"
show-icon
style="margin-bottom: 20px;">
<template #title>
<span> 请从中招平台导出数据后导入</span>
</template>
</el-alert>
<el-upload
ref="uploadRef"
class="upload-demo"
:action="uploadUrl"
@@ -47,7 +59,9 @@ const uploadUrl = ref('')
const currentType = ref('')
const uploadRef = ref<{ clearFiles?: () => void }>()
const titleMap: Record<string, string> = {
planMajor: '计划专业导入'
R10001: '计划专业导入',
R10002: '地区分数导入',
R10003: '中招平台数据导入'
}
// 方法
const init = (type: any) => {

View File

@@ -50,7 +50,7 @@
<el-button v-if="hasAuth('recruit_recruitplanmajor_add')" type="primary" icon="FolderAdd" @click="addOrUpdateHandle"> </el-button>
<el-button
v-auth="'professional_teacherinfo_import'"
v-auth="'recruit_major_import'"
type="primary"
plain
icon="UploadFilled"

View File

@@ -29,6 +29,15 @@
>
</el-button>
<el-button
v-auth="'recruit_areascore_import'"
type="primary"
plain
icon="UploadFilled"
:loading="exportLoading"
@click="handleImportDialog"
>导入信息
</el-button>
</div>
<!-- 表格 -->
@@ -83,6 +92,9 @@
<!-- 弹窗, 新增 / 修改 -->
<table-form ref="addOrUpdateRef" @refreshDataList="getDataList" />
<import-recruit-info ref="ImportRecruitInfoRef" @refreshDataList="getDataList"></import-recruit-info>
</div>
</div>
</template>
@@ -94,6 +106,8 @@ import { BasicTableProps, useTable } from '/@/hooks/table'
import { useMessage, useMessageBox } from '/@/hooks/message'
import { getList } from '/@/api/recruit/recruitstudentplangroup'
import { fetchList, delObj } from '/@/api/recruit/recruitstudentplancorrectscoreconfig'
const ImportRecruitInfo = defineAsyncComponent(() => import('/@/views/recruit/common/import-recruit-info.vue'));
const ImportRecruitInfoRef=ref<any>();
const TableForm = defineAsyncComponent(() => import('./detaiform.vue'))
const { hasAuth } = useAuth()
@@ -183,6 +197,12 @@ const resetQuery = () => {
getDataList()
}
const exportLoading = ref(false);
const handleImportDialog = () => {
ImportRecruitInfoRef.value?.init("R10002");
};
onMounted(() => {
init()
})

View File

@@ -281,19 +281,28 @@
@click="handleAddData">新增
</el-button>
<el-button
v-if="hasAuth('zipExport')"
type="warning"
plain
icon="Download"
@click="downZip()">招生名单打包导出
</el-button>
<el-button
class="ml10"
type="warning"
plain
icon="Download"
@click="handleExport()">名单导出
v-auth="'recruit_zzpt_import'"
type="primary"
plain
icon="UploadFilled"
:loading="exportLoading"
@click="handleImportDialog"
>导入中招平台数据
</el-button>
<!-- <el-button-->
<!-- v-if="hasAuth('zipExport')"-->
<!-- type="warning"-->
<!-- plain-->
<!-- icon="Download"-->
<!-- @click="downZip()">招生名单打包导出-->
<!-- </el-button>-->
<!-- <el-button -->
<!-- class="ml10"-->
<!-- type="warning"-->
<!-- plain-->
<!-- icon="Download"-->
<!-- @click="handleExport()">名单导出-->
<!-- </el-button>-->
</div>
</el-row>
@@ -634,7 +643,9 @@
<AdmissionNoticeDialog ref="admissionNoticeDialogRef" @refresh="getDataList"></AdmissionNoticeDialog>
<InterviewForm ref="interviewFormRef" @refresh="getDataList"></InterviewForm>
</div>
<import-recruit-info ref="ImportRecruitInfoRef" @refreshDataList="getDataList"></import-recruit-info>
</div>
</div>
</template>
@@ -681,6 +692,8 @@ const InterviewForm = defineAsyncComponent(() => import('/@/views/recruit/recrui
const PayQrcodeDialog = defineAsyncComponent(() => import('./PayQrcodeDialog.vue'))
const AdmissionNoticeDialog = defineAsyncComponent(() => import('./AdmissionNoticeDialog.vue'))
const ActionDropdown = defineAsyncComponent(() => import('/@/components/tools/action-dropdown.vue'))
const ImportRecruitInfo = defineAsyncComponent(() => import('/@/views/recruit/common/import-recruit-info.vue'));
const ImportRecruitInfoRef=ref<any>();
const { hasAuth } = useAuth()
// 消息提示 hooks
const message = useMessage()
@@ -1131,6 +1144,10 @@ watch(() => dataForm.groupId, () => {
}
})
const handleImportDialog = () => {
ImportRecruitInfoRef.value?.init("R10003");
};
onMounted(() => {
init()
})