generated from root/miduo_server
1 line
10 KiB
Go
1 line
10 KiB
Go
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-01ffaa1c"],{1:function(t,e){},2:function(t,e){},3:function(t,e){},"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 c})),n.d(e,"a",(function(){return s}));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 c(t){return Object(r["a"])({url:"/system/menu/save",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/system/menu/delete/".concat(t),method:"post"})}},"840c":function(t,e,n){"use strict";n("a33a")},a33a:function(t,e,n){},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 c})),n.d(e,"x",(function(){return s})),n.d(e,"y",(function(){return i})),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 p})),n.d(e,"c",(function(){return b})),n.d(e,"z",(function(){return g})),n.d(e,"A",(function(){return y})),n.d(e,"F",(function(){return v})),n.d(e,"d",(function(){return O})),n.d(e,"e",(function(){return j})),n.d(e,"f",(function(){return _})),n.d(e,"B",(function(){return k})),n.d(e,"a",(function(){return w})),n.d(e,"o",(function(){return x})),n.d(e,"p",(function(){return D})),n.d(e,"C",(function(){return S})),n.d(e,"b",(function(){return F})),n.d(e,"u",(function(){return C})),n.d(e,"t",(function(){return T})),n.d(e,"r",(function(){return L})),n.d(e,"g",(function(){return M})),n.d(e,"G",(function(){return $})),n.d(e,"q",(function(){return E})),n.d(e,"l",(function(){return q})),n.d(e,"j",(function(){return z}));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 c(t){return Object(r["a"])({url:"/system/game/lv",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/system/game/playerinfo",method:"post",data:t})}function i(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 p(t){return Object(r["a"])({url:"/system/game/saveserver",method:"post",data:t})}function b(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 y(t){return Object(r["a"])({url:"/system/game/getwhitelistdetail/".concat(t),method:"get"})}function v(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 _(t){return Object(r["a"])({url:"/system/game/getblacklistdetail/".concat(t),method:"get"})}function k(t){return Object(r["a"])({url:"/system/game/saveblacklist",method:"post",data:t})}function w(t){return Object(r["a"])({url:"/system/game/delblacklist/".concat(t),method:"post"})}function x(t){return Object(r["a"])({url:"/system/game/noticeinfo",method:"post",data:t})}function D(t){return Object(r["a"])({url:"/system/game/getnoticeinfodetail/".concat(t),method:"get"})}function S(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 T(t){return Object(r["a"])({url:"/system/game/getrechargestatisticslist",method:"post",data:t})}function L(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 $(t,e,n){return Object(r["a"])({url:"/system/game/setsilence?id=".concat(t,"&type=").concat(e,"&serverId=").concat(n),method:"get"})}function E(t){return Object(r["a"])({url:"/system/game/getonlinenumlist",method:"post",data:t})}function q(t){return Object(r["a"])({url:"/system/game/getltvlist",method:"post",data:t})}function z(t){return Object(r["a"])({url:"/system/game/getitemloglist",method:"post",data:t})}},edb3: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:"search-form",staticStyle:{"margin-bottom":"15px"}},[n("div",{staticStyle:{"margin-bottom":"10px"}},[n("span",[t._v("服务器:")]),t._v(" "),n("el-select",{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("span",{staticClass:"demonstration",staticStyle:{"margin-left":"20px"}},[t._v("日期:")]),t._v(" "),n("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions2},model:{value:t.searchForm.searchData,callback:function(e){t.$set(t.searchForm,"searchData",e)},expression:"searchForm.searchData"}}),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(){return t.fetchData()}}},[t._v("查询")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.exportExcel}},[t._v("点击导出")])],1)]),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":"","header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},"default-sort":{prop:"creatday",order:"descending"},height:"780"}},[n("el-table-column",{attrs:{label:"序号",width:"50",fixed:"left"},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:"95",prop:"creatday",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.creatday)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"新增账号",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.accountcount)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"新增角色",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.count)+"\n ")]}}])}),t._v(" "),t._l(t.hour24,(function(e,r){return n("el-table-column",{key:r,attrs:{label:r+"~"+(r+1)+"点",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[null!=e.row["hour"+r]?n("span",[t._v(" "+t._s(e.row["hour"+r]+"人")+" ")]):n("span",[t._v(" "+t._s("0人")+" ")])]}}],null,!0)})}))],2)],1)])},a=[],o=n("5530"),u=n("eb8c"),c=n("7a49"),s=n("ed08"),i=n("21a6"),l=n.n(i),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:{serverid:"",name:"",rows:"10",page:"1",channel:""},pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-6048e5),t.$emit("pick",[n,e])}},{text:"最近15天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-1296e6),t.$emit("pick",[n,e])}},{text:"最近30天",onClick:function(t){var e=new Date,n=new Date;n.setTime(n.getTime()-2592e6),t.$emit("pick",[n,e])}}]}}},created:function(){this.getServerList(),this.fetchData(),this.hour24=new Array(24)},methods:{selectServer:function(){this.fetchData()},fetchData:function(){var t=this;this.listLoading=!0,Object(u["h"])(Object(o["a"])({},this.searchForm)).then((function(e){t.list=e.data.rows,t.listLoading=!1}))},fetchTreeData:function(){var t=this;this.listLoading=!0,Object(c["d"])().then((function(e){t.menulist=e.data,t.treeData=Object(s["b"])(e.data),t.listLoading=!1}))},handelMenuCheck:function(){var t=this.$refs.menuTree.getCheckedKeys();t.length?this.showMenuErr=!1:this.showMenuErr=!0},numFilter:function(t){var e=parseFloat(t).toFixed(2);return e},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"}),"每小时注册人数-"+Date.parse(new Date)/1e3+".xlsx")}catch(r){"undefined"!==typeof console&&console.log(r,n)}return n}}},h=f,p=(n("840c"),n("2877")),b=Object(p["a"])(h,r,a,!1,null,"54fbe8b7",null);e["default"]=b.exports}}]); |