(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["roleManage"],{"0574":function(e,t,n){},3613:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"box",attrs:{id:"role_manage"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.$route.meta.isShow,expression:"$route.meta.isShow"}]},[n("div",{staticClass:"top"},[n("div",{staticClass:"top_left"},[n("a-button",{directives:[{name:"show",rawName:"v-show",value:e.isShowAdd,expression:"isShowAdd"}],attrs:{icon:"plus",type:"primary"},on:{click:e.addRole}},[e._v("新增")])],1),n("div",{staticClass:"top_rigiht"},[n("a-input",{ref:"userNameInput",staticStyle:{width:"200px"},attrs:{placeholder:"请输入角色名称"},on:{pressEnter:e.searchClick},model:{value:e.searchVal,callback:function(t){e.searchVal=t},expression:"searchVal"}},[n("a-icon",{attrs:{slot:"prefix",type:"search"},slot:"prefix"})],1),n("a-button",{attrs:{icon:"search",type:"primary"},on:{click:e.searchClick}},[e._v("搜索")])],1)]),n("a-table",{attrs:{columns:e.columns,"data-source":e.tableData,"row-key":function(e){return e.id},pagination:!1,loading:e.tableLoading,bordered:""},scopedSlots:e._u([{key:"operation",fn:function(t,a,o){return n("span",{},[n("a",{directives:[{name:"show",rawName:"v-show",value:e.isShowEdit,expression:"isShowEdit"}],staticClass:"margin_right20",on:{click:function(t){return e.editClick(a)}}},[e._v("编辑")]),n("a",{directives:[{name:"show",rawName:"v-show",value:e.isShowDelete,expression:"isShowDelete"}],on:{click:function(t){return e.del(a.roleNo,o)}}},[e._v("删除")])])}}])}),n("div",{staticClass:"page"},[n("a-pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.length>0,expression:"tableData.length > 0"}],attrs:{"show-total":function(t){return"总共 "+e.count+" 条"},total:e.count,"show-less-items":""},on:{change:e.showSizeChangeFn},model:{value:e.pageNo,callback:function(t){e.pageNo=t},expression:"pageNo"}})],1)],1),n("router-view")],1)},o=[],i=(n("a434"),n("ed3b")),r=n("f64c"),s=n("6ffe"),c=n("5e60"),l=n("b893"),u={components:{MyPagination:s["a"]},created:function(){this.roleListFn(),Object(l["a"])("/admin/sys/role/add")&&(this.isShowAdd=!0),Object(l["a"])("/admin/sys/role/detail/{id}")&&(this.isShowEdit=!0),Object(l["a"])("/admin/sys/role/delete/{id}")&&(this.isShowDelete=!0)},watch:{$route:function(e){"/rolePower/roleManage"===e.path&&this.roleListFn()}},data:function(){return{pageNo:1,count:200,tableLoading:!0,searchVal:"",columns:[{title:"角色",dataIndex:"roleName",key:"roleName",width:"33.3%",scopedSlots:{customRender:"roleName"}},{title:"描述",dataIndex:"remark",key:"remark",width:"33.3%",ellipsis:!0},{title:"操作",dataIndex:"operation",key:"operation",width:"33.3%",scopedSlots:{customRender:"operation"}}],tableData:[],isShowModal:!0,isShowAdd:!1,isShowEdit:!1,isShowDelete:!1}},methods:{addRole:function(){this.$router.push("/rolePower/roleManage/addRole/88")},editClick:function(e){this.$router.push("/rolePower/roleManage/addRole/".concat(e.roleNo))},del:function(e,t){var n=this;i["a"].confirm({title:"提示",content:"删除后相关数据无法恢复, 是否确认删除",okText:"确认",cancelText:"取消",onOk:function(){Object(c["c"])({roleNo:e}).then((function(e){var a=e.code;200==a&&(r["a"].success("删除成功",3),n.tableData.splice(t,1))}))}})},searchClick:function(){this.pageNo=1,this.roleListFn()},showSizeChangeFn:function(e,t){this.pageNo=e,this.pageSize=t,this.roleListFn()},roleListFn:function(){var e=this;Object(c["e"])({page:this.pageNo,name:this.searchVal}).then((function(t){var n=t.code,a=t.data;200==n&&(e.tableLoading=!1,e.tableData=a.list,e.count=a.count)}))},targetFn:function(){return document.querySelector("#role_manage")}}},d=u,h=(n("da86"),n("2877")),f=Object(h["a"])(d,a,o,!1,null,"0e27dc96",null);t["default"]=f.exports},"5e60":function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"g",(function(){return i})),n.d(t,"h",(function(){return r})),n.d(t,"b",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"n",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"o",(function(){return f})),n.d(t,"k",(function(){return p})),n.d(t,"l",(function(){return m})),n.d(t,"m",(function(){return g})),n.d(t,"a",(function(){return w}));var a=n("284b"),o=function(e){return a["a"].post("/agent/admin/role/rolelist",e)},i=function(e){return a["a"].post("/agent/admin/role/roleoptionlist",e)},r=function(){return a["a"].post("/agent/admin/menu/menutree")},s=function(e){return a["a"].post("/agent/admin/role/addrole",e)},c=function(e){return a["a"].post("/agent/admin/role/editrole",e)},l=function(e){return a["a"].post("/agent/admin/role/deleterole",e)},u=function(e){return a["a"].post("/agent/admin/role/roleinfo",e)},d=function(e){return a["a"].post("/agent/admin/account/adminlist",e)},h=function(e){return a["a"].post("/agent/admin/account/addadmin",e)},f=function(e){return a["a"].post("/agent/admin/account/editadmin",e)},p=function(e){return a["a"].post("/agent/admin/account/admindetail",e)},m=function(e){return a["a"].post("/agent/admin/account/disable",e)},g=function(e){return a["a"].post("/agent/admin/account/enable",e)},w=function(e){return a["a"].post("/agent/admin/account/editpassword",e)}},a434:function(e,t,n){"use strict";var a=n("23e7"),o=n("23cb"),i=n("a691"),r=n("50c4"),s=n("7b0b"),c=n("65f0"),l=n("8418"),u=n("1dde"),d=u("splice"),h=Math.max,f=Math.min,p=9007199254740991,m="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,a,u,d,g,w,v=s(this),b=r(v.length),k=o(e,b),S=arguments.length;if(0===S?n=a=0:1===S?(n=0,a=b-k):(n=S-2,a=f(h(i(t),0),b-k)),b+n-a>p)throw TypeError(m);for(u=c(v,a),d=0;db-a+n;d--)delete v[d-1]}else if(n>a)for(d=b-a;d>k;d--)g=d+a-1,w=d+n-1,g in v?v[w]=v[g]:delete v[w];for(d=0;d