(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-31dc71db","chunk-ec3044ba"],{"365c":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"a",(function(){return r}));var s=a("b775"),n=function(t){return Object(s["a"])({url:"/data/index",method:"get",params:t})},r=function(t){return Object(s["a"])({url:"/data/getArticleRead",method:"get",params:t})}},5241:function(t,e,a){"use strict";a("b72e")},9406:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"home"},[a("div",{staticClass:"home_data"},[a("el-row",{attrs:{gutter:20,type:"flex",justify:"space-between"}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("div",[a("div",{staticClass:"name"},[t._v("总播放量")]),a("div",{staticClass:"num"},[t._v(t._s(t.homeData.read_count||0))])]),a("svg-icon",{attrs:{"icon-class":"goods","class-name":"custom-class"}})],1)]),a("el-col",{attrs:{span:12}},[a("div",{staticClass:"grid-content"},[a("div",[a("div",{staticClass:"name"},[t._v("总分享量")]),a("div",{staticClass:"num"},[t._v(t._s(t.homeData.share_count||0))])]),a("svg-icon",{attrs:{"icon-class":"store","class-name":"custom-class"}})],1)])],1)],1),a("div",{staticClass:"echarts"},[a("el-row",{staticClass:"table_con"},[a("el-col",{attrs:{span:24}},[a("div",{ref:"echart7"},[a("all-rank",{attrs:{width:"100%"}})],1)])],1)],1)])},n=[],r=(a("d3b7"),a("365c")),i=a("c553"),c={name:"Dashboard",components:{allRank:i["default"]},data:function(){return{homeData:""}},created:function(){this.getData()},methods:{getData:function(){var t=this;Object(r["b"])().then((function(e){200===e.status_code?t.homeData=e.data:t.$message.error(e.msg||"获取数据失败")})).catch((function(e){t.$message.error(e||"获取数据失败")})).finally((function(e){t.loading=!1}))}}},o=c,l=(a("c029"),a("2877")),u=Object(l["a"])(o,s,n,!1,null,"8c1d3cb4",null);e["default"]=u.exports},b72e:function(t,e,a){},c029:function(t,e,a){"use strict";a("f304")},c553:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"rank"},[t._v("数据排名")]),a("el-table",{ref:"allTable",staticStyle:{width:"100%","max-height":"480px",overflow:"auto"},attrs:{border:"",data:t.list,height:"480"},on:{"sort-change":t.toSort}},[a("el-table-column",{attrs:{label:"排名",type:"index",align:"center",width:"60",index:function(e){return t.params.page_size*(t.params.page_index-1)+e+1}}}),a("el-table-column",{attrs:{label:"期数",prop:"stage",align:"center",width:"120"}}),a("el-table-column",{attrs:{label:"标题",prop:"title",align:"center","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{label:"播放量",prop:"read",align:"center",sortable:"custom",width:"120"}}),a("el-table-column",{attrs:{label:"点赞量",prop:"like",align:"center",sortable:"custom",width:"120"}}),a("el-table-column",{attrs:{label:"分享量",prop:"share",align:"center",sortable:"custom",width:"120"}})],1),a("div",{staticClass:"batch-container"},[a("el-pagination",{attrs:{total:t.totalPage,"current-page":t.params.page_index,"page-sizes":[10,15,20,30,100],"page-size":t.params.page_size,layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},n=[],r=a("1da1"),i=(a("96cf"),a("365c")),c={data:function(){return{list:[],params:{page_index:1,page_size:10,type:"read",sort:"desc"},totalPage:0}},created:function(){this.getList()},methods:{getList:function(){var t=this;return Object(r["a"])(regeneratorRuntime.mark((function e(){var a,s,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(i["a"])(t.params);case 2:a=e.sent;try{s=a.msg,n=a.status_code,r=a.data,200===n?(t.list=r.list,t.totalPage=r.total):t.$message.error(s||"获取数据失败")}catch(c){t.$message.error(c||"获取数据失败")}case 4:case"end":return e.stop()}}),e)})))()},toSort:function(t){var e=t.prop,a=t.order;this.params.type=e,this.params.sort="ascending"===a?"asc":"desc",this.getList()},handleSizeChange:function(t){this.params.page_size=t,this.getList()},handleCurrentChange:function(t){this.params.page_index=t,this.getList()}}},o=c,l=(a("5241"),a("2877")),u=Object(l["a"])(o,s,n,!1,null,"bbfa6e4e",null);e["default"]=u.exports},f304:function(t,e,a){}}]);