generated from root/miduo_server
1 line
9.0 KiB
Go
1 line
9.0 KiB
Go
|
|
(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
|