(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ef865258"],{"871b":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"container",staticClass:"info-table"},[a("div",{staticClass:"fx align-items justify-between mt-15 mb-15 ml-10 mr-10"},[a("page-title",{attrs:{name:"环信IP黑名单"}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,"header-cell-class-name":"table-header","max-height":e.tableHeight}},[a("el-table-column",{attrs:{fixed:"",type:"index",label:"序号",align:"center",width:"50"}}),a("el-table-column",{attrs:{prop:"ip",label:"IP"}}),a("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),a("el-table-column",{attrs:{fixed:"right",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"fx cursor"},[a("div",{staticClass:"ml-10"},[a("div",{staticClass:"search-bg",on:{click:function(a){return e.removeBlackList(t.row.id)}}},[e._v(" 拉出IP ")])])])]}}])})],1),a("el-pagination",{staticClass:"pagination",attrs:{background:"","hide-on-single-page":!0,"current-page":e.currents.currentPage,"page-sizes":[10,20,30],"page-size":10,layout:"total, prev, pager, next, jumper",total:e.currents.currentTotal},on:{"current-change":e.handleCurrentChange}})],1)},i=[],s={name:"index",data:function(){return{currents:{currentPage:1,currentTotal:0},ps:{pageNo:1,pageSize:6},phone:"",rechargeAmount:"",rechargeStatus:"",rechargeTime:"",tableData:[],tableHeight:0,loading:!0}},mounted:function(){this.getInfo(),this.calHeight()},methods:{calHeight:function(){var e=this;this.$nextTick((function(){var t=e.$refs.container.getBoundingClientRect();e.tableHeight=t.height-250}))},getInfo:function(){var e=this;this.loading=!0;var t={pageNum:this.ps.pageNo,pageSize:this.ps.pageSize};this.$axios("post","/V1/black/getBlackList",t).then((function(t){200===t.code&&(e.tableData=t.data.dataList,e.currents.currentTotal=t.data.total,e.currents.currentPage=t.data.pageNo,e.loading=!1)}))},removeBlackList:function(e){var t=this,a={id:e};this.$axios("post","/V1/black/removeBlackList",a).then((function(e){200===e.code?(t.$message({type:"success",message:"已拉出黑名单"}),t.getInfo()):t.$message({type:"warning",message:e.msg})}))},handleCurrentChange:function(e){this.ps.pageNo=e,this.getInfo()},refresh:function(){this.phone="",this.rechargeAmount="",this.rechargeStatus="",this.rechargeTime="",this.getInfo()}}},r=s,c=(a("b294"),a("2877")),l=Object(c["a"])(r,n,i,!1,null,null,null);t["default"]=l.exports},b294:function(e,t,a){"use strict";a("bc38")},bc38:function(e,t,a){}}]);
//# sourceMappingURL=chunk-ef865258.c0a78ac3.js.map