ソースを参照

添加全部清障队

MSI\liwei 7 年 前
コミット
c79e67aeea

+ 23 - 0
VisualInspection/js/util/util.js

@@ -423,6 +423,29 @@ function setWreckerGroupSelectValue(data, div, selectId) {
     $(div).html(optStr);
 }
 
+function setWreckerGroupAllSelect(div, selectId) {
+    var feeList = $.zui.store.get("cache_wrecker_group_list");
+    if (feeList) {
+        setWreckerGroupSelectAllValue(feeList, div, selectId);
+    } else {
+        get_common_service("/dept/getAllWG", null, function(data) {
+            setWreckerGroupSelectAllValue(data, div, selectId);
+        });
+    }
+}
+
+function setWreckerGroupSelectAllValue(data, div, selectId) {
+    var optStr = '<option value="">全部</option>';
+    for (var i in data) {
+        if (data[i].deptid == selectId)
+            optStr += '<option value="' + data[i].deptid + '" selected="selected">' + data[i].name + '</option>';
+        else
+            optStr += '<option value="' + data[i].deptid + '">' + data[i].name + '</option>';
+    }
+    $(div).html('');
+    $(div).html(optStr);
+}
+
 function setLaneSelect(div, selectId) {
     var optStr = '';
     var data = [];

+ 1 - 1
VisualInspection/qzd/js/other_check/other_check.js

@@ -50,7 +50,7 @@ function init() {
         checked_dept = getCurrentUser().organid;
     }
   //  setSASelect("#fsList", checked_dept);
-    setWreckerGroupSelect("#fsList", checked_dept);
+  setWreckerGroupAllSelect("#fsList", checked_dept);
 
     // 新增服务区下拉框
     var dept;