(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{430:function(t,e,n){var content=n(494);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(4).default)("109f589e",content,!0,{sourceMap:!1})},493:function(t,e,n){"use strict";var r=n(430);n.n(r).a},494:function(t,e,n){(e=n(3)(!1)).push([t.i,".table[data-v-556c65be]{height:calc(100% - 40px)}",""]),t.exports=e},555:function(t,e,n){"use strict";n.r(e);n(28),n(14),n(172),n(9),n(6),n(22);var r=n(11),o=(n(32),n(5));function c(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var l=["创建者","群组ID","群组名称","管理人员","关联工作","创建时间","最近更新","操作"],f=["nickname","id","name","managers","jobs","create_date","update_date","ctrl"],d={data:function(){return{options:[{value:-1,label:"全部"},{value:0,label:"提交"},{value:1,label:"成功"},{value:2,label:"失败"},{value:3,label:"进行中"}],selectValue:-1,totalCount:0,currentPage:1,tableHeaders:l,tableProps:f,tableData:[],env:"test",isSuper:!1,pageSize:20}},computed:{isTest:function(){return"test"===this.env}},mounted:function(){this.getTableData()},methods:{changeSelect:function(t){this.getTableData()},clickSuper:function(t){var e=this;return Object(o.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.isSuper){n.next=3;break}return e.$message({message:"不是超管, 没有权限"}),n.abrupt("return");case 3:e.isTest?window.open("https://dev.test.proginn.com/rooter/loginmember?uid=".concat(t.uid,"&next=/group/").concat(t.id)):window.open("https://www.proginn.com/rooter/loginmember?uid=".concat(t.uid,"&next=/group/").concat(t.id));case 4:case"end":return n.stop()}}),n)})))()},clickUID:function(t){this.isTest?window.open("https://dev.test.proginn.com/rooter/user/".concat(t.uid)):window.open("https://www.proginn.com/rooter/user/".concat(t.uid))},tableRowClassName:function(t){var e=t.row,n=(t.rowIndex,"");return"1"===e.status&&(n="success-row"),n},formatTableData:function(data){return data.map((function(i){return function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?c(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):c(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},i,{managers:i.managers.map((function(t){return t?t.nickname:""})).join(";"),jobs:Object.keys(i.jobs).map((function(t){var e=i.jobs[t];return e?"".concat(e.nickname,"(").concat(e.id,")"):""})).join(";")})}))},getTableData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentPage;return Object(o.a)(regeneratorRuntime.mark((function n(){var r,data;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.tableData=[],n.next=3,t.$post("/api/admin/group/list",{page:e,page_size:20});case 3:r=n.sent,data=r.data,t.env=data.current_env,t.isSuper=data.is_super_admin,t.tableData=t.formatTableData(data.list),t.totalCount=Number(data.total),t.totalPage=data.totalPage;case 10:case"end":return n.stop()}}),n)})))()}}},w=(n(493),n(2)),component=Object(w.a)(d,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"withdraw"}},[n("div",{staticClass:"table"},[t.tableData.length?n("el-table",{staticStyle:{width:"100%"},attrs:{height:"100%",border:"",data:t.tableData,"row-class-name":t.tableRowClassName}},t._l(t.tableProps,(function(e,r){return n("el-table-column",{key:r,attrs:{prop:e,label:t.tableHeaders[r]},scopedSlots:t._u([{key:"default",fn:function(r){return["nickname"===e?n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickUID(r.row)}}},[t._v(t._s(r.row[e]))]):"ctrl"===e&&"1"!==r.row.status?n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickSuper(r.row)}}},[t._v("超管查看")]):n("span",[t._v(t._s(r.row[e]))])]}}],null,!0)})})),1):t._e()],1),t._v(" "),n("el-pagination",{attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:"total, prev, pager, next",total:t.totalCount},on:{"current-change":t.getTableData,"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e}}})],1)}),[],!1,null,"556c65be",null);e.default=component.exports}}]);