Prechádzať zdrojové kódy

人员修改所属单位不允许选择为非事业单位

xiyang.wang 6 mesiacov pred
rodič
commit
e5da4685aa

+ 22 - 0
ruoyi-system/src/main/resources/templates/ahrs/personnel/edit.html

@@ -854,6 +854,28 @@
     })
 
     function submitHandler() {
+        if ($('#treeName').val()) {
+            $.ajax({
+                type: 'POST',
+                url: ctx + 'system/dept/assert/' + $('#treeId').val(),
+                success: function (r) {
+                    if (r.code === 0) {
+                        if (r.msg != "3N"){
+                            $.modal.alertWarning("修改人员失败,该人员的所属单位不是事业单位!");
+                            return;
+                        }
+                    } else {
+                        $.modal.alertWarning(r.msg);
+                    }
+
+                }
+            })
+        }
+
+
+
+
+
         var personStatus = $('#personnelStatusName').val();
         if ($("#currentPostTypeName").val() == "") {
             $.modal.alertWarning("请选择现任岗位!");