diff --git a/ruoyi-admin/src/main/resources/templates/system/newdev/apply/add.html b/ruoyi-admin/src/main/resources/templates/system/newdev/apply/add.html
index 25b81fdf..0267ac4e 100644
--- a/ruoyi-admin/src/main/resources/templates/system/newdev/apply/add.html
+++ b/ruoyi-admin/src/main/resources/templates/system/newdev/apply/add.html
@@ -1,4 +1,3 @@
-
@@ -255,26 +254,38 @@
placeholder="请输入单位及职务职称">
+
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
@@ -314,8 +325,8 @@
permanentAddress: '',
residentBureau: '',
positionCapacity: '',
- smPost: '',
- smGrade: '',
+ smPost: '', // 下拉框选中值
+ smGrade: '', // 下拉框选中值
photoUrl: '',
applyId: '',
},
@@ -332,6 +343,11 @@
uploadSuccess: false,
uploadSuccessMessage: '',
prefix: ctx + "system/applyList",
+ // 新增下拉框数据
+ postOptions: [], // 已(拟)任涉密岗位选项
+ levelOptions: [], // 涉密等级选项
+ isLoadingPosts: false,
+ isLoadingLevels: false
},
computed: {
previewUrl() {
@@ -498,11 +514,43 @@
});
});
},
+ // 新增获取下拉框数据的方法
+ fetchPostOptions() {
+ this.isLoadingPosts = true;
+ axios.post('/system/classifiedPost/getPostNames')
+ .then(response => {
+ // 直接使用返回的字符串数组
+ this.postOptions = response.data.data || [];
+ this.isLoadingPosts = false;
+ })
+ .catch(error => {
+ console.error('获取涉密岗位数据失败:', error);
+ this.isLoadingPosts = false;
+ this.$message.error('获取涉密岗位数据失败,请刷新页面重试');
+ });
+ },
+ fetchLevelOptions() {
+ this.isLoadingLevels = true;
+ axios.post('/system/classifiedPost/getClassifiedLevels')
+ .then(response => {
+ // 直接使用返回的字符串数组
+ this.levelOptions = response.data.data || [];
+ this.isLoadingLevels = false;
+ })
+ .catch(error => {
+ console.error('获取涉密等级数据失败:', error);
+ this.isLoadingLevels = false;
+ this.$message.error('获取涉密等级数据失败,请刷新页面重试');
+ });
+ }
},
mounted() {
+ // 页面加载时获取下拉框数据
+ this.fetchPostOptions();
+ this.fetchLevelOptions();
}
});
-
+