| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8ce21e48"],{"333d":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{layout:"total, sizes, prev, pager, next, jumper",pagination:t.pagination,"page-size":t.pagination.pageSize,"current-page":t.pagination.currentPage,total:t.pagination.total,"page-sizes":t.pagination.pageSizes},on:{"current-change":t.handleCurrentChange,"size-change":t.handleSizeChange}})],1)},i=[],r={props:{pagination:{type:Object,default:function(){return{pageSizes:[],pageSize:10,currentPage:1,total:0}}}},methods:{handleCurrentChange:function(t){this.pagination.currentPage=t},handleSizeChange:function(t){this.pagination.pageSize=t}}},o=r,s=(n("5c29"),n("2877")),c=Object(s["a"])(o,a,i,!1,null,null,null);e["a"]=c.exports},5319:function(t,e,n){},"5c29":function(t,e,n){"use strict";n("90b0")},6781:function(t,e,n){"use strict";n("5319")},"7b6d":function(t,e,n){"use strict";n.r(e);var a=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"}},[t._v("\n 账号:"),n("el-input",{staticStyle:{width:"200px"},attrs:{size:"small",clearable:"",placeholder:"请输入账号"},model:{value:t.searchForm.openId,callback:function(e){t.$set(t.searchForm,"openId",e)},expression:"searchForm.openId"}}),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(){return t.fetchData1()}}},[t._v("\n 查询\n ")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(){return t.addOrUpdate()}}},[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"}}},[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(" "),t._e(),t._v(" "),n("el-table-column",{attrs:{label:"账号",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.openId))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{size:"small",type:"primary"},on:{click:function(){return t.addOrUpdate(e.row)}}},[t._v("编辑\n ")]),t._v(" "),n("el-button",{attrs:{size:"small",type:"danger"},on:{click:function(){return t.del(e.row)}}},[t._v("删除\n ")])]}}])})],1)],1),t._v(" "),n("div",[n("pagination",{attrs:{pagination:t.pagination}})],1),t._v(" "),n("el-dialog",{attrs:{title:t.activeTitle,visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[n("el-form",{ref:"blackUserListForm",attrs:{model:t.form}},[n("el-form-item",{staticStyle:{display:"none"},attrs:{label:"id","label-width":t.formLabelWidth,prop:"id"}},[n("el-input",{attrs:{clearable:"",autocomplete:"off",disabled:!0},model:{value:t.form.id,callback:function(e){t.$set(t.form,"id",e)},expression:"form.id"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"账号","label-width":t.formLabelWidth,prop:"openId"}},[n("el-input",{attrs:{clearable:"",autocomplete:"off"},model:{value:t.form.openId,callback:function(e){t.$set(t.form,"openId",e)},expression:"form.openId"}})],1)],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{size:"small"},on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.save}},[t._v("确 定")])],1)],1)],1)},i=[],r=n("5530"),o=n("333d"),s=n("eb8c"),c=n("83d6"),u={components:{pagination:o["a"]},data:function(){return{treeData:null,list:null,listLoading:!0,searchForm:{openId:"",rows:"10",page:"1"},activeTitle:"新增黑名单信息",dialogFormVisible:!1,formLabelWidth:"100px",form:{id:"",openId:""},rules:{},pagination:c["pageParams"]}},watch:{"pagination.currentPage":function(){this.searchForm.page=this.pagination.currentPage,this.fetchData()},"pagination.pageSize":function(){this.searchForm.rows=this.pagination.pageSize,this.searchForm.page=1,this.fetchData()}},created:function(){this.fetchData(),this.fetchData1()},methods:{fetchData:function(){var t=this;this.listLoading=!0,Object(s["e"])(Object(r["a"])({},this.searchForm)).then((function(e){t.list=e.data.rows,t.pagination.total=e.data.total,t.pagination.currentPage=e.data.current,t.listLoading=!1}))},fetchData1:function(){var t=this;this.listLoading=!0,Object(s["e"])(Object(r["a"])({},this.searchForm)).then((function(e){t.list=e.data.rows,t.pagination.total=e.data.total,t.pagination.currentPage=1,t.pagination.pageSize=10,t.listLoading=!1}))},addOrUpdate:function(t){var e=this;this.resetFileds(),this.form={id:"",openId:""},this.activeTitle="新增黑名单信息",t&&(this.activeTitle="编辑黑名单信息",Object(s["f"])(t.id).then((function(t){e.form=t.data}))),this.dialogFormVisible=!0},save:function(){var t=this;this.$refs["blackUserListForm"].validate((function(e){if(!e)return!1;Object(s["B"])(t.form).then((function(e){0===e.code?(t.$message({message:"操作成功",type:"success"}),t.dialogFormVisible=!1,t.fetchData()):t.$message({message:e.msg,type:"error"})}))}))},del:function(t){var e=this;this.$confirm("确定要删除 ‘"+t.openId+"’吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(s["a"])(t.id).then((function(t){0===t.code?(e.$message({message:"删除成功",type:"success"}),e.dialogFormVisible=!1,e.fetchData()):e.$message({message:t.msg,type:"error"})}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},resetFileds:function(){this.form={id:"",openId:""},this.$refs["blackUserListForm"]&&this.$refs["blackUserListForm"].resetFields()}}},l=u,d=(n("6781"),n("2877")),m=Object(d["a"])(l,a,i,!1,null,"483330cc",null);e["default"]=m.exports},"90b0":function(t,e,n){},eb8c:function(t,e,n){"use strict";n.d(e,"k",(function(){return i})),n.d(e,"s",(function(){return r})),n.d(e,"n",(function(){return o})),n.d(e,"m",(function(){return s})),n.d(e,"x",(function(){return c})),n.d(e,"y",(function(){return u})),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 g})),n.d(e,"D",(function(){return p})),n.d(e,"c",(function(){return h})),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 O})),n.d(e,"e",(function(){return j})),n.d(e,"f",(function(){return _})),n.d(e,"B",(function(){return w})),n.d(e,"a",(function(){return k})),n.d(e,"o",(function(){return F})),n.d(e,"p",(function(){return z})),n.d(e,"C",(function(){return x})),n.d(e,"b",(function(){return S})),n.d(e,"u",(function(){return $})),n.d(e,"t",(function(){return I})),n.d(e,"r",(function(){return L})),n.d(e,"g",(function(){return C})),n.d(e,"G",(function(){return D})),n.d(e,"q",(function(){return P})),n.d(e,"l",(function(){return U})),n.d(e,"j",(function(){return V}));var a=n("b775");function i(t){return Object(a["a"])({url:"/system/game/liucun",method:"post",data:t})}function r(t){return Object(a["a"])({url:"/system/game/payliucun",method:"post",data:t})}function o(t){return Object(a["a"])({url:"/system/game/maindate",method:"post",data:t})}function s(t){return Object(a["a"])({url:"/system/game/lv",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/system/game/playerinfo",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/system/game/vip",method:"post",data:t})}function l(t){return Object(a["a"])({url:"/system/game/hour",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/system/game/hourlogin",method:"post",data:t})}function m(t){return Object(a["a"])({url:"/system/game/serverinfo",method:"post",data:t})}function f(t){return Object(a["a"])({url:"/system/game/saveupdatestatue",method:"post",data:t})}function g(t){return Object(a["a"])({url:"/system/game/getserverdetail/".concat(t),method:"get"})}function p(t){return Object(a["a"])({url:"/system/game/saveserver",method:"post",data:t})}function h(t){return Object(a["a"])({url:"/system/game/delserver/".concat(t),method:"post"})}function b(t){return Object(a["a"])({url:"/system/game/whitelist",method:"post",data:t})}function v(t){return Object(a["a"])({url:"/system/game/getwhitelistdetail/".concat(t),method:"get"})}function y(t){return Object(a["a"])({url:"/system/game/savewhitelist",method:"post",data:t})}function O(t){return Object(a["a"])({url:"/system/game/delwhitelist/".concat(t),method:"post"})}function j(t){return Object(a["a"])({url:"/system/game/blacklist",method:"post",data:t})}function _(t){return Object(a["a"])({url:"/system/game/getblacklistdetail/".concat(t),method:"get"})}function w(t){return Object(a["a"])({url:"/system/game/saveblacklist",method:"post",data:t})}function k(t){return Object(a["a"])({url:"/system/game/delblacklist/".concat(t),method:"post"})}function F(t){return Object(a["a"])({url:"/system/game/noticeinfo",method:"post",data:t})}function z(t){return Object(a["a"])({url:"/system/game/getnoticeinfodetail/".concat(t),method:"get"})}function x(t){return Object(a["a"])({url:"/system/game/savenoticeinfo",method:"post",data:t})}function S(t){return Object(a["a"])({url:"/system/game/delnoticeinfo/".concat(t),method:"post"})}function $(){return Object(a["a"])({url:"/system/game/getserverlist",method:"get"})}function I(t){return Object(a["a"])({url:"/system/game/getrechargestatisticslist",method:"post",data:t})}function L(t){return Object(a["a"])({url:"/system/game/rechargeflow",method:"post",data:t})}function C(t){return Object(a["a"])({url:"/system/game/getchatinfolist",method:"post",data:t})}function D(t,e,n){return Object(a["a"])({url:"/system/game/setsilence?id=".concat(t,"&type=").concat(e,"&serverId=").concat(n),method:"get"})}function P(t){return Object(a["a"])({url:"/system/game/getonlinenumlist",method:"post",data:t})}function U(t){return Object(a["a"])({url:"/system/game/getltvlist",method:"post",data:t})}function V(t){return Object(a["a"])({url:"/system/game/getitemloglist",method:"post",data:t})}}}]);
|