فهرست منبع

凌云集团更改公司

peiguo 5 سال پیش
والد
کامیت
0a4c27a819
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      whepi-ui/templates/home/home.ftl

+ 7 - 1
whepi-ui/templates/home/home.ftl

@@ -90,6 +90,7 @@
         ribao_add();
         ribao_cancel();
         getUptownUnitLY();
+        getDepartmentIdLY($("#unitId").val())
       $("#newUnitId").on("change", function () {
         var unitId = $("#newUnitId").val()
         $("#newDepartmentId").empty();
@@ -188,7 +189,12 @@
                         html += '<option value="' + data[i].unitId + '">' + data[i].ridgepole + data[i].unit + '</option>';
                     }
                     $('#newUnitId').append(html);
-                    $("#newUnitId").val('0');
+                    ("#unitId").length
+                    if($("#unitId").length>0) {
+                      $("#newUnitId").val($("#unitId").val());
+                    }else {
+                      $("#newUnitId").val('0');
+                    }
                 }
             }
         });