(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7f811c78"],{"6ed8":function(t,e,a){},"73d1":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{size:"small",data:t.tableData,height:"calc(100vh - 265px)"}},[a("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"100"}}),a("el-table-column",{attrs:{prop:"orginName",label:"邀请成员",align:"center"}}),a("el-table-column",{attrs:{prop:"createUserUserName",label:"邀请人",align:"center"}}),a("el-table-column",{attrs:{label:"状态",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.status?a("el-tag",{attrs:{type:"info"}},[t._v("待处理")]):t._e(),1==e.row.status?a("el-tag",{attrs:{type:"success"}},[t._v("通过")]):t._e(),2==e.row.status?a("el-tag",{attrs:{type:"danger"}},[t._v("拒绝")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"邀请日期",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t._f("date")(e.row.createDate))+" ")]}}])}),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.status?a("el-button",{staticStyle:{color:"#67C23A"},attrs:{type:"text",size:"small"},on:{click:function(a){return t.agreeBtn(e.row,1)}}},[t._v("通过")]):t._e(),0==e.row.status?a("el-button",{staticStyle:{color:"#F56C6C"},attrs:{type:"text",size:"small"},on:{click:function(a){return t.agreeBtn(e.row,2)}}},[t._v("拒绝")]):t._e()]}}])})],1),a("el-pagination",{staticClass:"pagebox",attrs:{"current-page":t.forLine.pageNum,"page-size":t.forLine.pageSize,layout:"total,  prev, pager, next, jumper",total:t.total},on:{"current-change":t.handleCurrentChange}})],1)},r=[],s=(a("b0c0"),a("e853")),l={data:function(){return{tableData:[],total:0,forLine:{name:"",pageNum:1,pageSize:10}}},mounted:function(){var t=this;this.getIntivaData(),this.$ebus.$on("handleAuditSearchBtn",(function(e){t.forLine.name=e.names,t.getIntivaData()}))},methods:{getIntivaData:function(){var t=this;s["m"].getUserInviteList(this.forLine).then((function(e){0==e.code?(t.tableData=e.data,t.total=e.total):t.$message.error(e.message)}))["catch"]((function(e){t.$message.error(e.message)}))},handleCurrentChange:function(t){this.forLine.pageNum=t,this.getIntivaData()},agreeBtn:function(t,e){var a=this;s["m"].userApproveInvite({id:t.id,state:e}).then((function(t){0==t.code?(a.$message.success(1==e?"审批成功":"拒绝成功"),a.getIntivaData()):a.$message.error(t.message)}))["catch"]((function(t){a.$message.error(t.message)}))}},beforeDestroy:function(){this.$ebus.$off("handleAuditSearchBtn")}},o=l,i=(a("f1b6"),a("2877")),c=Object(i["a"])(o,n,r,!1,null,"c757b39c",null);e["default"]=c.exports},f1b6:function(t,e,a){"use strict";a("6ed8")}}]);
//# sourceMappingURL=chunk-7f811c78.68cb3ced.js.map