From 7f200ecffd2e16999862cf11e5ef1e54b3c76318 Mon Sep 17 00:00:00 2001 From: dshclm <3321914460@qq.com> Date: Thu, 5 Jun 2025 11:22:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/newdev/leave/leaveFile.html | 2 +- .../system/newdev/train/training.html | 50 ++++++++++++++++--- 2 files changed, 44 insertions(+), 8 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/newdev/leave/leaveFile.html b/ruoyi-admin/src/main/resources/templates/system/newdev/leave/leaveFile.html index 371e6ac1..e5cfcc7f 100644 --- a/ruoyi-admin/src/main/resources/templates/system/newdev/leave/leaveFile.html +++ b/ruoyi-admin/src/main/resources/templates/system/newdev/leave/leaveFile.html @@ -301,7 +301,7 @@ 下载模版 - + 、
diff --git a/ruoyi-admin/src/main/resources/templates/system/newdev/train/training.html b/ruoyi-admin/src/main/resources/templates/system/newdev/train/training.html index 015ce628..7d57fe1b 100644 --- a/ruoyi-admin/src/main/resources/templates/system/newdev/train/training.html +++ b/ruoyi-admin/src/main/resources/templates/system/newdev/train/training.html @@ -106,16 +106,32 @@
+ + + + + + + + + +
- +
- - - - + + + + +
+ +
-
@@ -325,8 +341,27 @@ uploadSuccessMessage: '', prefix: ctx + "system/train", pdfUrl:'/file/pdfFiles/保密教育培训登记表.pdf', + // 新增下拉框数据 + postOptions: [], // 已(拟)任涉密岗位选项 + isLoadingPosts: false, }, methods: { + // 新增获取下拉框数据的方法 + fetchPostOptions: function() { + this.isLoadingPosts = true; + var _this = this; + axios.post('/system/classifiedPost/getPostNames') + .then(function(response) { + // 直接使用返回的字符串数组 + _this.postOptions = response.data.data || []; + _this.isLoadingPosts = false; + }) + .catch(function(error) { + console.error('获取涉密岗位数据失败:', error); + _this.isLoadingPosts = false; + _this.$message.error('获取涉密岗位数据失败,请刷新页面重试'); + }); + }, // 新增文件上传相关方法 handleFileSelection(event) { this.selectedFiles = event.target.files; @@ -545,7 +580,8 @@ // 获取已上传文件 this.getUploadedFiles(); - + // 页面加载时获取下拉框数据 + this.fetchPostOptions(); } }); // 初始化日期选择器