chunk-1a41bc46.fd12e366.js 9.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a41bc46"],{"008c":function(t,e,n){"use strict";n("ccd7")},"6fdd":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",{staticStyle:{"margin-left":"20px"}},[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",{staticStyle:{"margin-left":"20px"}},[t._v("类型:")]),t._v(" "),n("el-select",{attrs:{size:"small",clearable:"",filterable:"",placeholder:"请选择类型"},on:{change:t.selectServer},model:{value:t.searchForm.ctype,callback:function(e){t.$set(t.searchForm,"ctype",e)},expression:"searchForm.ctype"}},[n("el-option",{attrs:{label:"世界",value:"1"}}),t._v(" "),n("el-option",{attrs:{label:"公会",value:"2"}})],1),t._v(" "),n("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary",size:"small"},on:{click:function(){return t.fetchData()}}},[t._v("\n 查询\n ")])],1)]),t._v(" "),n("div",{staticClass:"div-table"},[n("el-table",{attrs:{data:t.list,"element-loading-text":"Loading",border:"",fit:"","highlight-current-row":"","header-cell-style":{"text-align":"center"},"cell-style":{"text-align":"center"},height:"780"}},[n("el-table-column",{attrs:{type:"index",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:"用户id",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.uid))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"用户名",width:"158"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.name))])]}}])}),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(1==e.row.type?"世界":"公会"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"消息",width:"700"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.message))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"状态",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(0==e.row.status?"正常":"禁言"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"时间",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.time))])]}}])}),t._v(" "),t._e(),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(){return t.setSilenceBtn(e.row,"1")}}},[t._v("禁言\n ")]),t._v(" "),n("el-button",{attrs:{size:"small",type:"success"},on:{click:function(){return t.setSilenceBtn(e.row,"0")}}},[t._v("解除禁言\n ")])]}}])})],1)],1)])},a=[],s=n("5530"),o=n("eb8c"),c={data:function(){return{serverMaps:null,treeData:null,list:null,listLoading:!0,searchForm:{openId:"",rows:"10",page:"1"},dialogFormVisible:!1,formLabelWidth:"100px",form:{id:"",openId:""},rules:{}}},created:function(){this.getServerList(),this.fetchData()},methods:{fetchData:function(){var t=this;this.listLoading=!0,Object(o["g"])(Object(s["a"])({},this.searchForm)).then((function(e){t.list=e.data.rows,t.listLoading=!1}))},getServerList:function(){var t=this;Object(o["u"])().then((function(e){t.serverMaps=e.data}))},setSilenceBtn:function(t,e){var n=this;"1"===e?this.$confirm("确定要禁言 ‘"+t.uid+"’吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["G"])(t.uid,e,t.serverId).then((function(t){0===t.code?(n.$message({message:"修改成功",type:"success"}),n.dialogFormVisible=!1,n.fetchData()):n.$message({message:t.msg,type:"error"})}))})).catch((function(){n.$message({type:"info",message:"已取消禁言"})})):this.$confirm("确定要给‘"+t.uid+"’解除禁言吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(o["G"])(t.uid,e,t.serverId).then((function(t){0===t.code?(n.$message({message:"修改成功",type:"success"}),n.dialogFormVisible=!1,n.fetchData()):n.$message({message:t.msg,type:"error"})}))})).catch((function(){n.$message({type:"info",message:"已取消解除禁言"})}))}}},u=c,i=(n("008c"),n("2877")),l=Object(i["a"])(u,r,a,!1,null,"04e031f2",null);e["default"]=l.exports},ccd7:function(t,e,n){},eb8c:function(t,e,n){"use strict";n.d(e,"k",(function(){return a})),n.d(e,"s",(function(){return s})),n.d(e,"n",(function(){return o})),n.d(e,"m",(function(){return c})),n.d(e,"x",(function(){return u})),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 g})),n.d(e,"c",(function(){return p})),n.d(e,"z",(function(){return b})),n.d(e,"A",(function(){return v})),n.d(e,"F",(function(){return y})),n.d(e,"d",(function(){return _})),n.d(e,"e",(function(){return j})),n.d(e,"f",(function(){return O})),n.d(e,"B",(function(){return w})),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 F})),n.d(e,"b",(function(){return $})),n.d(e,"u",(function(){return B})),n.d(e,"t",(function(){return D})),n.d(e,"r",(function(){return L})),n.d(e,"g",(function(){return z})),n.d(e,"G",(function(){return I})),n.d(e,"q",(function(){return C})),n.d(e,"l",(function(){return T})),n.d(e,"j",(function(){return G}));var r=n("b775");function a(t){return Object(r["a"])({url:"/system/game/liucun",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/system/game/payliucun",method:"post",data:t})}function o(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 u(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 g(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 b(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 _(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 O(t){return Object(r["a"])({url:"/system/game/getblacklistdetail/".concat(t),method:"get"})}function w(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 F(t){return Object(r["a"])({url:"/system/game/savenoticeinfo",method:"post",data:t})}function $(t){return Object(r["a"])({url:"/system/game/delnoticeinfo/".concat(t),method:"post"})}function B(){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 L(t){return Object(r["a"])({url:"/system/game/rechargeflow",method:"post",data:t})}function z(t){return Object(r["a"])({url:"/system/game/getchatinfolist",method:"post",data:t})}function I(t,e,n){return Object(r["a"])({url:"/system/game/setsilence?id=".concat(t,"&type=").concat(e,"&serverId=").concat(n),method:"get"})}function C(t){return Object(r["a"])({url:"/system/game/getonlinenumlist",method:"post",data:t})}function T(t){return Object(r["a"])({url:"/system/game/getltvlist",method:"post",data:t})}function G(t){return Object(r["a"])({url:"/system/game/getitemloglist",method:"post",data:t})}}}]);