diff --git a/frontend/src/api/schedule/teachingPlan.js b/frontend/src/api/schedule/teachingPlan.js new file mode 100644 index 000000000..ca90ff233 --- /dev/null +++ b/frontend/src/api/schedule/teachingPlan.js @@ -0,0 +1,34 @@ +import request from '@/utils/request' + +// ======================== 教学实施计划导入 ======================== +// 接口前缀 /teachingPlan,经 vue.config.js 代理转发为 /api/teachingPlan。 + +// 分页查询教学实施计划列表 +// 支持参数:pageNum pageSize nd kcmc bc zrdw skjy ytgjc ybdr(与后端 Mapper 一致) +export function listTeachingPlan(query) { + return request({ + url: '/teachingPlan/list', + method: 'get', + params: query + }) +} + +// 导入教学实施计划 Excel(multipart,字段名 file),返回导入条数 +export function importTeachingPlan(file) { + const formData = new FormData() + formData.append('file', file) + return request({ + url: '/teachingPlan/import', + method: 'post', + data: formData + }) +} + +// 下载教学实施计划导入模板(返回 Blob) +export function downloadTeachingPlanTemplate() { + return request({ + url: '/teachingPlan/template', + method: 'get', + responseType: 'blob' + }) +} diff --git a/frontend/src/views/schedule/planImport/index.vue b/frontend/src/views/schedule/planImport/index.vue index b022024ab..0368d3729 100644 --- a/frontend/src/views/schedule/planImport/index.vue +++ b/frontend/src/views/schedule/planImport/index.vue @@ -101,9 +101,9 @@
+ 缓存数据导入到系统 上传数据至缓存 检查缓存数据 - 缓存数据导入到系统 删除缓存数据
@@ -112,10 +112,10 @@ - + - + @@ -125,7 +125,6 @@ - @@ -134,9 +133,9 @@ {{ row.ytgjc ? '是' : '否' }} - + @@ -166,12 +165,7 @@