Browse Source

接收 分派 选择流入地党支部名称 弹框高度自适应优化

dzy 2 years ago
parent
commit
617dfc2cf6

+ 2 - 2
ruoyi-lddy/src/main/resources/templates/staffChange/reception.html

@@ -50,9 +50,10 @@
         focusCleanup: true
         focusCleanup: true
     });
     });
     function nanotubesById() {
     function nanotubesById() {
+        var height = parent.document.body.clientHeight-50
         parent.layer.open({
         parent.layer.open({
             type: 2,
             type: 2,
-            area: ['500px', '800px'],
+            area: ['500px', height+'px'],
             fix: false,
             fix: false,
             //关闭遮罩
             //关闭遮罩
             shade:0.3,
             shade:0.3,
@@ -90,7 +91,6 @@
             $.modal.alertError("请选择流入地党支部!");
             $.modal.alertError("请选择流入地党支部!");
             return {"code": 1, "msg": "请选择流入地党支部!"};
             return {"code": 1, "msg": "请选择流入地党支部!"};
         }
         }
-        debugger
         if(type==0){
         if(type==0){
             $.modal.confirm("确认要将<strong>" + name + "</strong>纳管到<strong>" + $("#deptName").val() + "</strong>吗?", function () {
             $.modal.confirm("确认要将<strong>" + name + "</strong>纳管到<strong>" + $("#deptName").val() + "</strong>吗?", function () {
                 var data = {"staffChangeId": $("#staffChangeId").val(), "nanotubes": "1", "flowDeptId": $("#deptId").val(), "flowDeptIn": $("#deptId").val()};
                 var data = {"staffChangeId": $("#staffChangeId").val(), "nanotubes": "1", "flowDeptId": $("#deptId").val(), "flowDeptIn": $("#deptId").val()};