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