2 lines
45 KiB
JavaScript
2 lines
45 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f4b4d28a"],{"0e8f":function(e,t,a){"use strict";a.d(t,"d",(function(){return o})),a.d(t,"e",(function(){return n})),a.d(t,"c",(function(){return l})),a.d(t,"a",(function(){return c})),a.d(t,"b",(function(){return d}));var i=a("b775"),s=a("4328"),r=a.n(s);function o(e){return Object(i["a"])({url:"user-service/dept/getDeptTreeList",method:"get",params:e})}function n(e){return Object(i["a"])({url:"user-service/dept/getDeptSubByDeptId",method:"get",params:e})}function l(e){var t=r.a.stringify(e);return Object(i["a"])({url:"user-service/dept/updateDept",method:"post",data:t})}function c(e){var t=r.a.stringify(e);return Object(i["a"])({url:"user-service/dept/saveDept",method:"post",data:t})}function d(e){return Object(i["a"])({headers:{"Content-Type":"application/json"},url:"user-service/dept/removeDept",method:"get",params:e})}},"14cb":function(e,t,a){"use strict";a("1a02")},"1a02":function(e,t,a){},"333d":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"pagination-container"},[a("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)},s=[],r=(a("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})}}}),o=r,n=(a("14cb"),a("2877")),l=Object(n["a"])(o,i,s,!1,null,"4dfad654",null);t["a"]=l.exports},4381:function(e,t,a){"use strict";a("d3b7"),a("caad"),a("2532"),a("d9e2");var i=a("4360"),s={inserted:function(e,t){var a=t.value,s=i["a"].getters&&i["a"].getters.butPermission;if(console.log(s,"roles"),!(a&&a instanceof Array&&a.length>0))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");var r=a,o=s.some((function(e){return r.includes(e)}));if(console.log(o,"hasPermission"),o)i["a"].state.user.permissionFlag[r]=!1;else{i["a"].state.user.permissionFlag[r]=!0,console.log(i["a"].state.user.permissionFlag[r],"permissionRoles");var n=document.createElement("div");n.style.cursor="not-allowed",n.style.display="inline-block",e.style.pointerEvents="none",e.parentNode.insertBefore(n,e),e.parentNode&&e.parentNode.removeChild(e),n.appendChild(e),console.log(e,"permissionRoles")}}},r=function(e){e.directive("permission",s)};window.Vue&&(window["permission"]=s,Vue.use(r)),s.install=r;t["a"]=s},"571f":function(e,t,a){"use strict";a.d(t,"e",(function(){return s})),a.d(t,"f",(function(){return r})),a.d(t,"d",(function(){return o})),a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return l})),a.d(t,"c",(function(){return c})),a.d(t,"g",(function(){return d}));var i=a("b775");function s(e){return Object(i["a"])({url:"device-service/site/getSiteList",method:"get",params:e})}function r(e){return Object(i["a"])({url:"device-service/site/getUnChoiceDevice",method:"get",params:e})}function o(e){return Object(i["a"])({url:"device-service/site/getHasChoiceDevice",method:"get",params:e})}function n(e){return Object(i["a"])({headers:{"Content-Type":"application/json"},url:"device-service/site/addSite",method:"post",data:e})}function l(e){return Object(i["a
|
||
|
//# sourceMappingURL=chunk-f4b4d28a.62249e82.js.map
|