2 lines
8.0 KiB
JavaScript
2 lines
8.0 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f074dc9"],{"14cb":function(e,t,a){"use strict";a("1a02")},"1a02":function(e,t,a){},"333d":function(e,t,a){"use strict";var n=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)},r=[],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(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})}}}),s=i,l=(a("14cb"),a("2877")),o=Object(l["a"])(s,n,r,!1,null,"4dfad654",null);t["a"]=o.exports},4381:function(e,t,a){"use strict";a("d3b7"),a("caad"),a("2532"),a("d9e2");var n=a("4360"),r={inserted:function(e,t){var a=t.value,r=n["a"].getters&&n["a"].getters.butPermission;if(console.log(r,"roles"),!(a&&a instanceof Array&&a.length>0))throw new Error("need roles! Like v-permission=\"['admin','editor']\"");var i=a,s=r.some((function(e){return i.includes(e)}));if(console.log(s,"hasPermission"),s)n["a"].state.user.permissionFlag[i]=!1;else{n["a"].state.user.permissionFlag[i]=!0,console.log(n["a"].state.user.permissionFlag[i],"permissionRoles");var l=document.createElement("div");l.style.cursor="not-allowed",l.style.display="inline-block",e.style.pointerEvents="none",e.parentNode.insertBefore(l,e),e.parentNode&&e.parentNode.removeChild(e),l.appendChild(e),console.log(e,"permissionRoles")}}},i=function(e){e.directive("permission",r)};window.Vue&&(window["permission"]=r,Vue.use(i)),r.install=i;t["a"]=r},"61f7":function(e,t,a){"use strict";a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));a("ac1f"),a("00b4"),a("d9e2"),a("a9e3"),a("5319");function n(e,t,a){""===t?a(new Error("请输入手机号码")):/^[0-9-]+$/.test(t)?a():a(new Error("手机号码格式不对"))}function r(e){if(e||0===e){if(e.length>0){var t=e.replace(/(^\s*)|(\s*$)/g,"");return t||"--"}return e}return"--"}function i(e){if(!e)return"";var t=new Date(e),a=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),i=t.getHours(),l=t.getMinutes(),o=t.getSeconds();return a+"-"+s(n)+"-"+s(r)+"\n"+s(i)+":"+s(l)+":"+s(o)}function s(e){return e<10?"0"+e:e}},"9e04":function(e,t,a){"use strict";a.d(t,"g",(function(){return r})),a.d(t,"a",(function(){return i})),a.d(t,"c",(function(){return s})),a.d(t,"i",(function(){return l})),a.d(t,"j",(function(){return o})),a.d(t,"h",(function(){return u})),a.d(t,"b",(function(){return c})),a.d(t,"d",(function(){return d})),a.d(t,"e",(function(){return p})),a.d(t,"f",(function(){return m}));var n=a("b775");function r(e){return Object(n["a"])({url:"trajectory-service/deptAlarm/getTaskByAlarmId",method:"get",params:e})}function i(e){return Object(n["a"])({url:"alarm-service/alarm/clearAlarmStatus?alarmId="+e,method:"post"})}function s(e){return Object(n["a"])({url:"alarm-service/alarm/getAlarmList",method:"get",params:e})}function l(e){return Object(n["a"])({url:"alarm-service/alarm/getTipAlarmList",method:"get",params:e})}function o(e){return Object(n["a"])({url:"alarm-service/alarm/updateAlarmReadStatus",method:"post",params:e})}fun
|
||
|
//# sourceMappingURL=chunk-3f074dc9.d39929fb.js.map
|