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();
}
});
// 初始化日期选择器