diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pdf/controller/ChangePdfController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pdf/controller/ChangePdfController.java index 6d88914f..939a356e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pdf/controller/ChangePdfController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/pdf/controller/ChangePdfController.java @@ -37,7 +37,7 @@ public class ChangePdfController { if (sex != null) formData.put("性别", sex); if (phone != null) formData.put("联系电话", phone); if (smPost != null) formData.put("原涉密岗位名称", smPost); - if (smPost != null) formData.put("原涉密等级", smGrade); + if (smGrade != null) formData.put("原涉密等级", smGrade); // 构建图片数据 Map imageData = new HashMap<>(); 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 435b7e48..5aead50c 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 @@ -183,7 +183,7 @@ - @@ -194,7 +194,7 @@ - @@ -552,6 +552,26 @@ }); }); }, + phoneCheck(phone){ + // 验证联系方式(仅检查位数) + if (phone.length !== 11) { + this.$message({ + message: '联系方式应为11位数字', + type: 'warning' + }) + return; + } + }, + cernoCheck(cerno){ + // 验证身份证号 + if (!this.validateCerno(cerno)) { + this.$message({ + message: '请输入有效的身份证号码', + type: 'warning' + }) + return; + } + }, // 身份证号验证函数 validateCerno(cerno) { // 身份证号码正则表达式 diff --git a/ruoyi-admin/src/main/resources/templates/system/newdev/apply/edit.html b/ruoyi-admin/src/main/resources/templates/system/newdev/apply/edit.html index 6c4cf848..671c4711 100644 --- a/ruoyi-admin/src/main/resources/templates/system/newdev/apply/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/newdev/apply/edit.html @@ -183,7 +183,7 @@ - @@ -194,7 +194,7 @@ - @@ -533,6 +533,26 @@ }); }); }, + phoneCheck(phone){ + // 验证联系方式(仅检查位数) + if (phone.length !== 11) { + this.$message({ + message: '联系方式应为11位数字', + type: 'warning' + }) + return; + } + }, + cernoCheck(cerno){ + // 验证身份证号 + if (!this.validateCerno(cerno)) { + this.$message({ + message: '请输入有效的身份证号码', + type: 'warning' + }) + return; + } + }, // 身份证号验证函数 validateCerno(cerno) { // 身份证号码正则表达式 diff --git a/ruoyi-admin/src/main/resources/templates/system/newdev/apply/editFile.html b/ruoyi-admin/src/main/resources/templates/system/newdev/apply/editFile.html index 5fa8d405..1d5627d4 100644 --- a/ruoyi-admin/src/main/resources/templates/system/newdev/apply/editFile.html +++ b/ruoyi-admin/src/main/resources/templates/system/newdev/apply/editFile.html @@ -276,8 +276,8 @@ -
-
-
-
+
- +
- - - - + + + + +
+ +
+
- +
- - - - + + + + +
+ +
@@ -282,8 +298,8 @@ -
-  
+ +
+
+
+
+
+

正在处理

+

请稍候,系统正在生成您的PDF文件...

+
+
+
+
@@ -390,7 +418,7 @@