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) => {