webpackJsonp([24],{AxJC:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={render:function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",{staticClass:"info-table"},[e("div",{staticClass:"fx align-items justify-between mt-15 mb-15 ml-10 mr-10"},[e("div",{staticClass:"fs-18 fw-600"},[n._v("主播审核")]),n._v(" "),e("div",{staticClass:"fx align-items"},[e("div",[e("el-input",{attrs:{placeholder:"请输入主播昵称",size:"small"},model:{value:n.search,callback:function(t){n.search=t},expression:"search"}})],1)])]),n._v(" "),e("el-table",{staticStyle:{width:"100%"},attrs:{data:n.tableData.filter(function(t){return!n.search||t.userName.toLowerCase().includes(n.search.toLowerCase())}),"header-cell-class-name":"bg-f5"}},[e("el-table-column",{attrs:{fixed:"",type:"index",label:"序号",align:"center",width:"200"}}),n._v(" "),e("el-table-column",{attrs:{prop:"userName",label:"昵称"}}),n._v(" "),e("el-table-column",{attrs:{prop:"realName",label:"真实名字"}}),n._v(" "),e("el-table-column",{attrs:{label:"身份证号"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("span",[n._v(n._s(t.row.idCard))])]}}])}),n._v(" "),e("el-table-column",{attrs:{label:"身份证正面图"},scopedSlots:n._u([{key:"default",fn:function(t){return[t.row.cardPhotoPositive?e("img",{attrs:{src:t.row.cardPhotoPositive,width:"100px"}}):n._e()]}}])}),n._v(" "),e("el-table-column",{attrs:{label:"身份证反面图"},scopedSlots:n._u([{key:"default",fn:function(t){return[t.row.cardPhotoReverse?e("img",{attrs:{src:t.row.cardPhotoReverse,width:"100px"}}):n._e()]}}])}),n._v(" "),e("el-table-column",{attrs:{width:"150",label:"申请时间"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("span",[n._v(n._s(t.row.applyTime))])]}}])}),n._v(" "),e("el-table-column",{attrs:{width:"200",fixed:"right"},scopedSlots:n._u([{key:"default",fn:function(t){return[e("div",{staticClass:"cursor"},[e("el-button",{attrs:{type:"success",size:"mini"},on:{click:function(e){return n.update(t.row.id,1)}}},[n._v("通过")]),n._v(" "),e("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return n.update(t.row.id,2)}}},[n._v("驳回")])],1)]}}])})],1),n._v(" "),e("el-pagination",{staticClass:"pagination",attrs:{background:"","hide-on-single-page":!0,"current-page":n.currents.currentPage,"page-sizes":[6,20,30],"page-size":6,layout:"total, prev, pager, next, jumper",total:n.currents.currentTotal},on:{"current-change":n.handleCurrentChange}}),n._v(" "),e("el-dialog",{attrs:{title:"主播审核",visible:n.dialogFormVisible,width:"388px"},on:{"update:visible":function(t){n.dialogFormVisible=t}}},[e("el-form",[e("el-form-item",{attrs:{label:"驳回原因","label-width":n.formLabelWidth,prop:"reason"}},[e("el-input",{staticStyle:{width:"217px"},attrs:{autocomplete:"off"},model:{value:n.reason,callback:function(t){n.reason=t},expression:"reason"}})],1)],1),n._v(" "),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:n.clear}},[n._v("取 消")]),n._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:n.updateSumbit}},[n._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var s=e("VU/8")({name:"index",data:function(){return{name:"",currents:{currentPage:1,currentTotal:0},ps:{pageNo:1,pageSize:6},search:"",tableData:[],reason:"",imgUrl:"",fileList:[],userId:"",formLabelWidth:"125px",dialogFormVisible:!1,isAdd:!1}},mounted:function(){this.getInfo()},methods:{clear:function(){this.reason="",this.dialogFormVisible=!1},update:function(n,t){1===t?(this.reason="审核通过",this.editUserApply(n,0)):(this.userId=n,this.dialogFormVisible=!0)},updateSumbit:function(){this.editUserApply(this.userId,1)},editUserApply:function(n,t){var e=this,a={status:t,id:n,reason:this.reason};this.$axios("post","/backUser/editUserApply",a).then(function(n){200===n.code&&(e.$message({type:"success",message:"审核成功!"}),e.dialogFormVisible=!1,e.getInfo(1))})},getInfo:function(n){var t=this;n&&(this.ps.pageNo=1);var e={pageNum:this.ps.pageNo,pageSize:this.ps.pageSize};this.$axios("post","/backUser/userApplyAnchorList",e).then(function(n){200===n.code&&(t.tableData=n.data.dataList,t.currents.currentTotal=n.data.countSize)})},handleCurrentChange:function(n){this.ps.pageNo=n,this.getInfo()}}},a,!1,function(n){e("KYFG")},"data-v-790ce966",null);t.default=s.exports},KYFG:function(n,t,e){var a=e("ohVH");"string"==typeof a&&(a=[[n.i,a,""]]),a.locals&&(n.exports=a.locals);e("rjj0")("205169a2",a,!0,{})},ohVH:function(n,t,e){(n.exports=e("FZ+f")(!1)).push([n.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",""])}});