2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-53314db1"],{"14cb":function(t,e,a){"use strict";a("1a02")},"1a02":function(t,e,a){},"333d":function(t,e,a){"use strict";var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination-container"},[a("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},n=[],i=(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(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t})},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize})}}}),s=i,o=(a("14cb"),a("2877")),l=Object(o["a"])(s,r,n,!1,null,"4dfad654",null);e["a"]=l.exports},3650:function(t,e,a){"use strict";a("7753")},4381:function(t,e,a){"use strict";a("d3b7"),a("caad"),a("2532"),a("d9e2");var r=a("4360"),n={inserted:function(t,e){var a=e.value,n=r["a"].getters&&r["a"].getters.butPermission;if(console.log(n,"roles"),!(a&&a instanceof Array&&a.length>0))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");var i=a,s=n.some((function(t){return i.includes(t)}));if(console.log(s,"hasPermission"),s)r["a"].state.user.permissionFlag[i]=!1;else{r["a"].state.user.permissionFlag[i]=!0,console.log(r["a"].state.user.permissionFlag[i],"permissionRoles");var o=document.createElement("div");o.style.cursor="not-allowed",o.style.display="inline-block",t.style.pointerEvents="none",t.parentNode.insertBefore(o,t),t.parentNode&&t.parentNode.removeChild(t),o.appendChild(t),console.log(t,"permissionRoles")}}},i=function(t){t.directive("permission",n)};window.Vue&&(window["permission"]=n,Vue.use(i)),n.install=i;e["a"]=n},"61f7":function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i}));a("ac1f"),a("00b4"),a("d9e2"),a("a9e3"),a("5319");function r(t,e,a){""===e?a(new Error("请输入手机号码")):/^[0-9-]+$/.test(e)?a():a(new Error("手机号码格式不对"))}function n(t){if(t||0===t){if(t.length>0){var e=t.replace(/(^\s*)|(\s*$)/g,"");return e||"--"}return t}return"--"}function i(t){if(!t)return"";var e=new Date(t),a=e.getFullYear(),r=e.getMonth()+1,n=e.getDate(),i=e.getHours(),o=e.getMinutes(),l=e.getSeconds();return a+"-"+s(r)+"-"+s(n)+"\n"+s(i)+":"+s(o)+":"+s(l)}function s(t){return t<10?"0"+t:t}},7753:function(t,e,a){},"9b41":function(t,e,a){"use strict";a.d(e,"h",(function(){return s})),a.d(e,"n",(function(){return o})),a.d(e,"t",(function(){return l})),a.d(e,"p",(function(){return c})),a.d(e,"j",(function(){return u})),a.d(e,"k",(function(){return d})),a.d(e,"i",(function(){return p})),a.d(e,"q",(function(){return f})),a.d(e,"r",(function(){return m})),a.d(e,"b",(function(){return g})),a.d(e,"a",(function(){return v})),a.d(e,"e",(function(){return h})),a.d(e,"c",(function(){return y})),a.d(e,"l",(function(){return b})),a.d(e,"o",(function(){return w})),a.d(e,"d",(function(){return k})),a.d(e,"g",(function(){return _})),a.d(e,"f",(function(){return $})),a.d(e,"m",(function(){return S})),a.d(e,"s",(function(){return j}));a("e9c4");var r=a("b775"),n=a("4328"),i=a.n(n);function s(t){return Object(r["a"])({url:"device-service/cabinet/getDeviceList",method:"get",para
|
||
|
//# sourceMappingURL=chunk-53314db1.8a993383.js.map
|