(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4e5ed480"],{
/***/"1b2e":
/***/function(t,e,a){
// extracted by mini-css-extract-plugin
/***/},
/***/cd3c8:
/***/function(t,e,a){"use strict";
/* harmony import */a("1b2e");
/* harmony import */},
/***/e913:
/***/function(t,e,a){"use strict";
// ESM COMPAT FLAG
a.r(e);
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"411544a2-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/project/dashboard.vue?vue&type=template&id=bed92a58&scoped=true
var s=a("5530"),o=(a("b680"),a("313e")),n=a("1d40"),r=a("2f62"),i={},l=function(t,e){var a="1.23452384164.123412416";null!==document.getElementById(a)&&document.body.removeChild(document.getElementById(a));
//创建一个画布
var s=document.createElement("canvas");
//设置画布的长宽
s.width=300,s.height=150;var o=s.getContext("2d");
//旋转角度
o.rotate(-15*Math.PI/180),o.font="14px Vedana",
//设置填充绘画的颜色、渐变或者模式
o.fillStyle="rgba(200, 200, 200, 0.40)",
//设置文本内容的当前对齐方式
o.textAlign="left",
//设置在绘制文本时使用的当前文本基线
o.textBaseline="Middle",
//在画布上绘制填色的文本（输出的文本，开始绘制文本的X坐标位置，开始绘制文本的Y坐标位置）
o.fillText(t,s.width/4,s.height/2),o.fillText(e,s.width/4,s.height/3);var n=document.createElement("div");n.id=a,n.style.pointerEvents="none",n.style.top="30px",n.style.left="0px",n.style.position="absolute",n.style.zIndex="100000",n.style.width=document.documentElement.clientWidth+"px",n.style.height=document.documentElement.clientHeight+"px",n.style.background="url("+s.toDataURL("image/png")+") left top repeat",
//   document.body.appendChild(div)
n.style.opacity="1";// 水印的透明度
var r=document.getElementById("WaterMarkShow");// 控制水印显示的区域，设置id = show,表示在该范围内有水印
return null!=r&&r.appendChild(n),a};
// 该方法只允许调用一次
i.set=function(t,e){var a=l(t,e);// str,date代表的是两行水印。如果需好几个的话再追加。
setInterval((function(){null===document.getElementById(a)&&(a=l(t,e))}),500),window.onresize=function(){l(t,e)}};
/* harmony default export */var d=i,m={name:"Analysis",i18n:a("89fe"),data:function(){return{loading:!0,OptLoading:!0,echartsView:null,optionCpu:{title:[{text:"00.00%",x:"center",top:"45%",left:"20%",textStyle:{fontSize:30,color:"#000000",fontFamily:"DINAlternate-Bold, DINAlternate",fontWeight:"600"}}],backgroundColor:"",polar:{radius:["100%","80%"],center:["50%","50%"]},angleAxis:{max:100,show:!1},radiusAxis:{type:"category",show:!0,axisLabel:{show:!1},axisLine:{show:!1},axisTick:{show:!1}},series:[{type:"bar",roundCap:!0,barWidth:10,showBackground:!0,backgroundStyle:{color:"rgba(66, 66, 66, .2)"},data:[10],coordinateSystem:"polar",itemStyle:{normal:{color:"rgba(96, 244, 194, 1)"}}}]},optionDisk:{title:[{text:"00%",x:"center",top:"45%",left:"35%",textStyle:{fontSize:30,color:"#000000",fontFamily:"DINAlternate-Bold, DINAlternate",fontWeight:"600"}}],backgroundColor:"",polar:{radius:["100%","80%"],center:["50%","50%"]},angleAxis:{max:100,show:!1},radiusAxis:{type:"category",show:!0,axisLabel:{show:!1},axisLine:{show:!1},axisTick:{show:!1}},series:[{type:"bar",roundCap:!0,barWidth:10,showBackground:!0,backgroundStyle:{color:"rgba(66, 66, 66, .2)"},data:[10],coordinateSystem:"polar",itemStyle:{normal:{color:"rgba(96, 244, 194, 1)"}}}]},optionMem:{title:[{text:"40%",x:"center",top:"45%",left:"35%",textStyle:{fontSize:30,color:"#000000",fontFamily:"DINAlternate-Bold, DINAlternate",fontWeight:"600"}}],backgroundColor:"",polar:{radius:["100%","80%"],center:["50%","50%"]},angleAxis:{max:100,show:!1},radiusAxis:{type:"category",show:!0,axisLabel:{show:!1},axisLine:{show:!1},axisTick:{show:!1}},series:[{type:"bar",roundCap:!0,barWidth:10,showBackground:!0,backgroundStyle:{color:"rgba(66, 66, 66, .2)"},data:[10],coordinateSystem:"polar",itemStyle:{normal:{color:"rgba(96, 244, 194, 1)"}}}]},SystemInfo:{CpuInfo:{Number:0,Cores:0,UsedPercent:["00.00"],Load:{load1:0,load5:0,load15:0}},DiskInfo:{total:40,free:20,used:10,usedPercent:0},MemInfo:{available:0,free:0,goUsed:0,total:0,used:0,usedPercent:0},HostInfo:{hostname:"DESKTOP-VDQD76M",uptime:0,bootTime:0,procs:0,os:"windows",platform:"Microsoft Windows 10 Pro",platformFamily:"Standalone Workstation",platformVersion:"10.0.19045.3693 Build 19045.3693",kernelVersion:"10.0.19045.3693 Build 19045.3693",kernelArch:"x86_64",virtualizationSystem:"",virtualizationRole:"",hostId:"f60ccb2f-a5cd-4bd6-856a-3f0723fb27a7"},NetWork:{Receive:0,Sent:0}},IsLicense:!0,cardHover:-1,
// 卡片悬浮索引
// 核心指标配置（统一管理，便于维护）
metricsList:[{type:"info",i18nKey:"dashboard.APPCount",dataKey:"AppCount",unit:"个",icon:"appstore"},{type:"info",i18nKey:"dashboard.DeviceCount",dataKey:"DeviceCount",unit:"个",icon:"laptop"},{type:"danger",i18nKey:"dashboard.DeviceOfflineCount",dataKey:"DeviceOffCount",unit:"个",icon:"wifi-off"},{type:"danger",i18nKey:"dashboard.alarmCount",dataKey:"AlarmCount",unit:"个",icon:"exclamation-circle"},{type:"success",i18nKey:"dashboard.DeviceDataCount",dataKey:"DataCount",unit:"个",icon:"database"},{type:"success",i18nKey:"dashboard.VideoCount",dataKey:"VideoCount",unit:"个",icon:"play-circle"}]}},computed:Object(s.a)({},Object(r.e)("setting",["langList","isMobile","systemVersion","ProtectedID"])),watch:{$route:function(){this.initMap(),this.GetSystemAnalysis()}},methods:{GetSystemAnalysis:function(){var t=this;t.OptLoading=!0,Object(n.g)().then((function(e){t.$message.destroy(),t.OptLoading=!1,t.SystemInfo=e.data.list,t.SystemInfo.CpuInfo.UsedPercent[0]=parseFloat(t.SystemInfo.CpuInfo.UsedPercent[0]).toFixed(2),t.SystemInfo.CpuInfo.Load.load1=parseFloat(t.SystemInfo.CpuInfo.Load.load1).toFixed(2),t.SystemInfo.CpuInfo.Load.load5=parseFloat(t.SystemInfo.CpuInfo.Load.load5).toFixed(2),t.SystemInfo.CpuInfo.Load.load15=parseFloat(t.SystemInfo.CpuInfo.Load.load15).toFixed(2),t.SystemInfo.DiskInfo.total=(parseFloat(t.SystemInfo.DiskInfo.total)/1073741824).toFixed(0),t.SystemInfo.DiskInfo.free=(parseFloat(t.SystemInfo.DiskInfo.free)/1073741824).toFixed(0),t.SystemInfo.DiskInfo.used=(parseFloat(t.SystemInfo.DiskInfo.used)/1073741824).toFixed(0),t.SystemInfo.DiskInfo.usedPercent=parseFloat(t.SystemInfo.DiskInfo.usedPercent).toFixed(0),t.SystemInfo.MemInfo.total=(parseFloat(t.SystemInfo.MemInfo.total)/1073741824).toFixed(0),t.SystemInfo.MemInfo.used=(parseFloat(t.SystemInfo.MemInfo.used)/1073741824).toFixed(0),t.SystemInfo.MemInfo.free=(parseFloat(t.SystemInfo.MemInfo.free)/1073741824).toFixed(0),t.SystemInfo.MemInfo.goUsed=(parseFloat(t.SystemInfo.MemInfo.goUsed)/1048576).toFixed(0),t.SystemInfo.MemInfo.usedPercent=parseFloat(t.SystemInfo.MemInfo.usedPercent).toFixed(0),t.SystemInfo.NetWork.Receive=(parseFloat(t.SystemInfo.NetWork.Receive)/1048576).toFixed(0),t.SystemInfo.NetWork.Sent=(parseFloat(t.SystemInfo.NetWork.Sent)/1048576).toFixed(0),t.SystemInfo.HostInfo.uptime=(parseInt(t.SystemInfo.HostInfo.uptime)/3600).toFixed(0),t.SystemInfo.HostInfo.bootTime=t.SystemInfo.BootTime,t.optionCpu.series[0].data[0]=t.SystemInfo.CpuInfo.UsedPercent[0],t.optionCpu.title[0].text=t.SystemInfo.CpuInfo.UsedPercent[0]+"%",setTimeout(t.echartsView.setOption(t.optionCpu,!0),500),t.optionMem.series[0].data[0]=t.SystemInfo.MemInfo.usedPercent,t.optionMem.title[0].text=t.SystemInfo.MemInfo.usedPercent+"%",setTimeout(t.echartsViewMem.setOption(t.optionMem,!0),500),t.optionDisk.series[0].data[0]=t.SystemInfo.DiskInfo.usedPercent,t.optionDisk.title[0].text=t.SystemInfo.DiskInfo.usedPercent+"%",setTimeout(t.echartsViewDisk.setOption(t.optionDisk,!0),500)}))},initMap:function(){var t=this.$refs.cpuCharts,e=this.$refs.memCharts,a=this.$refs.viewDisk;this.echartsView=o.init(t,null),this.echartsView.setOption(this.optionCpu,!0),this.echartsViewMem=o.init(e,null),this.echartsViewMem.setOption(this.optionMem,!0),this.echartsViewDisk=o.init(a,null),this.echartsViewDisk.setOption(this.optionDisk,!0)},GetSystemParams:function(){var t=this;Object(n.o)().then((function(e){t.$store.state.setting.IsOEM=e.data.list.IsOEM,t.IsLicense=t.$store.state.setting.IsOEM,t.IsLicense||d.set("www.ismctl.com","个人免费版")})).catch((function(t){}))}},mounted:function(){this.initMap()},created:function(){this.GetSystemAnalysis(),this.GetSystemParams()}},c=(a("cd3c8"),a("2877")),f=Object(c.a)(m,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"analysis",attrs:{id:"WaterMarkShow"}},[e("a-spin",{attrs:{tip:t.$t("dashBoard.loading"),size:"large",spinning:t.OptLoading}},[e("a-row",{staticClass:"metrics-card-row",attrs:{gutter:[24,24]}},t._l(t.metricsList,(function(a,s){return e("a-col",{key:s,attrs:{sm:24,md:12,xl:4}},[e("a-card",{class:"metrics-card border-".concat(a.type),on:{mouseenter:function(e){t.cardHover=s},mouseleave:function(e){t.cardHover=-1}}},[e("p",{staticClass:"metrics-label"},[t._v(t._s(t.$t(a.i18nKey)))]),e("div",{staticClass:"metrics-value-wrap"},[e("span",{staticClass:"metrics-value"},[t._v(t._s(t.SystemInfo[a.dataKey]))]),e("span",{staticClass:"metrics-unit"},[t._v(t._s(a.unit))])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.cardHover===s,expression:"cardHover === index"}],staticClass:"metrics-icon"},[e("a-icon",{attrs:{type:a.icon}})],1)])],1)})),1),e("a-row",{staticStyle:{"margin-top":"10px"},attrs:{gutter:16}},[e("a-col",{attrs:{span:8}},[e("a-card",{staticClass:"metrics-card-l border-info r",attrs:{title:"CPU"}},[e("a-row",{staticStyle:{padding:"10px"}},[e("a-col",{attrs:{span:10}},[e("a-form",{attrs:{labelCol:{span:10},wrapperCol:{span:14}}},[e("a-form-item",{attrs:{label:t.$t("dashBoard.CUPCount")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.CpuInfo.Number)+" ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.CUPKernelCount")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.CpuInfo.Cores)+" ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.CUPUsedCount")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.CpuInfo.UsedPercent[0])+" % ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.LA5")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.CpuInfo.Load.load5)+" % ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.LA15")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.CpuInfo.Load.load15)+" % ")])])],1)],1),e("a-col",{attrs:{span:14}},[e("div",{ref:"cpuCharts",staticClass:"view-chart-gauge"},[t._v(" Click to bind data. ")])])],1)],1)],1),e("a-col",{attrs:{span:8}},[e("a-card",{staticClass:"metrics-card-l border-danger r",attrs:{title:"硬盘"}},[e("a-row",{staticStyle:{padding:"10px"},attrs:{gutter:16}},[e("a-col",{attrs:{span:10}},[e("a-form",{attrs:{labelCol:{span:12},wrapperCol:{span:12}}},[e("a-form-item",{attrs:{label:t.$t("dashBoard.DiskCap")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.DiskInfo.total)+" GB ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.UsedDisk")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.DiskInfo.used)+" GB ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.MemRem")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.DiskInfo.free)+" GB ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.UsedDiskPro")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.DiskInfo.usedPercent)+" % ")])])],1)],1),e("a-col",{attrs:{span:14}},[e("div",{ref:"viewDisk",staticClass:"view-chart-gauge"},[t._v(" Click to bind data. ")])])],1)],1)],1),e("a-col",{attrs:{span:8}},[e("a-card",{staticClass:"metrics-card-l border-success r",attrs:{title:"内存"}},[e("a-row",{staticStyle:{padding:"10px"},attrs:{gutter:16}},[e("a-col",{attrs:{span:10}},[e("a-form",{attrs:{labelCol:{span:12},wrapperCol:{span:12}}},[e("a-form-item",{attrs:{label:t.$t("dashBoard.MemCap")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.MemInfo.total)+" GB ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.UsedMem")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.MemInfo.used)+" GB ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.MemRem")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.MemInfo.free)+" GB ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.ProgramUsed")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.MemInfo.goUsed)+" MB ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.UsedMemPro")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.MemInfo.usedPercent)+" % ")])])],1)],1),e("a-col",{attrs:{span:14}},[e("div",{ref:"memCharts",staticClass:"view-chart-gauge"},[t._v(" Click to bind data. ")])])],1)],1)],1)],1),e("a-row",{staticStyle:{"margin-top":"10px"},attrs:{gutter:16}},[e("a-card",{staticClass:"metrics-card-l border-success r",attrs:{title:"运行环境信息"}},[e("a-row",{staticStyle:{padding:"10px"}},[e("a-col",{staticStyle:{padding:"20px"},attrs:{span:8}},[e("a-form",{attrs:{labelCol:{span:6},wrapperCol:{span:14}}},[e("a-form-item",{attrs:{label:t.$t("dashBoard.system")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.HostInfo.platform)+" ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.BootTime")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.HostInfo.bootTime)+" ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.RunTime")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.HostInfo.uptime)+" 小时 ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.RunMem")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.MemInfo.used)+" GB ")])])],1)],1),e("a-col",{staticStyle:{padding:"20px"},attrs:{span:8}},[e("a-form",{attrs:{labelCol:{span:6},wrapperCol:{span:14}}},[e("a-form-item",{attrs:{label:t.$t("dashBoard.systemType")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.HostInfo.kernelArch)+" ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.ProCount")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.HostInfo.procs)+" ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.MacID")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.ProtectedID)+" ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.ProgramUsed")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.MemInfo.goUsed)+" MB ")])])],1)],1),e("a-col",{staticStyle:{padding:"20px"},attrs:{span:8}},[e("a-form",{attrs:{labelCol:{span:6},wrapperCol:{span:14}}},[e("a-form-item",{attrs:{label:t.$t("dashBoard.Goroutine")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.Goroutine)+" ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.netRecvied")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.NetWork.Receive)+" MB ")])]),e("a-form-item",{attrs:{label:t.$t("dashBoard.netSend")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.SystemInfo.NetWork.Sent)+" MB ")])]),e("a-form-item",{attrs:{label:t.$t("SystemUpgrade.Version")}},[e("span",{staticClass:"ant-form-text"},[t._v(" "+t._s(t.systemVersion)+" ")])])],1)],1)],1)],1)],1)],1)],1)}),[],!1,null,"bed92a58",null)
/* harmony default export */;
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/project/dashboard.vue?vue&type=script&lang=js
/* harmony default export */e.default=f.exports}}]);