| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ebeacbd4"],{"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)},r=[],o={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}}},i=o,s=(n("5c29"),n("2877")),l=Object(s["a"])(i,a,r,!1,null,null,null);e["a"]=l.exports},"5c29":function(t,e,n){"use strict";n("90b0")},"706b":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"}},[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:{label:"id",width:"58"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.id))])]}}])}),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.title))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"内容",width:"1000"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.content))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"等级",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==e.row.grade?n("span",{style:{color:"#32CD32"}},[t._v("常驻")]):t._e(),t._v(" "),"1"==e.row.grade?n("span",{style:{color:"#FFA500"}},[t._v("优先级中")]):t._e(),t._v(" "),"2"==e.row.grade?n("span",{style:{color:"red"}},[t._v("优先级高")]):t._e()]}}])}),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.publishtime))])]}}])}),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:"noticeInfoListForm",attrs:{model:t.form}},[n("el-form-item",{attrs:{label:"id","label-width":t.formLabelWidth,prop:"id"}},[n("el-input",{attrs:{clearable:"",autocomplete:"off",disabled:t.editNotavailable},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:"name"}},[n("el-input",{attrs:{clearable:"",autocomplete:"off"},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"等级","label-width":t.formLabelWidth,prop:"name"}},[n("el-select",{attrs:{size:"small",clearable:"",filterable:"",placeholder:"请选择等级"},model:{value:t.form.grade,callback:function(e){t.$set(t.form,"grade",e)},expression:"form.grade"}},[n("el-option",{attrs:{label:"常驻",value:"0"}}),t._v(" "),n("el-option",{attrs:{label:"优先级中",value:"1"}}),t._v(" "),n("el-option",{attrs:{label:"优先级高",value:"2"}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"发布时间","label-width":t.formLabelWidth,prop:"name"}},[n("el-date-picker",{attrs:{type:"datetime",placeholder:"选择日期时间"},model:{value:t.form.publishtime,callback:function(e){t.$set(t.form,"publishtime",e)},expression:"form.publishtime"}})],1),t._v(" "),n("el-form-item",{attrs:{label:"内容","label-width":t.formLabelWidth,prop:"name"}},[n("el-input",{attrs:{type:"textarea",clearable:"",autocomplete:"off",rows:"15"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content",e)},expression:"form.content"}})],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)},r=[],o=n("5530"),i=n("333d"),s=n("eb8c"),l=n("83d6"),c={components:{pagination:i["a"]},data:function(){return{editNotavailable:!1,treeData:null,list:null,listLoading:!0,searchForm:{name:"",channel:"",state:"",isNew:"",rows:"10",page:"1"},activeTitle:"新增公告信息",dialogFormVisible:!1,formLabelWidth:"100px",form:{name:""},rules:{},pagination:l["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()},methods:{fetchData:function(){var t=this;this.listLoading=!0,Object(s["o"])(Object(o["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}))},addOrUpdate:function(t){var e=this;this.resetFileds(),this.form={name:""},this.activeTitle="新增公告信息",t?(this.activeTitle="编辑公告信息",Object(s["p"])(t.id).then((function(t){e.form=t.data,e.editNotavailable=!0}))):this.editNotavailable=!1,this.dialogFormVisible=!0},save:function(){var t=this;this.$refs["noticeInfoListForm"].validate((function(e){if(!e)return!1;Object(s["C"])(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.title+"’吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(s["b"])(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={name:""},this.$refs["noticeInfoListForm"]&&this.$refs["noticeInfoListForm"].resetFields()}}},u=c,d=(n("ecbb"),n("2877")),m=Object(d["a"])(u,a,r,!1,null,"07f8c087",null);e["default"]=m.exports},"90b0":function(t,e,n){},eb8c:function(t,e,n){"use strict";n.d(e,"k",(function(){return r})),n.d(e,"s",(function(){return o})),n.d(e,"n",(function(){return i})),n.d(e,"m",(function(){return s})),n.d(e,"x",(function(){return l})),n.d(e,"y",(function(){return c})),n.d(e,"h",(function(){return u})),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 p})),n.d(e,"D",(function(){return g})),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 _})),n.d(e,"e",(function(){return O})),n.d(e,"f",(function(){return j})),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 C})),n.d(e,"r",(function(){return L})),n.d(e,"g",(function(){return D})),n.d(e,"G",(function(){return P})),n.d(e,"q",(function(){return V})),n.d(e,"l",(function(){return T})),n.d(e,"j",(function(){return W}));var a=n("b775");function r(t){return Object(a["a"])({url:"/system/game/liucun",method:"post",data:t})}function o(t){return Object(a["a"])({url:"/system/game/payliucun",method:"post",data:t})}function i(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 l(t){return Object(a["a"])({url:"/system/game/playerinfo",method:"post",data:t})}function c(t){return Object(a["a"])({url:"/system/game/vip",method:"post",data:t})}function u(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 p(t){return Object(a["a"])({url:"/system/game/getserverdetail/".concat(t),method:"get"})}function g(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 _(t){return Object(a["a"])({url:"/system/game/delwhitelist/".concat(t),method:"post"})}function O(t){return Object(a["a"])({url:"/system/game/blacklist",method:"post",data:t})}function j(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 C(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 D(t){return Object(a["a"])({url:"/system/game/getchatinfolist",method:"post",data:t})}function P(t,e,n){return Object(a["a"])({url:"/system/game/setsilence?id=".concat(t,"&type=").concat(e,"&serverId=").concat(n),method:"get"})}function V(t){return Object(a["a"])({url:"/system/game/getonlinenumlist",method:"post",data:t})}function T(t){return Object(a["a"])({url:"/system/game/getltvlist",method:"post",data:t})}function W(t){return Object(a["a"])({url:"/system/game/getitemloglist",method:"post",data:t})}},ecbb:function(t,e,n){"use strict";n("f0ca")},f0ca:function(t,e,n){}}]);
|