Your Name
2022-10-25 df7046445cfdb39857f9fe1dc747ab04a61c860e
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-806a","chunk-1c22"],{O1eO:function(e,t,r){"use strict";r.r(t);var n=r("cLjf"),a=r.n(n),i=r("rerW"),o=r.n(i),s=r("hDQ3"),c=r.n(s),l=r("bS4n"),u=r.n(l),d=r("8t5x"),h=r("zF5t"),f=r("D+s9"),m=(r("7Qib"),r("8fCU")),p=r("jJIE"),v=r.n(p),g=r("rsX/"),y=r("43Bq"),b={name:"RoleTable",filters:{},computed:u()({},Object(d.b)(["userType"])),data:function(){return{tableKey:0,roleData:null,listLoading:!0,dataForm:{name:"",id:"",btnaccess:[]},queryForm:{name:""},dialogFormVisible:!1,dialogStatus:"",dataFormRules:{name:[{required:!0,message:"角色名不能为空",trigger:"blur"}]},menuPermissionTitle:"分配菜单角色",permModalVisible:!1,treeLoading:!1,selectAllFlag:!1,menuTree:[],hasMenuTree:[],editRolePermId:"",defaultProps:{children:"children",label:"title",id:"id"},defaultCheckKeys:[],checkStrictly:!1}},created:function(){this.getRoleList()},methods:{getRoleList:function(){var e=this,t={},r=v.a.get("userName");for(var n in t.operator=r,e.queryForm)void 0!=e.queryForm[n]&&""!=e.queryForm[n].toString()&&(t[n]=e.queryForm[n]);e.listLoading=!0,Object(h.d)(t).then(function(t){var r=t.data;200==r.code?e.roleData=r.result:Object(m.a)({error:r.message,vm:e}),e.listLoading=!1}).catch(function(t){e.listLoading=!1,Object(m.a)({error:t,vm:e})})},createHandle:function(){var e=this;this.$refs.dataForm.validate(function(t){if(t){var r=v.a.get("userName");e.dataForm.operator=r,e.dataForm.btnaccess=e.dataForm.btnaccess.join(","),Object(h.a)(e.dataForm).then(function(t){var r=t.data;200==r.code?(e.dialogFormVisible=!1,e.$message({message:"创建成功",type:"success"}),e.getRoleList()):Object(m.a)({error:r.message,vm:e}),e.dataForm.btnaccess=[]}).catch(function(t){e.dataForm.btnaccess=[],Object(m.a)({error:t,vm:e})})}})},deleteHandle:function(e){var t=this;g.MessageBox.confirm("确定删除角色"+e.name+"信息","确定删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.deleteAction(e)}).catch(function(){console.log("已取消删除")})},deleteAction:function(e){var t=this,r={};r.id=e.id;var n=v.a.get("userName");r.operator=n,Object(h.b)(r).then(function(e){var r=e.data;200==r.code?(t.$message({message:"删除成功",type:"success"}),t.getRoleList()):Object(m.a)({error:r.message,vm:t})}).catch(function(e){Object(m.a)({error:e,vm:t})})},refreshHandle:function(){this.getRoleList()},queryHandle:function(){this.getRoleList()},resetDataForm:function(){this.dataForm={name:"",id:"",btnaccess:[]}},showCreateHandle:function(){var e=this;this.resetDataForm(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick(function(){e.$refs.dataForm.clearValidate()})},updateHandle:function(){var e=this;this.$refs.dataForm.validate(function(t){var r=e;if(t){var n=v.a.get("userName");r.dataForm.operator=n,r.dataForm.btnaccess=r.dataForm.btnaccess.join(","),Object(h.e)(r.dataForm).then(function(e){var t=e.data;200==t.code?(r.dialogFormVisible=!1,r.$message({message:"更新成功",type:"success"}),r.getRoleList()):Object(m.a)({error:t.message,vm:r}),r.dataForm.btnaccess=[]}).catch(function(e){r.dataForm.btnaccess=[],Object(m.a)({error:e,vm:r})})}})},showEditHandle:function(e){var t=this;this.resetDataForm(),this.dialogStatus="editor",this.dataForm.name=e.name,this.dataForm.id=e.id,this.dataForm.btnaccess=e.btnaccess?e.btnaccess.split(","):[],this.dialogFormVisible=!0,this.$nextTick(function(){t.$refs.dataForm.clearValidate()})},handleSizeChange:function(e){this.getRoleList()},handleCurrentChange:function(e){this.getRoleList()},showPermission:function(e){this.permModalVisible=!0,this.menuPermissionTitle="分配"+e.name+"菜单权限",this.getPermissionList(),this.sethasMenuTree(e.id),this.editRolePermId=e.id},getPermissionList:function(){var e=this,t={};t.userId=v.a.get("userId"),Object(f.c)(t).then(function(t){var r=t.data;200==r.code?e.menuTree=r.result:Object(m.a)({error:r.message,vm:e})})},sethasMenuTree:function(e){var t=this;return c()(a.a.mark(function r(){var n,i,s,c,l,u,d,f,p,v,g,y;return a.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return(n=t).defaultCheckKeys=[],n.checkStrictly=!0,(i={}).roleId=e,r.next=7,Object(h.c)(i);case 7:if(s=r.sent,"200"!==(c=s.data).code){r.next=40;break}if(!((l=c.result)&&l.length>0)){r.next=36;break}for(u=[],d=!0,f=!1,p=void 0,r.prev=16,v=o()(l);!(d=(g=v.next()).done);d=!0)y=g.value,u.push(y.id);r.next=24;break;case 20:r.prev=20,r.t0=r.catch(16),f=!0,p=r.t0;case 24:r.prev=24,r.prev=25,!d&&v.return&&v.return();case 27:if(r.prev=27,!f){r.next=30;break}throw p;case 30:return r.finish(27);case 31:return r.finish(24);case 32:n.defaultCheckKeys=u,setTimeout(function(){t.$refs.menuTree.setCheckedKeys(u)}),r.next=37;break;case 36:n.defaultCheckKeys=[];case 37:n.checkStrictly=!0,r.next=42;break;case 40:Object(m.a)({error:c.message,vm:n}),n.checkStrictly=!1;case 42:console.log(n.defaultCheckKeys);case 43:case"end":return r.stop()}},r,t,[[16,20,24,32],[25,,27,31]])}))()},cancelPermEdit:function(){this.permModalVisible=!1},selectTreeAll:function(){this.selectAllFlag=!this.selectAllFlag,this.selectAllFlag?this.$refs.menuTree.setCheckedNodes(this.menuTree):this.$refs.menuTree.setCheckedNodes([])},submitPermEdit:function(){var e=this,t=this,r=this.$refs.menuTree.getCheckedKeys(),n=this.$refs.menuTree.getCheckedNodes(),a=!0,i=!1,s=void 0;try{for(var c,l=o()(n);!(a=(c=l.next()).done);a=!0){var u=c.value;if(1==u.type&&1==u.level){var d=!1,f=!0,p=!1,v=void 0;try{for(var g,b=o()(n);!(f=(g=b.next()).done);f=!0){var k=g.value;if(k.id!==u.id&&k.parentid==u.id){d=!0;break}}}catch(e){p=!0,v=e}finally{try{!f&&b.return&&b.return()}finally{if(p)throw v}}if(!d)return void Object(m.a)({error:"一级菜单下面必须选择子菜单",vm:t})}}}catch(e){i=!0,s=e}finally{try{!a&&l.return&&l.return()}finally{if(i)throw s}}var w=[],x=!0,_=!1,F=void 0;try{for(var O,j=o()(n);!(x=(O=j.next()).done);x=!0){var L=O.value;if(4==L.type&&3==L.level){var C=!0,T=!1,N=void 0;try{for(var E,S=o()(w);!(C=(E=S.next()).done);C=!0){if(E.value.parentid==L.parentid)return void Object(m.a)({error:"同一个节点下面的数据查看权限只能选择一项",vm:t})}}catch(e){T=!0,N=e}finally{try{!C&&S.return&&S.return()}finally{if(T)throw N}}w.push(L)}}}catch(e){_=!0,F=e}finally{try{!x&&j.return&&j.return()}finally{if(_)throw F}}Object(h.f)({permissionIds:r,id:this.editRolePermId}).then(function(r){var n=r.data;200==n.code?(t.$message({message:"操作成功",type:"success"}),Object(y.a)(e),t.getRoleList()):Object(m.a)({error:n.message,vm:t}),e.permModalVisible=!1})},handleNodeClick:function(){},handleNodeCheckChange:function(e,t,r){},handleNodeCheck:function(e,t){var r=e.id;if(this.$refs.menuTree.getNode(r).checked)(0==e.parentid||e.parentid)&&this.setNodeChecked(e.parentid);else{if(4==e.type&&3==e.level)return;this.cancelNodeChecked(e.id)}},setNodeChecked:function(e){var t=this.$refs.menuTree.getNode(e);t.checked||this.$refs.menuTree.setChecked(e,!0),t&&(0==t.data.parentid||t.data.parentid)&&this.setNodeChecked(t.data.parentid)},cancelNodeChecked:function(e){var t=this.$refs.menuTree.getCheckedNodes(),r=[],n=!0,a=!1,i=void 0;try{for(var s,c=o()(t);!(n=(s=c.next()).done);n=!0){var l=s.value;l.parentid==e&&r.push(l)}}catch(e){a=!0,i=e}finally{try{!n&&c.return&&c.return()}finally{if(a)throw i}}if(r.length>0){var u=!0,d=!1,h=void 0;try{for(var f,m=o()(r);!(u=(f=m.next()).done);u=!0){var p=f.value;this.$refs.menuTree.setChecked(p.id,!1),this.cancelNodeChecked(p.id)}}catch(e){d=!0,h=e}finally{try{!u&&m.return&&m.return()}finally{if(d)throw h}}}}}},k=r("ZrdR"),w=Object(k.a)(b,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-container"},[r("div",{staticClass:"filter-container"},[r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:e.refreshHandle}},[e._v("刷新")]),e._v(" "),r("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.showCreateHandle}},[e._v("新增")]),e._v(" "),r("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.queryHandle}})],1),e._v(" "),r("div",{staticClass:"table_content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.roleData,border:"",fit:"","highlight-current-row":""}},[r("el-table-column",{attrs:{label:"角色名",prop:"name",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"按钮权限",prop:"btnaccess",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(t.row.btnaccess))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"创建时间",prop:"createddate",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("span",[e._v(e._s(e._f("parseTime")(t.row.createddate,"{y}-{m}-{d}")))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作",align:"center",width:"280","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(r){e.showEditHandle(t.row)}}},[e._v("编辑")]),e._v(" "),r("el-button",{staticStyle:{width:"100px"},attrs:{type:"primary",size:"mini"},on:{click:function(r){e.showPermission(t.row)}}},[e._v("配置菜单权限")]),e._v(" "),r("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(r){e.deleteHandle(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),r("br")],1),e._v(" "),r("el-dialog",{attrs:{title:"create"===e.dialogStatus?"新增":"编辑",visible:e.dialogFormVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"700px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[r("el-form",{ref:"dataForm",staticStyle:{"margin-left":"50px",width:"500px"},attrs:{rules:e.dataFormRules,model:e.dataForm,"label-position":"right","label-width":"100px","element-loading-text":"保存中..."}},[r("el-form-item",{attrs:{label:"角色名",prop:"name"}},[r("el-input",{model:{value:e.dataForm.name,callback:function(t){e.$set(e.dataForm,"name","string"==typeof t?t.trim():t)},expression:"dataForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"按钮权限:",prop:"btnaccess"}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择按钮权限",multiple:"",clearable:""},model:{value:e.dataForm.btnaccess,callback:function(t){e.$set(e.dataForm,"btnaccess","string"==typeof t?t.trim():t)},expression:"dataForm.btnaccess"}},[r("el-option",{attrs:{value:"all",label:"所有"}}),e._v(" "),r("el-option",{attrs:{value:"add",label:"新增"}}),e._v(" "),r("el-option",{attrs:{value:"edit",label:"编辑"}}),e._v(" "),r("el-option",{attrs:{value:"delete",label:"删除"}}),e._v(" "),r("el-option",{attrs:{value:"review",label:"审核"}}),e._v(" "),r("el-option",{attrs:{value:"import",label:"导入"}}),e._v(" "),r("el-option",{attrs:{value:"export",label:"导出"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createHandle():e.updateHandle()}}},[e._v("确认")])],1)],1),e._v(" "),r("el-dialog",{attrs:{title:e.menuPermissionTitle,visible:e.permModalVisible,width:"500"},on:{"update:visible":function(t){e.permModalVisible=t}}},[r("el-tree",{ref:"menuTree",attrs:{data:e.menuTree,"check-strictly":e.checkStrictly,props:e.defaultProps,"default-checked-keys":e.defaultCheckKeys,"node-key":"id","default-expand-all":"","show-checkbox":""},on:{"node-click":e.handleNodeClick,"check-change":e.handleNodeCheckChange,check:e.handleNodeCheck}}),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.cancelPermEdit}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.submitPermEdit}},[e._v("提交")])],1)],1),e._v(" "),r("div",{staticStyle:{clear:"both"}})],1)},[],!1,null,null,null);w.options.__file="index.vue";t.default=w.exports},cLjf:function(e,t,r){e.exports=r("xOJF")},hDQ3:function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r("Asgo"));t.default=function(e){return function(){var t=e.apply(this,arguments);return new n.default(function(e,r){return function a(i,o){try{var s=t[i](o),c=s.value}catch(e){return void r(e)}if(!s.done)return n.default.resolve(c).then(function(e){a("next",e)},function(e){a("throw",e)});e(c)}("next")})}}},k4Ii:function(e,t){!function(t){"use strict";var r,n=Object.prototype,a=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",l="object"==typeof e,u=t.regeneratorRuntime;if(u)l&&(e.exports=u);else{(u=t.regeneratorRuntime=l?e.exports:{}).wrap=k;var d="suspendedStart",h="suspendedYield",f="executing",m="completed",p={},v={};v[o]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(E([])));y&&y!==n&&a.call(y,o)&&(v=y);var b=F.prototype=x.prototype=Object.create(v);_.prototype=b.constructor=F,F.constructor=_,F[c]=_.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,F):(e.__proto__=F,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(b),e},u.awrap=function(e){return{__await:e}},O(j.prototype),j.prototype[s]=function(){return this},u.AsyncIterator=j,u.async=function(e,t,r,n){var a=new j(k(e,t,r,n));return u.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},O(b),b[c]="Generator",b[o]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},u.values=E,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,a){return s.type="throw",s.arg=e,t.next=n,a&&(t.method="next",t.arg=r),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;T(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),p}}}function k(e,t,r,n){var a=t&&t.prototype instanceof x?t:x,i=Object.create(a.prototype),o=new N(n||[]);return i._invoke=function(e,t,r){var n=d;return function(a,i){if(n===f)throw new Error("Generator is already running");if(n===m){if("throw"===a)throw i;return S()}for(r.method=a,r.arg=i;;){var o=r.delegate;if(o){var s=L(o,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var c=w(e,t,r);if("normal"===c.type){if(n=r.done?m:h,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=m,r.method="throw",r.arg=c.arg)}}}(e,r,o),i}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function x(){}function _(){}function F(){}function O(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function j(e){var t;this._invoke=function(r,n){function i(){return new Promise(function(t,i){!function t(r,n,i,o){var s=w(e[r],e,n);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&a.call(l,"__await")?Promise.resolve(l.__await).then(function(e){t("next",e,i,o)},function(e){t("throw",e,i,o)}):Promise.resolve(l).then(function(e){c.value=e,i(c)},o)}o(s.arg)}(r,n,t,i)})}return t=t?t.then(i,i):i()}}function L(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,L(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var a=w(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,p;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,p):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function E(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},xOJF:function(e,t,r){var n=function(){return this}()||Function("return this")(),a=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=a&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r("k4Ii"),a)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},zF5t:function(e,t,r){"use strict";r.d(t,"d",function(){return i}),r.d(t,"a",function(){return o}),r.d(t,"b",function(){return s}),r.d(t,"e",function(){return c}),r.d(t,"c",function(){return l}),r.d(t,"f",function(){return u});var n=r("t3Un"),a=r("X4fA");function i(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/role",method:"get",params:e||{}})}function o(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/addrole",method:"post",data:e})}function s(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/delrole",method:"post",data:e})}function c(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/putrole",method:"post",data:e})}function l(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/rolepermissions",method:"get",params:e||{}})}function u(e){return Object(n.a)({headers:{Authorization:Object(a.a)()},url:"http://222.92.213.22:8006/zhongtai/rolepermissions",method:"post",data:e})}}}]);