function selecteasyview(e){$("#mydir").html($("#myselviewpath").html());$("#easyview").load("queryGEViewList",{vid:e,model:"easyview"},function(e,t){if(t==="success"){initDataSpeci()}})}function loadEasyViewTree(){if($("#myselview").data){$("#myselview").data("jstree",false).empty()}$.post("getGEViewTree",{modal:"easyview"},function(e){var t='{"core" : {"data" :'+e+',"multiple": false,"check_callback" : true,\n                                    "themes":{"dots":true}},"plugins" : ["themes","wholerow","search" ]}';var i=myJSONParse(t);$("#myselview").jstree(i)})}function mergeTable(e,t){var i=e.bootstrapTable("getData",{useCurrentPage:true,includeHiddenRows:false});mergeTableSpan(e,t,i,0,i.length-1,0)}function initEasyView(){initViewTreeEvents();var e=getQueryString("vid");if(e){selecteasyview(e)}}function initViewTreeEvents(){var e=false;$("#viewsearch").off("keyup").keyup(function(){if(e){clearTimeout(e)}e=setTimeout(function(){var e=$("#viewsearch").val();$("#myselview").jstree(true).search(e)},250)});$("#myselview").unbind("changed").on("changed.jstree",function(e,t){var i=t.instance.get_path(t.selected[0]," ‣ ",0);$("#myselviewpath").html(i);$("#myselviewid").html(t.instance.get_node(t.selected[0]).id)});$("#selectview").click(function(){var e=$("#myselviewid").html();if(e){selecteasyview(e)}})}function initDataSpeci(){$(".datefield").datetimepicker({todayHighlight:true,autoclose:true,minView:"month",todayBtn:true,language:"zh-CN"});$(".datetimefield").datetimepicker({todayHighlight:true,autoclose:true,todayBtn:true,language:"zh-CN"});$(".timefield").datetimepicker({todayHighlight:true,autoclose:true,startView:"hour",todayBtn:true,language:"zh-CN"})}