Browse Source

人员修改界面判断非空,修改单位不提示上传附件

xiyang.wang 7 months ago
parent
commit
e3bedbf071
1 changed files with 11 additions and 2 deletions
  1. 11 2
      ruoyi-system/src/main/resources/templates/ahrs/personnel/edit.html

+ 11 - 2
ruoyi-system/src/main/resources/templates/ahrs/personnel/edit.html

@@ -896,13 +896,22 @@
         if(additionalPostTypeId == undefined){
             additionalPostTypeId = "";
         }
+
+        var staffGrades = $("#staffGrades").val();
+        if(staffGrades == undefined){
+            staffGrades = "";
+        }
+        var staffGradesTime = $("#staffGradesTime").val();
+        if(staffGradesTime == undefined){
+            staffGradesTime = "";
+        }
         if (
             $("#currentPostTypeId").val() != personnel.currentPostType
             || $("#currentPostTime").val() != personnel.currentPostTime
             || $("#leadershipPos").val() != personnel.leadershipPos
             || (personnel.leadershipPosTime != null && $("#leadershipPosTime").val() !=  personnel.leadershipPosTime)
-            ||  $("#staffGrades").val() != personnel.staffGrades
-            || (personnel.staffGradesTime != null && $("#staffGradesTime").val() != personnel.staffGradesTime)
+            || staffGrades != personnel.staffGrades
+            || (personnel.staffGradesTime != null && staffGradesTime != personnel.staffGradesTime)
             || (personnel.additionalPostTime != null && $("#additionalPostTime").val() != personnel.additionalPostTime)
             || additionalPostTypeId != personnel.additionalPostType