var my_department = []; for (var i = 0; i < aggregations.all_outdept_name.buckets.length; i++) { if (aggregations.all_outdept_name.buckets[i].key == '') continue; var department_obj = { value: aggregations.all_outdept_name.buckets[i].key, label: aggregations.all_outdept_name.buckets[i].key, count: aggregations.all_outdept_name.buckets[i].doc_count } my_department.push(department_obj); } _this.department = my_department;
慕森王
相关分类