2 lines
9.4 KiB
JavaScript
2 lines
9.4 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6ba2df64"],{4381:function(t,e,a){"use strict";a("d3b7"),a("caad"),a("2532"),a("d9e2");var i=a("4360"),r={inserted:function(t,e){var a=e.value,r=i["a"].getters&&i["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 n=a,s=r.some((function(t){return n.includes(t)}));if(console.log(s,"hasPermission"),s)i["a"].state.user.permissionFlag[n]=!1;else{i["a"].state.user.permissionFlag[n]=!0,console.log(i["a"].state.user.permissionFlag[n],"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")}}},n=function(t){t.directive("permission",r)};window.Vue&&(window["permission"]=r,Vue.use(n)),r.install=n;e["a"]=r},"4b79":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"decorate"}),a("div",{staticClass:"top"},[a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[a("i",{staticClass:"iconfont icon-biaoti"}),a("span",[t._v(t._s(t.$t("alarm.alarmStatus")))])]),a("div",{staticClass:"echart",attrs:{id:"statusEchart"}})]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[a("i",{staticClass:"iconfont icon-biaoti"}),a("span",[t._v(t._s(t.$t("alarm.alarmLevelP")))])]),a("div",{staticClass:"echart",attrs:{id:"levelEchart"}})]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[a("i",{staticClass:"iconfont icon-biaoti"}),a("span",[t._v(t._s(t.$t("alarm.alarmLevelP")))])]),a("div",{staticClass:"echart",attrs:{id:"disEchart"}})])]),a("div",{staticClass:"bottom"},[a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[a("i",{staticClass:"iconfont icon-biaoti"}),a("span",[t._v(t._s(t.$t("alarm.alarmStatusD")))])]),a("div",{staticClass:"echart",attrs:{id:"statusDEchart"}})]),a("div",{staticClass:"item"},[a("div",{staticClass:"name"},[a("i",{staticClass:"iconfont icon-biaoti"}),a("span",[t._v(t._s(t.$t("alarm.deviceAlarmLevelD")))])]),a("div",{staticClass:"echart",attrs:{id:"levelDEchart"}})])])])},r=[],n=a("2909"),s=(a("d81d"),a("99af"),a("9e04")),o=a("61f7"),l=a("4381"),c=a("313e"),u={directives:{permission:l["a"]},data:function(){return{}},created:function(){this.getList(),this.getAlarmDeviceTypeList()},watch:{arrayTime:function(t){this.listQuery.startTime=t&&t&&t[0],this.listQuery.endTime=t&&t&&t[1]}},filters:{filterNull:function(t){var e=Object(o["a"])(t);return e}},methods:{getList:function(){var t=this;Object(s["b"])().then((function(e){var a=e.data||[],i=a.map((function(e){return{name:t.$t("alarm.leve".concat(e.alarmLevel+1)),value:e.alarmTotal}})),r=["#EC6941","#FF9100","#FDF879"];t.getBarChert(i,r,"levelEchart")})),Object(s["d"])().then((function(e){var a=e.data||{},i=[{name:t.$t("alarm.processed")+t.$t("alarm.alarms"),value:a.handledCount},{name:t.$t("alarm.unprocessed")+t.$t("alarm.alarms"),value:a.untreatedCount}],r=["#01FFE9","#FDF879"];t.getBarChert(i,r,"statusEchart")})),Object(s["e"])().then((function(e){var a=e.data||[],i=a.map((function(t){return[t.typeName,t.level1Count,t.level2Count,t.level3Count]}));t.getBarsChert(i);var r=a.map((function(t){return t.typeName})),n=[{name:t.$t("alarm.leve1"),type:"bar",stack:"machine",barWidth:30,data:a.map((function(t){return t.level1Count}))},{name:t.$t("alarm.leve2"),type:"bar",stack:"machine",data:a.map((function(t){return t.level2Count}))},{name:t.$t("alarm.leve3"),type:"bar",stack:"machine",data:a.map((function(t){return t.level3Count}))}],s=["#EC6941","#FF9100","#FDF879"];t.getBChert(r,n,s,"levelDEchart")})),Object(s["f"])().then((function(e){var a=e.data||[],i=a.map((function(t){return t.typeName})),r=[{name:t.$t("alarm.processed"),type:"bar",stack:"machine",barWidth:30,data:a.map((function(t){return t.handledCount}))},{name:t.$t("alarm.unprocessed"),type:"bar",stac
|
||
|
//# sourceMappingURL=chunk-6ba2df64.c35b0bf1.js.map
|