cuikaidong
2025-08-08 c495c1ae53473d54af136ea00da84bf51c50d521
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7692e606","chunk-7692e606"],{"10ad":function(e,i,t){"use strict";t.r(i);var a=function(){var e=this,i=this,t=i.$createElement,a=i._self._c||t;return a("div",{ref:"wrap"},[a("a-modal",{attrs:{title:i.title,width:"70%",visible:i.visible,getContainer:function(){return e.$refs.wrap},cancelText:"关闭","wrap-class-name":"full-modal",centered:""},on:{cancel:i.handleCancel}},[a("div",{staticStyle:{padding:"1px"},attrs:{id:"mdcEquiInfo"}},[a("table",{staticStyle:{"border-collapse":"separate","border-spacing":"0px",color:"#fff"},attrs:{width:"100%"}},[a("tr",[null!=this.spindlebeilv?a("td",[a("div",{staticClass:"mdcEquipMon",staticStyle:{width:"250px",height:"200px",margin:"0 auto",padding:"0"},attrs:{align:"center"}},[i._v("\n              主轴倍率\n              "),a("div",{ref:"chart1",staticStyle:{width:"100%",height:"95%"},attrs:{id:"mdcEquiMoniGauge1"}})])]):i._e(),null!=this.feedbeilv?a("td",[a("div",{staticClass:"mdcEquipMon",staticStyle:{width:"210px",height:"180px",margin:"0 auto"},attrs:{align:"center"}},[i._v("\n              进给倍率\n              "),a("div",{ref:"chart2",staticStyle:{width:"100%",height:"95%"},attrs:{id:"mdcEquiMoniGauge2"}})])]):i._e(),null!=this.spindleload?a("td",[a("div",{staticClass:"mdcEquipMon",staticStyle:{width:"210px",height:"180px",margin:"0 auto"},attrs:{align:"center"}},[i._v("主轴负荷\n              "),a("div",{ref:"mdcEquiMoniGauge3",staticStyle:{width:"100%",height:"95%"},attrs:{id:"mdcEquiMoniGauge3"}})])]):i._e(),null!=this.rapidfeed?a("td",[a("div",{staticClass:"mdcEquipMon",staticStyle:{width:"210px",height:"180px",margin:"0 auto"},attrs:{align:"center"}},[i._v("快速进给倍率\n              "),a("div",{ref:"mdcEquiMoniGauge4",staticStyle:{width:"100%",height:"95%"},attrs:{id:"mdcEquiMoniGauge4"}})])]):i._e()]),a("tr",[a("td",{attrs:{colspan:"5"}},[a("a-descriptions",{attrs:{title:"基础信息",column:4}},[a("a-descriptions-item",{attrs:{label:"设备编号"}},[i._v(i._s(i.resultData.equipmentId))]),a("a-descriptions-item",{attrs:{label:"设备名称"}},[i._v(i._s(i.resultData.equipmentName))]),a("a-descriptions-item",{attrs:{label:"IP地址"}},[i._v(i._s(i.resultData.equipmentIp))]),a("a-descriptions-item",{attrs:{label:"端口号"}},[i._v(i._s(i.resultData.dataPort))]),a("a-descriptions-item",{attrs:{label:"系统版本号"}},[i._v(i._s(i.resultData.systemVersion))]),a("a-descriptions-item",{attrs:{label:"驱动类型"}},[i._v(i._s(i.resultData.driveType))]),a("a-descriptions-item",{attrs:{label:"设备型号"}},[i._v(i._s(i.resultData.equipmentModel))]),a("a-descriptions-item",{attrs:{label:"设备类型"}},[i._v(i._s(i.resultData.equipmentType))]),a("a-descriptions-item",{attrs:{label:"设备功率"}},[i._v(i._s(i.resultData.devicePower))]),a("a-descriptions-item",{attrs:{label:"有效轴数"}},[i._v(i._s(i.resultData.validAxis))]),a("a-descriptions-item",{attrs:{label:"最大轴数"}},[i._v(i._s(i.resultData.maxAxis))]),a("a-descriptions-item",{attrs:{label:"备注"}},[i._v(i._s(i.resultData.remark))])],1),"PLC"!=i.driverType?a("a-descriptions",{directives:[{name:"show",rawName:"v-show",value:null!=i.mdcDriveTypeParamConfigList,expression:"mdcDriveTypeParamConfigList != null"}],staticClass:"operationData",attrs:{title:"运行数据",column:4}},i._l(i.mdcDriveTypeParamConfigList,(function(e,t){return a("a-descriptions-item",{key:t,attrs:{label:e.key}},[a("a-tooltip",{on:{mouseenter:i.mouseEnterItem}},[a("template",{slot:"title"},[i._v("\n                    "+i._s(e.value)+"\n                  ")]),a("div",{staticClass:"description-item-class"},[i._v(i._s(e.value))])],2)],1)})),1):i._e()],1)])])]),a("template",{slot:"footer"},[a("a-button",{staticStyle:{color:"#1191b0"},style:{marginRight:"8px"},on:{click:i.handleCancel}},[i._v("关闭")])],1)],2)],1)},s=[],l=t("0fea"),n=(t("4ec3"),{name:"EquipmentDetailModal",components:{},props:{},data:function(){return{mdcDriveTypeParamConfigList:[],xyzAliasesList:[],title:"",spindlebeilv:1,feedbeilv:1,spindleload:1,rapidfeed:1,visible:!1,resultData:{},driverType:"",deviceTypeDict:"",url:{mdcEquipmentDetailedInfo:"/mdc/mdcEquipment/mdcEquipmentDetailedInfo"},modalTimer:null,ee:" "}},mounted:function(){},methods:{drawLine:function(){var e=this;if(e.spindlebeilv){var i=this.$echarts.init(document.getElementById("mdcEquiMoniGauge1"),"macarons"),t={tooltip:{formatter:"{a} <br/>{b} : {c}%"},series:[{name:"外部线",type:"gauge",radius:"65%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#31F3FF"]],width:1}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"外部刻度",type:"gauge",radius:"80%",min:0,max:300,splitNumber:10,startAngle:225,endAngle:-45,axisLine:{show:!1,lineStyle:{color:[[1,"rgba(0,0,0,0)"]]}},axisLabel:{show:!0,color:"#31F3FF",fontSize:10,distance:-20},axisTick:{show:!1},splitLine:{show:!1}},{name:"内部宽线条",type:"gauge",radius:"55%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#122B3C"]],width:4}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"内部细线条",type:"gauge",radius:"40%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#122B3C"]],width:3}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"间隔条形",type:"gauge",radius:"52.5%",z:4,splitNumber:35,startAngle:225,endAngle:-45,axisLine:{lineStyle:{opacity:0}},axisLabel:{show:!1},axisTick:{show:!1,length:20,splitNumber:1,lineStyle:{color:"#122B3C",width:1}},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"数据",type:"gauge",radius:"52.5%",z:3,startAngle:225,max:300,endAngle:-45,axisLine:{lineStyle:{color:[[e.spindlebeilv/300,"#31F3FF"],[1,"#185363"]],width:4}},tooltip:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!0,fontWeight:"bold",fontSize:12,color:"#fff"},pointer:{show:!0,width:3,itemStyle:{color:"#fff"}},data:[{name:"",value:e.spindlebeilv}]},{name:"内圆环",type:"pie",radius:["4%","2%"],hoverAnimation:!1,tooltip:{show:!1},cursor:"default",labelLine:{normal:{show:!1}},itemStyle:{color:"#fff"},animation:!1,data:[1]},{name:"内圆环2",type:"pie",radius:"2%",hoverAnimation:!1,cursor:"default",tooltip:{show:!1},labelLine:{normal:{show:!1}},itemStyle:{color:"#31F3FF"},animation:!1,data:[1]}]};i.setOption(t)}if(e.feedbeilv){var a=this.$echarts.init(document.getElementById("mdcEquiMoniGauge2"),"macarons"),s={tooltip:{formatter:"{a} <br/>{b} : {c}%"},series:[{name:"外部线",type:"gauge",radius:"65%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#31F3FF"]],width:1}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"外部刻度",type:"gauge",radius:"80%",min:0,max:300,splitNumber:10,startAngle:225,endAngle:-45,axisLine:{show:!1,lineStyle:{color:[[1,"rgba(0,0,0,0)"]]}},axisLabel:{show:!0,color:"#31F3FF",fontSize:10,distance:-20},axisTick:{show:!1},splitLine:{show:!1}},{name:"内部宽线条",type:"gauge",radius:"55%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#122B3C"]],width:4}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"内部细线条",type:"gauge",radius:"40%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#122B3C"]],width:3}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"间隔条形",type:"gauge",radius:"52.5%",z:4,splitNumber:35,startAngle:225,endAngle:-45,axisLine:{lineStyle:{opacity:0}},axisLabel:{show:!1},axisTick:{show:!1,length:20,splitNumber:1,lineStyle:{color:"#122B3C",width:1}},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"数据",type:"gauge",radius:"52.5%",z:3,startAngle:225,max:300,endAngle:-45,axisLine:{lineStyle:{color:[[e.feedbeilv/300,"#31F3FF"],[1,"#185363"]],width:4}},tooltip:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!0,fontWeight:"bold",fontSize:12,color:"#fff"},pointer:{show:!0,width:3,itemStyle:{color:"#fff"}},data:[{name:"",value:e.feedbeilv}]},{name:"内圆环",type:"pie",radius:["4%","2%"],hoverAnimation:!1,tooltip:{show:!1},cursor:"default",labelLine:{normal:{show:!1}},itemStyle:{color:"#fff"},animation:!1,data:[1]},{name:"内圆环2",type:"pie",radius:"2%",hoverAnimation:!1,cursor:"default",tooltip:{show:!1},labelLine:{normal:{show:!1}},itemStyle:{color:"#31F3FF"},animation:!1,data:[1]}]};a.setOption(s)}if(e.spindleload){var l=this.$echarts.init(document.getElementById("mdcEquiMoniGauge3"),"macarons"),n={tooltip:{formatter:"{a} <br/>{b} : {c}%"},series:[{name:"外部线",type:"gauge",radius:"65%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#31F3FF"]],width:1}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"外部刻度",type:"gauge",radius:"80%",min:0,max:100,splitNumber:10,startAngle:225,endAngle:-45,axisLine:{show:!1,lineStyle:{color:[[1,"rgba(0,0,0,0)"]]}},axisLabel:{show:!0,color:"#31F3FF",fontSize:10,distance:-20},axisTick:{show:!1},splitLine:{show:!1}},{name:"内部宽线条",type:"gauge",radius:"55%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#122B3C"]],width:4}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"内部细线条",type:"gauge",radius:"40%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#122B3C"]],width:3}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"间隔条形",type:"gauge",radius:"52.5%",z:4,splitNumber:35,startAngle:225,endAngle:-45,axisLine:{lineStyle:{opacity:0}},axisLabel:{show:!1},axisTick:{show:!1,length:20,splitNumber:1,lineStyle:{color:"#122B3C",width:1}},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"数据",type:"gauge",radius:"52.5%",z:3,startAngle:225,max:100,endAngle:-45,axisLine:{lineStyle:{color:[[e.spindleload/100,"#31F3FF"],[1,"#185363"]],width:4}},tooltip:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!0,fontWeight:"bold",fontSize:12,color:"#fff"},pointer:{show:!0,width:3,itemStyle:{color:"#fff"}},data:[{name:"",value:e.spindleload}]},{name:"内圆环",type:"pie",radius:["4%","2%"],hoverAnimation:!1,tooltip:{show:!1},cursor:"default",labelLine:{normal:{show:!1}},itemStyle:{color:"#fff"},animation:!1,data:[1]},{name:"内圆环2",type:"pie",radius:"2%",hoverAnimation:!1,cursor:"default",tooltip:{show:!1},labelLine:{normal:{show:!1}},itemStyle:{color:"#31F3FF"},animation:!1,data:[1]}]};l.setOption(n)}if(e.rapidfeed){var o=this.$echarts.init(document.getElementById("mdcEquiMoniGauge4"),"macarons"),r={tooltip:{formatter:"{a} <br/>{b} : {c}%"},series:[{name:"外部线",type:"gauge",radius:"65%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#31F3FF"]],width:1}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"外部刻度",type:"gauge",radius:"80%",min:0,max:300,splitNumber:10,startAngle:225,endAngle:-45,axisLine:{show:!1,lineStyle:{color:[[1,"rgba(0,0,0,0)"]]}},axisLabel:{show:!0,color:"#31F3FF",fontSize:10,distance:-20},axisTick:{show:!1},splitLine:{show:!1}},{name:"内部宽线条",type:"gauge",radius:"55%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#122B3C"]],width:4}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"内部细线条",type:"gauge",radius:"40%",startAngle:225,endAngle:-45,axisLine:{lineStyle:{color:[[1,"#122B3C"]],width:3}},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"间隔条形",type:"gauge",radius:"52.5%",z:4,splitNumber:35,startAngle:225,endAngle:-45,axisLine:{lineStyle:{opacity:0}},axisLabel:{show:!1},axisTick:{show:!1,length:20,splitNumber:1,lineStyle:{color:"#122B3C",width:1}},splitLine:{show:!1},detail:{show:!1},title:{show:!1}},{name:"数据",type:"gauge",radius:"52.5%",z:3,startAngle:225,max:300,endAngle:-45,axisLine:{lineStyle:{color:[[e.rapidfeed/300,"#31F3FF"],[1,"#185363"]],width:4}},tooltip:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},splitLine:{show:!1},detail:{show:!0,fontWeight:"bold",fontSize:12,color:"#fff"},pointer:{show:!0,width:3,itemStyle:{color:"#fff"}},data:[{name:"",value:e.rapidfeed}]},{name:"内圆环",type:"pie",radius:["4%","2%"],hoverAnimation:!1,tooltip:{show:!1},cursor:"default",labelLine:{normal:{show:!1}},itemStyle:{color:"#fff"},animation:!1,data:[1]},{name:"内圆环2",type:"pie",radius:"2%",hoverAnimation:!1,cursor:"default",tooltip:{show:!1},labelLine:{normal:{show:!1}},itemStyle:{color:"#31F3FF"},animation:!1,data:[1]}]};o.setOption(r)}},close:function(){this.$emit("close"),this.visible=!1,clearInterval(this.modalTimer),this.modalTimer=null},handleCancel:function(){this.close(),clearInterval(this.modalTimer),this.modalTimer=null},timerModel:function(e){var i=this;this.ee=e,this.modalTimer=setInterval((function(){setTimeout(i.initData(i.ee),0)}),4e3)},initData:function(e){var i=this,t=this;this.visible=!0,Object(l["c"])(this.url.mdcEquipmentDetailedInfo,{id:e}).then((function(e){e.success?(t.resultData=e.result.equipment,t.driverType=e.result.driveType,t.spindlebeilv=e.result.spindlebeilv,t.feedbeilv=e.result.feedbeilv,t.spindleload=e.result.spindleload,t.rapidfeed=e.result.rapidfeed,t.mdcDriveTypeParamConfigList=e.result.runData,i.$nextTick((function(){t.drawLine()}))):t.$notification.warning({message:"消息",description:e.message})}))},mouseEnterItem:function(e){e.target.clientWidth>=e.target.scrollWidth&&(e.target.style.pointerEvents="none")}},beforeDestroy:function(){clearInterval(this.modalTimer),this.modalTimer=null}}),o=n,r=(t("570d"),t("2877")),d=Object(r["a"])(o,a,s,!1,null,"18433e70",null);i["default"]=d.exports},"3e82":function(e,i,t){},"570d":function(e,i,t){"use strict";var a=t("3e82"),s=t.n(a);s.a}}]);