webpackJsonp([86],{dPs3:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("s/F+"),l=r.n(a),s=r("yrbl"),i=r.n(s),o=r("Swn3"),n=r("0mZY"),u={mixins:[o.a],data:function(){return{dialogFormVisible:!1,ruleForm:{createUser:"",id:"",name:"",status:""},rules:{},postData:{},auditForm:{remark:""},auditRules:{remark:[{required:!0,message:"请输入备注原因",trigger:"blur"}]}}},methods:{listCallback:function(){return n.a.minePollList(this.ruleForm,this.listQuery.current,this.listQuery.size)},handleVerify:function(e){this.dialogFormVisible=!0,this.postData.id=e,this.auditForm.remark="",this.$refs.ruleRef&&this.$refs.ruleRef.resetFields()},auditOperant:function(e,t){var r=this;"reject"==e?this.$refs[t].validate(function(e){if(!e)return!1;r.postData.remark=r.auditForm.remark,r.postData.status=2,r.request()}):"accept"==e&&(this.postData.remark=this.auditForm.remark,this.postData.status=1,this.$refs[t].resetFields(),this.request())},request:function(){var e=this;return i()(l.a.mark(function t(){return l.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.a.verifyPool(e.postData);case 2:e.$notify({type:"success",title:"提示",message:"操作成功！"}),e.dialogFormVisible=!1,e._getList();case 5:case"end":return t.stop()}},t,e)}))()}}},c={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"assets common-main"},[r("el-form",{ref:"ruleForm",staticClass:"search-container",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"ID",prop:"id"}},[r("el-input",{staticClass:"form-input",attrs:{clearable:""},model:{value:e.ruleForm.id,callback:function(t){e.$set(e.ruleForm,"id",t)},expression:"ruleForm.id"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"矿池名称",prop:"name"}},[r("el-input",{staticClass:"form-input",attrs:{clearable:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"创建者",prop:"createUser"}},[r("el-input",{staticClass:"form-input",attrs:{clearable:""},model:{value:e.ruleForm.createUser,callback:function(t){e.$set(e.ruleForm,"createUser",t)},expression:"ruleForm.createUser"}})],1),e._v(" "),e._v("`\n\n    "),r("div",{staticClass:"operation-container"},[r("el-button",{attrs:{icon:"el-icon-search"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("搜索")])],1)],1),e._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.listData}},[r("el-table-column",{attrs:{prop:"id",label:"ID",width:"180"}}),e._v(" "),r("el-table-column",{attrs:{prop:"name",label:"矿池名称",width:"120"}}),e._v(" "),r("el-table-column",{attrs:{prop:"createUser",label:"创建者",width:"200"}}),e._v(" "),r("el-table-column",{attrs:{prop:"description",label:"描述",width:"150"}}),e._v(" "),r("el-table-column",{attrs:{prop:"authStatus",label:"矿池审核状态",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-tag",{attrs:{type:e._f("elTagFilter")(t.row.status)}},[e._v("\n          "+e._s(e._f("poolStatusFilter")(t.row.status))+"\n        ")])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-edit",disabled:0!=t.row.status},on:{click:function(r){e.handleVerify(t.row.id)}}},[e._v("审核\n        ")])]}}])})],1),e._v(" "),r("el-pagination",{staticClass:"pagination-container",attrs:{background:"",layout:"total,prev, pager, next","current-page":e.listQuery.current,"page-size":e.listQuery.size,total:e.listQuery.total},on:{"update:currentPage":function(t){e.$set(e.listQuery,"current",t)},"current-change":e.handlePageChange}}),e._v(" "),r("el-dialog",{attrs:{width:"600px",title:"审核提示",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[r("el-form",{ref:"ruleRef",attrs:{model:e.auditForm,rules:e.auditRules}},[r("el-form-item",{attrs:{label:"审核备注","label-width":"120px",prop:"remark"}},[r("el-input",{model:{value:e.auditForm.remark,callback:function(t){e.$set(e.auditForm,"remark",t)},expression:"auditForm.remark"}})],1),e._v(" "),r("el-form-item",{staticClass:"dialog-footer"},[r("el-button",{on:{click:function(t){e.auditOperant("reject","ruleRef")}}},[e._v("拒绝")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.auditOperant("accept","ruleRef")}}},[e._v("通过")])],1)],1)],1)],1)},staticRenderFns:[]},m=r("rCDr")(u,c,!1,null,null,null);t.default=m.exports}});