north 7 年之前
父节点
当前提交
7e1a602205
共有 1 个文件被更改,包括 24 次插入10 次删除
  1. 24 10
      www/protected/views/houseKeeping/index.php

+ 24 - 10
www/protected/views/houseKeeping/index.php

@@ -288,7 +288,6 @@
   var jq_add_dialog = $('#add_dialog');
   var jq_add_form = $('#add_form');
 
-
   var jq_set_precedence = $('#set_precedence');
 
 
@@ -296,6 +295,7 @@
 
   $(function(){
 
+
     jq_acc.accordion({
       height: w_height - 18,
       onSelect: function(title) {
@@ -380,7 +380,28 @@
         $('#yc_time_str').val(date.getTime()/1000);
       }
     });
-
+    jq_filter_status.combobox({
+      width: 100,
+      data:  (function () {
+        var status_data_temp = new Array();
+        $.extend(status_data_temp, status_data);
+        status_data_temp.forEach((value,index) => {
+          console.log(index,value)
+          if (index == 0) {
+            value.selected = true
+            value.attributes = '全部'
+          } else {
+            value.selected = false
+          }
+        });
+        console.log(status_data_temp)
+        return status_data_temp;
+      })(),
+      editable: false,
+      onSelect: function(){
+        search_content();
+      }
+    });
 
 
     jq_setStatus_add.combobox({
@@ -598,14 +619,7 @@
 
     });
 
-    jq_filter_status.combobox({
-      width: 100,
-      data: status_data,
-      editable: false,
-      onSelect: function(){
-        search_content();
-      }
-    });
+