EMS2.0-Documents/7.部署文档/Linux安装/项目前端文件/IEMS/js/chunk-3f074dc9.d39929fb.js

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})}function u(e){return Object(n["a"])({url:"device-service/deviceLog/getDeviceLogList",method:"get",params:e})}function c(e){return Object(n["a"])({url:"alarm-service/statistics/getAlarmLevel",method:"get",params:e})}function d(e){return Object(n["a"])({url:"alarm-service/statistics/getAlarmStatus",method:"get",params:e})}function p(e){return Object(n["a"])({url:"alarm-service/statistics/getAlarmTypeLevel",method:"get",params:e})}function m(e){return Object(n["a"])({url:"alarm-service/statistics/getAlarmTypeStatus",method:"get",params:e})}},c080:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"decorate"}),a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("pEnter")+e.$t("device.deviceName")},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleFilter.apply(null,arguments)}},model:{value:e.listQuery.deviceName,callback:function(t){e.$set(e.listQuery,"deviceName",t)},expression:"listQuery.deviceName"}}),a("el-date-picker",{staticClass:"filter-item",attrs:{type:"datetimerange","start-placeholder":e.$t("startTime"),"picker-options":e.pickerOptions0,"end-placeholder":e.$t("endTime"),"value-format":"yyyy-MM-dd HH:mm:ss",editable:!1},on:{change:e.handleFilter},model:{value:e.arrayTime,callback:function(t){e.arrayTime=t},expression:"arrayTime"}}),a("span",{staticClass:"btn-item",on:{click:e.handleFilter}},[a("i",{staticClass:"iconfont icon-sousuo"}),e._v(e._s(e.$t("btn.search")))]),a("span",{staticClass:"btn-item",on:{click:e.clearListQuery}},[a("i",{staticClass:"el-icon-refresh-left"}),e._v(e._s(e.$t("btn.resetting"))+" ")])],1),a("div",{staticClass:"table-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.list,fit:"","max-height":"580","highlight-current-row":"","header-row-class-name":"table-header","row-class-name":"table-row"}},[a("el-table-column",{attrs:{type:"index",width:"55",align:"center"}}),a("el-table-column",{attrs:{property:"userName",align:"left",label:e.$t("platformLog.userName")}}),a("el-table-column",{attrs:{property:"deviceCode",align:"left",label:e.$t("device.deviceCode")}}),a("el-table-column",{attrs:{property:"operation",align:"left",label:e.$t("table.operate")}}),a("el-table-column",{attrs:{label:e.$t("platformLog.createDate"),align:"left"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("switchTimeFormat")(t.row.createTime)))])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{total:e.total,page:e.listQuery.curPage,limit:e.listQuery.pageSize},on:{"update:page":function(t){return e.$set(e.listQuery,"curPage",t)},"update:limit":function(t){return e.$set(e.listQuery,"pageSize",t)},pagination:e.getList}})],1)])},r=[],i=(a("d81d"),a("9e04")),s=a("333d"),l=a("4381"),o=a("61f7"),u={components:{Pagination:s["a"]},directives:{permission:l["a"]},filters:{switchTimeFormat:function(e){var t=Object(o["b"])(e);return t}},data:function(){return{total:0,listQuery:{userId:null,curPage:1,pageSize:10},userList:[],list:null,listLoading:!1,arrayTime:[],pickerOptions0:{disabledDate:function(e){return e.getTime()>Date.now()-864e4}}}},watch:{arrayTime:function(e){this.listQuery.startTime=e&&e&&e[0],this.listQuery.endTime=e&&e&&e[1]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.listLoading=!0,Object(i["h"])(this.listQuery).then((function(t){e.listLoading=!1,console.log(t),e.list=t.data.list.map((function(t){return"en"==e.$i18n.locale&&(t.operation=t.enOperation),t})),e.total=t.data.totalRow||0}))},clearListQuery:function(){this.listQuery={userId:null,curPage:1,pageSize:10},this.getList()},handleFilter:function(){this.listQuery.curPage=1,this.getList()}}},c=u,d=a("2877"),p=Object(d["a"])(c,n,r,!1,null,null,null);t["default"]=p.exports}}]);
//# sourceMappingURL=chunk-3f074dc9.d39929fb.js.map