(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ef865258"],{"871b":function(e,t,a){"use strict";a.r(t);var i=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黑名单"}}),a("div",{staticClass:"fx align-items"},[a("div",{staticClass:"ml-10"},[a("el-input",{attrs:{clearable:"",placeholder:"输入ip进行搜索",size:"small"},model:{value:e.ipAddress,callback:function(t){e.ipAddress=t},expression:"ipAddress"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),a("div",{staticClass:"search-bg ml-10",on:{click:function(t){return e.getInfo(1)}}},[e._m(0),e._v(" 查询 ")])])],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)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("i",{staticClass:"el-icon-search mr-10"})])}],n={name:"index",data:function(){return{currents:{currentPage:1,currentTotal:0},ps:{pageNo:1,pageSize:10},phone:"",rechargeAmount:"",rechargeStatus:"",rechargeTime:"",tableData:[],tableHeight:0,loading:!0,ipAddress:""}},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(e){var t=this;this.loading=!0,e&&(this.ps.pageNo=1);var a={pageNum:this.ps.pageNo,pageSize:this.ps.pageSize,ipAddress:this.ipAddress};this.$axios("post","/V1/black/getBlackList",a).then((function(e){200===e.code&&(t.tableData=e.data.dataList,t.currents.currentTotal=e.data.countSize,t.currents.currentPage=e.data.pageNo,t.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=n,l=(a("b294"),a("2877")),c=Object(l["a"])(r,i,s,!1,null,null,null);t["default"]=c.exports},b294:function(e,t,a){"use strict";a("bc38")},bc38:function(e,t,a){}}]);
//# sourceMappingURL=chunk-ef865258.f0ef7a29.js.map