/*!
 *  build: vue-admin-beautiful 
 *  vue-admin-beautiful author: chuzhixin 1204505056@qq.com 
 *  vue-admin-beautiful QQ Group(QQ群): 972435319、1139183756 
 *  time: 2024-10-10 11:14:28
 */
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-787eb5ca"],{"0072":function(e,t,n){"use strict";n.r(t);var a=n("f2bf");const o={class:"manage-container"};function r(e,t,n,r,l,u){const i=Object(a["resolveComponent"])("el-table-column"),d=Object(a["resolveComponent"])("el-table"),c=Object(a["resolveComponent"])("el-pagination"),s=Object(a["resolveComponent"])("vab-query-form-right-panel"),m=Object(a["resolveComponent"])("vab-query-form");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",o,[Object(a["createVNode"])(d,{data:l.roleData,border:"",stripe:"",style:{width:"100%"}},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(i,{prop:"id",label:"ID",width:"60",align:"center"}),Object(a["createVNode"])(i,{prop:"name",label:e.$t("staff.yhm"),width:"120",align:"center"},null,8,["label"]),Object(a["createVNode"])(i,{prop:"key",label:"key",width:"120",align:"center"}),Object(a["createVNode"])(i,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"200",align:"center"},null,8,["label"]),Object(a["createVNode"])(i,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"200",align:"center"},null,8,["label"])]),_:1},8,["data"]),Object(a["createVNode"])(m,null,{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(s,null,{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(c,{background:l.background,"current-page":l.queryForm.page,layout:l.layout,"page-size":l.queryForm.size,total:l.total,onCurrentChange:u.handleCurrentChange,onSizeChange:u.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"])]),_:1})]),_:1})])}var l=n("cc5e"),u={components:{},data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){},methods:{realIndex(){this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(l["miniRoleSelect"])(this.queryForm);this.roleData=e.items,this.total=e.total,setTimeout(()=>{this.listLoading=!1},500)},handleQuery(){this.queryForm.page=1,this.fetchData()},handleSizeChange(e){this.queryForm.size=e,this.fetchData()},handleCurrentChange(e){this.queryForm.page=e,this.fetchData()}}},i=(n("9530"),n("d959")),d=n.n(i);const c=d()(u,[["render",r],["__scopeId","data-v-af4fc26c"]]);t["default"]=c},9530:function(e,t,n){"use strict";n("d393")},cc5e:function(e,t,n){"use strict";n.r(t),n.d(t,"getList",(function(){return o})),n.d(t,"doEdit",(function(){return r})),n.d(t,"doDelete",(function(){return l})),n.d(t,"doAdd",(function(){return u})),n.d(t,"getMenuIdsByRoleId",(function(){return i})),n.d(t,"assignMenu",(function(){return d})),n.d(t,"miniRoleSelect",(function(){return c})),n.d(t,"miniRoleInsert",(function(){return s})),n.d(t,"miniRoleUpdate",(function(){return m})),n.d(t,"miniRoleRemove",(function(){return f})),n.d(t,"miniRoleAssignMenu",(function(){return h})),n.d(t,"getMiniRoleMenuIdsByRoleId",(function(){return g}));var a=n("b775");function o(e){let t="?page="+e.page+"&size="+e.size;return e.name&&(t+="&name="+e.name),Object(a["default"])({url:"/sysRole/select"+t,method:"get",data:e})}function r(e){return Object(a["default"])({url:"/sysRole/update",method:"post",data:e})}function l(e){return Object(a["default"])({url:"/sysRole/remove",method:"post",data:e})}function u(e){return Object(a["default"])({url:"/sysRole/insert",method:"post",data:e})}function i(e){return Object(a["default"])({url:"/sysRole/getMenuIdsByRoleId?roleId="+e.roleId,method:"get",data:e})}function d(e){return Object(a["default"])({url:"/sysRole/assignMenu",method:"post",data:e})}function c(e){let t="?page="+e.page+"&size="+e.size;return void 0!=e.name&&(t+="&name="+e.name),Object(a["default"])({url:"/miniRole/select"+t,method:"get",data:e})}function s(e){return Object(a["default"])({url:"/miniRole/insert",method:"post",data:e})}function m(e){return Object(a["default"])({url:"/miniRole/update",method:"post",data:e})}function f(e){return Object(a["default"])({url:"/miniRole/remove?roleId="+e.roleId,method:"post",data:e})}function h(e){return Object(a["default"])({url:"/miniRole/assignMenu",method:"post",data:e})}function g(e){return Object(a["default"])({url:"/miniRole/getMenuIdsByRoleId?roleId="+e.roleId,method:"get",data:e})}},d393:function(e,t,n){}}]);