From 18bbfd71ba79eee108288ffdbfc67ae97b6abd76 Mon Sep 17 00:00:00 2001 From: zhaichao Date: Sun, 23 Aug 2026 20:34:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E6=89=8D=E5=9F=B9=E5=85=BB=E6=96=B9?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/teachBusiness/training.js | 71 ++ .../teachBusiness/trainingPlan/index.vue | 737 ++++++++++-------- 2 files changed, 501 insertions(+), 307 deletions(-) create mode 100644 frontend/src/api/teachBusiness/training.js diff --git a/frontend/src/api/teachBusiness/training.js b/frontend/src/api/teachBusiness/training.js new file mode 100644 index 000000000..d64b39845 --- /dev/null +++ b/frontend/src/api/teachBusiness/training.js @@ -0,0 +1,71 @@ +import request from '@/utils/request' + +// 人才培养方案(专业表 ZYB /training) +// 接口依据:TrainingProgramController(前端 baseURL 为 /api,此处不重复 /api 前缀) + +/** + * 新增培养方案(专业) + * POST /training/add + * 请求体(ZYB):zydh/zymc/zydm/pxcc/pxlx 必填; + * 主键 zydh 需手动传入(留空时后端自动生成 UUID,后端同时置 ty=false、qysj=当前时间) + */ +export function addTraining(data) { + return request({ + url: '/training/add', + method: 'post', + data + }) +} + +/** + * 停用(逻辑删除)培养方案 + * POST /training/disable?zydh= + * @param zydh 专业代号(必填) + */ +export function disableTraining(zydh) { + return request({ + url: '/training/disable', + method: 'post', + params: { zydh } + }) +} + +/** + * 更新培养方案 + * POST /training/update + * 请求体(ZYB):zydh 必传 + */ +export function updateTraining(data) { + return request({ + url: '/training/update', + method: 'post', + data + }) +} + +/** + * 根据专业代号查询培养方案详情 + * GET /training/get?zydh= + * @param zydh 专业代号 + */ +export function getTraining(zydh) { + return request({ + url: '/training/get', + method: 'get', + params: { zydh } + }) +} + +/** + * 分页条件查询培养方案列表 + * GET /training/list + * 查询参数:zymc(模糊)、zydm(模糊)、pxlx(精确)、pxcc(精确)、pageNum、pageSize + * 返回:PageResult(records/total) + */ +export function listTraining(params) { + return request({ + url: '/training/list', + method: 'get', + params + }) +} diff --git a/frontend/src/views/teachBusiness/trainingPlan/index.vue b/frontend/src/views/teachBusiness/trainingPlan/index.vue index 30f48e94b..67cc4f44f 100644 --- a/frontend/src/views/teachBusiness/trainingPlan/index.vue +++ b/frontend/src/views/teachBusiness/trainingPlan/index.vue @@ -2,100 +2,46 @@
- - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + - + - - + + + + - - - - - - - - - - 启用 - 停用 - - - - - - - + + + + + +
+ 查询 + 重置 +
+
-
- 新建 + 新建 下载
- 【人才培养方案目录模板】下载 + 【人才培养方案目录模板】下载
@@ -114,237 +60,387 @@ - - - - - - - - - - - - +
+
人才培养方案列表
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + {{ fmtVal(detail.data.zydh) }} + {{ fmtVal(detail.data.zymc) }} + {{ fmtVal(detail.data.zydm) }} + {{ fmtVal(detail.data.zyfx) }} + {{ fmtVal(detail.data.pxlx) }} + {{ fmtVal(detail.data.pxcc) }} + {{ fmtVal(detail.data.pxlx2) }} + {{ fmtVal(detail.data.xylb) }} + {{ fmtVal(detail.data.xnz) }} + {{ fmtVal(detail.data.xqs) }} + {{ fmtVal(detail.data.zybb) }} + {{ fmtYesNo(detail.data.zgzy) }} + {{ fmtVal(detail.data.zdyfl) }} + {{ fmtVal(detail.data.jxgljgbh) }} + {{ fmtVal(detail.data.gfmc) }} + {{ fmtVal(detail.data.zygf) }} + {{ fmtVal(detail.data.jc) }} + {{ fmtVal(detail.data.zybsh) }} + {{ fmtVal(detail.data.xkzyxxbsh) }} + {{ fmtVal(detail.data.jxdgbh) }} + {{ fmtVal(detail.data.rpbh) }} + {{ fmtVal(detail.data.jclb) }} + {{ fmtVal(detail.data.xtms) }} + {{ fmtDateTime(detail.data.qysj) }} + {{ fmtDateTime(detail.data.tysj) }} + {{ fmtVal(detail.data.zybz) }} + {{ fmtVal(detail.data.pymb) }} +
\ No newline at end of file + +.danger-text-btn { + color: #f56c6c; + + &:hover { + color: #f78989; + } +} +