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