(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7e5c2db8"],{"0db3":function(n,t,e){},a1a0:function(n,t,e){"use strict";e.r(t);var o=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("a-card",[e("a-tabs",{attrs:{"default-active-key":"tab1",type:"card"}},[e("a-tab-pane",{key:"tab1"},[e("span",{attrs:{slot:"tab"},domProps:{innerHTML:n._s(n.lang.duo2(100001,"按钮组"))},slot:"tab"}),e("button-group",{attrs:{btnGroup:n.btnGroup},on:{refresh:n.handleRefresh}})],1),e("a-tab-pane",{key:"tab2"},[e("span",{attrs:{slot:"tab"},domProps:{innerHTML:n._s(n.lang.duo2(100002,"角色"))},slot:"tab"}),e("role-menus",{attrs:{roles:n.roles,menuGroup:n.menuGroup,roleLoading:n.roleLoading},on:{refresh:n.handleRefresh}})],1),e("a-tab-pane",{key:"tab3"},[e("span",{attrs:{slot:"tab"},domProps:{innerHTML:n._s(n.lang.duo2(100003,"角色(制造模块)"))},slot:"tab"}),e("menu-groups",{attrs:{roles:n.roles,menuGroupProduction:n.menuGroupProduction,roleLoading:n.roleLoading},on:{refresh:n.handleRefresh}})],1)],1)],1)},a=[],u=e("b775"),s={name:"ButtonAuth",components:{ButtonGroup:function(n){return e.e("chunk-ed254166").then(function(){var t=[e("fd01")];n.apply(null,t)}.bind(this)).catch(e.oe)},RoleMenus:function(n){return e.e("chunk-13abff4a").then(function(){var t=[e("870b")];n.apply(null,t)}.bind(this)).catch(e.oe)},MenuGroups:function(n){return e.e("chunk-62f2cb86").then(function(){var t=[e("5a47")];n.apply(null,t)}.bind(this)).catch(e.oe)}},data:function(){return{lang:window.lang,btnGroup:[],roles:[],menuGroup:[],menuGroupProduction:[],menuLoading:!1,roleLoading:!1}},mounted:function(){this.getBtns(),this.getRoles(),this.loadMenuGroup(),this.loadMenuGroupProduction()},methods:{getBtns:function(){var n=this;u["b"].get("/api/userSetting/getButtonGroupList").then((function(t){1===t.status?n.btnGroup=t.data:n.$notification.warning({message:t.msg})}))},getRoles:function(){var n=this;u["b"].get("/api/userSetting/getRoleList").then((function(t){1===t.status?n.roles=t.data:n.$notification.warning({message:t.msg})}))},loadMenuGroup:function(){var n=this;this.menuLoading=!0,u["b"].get("/api/userSetting/getMenuTree").then((function(t){1===t.status?n.menuGroup=t.data:n.$notification.warning({message:t.msg}),n.menuLoading=!1}))},loadMenuGroupProduction:function(){var n=this;this.menuLoading=!0,u["b"].get("/api/userSetting/getOldRoleMenuList").then((function(t){1===t.status?n.menuGroupProduction=t.data:n.$notification.warning({message:t.msg}),n.menuLoading=!1}))},handleRefresh:function(n){"role"===n?this.getRoles():"button"===n?this.getBtns():"menu"===n?this.loadMenuGroupProduction():this.loadMenuGroup()}}},r=s,i=(e("b382"),e("2877")),l=Object(i["a"])(r,o,a,!1,null,null,null);t["default"]=l.exports},b382:function(n,t,e){"use strict";e("0db3")}}]);