/** PTNovelSearch-v4.1.2 LPPL License By http://www.ptcms.com/ */
 ;layui.define(function(a){layui.use(["admin","carousel"],function(){var a=layui.$,e=(layui.admin,layui.carousel),i=layui.element,t=layui.device();layui.layer;a(".layadmin-carousel").each(function(){var i=a(this);e.render({elem:this,width:"100%",arrow:"none",interval:i.data("interval"),autoplay:i.data("autoplay")===!0,trigger:t.ios||t.android?"click":"hover",anim:i.data("anim")})}),i.render("progress")}),layui.use(["carousel","echarts"],function(){var a=layui.$,e=(layui.carousel,layui.echarts),i=[],t=[{title:{text:"",x:"center",textStyle:{fontSize:14}},tooltip:{trigger:"axis"},legend:{data:["",""]},xAxis:[],yAxis:[{type:"value"}],series:[]}],n=a("#LAY-index-dataview").children("div"),l=function(a){layui.admin.req({url:"/manage/system/stat/console.json",success:function(l){t[a].title.text=l.data.title,t[a].xAxis.push({type:"category",boundaryGap:!1,data:l.data.category}),t[a].series=l.data.series,console.log(t[a].xAxis),i[a]=e.init(n[a],layui.echartsTheme),i[a].setOption(t[a]),window.onresize=i[a].resize}})};n[0]&&(l(0),layui.admin.on("side",function(){setTimeout(function(){l(0)},300)}),layui.admin.on("hash(tab)",function(){layui.router().path.join("")||l(0)}))}),a("console",{})});