(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-72a258d8"],{"42f6":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{size:"small",data:e.viewer,height:"calc(100vh - 265px)"}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"50"}}),a("el-table-column",{attrs:{prop:"applyName",label:"申请组织",align:"center"}}),a("el-table-column",{attrs:{prop:"username",label:"申请人",align:"center"}}),a("el-table-column",{attrs:{prop:"description",label:"申请理由",align:"center"}}),a("el-table-column",{attrs:{label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.state?a("el-tag",{attrs:{type:"info"}},[e._v("待处理")]):e._e(),1==t.row.state?a("el-tag",{attrs:{type:"success"}},[e._v("通过")]):e._e(),2==t.row.state?a("el-tag",{attrs:{type:"danger"}},[e._v("拒绝")]):e._e()]}}])}),a("el-table-column",{attrs:{label:"申请日期",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(e._f("date")(t.row.createDate))+" ")]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.state?a("el-button",{staticStyle:{color:"#67C23A"},attrs:{type:"text",size:"small"},on:{click:function(a){return e.applyBtn(t.row,1)}}},[e._v("通过")]):e._e(),0==t.row.state?a("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text",size:"small"},on:{click:function(a){return e.applyBtn(t.row,2)}}},[e._v("拒绝")]):e._e()]}}])})],1),a("el-pagination",{staticClass:"pagebox",attrs:{"current-page":e.formInline.pageNum,"page-size":e.formInline.pageSize,layout:"total,  prev, pager, next, jumper",total:e.total},on:{"current-change":e.handleCurrentChange}}),a("el-dialog",{attrs:{title:"密集",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",[a("el-select",{attrs:{size:"small",placeholder:"请选择密集"},model:{value:e.selectValue,callback:function(t){e.selectValue=t},expression:"selectValue"}},e._l(e.miji,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.saveBtnEvent}},[e._v("确 定")])],1)])],1)},n=[],i={data:function(){return{viewerKey:"apply",formInline:{username:"",pageNum:1,pageSize:10},selectValue:"",rowInfo:{},dialogVisible:!1}},computed:{viewer:function(){return this.$store.state.newOrg.views[this.viewerKey].list||[]},total:function(){return this.$store.state.newOrg.views[this.viewerKey].paging.total},miji:function(){return this.$store.state.dict.dicts.miji}},mounted:function(){var e=this;this.getOrgApplyList(),this.$ebus.$on("handleAuditSearchBtn",(function(t){e.formInline.username=t.username,e.getOrgApplyList()}))},methods:{resetForm:function(){this.formInline={username:"",pageNum:1,pageSize:10},this.getOrgApplyList()},getOrgApplyList:function(){this.$store.dispatch("newOrg/getOrgApplyList",{reset:!0,query:this.formInline})},handleCurrentChange:function(e){this.formInline.pageNum=e,this.getOrgApplyList()},applyBtn:function(e,t){var a=this;1==t?(this.dialogVisible=!0,this.rowInfo=e):this.$store.dispatch("newOrg/approveJoin",{id:e.id,state:t}).then((function(e){0==e.code?(a.$message.success("拒绝成功"),a.getOrgApplyList()):a.$message.error(e.message)}))["catch"]((function(e){a.$message.error(e.message)}))},saveBtnEvent:function(){var e=this;this.$store.dispatch("newOrg/approveJoin",{id:this.rowInfo.id,miji:this.selectValue,state:1}).then((function(t){0==t.code?(e.$message.success("审批成功"),e.getOrgApplyList()):e.$message.error(t.message)}))["catch"]((function(t){e.$message.error(t.message)})),this.dialogVisible=!1}},beforeDestroy:function(){this.$ebus.$off("handleAuditSearchBtn")}},l=i,r=(a("a7a0"),a("2877")),o=Object(r["a"])(l,s,n,!1,null,"e34cffe4",null);t["default"]=o.exports},a7a0:function(e,t,a){"use strict";a("b89a")},b89a:function(e,t,a){}}]);
//# sourceMappingURL=chunk-72a258d8.5d51f06a.js.map