(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0cfc27"],{"64a4":function(t,a,e){"use strict";e.r(a);var l=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,stripe:""}},[e("el-table-column",{attrs:{prop:"applicantName",label:"申请者"}}),e("el-table-column",{attrs:{prop:"documentName",label:"名称"}}),e("el-table-column",{attrs:{prop:"applyTime",label:"申请时间"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(t._s(t._f("date")(a.row.applyTime)))]}}])}),e("el-table-column",{attrs:{prop:"approverName",label:"审批人"}}),e("el-table-column",{attrs:{prop:"approvalTime",label:"审批时间"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v(t._s(t._f("date")(a.row.approvalTime)))]}}])}),e("el-table-column",{attrs:{prop:"status",label:"状态"}}),e("el-table-column",{attrs:{label:"审核"},scopedSlots:t._u([{key:"default",fn:function(a){return"未审核"==a.row.status?[e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.pass(a.row.id,1)}}},[t._v("审核通过")]),e("el-button",{attrs:{size:"small"},on:{click:function(e){return t.pass(a.row.id,2)}}},[t._v("拒绝")]),"通过"==a.row.status?e("span",[t._v("已通过")]):t._e(),"拒绝"==a.row.status?e("span",[t._v("已拒绝")]):t._e()]:void 0}}],null,!0)})],1)},n=[],s=(e("4de4"),e("ade3")),o=e("69f8"),r=Object(s["a"])({components:{},data:function(){return{list:[]}},computed:{},watch:{},methods:{},created:function(){var t=this;Object(o["h"])().then((function(a){a.data.filter((function(t){return 0==t.status&&(t.status="未审核"),1==t.status&&(t.status="通过"),2==t.status&&(t.status="拒绝"),t})),t.list=a.data}))}},"methods",{pass:function(t,a){var e=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),l=this;Object(o["i"])({applyId:t,status:a}).then((function(t){0==t.code&&(e.close(),l.$alert("审核成功"),location.reload())}))}}),u=r,c=e("2877"),i=Object(c["a"])(u,l,n,!1,null,"574c5c26",null);a["default"]=i.exports}}]);
//# sourceMappingURL=chunk-2d0cfc27.2e831a87.js.map