2 lines
18 KiB
JavaScript
2 lines
18 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f8a36d9"],{"0e8f":function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"e",(function(){return o})),r.d(t,"c",(function(){return l})),r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return u}));var i=r("b775"),a=r("4328"),s=r.n(a);function n(e){return Object(i["a"])({url:"user-service/dept/getDeptTreeList",method:"get",params:e})}function o(e){return Object(i["a"])({url:"user-service/dept/getDeptSubByDeptId",method:"get",params:e})}function l(e){var t=s.a.stringify(e);return Object(i["a"])({url:"user-service/dept/updateDept",method:"post",data:t})}function c(e){var t=s.a.stringify(e);return Object(i["a"])({url:"user-service/dept/saveDept",method:"post",data:t})}function u(e){return Object(i["a"])({headers:{"Content-Type":"application/json"},url:"user-service/dept/removeDept",method:"get",params:e})}},"14cb":function(e,t,r){"use strict";r("1a02")},"1a02":function(e,t,r){},"333d":function(e,t,r){"use strict";var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"pagination-container"},[r("el-pagination",e._b({attrs:{background:e.background,"current-page":e.currentPage,"page-size":e.pageSize,layout:e.layout,"page-sizes":e.pageSizes,total:e.total},on:{"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t},"update:pageSize":function(t){e.pageSize=t},"update:page-size":function(t){e.pageSize=t},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}},"el-pagination",e.$attrs,!1))],1)},a=[],s=(r("a9e3"),{name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:0},limit:{type:Number,default:20},pageSizes:{type:Array,default:function(){return[5,10,20,30,70]}},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},background:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(e){this.$emit("update:page",e)}},pageSize:{get:function(){return this.limit},set:function(e){this.$emit("update:limit",e)}}},methods:{handleSizeChange:function(e){this.$emit("pagination",{page:this.currentPage,limit:e})},handleCurrentChange:function(e){this.$emit("pagination",{page:e,limit:this.pageSize})}}}),n=s,o=(r("14cb"),r("2877")),l=Object(o["a"])(n,i,a,!1,null,"4dfad654",null);t["a"]=l.exports},"345c":function(e,t,r){"use strict";r("7c39")},4381:function(e,t,r){"use strict";r("d3b7"),r("caad"),r("2532"),r("d9e2");var i=r("4360"),a={inserted:function(e,t){var r=t.value,a=i["a"].getters&&i["a"].getters.butPermission;if(console.log(a,"roles"),!(r&&r instanceof Array&&r.length>0))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");var s=r,n=a.some((function(e){return s.includes(e)}));if(console.log(n,"hasPermission"),n)i["a"].state.user.permissionFlag[s]=!1;else{i["a"].state.user.permissionFlag[s]=!0,console.log(i["a"].state.user.permissionFlag[s],"permissionRoles");var o=document.createElement("div");o.style.cursor="not-allowed",o.style.display="inline-block",e.style.pointerEvents="none",e.parentNode.insertBefore(o,e),e.parentNode&&e.parentNode.removeChild(e),o.appendChild(e),console.log(e,"permissionRoles")}}},s=function(e){e.directive("permission",a)};window.Vue&&(window["permission"]=a,Vue.use(s)),a.install=s;t["a"]=a},"67d5":function(e,t,r){"use strict";r.d(t,"e",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return l})),r.d(t,"b",(function(){return c})),r.d(t,"f",(function(){return u})),r.d(t,"h",(function(){return d})),r.d(t,"d",(function(){return p})),r.d(t,"g",(function(){return h}));var i=r("b775"),a=r("4328"),s=r.n(a);function n(e){return Object(i["a"])({url:"user-service/role/getRoleList",method:"get",params:e})}function o(e){return Object(i["a"])({headers:{"Content-Type":"application/json"},url:"user-service/role/saveRole",method:"post",data:e})}function l(e){return Object(i["a"])({headers:{"Content-Type":"application/json"},url:"user-service/role/updateRole",method:"post",data:e})}funct
|
||
|
//# sourceMappingURL=chunk-2f8a36d9.03ee4edd.js.map
|