| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ae1f1d1"],{1:function(t,e){},2:function(t,e){},"2db7":function(t,e,n){},3:function(t,e){},"3bb3":function(t,e,n){"use strict";n("2db7")},"7a49":function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return u})),n.d(e,"e",(function(){return s})),n.d(e,"a",(function(){return i}));var r=n("b775");function a(t){return Object(r["a"])({url:"/system/menu/page",method:"post",data:t})}function o(){return Object(r["a"])({url:"/system/menu/tree",method:"post"})}function u(t){return Object(r["a"])({url:"/system/menu/get/".concat(t),method:"get"})}function s(t){return Object(r["a"])({url:"/system/menu/save",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/system/menu/delete/".concat(t),method:"post"})}},"94a7":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"send-form",staticStyle:{"margin-bottom":"15px"}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("span",[t._v("服务器:")]),t._v(" "),n("el-select",{staticStyle:{width:"90%"},attrs:{size:"small",clearable:"",filterable:"",placeholder:"请选择服务器"},on:{change:t.selectServer},model:{value:t.searchForm.serverid,callback:function(e){t.$set(t.searchForm,"serverid",e)},expression:"searchForm.serverid"}},t._l(t.serverMaps,(function(t){return n("el-option",{key:t.serverid,attrs:{label:t.name,value:t.serverid}})})),1),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.exportExcel}},[t._v("点击导出")])],1)]),t._v(" "),n("div",{staticStyle:{width:"100%",height:"400px"},attrs:{id:"main"}}),t._v(" "),n("div",{staticClass:"div-table"},[n("el-table",{attrs:{id:"out-table",data:t.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"序号",width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.$index+1)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"等级",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.vipLevel)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"人数",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.count))])]}}])})],1)],1)])},a=[],o=(n("6b54"),n("5530")),u=n("eb8c"),s=n("7a49"),i=n("ed08"),c=n("21a6"),l=n.n(c),d=n("1146"),m=n.n(d),f={filters:{typeFilter:function(t){var e={1:"目录",2:"菜单"};return e[t]},statusFilter:function(t){var e={1:"启用",2:"禁用"};return e[t]},statusTypeFilter:function(t){var e={1:"success",2:"danger"};return e[t]}},data:function(){return{serverMaps:null,treeData:null,list:null,option:null,pickerOptions:null,listLoading:!0,defaultProps:{children:"children",label:"name",id:"id"},searchForm:{rows:"10",page:"1",serverid:""}}},created:function(){this.getServerList()},methods:{selectServer:function(){this.fetchData()},fetchData:function(){var t=this;this.listLoading=!0,Object(u["y"])(Object(o["a"])({},this.searchForm)).then((function(e){t.list=e.data.rows,t.listLoading=!1;var r=n("313e"),a=r.init(document.getElementById("main")),o=[],u=[];e.data.rows.map((function(t){var e=t.vipLevel.toString();u.push(e);var n={value:t.count,name:e};o.push(n)}));var s={tooltip:{trigger:"item",formatter:"{a} <br/>{b} 级: {c} 人({d}%)"},legend:{orient:"vertical",left:10,data:u},series:[{name:"等级分布",type:"pie",radius:["50%","70%"],avoidLabelOverlap:!0,label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:"30",fontWeight:"bold"}},labelLine:{show:!1},data:o}]};a.setOption(s)}))},fetchTreeData:function(){var t=this;this.listLoading=!0,Object(s["d"])().then((function(e){t.menulist=e.data,t.treeData=Object(i["b"])(e.data),t.listLoading=!1}))},handelMenuCheck:function(){var t=this.$refs.menuTree.getCheckedKeys();t.length?this.showMenuErr=!1:this.showMenuErr=!0},getServerList:function(){var t=this;Object(u["u"])().then((function(e){t.serverMaps=e.data}))},exportExcel:function(){var t,e=document.querySelector(".el-table__fixed");e?(t=m.a.utils.table_to_book(document.querySelector("#out-table").removeChild(e)),document.querySelector("#out-table").appendChild(e)):t=m.a.utils.table_to_book(document.querySelector("#out-table"));var n=m.a.write(t,{bookType:"xlsx",bookSST:!0,type:"array"});try{l.a.saveAs(new Blob([n],{type:"application/octet-stream"}),"vip等级分布-"+Date.parse(new Date)/1e3+".xlsx")}catch(r){"undefined"!==typeof console&&console.log(r,n)}return n}}},h=f,b=(n("3bb3"),n("2877")),p=Object(b["a"])(h,r,a,!1,null,"518ece70",null);e["default"]=p.exports},eb8c:function(t,e,n){"use strict";n.d(e,"k",(function(){return a})),n.d(e,"s",(function(){return o})),n.d(e,"n",(function(){return u})),n.d(e,"m",(function(){return s})),n.d(e,"x",(function(){return i})),n.d(e,"y",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"i",(function(){return d})),n.d(e,"w",(function(){return m})),n.d(e,"E",(function(){return f})),n.d(e,"v",(function(){return h})),n.d(e,"D",(function(){return b})),n.d(e,"c",(function(){return p})),n.d(e,"z",(function(){return g})),n.d(e,"A",(function(){return v})),n.d(e,"F",(function(){return y})),n.d(e,"d",(function(){return O})),n.d(e,"e",(function(){return j})),n.d(e,"f",(function(){return w})),n.d(e,"B",(function(){return _})),n.d(e,"a",(function(){return k})),n.d(e,"o",(function(){return S})),n.d(e,"p",(function(){return x})),n.d(e,"C",(function(){return L})),n.d(e,"b",(function(){return F})),n.d(e,"u",(function(){return C})),n.d(e,"t",(function(){return D})),n.d(e,"r",(function(){return E})),n.d(e,"g",(function(){return M})),n.d(e,"G",(function(){return q})),n.d(e,"q",(function(){return T})),n.d(e,"l",(function(){return z})),n.d(e,"j",(function(){return $}));var r=n("b775");function a(t){return Object(r["a"])({url:"/system/game/liucun",method:"post",data:t})}function o(t){return Object(r["a"])({url:"/system/game/payliucun",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/system/game/maindate",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/system/game/lv",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/system/game/playerinfo",method:"post",data:t})}function c(t){return Object(r["a"])({url:"/system/game/vip",method:"post",data:t})}function l(t){return Object(r["a"])({url:"/system/game/hour",method:"post",data:t})}function d(t){return Object(r["a"])({url:"/system/game/hourlogin",method:"post",data:t})}function m(t){return Object(r["a"])({url:"/system/game/serverinfo",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/system/game/saveupdatestatue",method:"post",data:t})}function h(t){return Object(r["a"])({url:"/system/game/getserverdetail/".concat(t),method:"get"})}function b(t){return Object(r["a"])({url:"/system/game/saveserver",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/system/game/delserver/".concat(t),method:"post"})}function g(t){return Object(r["a"])({url:"/system/game/whitelist",method:"post",data:t})}function v(t){return Object(r["a"])({url:"/system/game/getwhitelistdetail/".concat(t),method:"get"})}function y(t){return Object(r["a"])({url:"/system/game/savewhitelist",method:"post",data:t})}function O(t){return Object(r["a"])({url:"/system/game/delwhitelist/".concat(t),method:"post"})}function j(t){return Object(r["a"])({url:"/system/game/blacklist",method:"post",data:t})}function w(t){return Object(r["a"])({url:"/system/game/getblacklistdetail/".concat(t),method:"get"})}function _(t){return Object(r["a"])({url:"/system/game/saveblacklist",method:"post",data:t})}function k(t){return Object(r["a"])({url:"/system/game/delblacklist/".concat(t),method:"post"})}function S(t){return Object(r["a"])({url:"/system/game/noticeinfo",method:"post",data:t})}function x(t){return Object(r["a"])({url:"/system/game/getnoticeinfodetail/".concat(t),method:"get"})}function L(t){return Object(r["a"])({url:"/system/game/savenoticeinfo",method:"post",data:t})}function F(t){return Object(r["a"])({url:"/system/game/delnoticeinfo/".concat(t),method:"post"})}function C(){return Object(r["a"])({url:"/system/game/getserverlist",method:"get"})}function D(t){return Object(r["a"])({url:"/system/game/getrechargestatisticslist",method:"post",data:t})}function E(t){return Object(r["a"])({url:"/system/game/rechargeflow",method:"post",data:t})}function M(t){return Object(r["a"])({url:"/system/game/getchatinfolist",method:"post",data:t})}function q(t,e,n){return Object(r["a"])({url:"/system/game/setsilence?id=".concat(t,"&type=").concat(e,"&serverId=").concat(n),method:"get"})}function T(t){return Object(r["a"])({url:"/system/game/getonlinenumlist",method:"post",data:t})}function z(t){return Object(r["a"])({url:"/system/game/getltvlist",method:"post",data:t})}function $(t){return Object(r["a"])({url:"/system/game/getitemloglist",method:"post",data:t})}}}]);
|