2 lines
13 KiB
JavaScript
2 lines
13 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00384424"],{"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=[],s=(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})}}}),i=s,o=(a("14cb"),a("2877")),c=Object(o["a"])(i,r,n,!1,null,"4dfad654",null);e["a"]=c.exports},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 s=a,i=n.some((function(t){return s.includes(t)}));if(console.log(i,"hasPermission"),i)r["a"].state.user.permissionFlag[s]=!1;else{r["a"].state.user.permissionFlag[s]=!0,console.log(r["a"].state.user.permissionFlag[s],"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")}}},s=function(t){t.directive("permission",n)};window.Vue&&(window["permission"]=n,Vue.use(s)),n.install=s;e["a"]=n},"9b41":function(t,e,a){"use strict";a.d(e,"h",(function(){return i})),a.d(e,"n",(function(){return o})),a.d(e,"t",(function(){return c})),a.d(e,"p",(function(){return l})),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 h})),a.d(e,"a",(function(){return g})),a.d(e,"e",(function(){return y})),a.d(e,"c",(function(){return k})),a.d(e,"l",(function(){return w})),a.d(e,"o",(function(){return v})),a.d(e,"d",(function(){return b})),a.d(e,"g",(function(){return _})),a.d(e,"f",(function(){return T})),a.d(e,"m",(function(){return j})),a.d(e,"s",(function(){return $}));a("e9c4");var r=a("b775"),n=a("4328"),s=a.n(n);function i(t){return Object(r["a"])({url:"device-service/cabinet/getDeviceList",method:"get",params:t})}function o(t){var e=JSON.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/insertOrderTask",method:"post",headers:{"Content-Type":"application/json"},data:e})}function c(t){var e=JSON.stringify(t);return Object(r["a"])({url:"trajectory-service/ttask/updateTask",method:"post",headers:{"Content-Type":"application/json"},data:e})}function l(t){return Object(r["a"])({url:"trajectory-service/ttask/releaseTask",method:"post",params:t})}function u(t){return Object(r["a"])({url:"trajectory-service/ttask/getTask",method:"get",params:t})}function d(t){return Object(r["a"])({url:"trajectory-service/ttask/getTaskList",method:"get",params:t})}function p(t){return Object(r["a"])({url:"trajectory-service/acceptance/g
|
||
|
//# sourceMappingURL=chunk-00384424.cf377c8b.js.map
|