1
This commit is contained in:
@@ -1,9 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog v-model="visible" :title="title" width="600" append-to-body>
|
<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>
|
<el-button type="success" :icon="Download" @click="handleDownloadTemplate">下载模板</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<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
|
<el-upload
|
||||||
ref="uploadRef"
|
ref="uploadRef"
|
||||||
class="upload-demo"
|
class="upload-demo"
|
||||||
@@ -47,7 +59,9 @@ const uploadUrl = ref('')
|
|||||||
const currentType = ref('')
|
const currentType = ref('')
|
||||||
const uploadRef = ref<{ clearFiles?: () => void }>()
|
const uploadRef = ref<{ clearFiles?: () => void }>()
|
||||||
const titleMap: Record<string, string> = {
|
const titleMap: Record<string, string> = {
|
||||||
planMajor: '计划专业导入'
|
R10001: '计划专业导入',
|
||||||
|
R10002: '地区分数导入',
|
||||||
|
R10003: '中招平台数据导入'
|
||||||
}
|
}
|
||||||
// 方法
|
// 方法
|
||||||
const init = (type: any) => {
|
const init = (type: any) => {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
<el-button v-if="hasAuth('recruit_recruitplanmajor_add')" type="primary" icon="FolderAdd" @click="addOrUpdateHandle"> 新 增 </el-button>
|
<el-button v-if="hasAuth('recruit_recruitplanmajor_add')" type="primary" icon="FolderAdd" @click="addOrUpdateHandle"> 新 增 </el-button>
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
v-auth="'professional_teacherinfo_import'"
|
v-auth="'recruit_major_import'"
|
||||||
type="primary"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
icon="UploadFilled"
|
icon="UploadFilled"
|
||||||
|
|||||||
@@ -29,6 +29,15 @@
|
|||||||
>
|
>
|
||||||
新 增
|
新 增
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
v-auth="'recruit_areascore_import'"
|
||||||
|
type="primary"
|
||||||
|
plain
|
||||||
|
icon="UploadFilled"
|
||||||
|
:loading="exportLoading"
|
||||||
|
@click="handleImportDialog"
|
||||||
|
>导入信息
|
||||||
|
</el-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 表格 -->
|
<!-- 表格 -->
|
||||||
@@ -83,6 +92,9 @@
|
|||||||
|
|
||||||
<!-- 弹窗, 新增 / 修改 -->
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
<table-form ref="addOrUpdateRef" @refreshDataList="getDataList" />
|
<table-form ref="addOrUpdateRef" @refreshDataList="getDataList" />
|
||||||
|
|
||||||
|
<import-recruit-info ref="ImportRecruitInfoRef" @refreshDataList="getDataList"></import-recruit-info>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -94,6 +106,8 @@ import { BasicTableProps, useTable } from '/@/hooks/table'
|
|||||||
import { useMessage, useMessageBox } from '/@/hooks/message'
|
import { useMessage, useMessageBox } from '/@/hooks/message'
|
||||||
import { getList } from '/@/api/recruit/recruitstudentplangroup'
|
import { getList } from '/@/api/recruit/recruitstudentplangroup'
|
||||||
import { fetchList, delObj } from '/@/api/recruit/recruitstudentplancorrectscoreconfig'
|
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 TableForm = defineAsyncComponent(() => import('./detaiform.vue'))
|
||||||
const { hasAuth } = useAuth()
|
const { hasAuth } = useAuth()
|
||||||
@@ -183,6 +197,12 @@ const resetQuery = () => {
|
|||||||
getDataList()
|
getDataList()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const exportLoading = ref(false);
|
||||||
|
|
||||||
|
const handleImportDialog = () => {
|
||||||
|
ImportRecruitInfoRef.value?.init("R10002");
|
||||||
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
init()
|
init()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -281,19 +281,28 @@
|
|||||||
@click="handleAddData">新增
|
@click="handleAddData">新增
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="hasAuth('zipExport')"
|
v-auth="'recruit_zzpt_import'"
|
||||||
type="warning"
|
type="primary"
|
||||||
plain
|
plain
|
||||||
icon="Download"
|
icon="UploadFilled"
|
||||||
@click="downZip()">招生名单打包导出
|
:loading="exportLoading"
|
||||||
</el-button>
|
@click="handleImportDialog"
|
||||||
<el-button
|
>导入中招平台数据
|
||||||
class="ml10"
|
|
||||||
type="warning"
|
|
||||||
plain
|
|
||||||
icon="Download"
|
|
||||||
@click="handleExport()">名单导出
|
|
||||||
</el-button>
|
</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>
|
</div>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
|
||||||
@@ -634,6 +643,8 @@
|
|||||||
<AdmissionNoticeDialog ref="admissionNoticeDialogRef" @refresh="getDataList"></AdmissionNoticeDialog>
|
<AdmissionNoticeDialog ref="admissionNoticeDialogRef" @refresh="getDataList"></AdmissionNoticeDialog>
|
||||||
|
|
||||||
<InterviewForm ref="interviewFormRef" @refresh="getDataList"></InterviewForm>
|
<InterviewForm ref="interviewFormRef" @refresh="getDataList"></InterviewForm>
|
||||||
|
|
||||||
|
<import-recruit-info ref="ImportRecruitInfoRef" @refreshDataList="getDataList"></import-recruit-info>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -681,6 +692,8 @@ const InterviewForm = defineAsyncComponent(() => import('/@/views/recruit/recrui
|
|||||||
const PayQrcodeDialog = defineAsyncComponent(() => import('./PayQrcodeDialog.vue'))
|
const PayQrcodeDialog = defineAsyncComponent(() => import('./PayQrcodeDialog.vue'))
|
||||||
const AdmissionNoticeDialog = defineAsyncComponent(() => import('./AdmissionNoticeDialog.vue'))
|
const AdmissionNoticeDialog = defineAsyncComponent(() => import('./AdmissionNoticeDialog.vue'))
|
||||||
const ActionDropdown = defineAsyncComponent(() => import('/@/components/tools/action-dropdown.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()
|
const { hasAuth } = useAuth()
|
||||||
// 消息提示 hooks
|
// 消息提示 hooks
|
||||||
const message = useMessage()
|
const message = useMessage()
|
||||||
@@ -1131,6 +1144,10 @@ watch(() => dataForm.groupId, () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const handleImportDialog = () => {
|
||||||
|
ImportRecruitInfoRef.value?.init("R10003");
|
||||||
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
init()
|
init()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user