| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ae17e4b4"],{1054:function(t,e,o){"use strict";o.r(e);var r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[o("el-form",{ref:"queryForm",attrs:{model:t.queryParams,size:"small",inline:!0,"label-width":"auto"}},[o("el-form-item",{attrs:{label:this.$t("sbmc"),prop:"productName"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{"allow-create":"",filterable:""},model:{value:t.queryParams.productId,callback:function(e){t.$set(t.queryParams,"productId",e)},expression:"queryParams.productId"}},t._l(t.productList,(function(t){return o("el-option",{key:t.productId,attrs:{label:t.productName,value:t.productId}})})),1)],1),o("el-form-item",[o("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.queryChannelStatus11}},[t._v(t._s(t.$t("ss")))]),o("el-button",{staticStyle:{"background-color":"green"},attrs:{type:"primary",size:"mini"},on:{click:t.queryChannelStatus12}},[t._v(t._s(t.$t("tdjc")))]),o("el-button",{staticStyle:{"background-color":"red"},attrs:{type:"primary","min-width":t.getStringWidth(t.$t("hdlfw")),size:"mini"},on:{click:t.queryChannelStatus13}},[t._v(t._s(t.$t("hdlfw")))])],1),o("el-form-item",{staticStyle:{position:"absolute",right:"0%","margin-right":"5%"}},["2"==this.productParams.jkfs?o("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleZtCommand("open",t.queryParams.productId)}}},[t._v(t._s(t.$t("zk")))]):t._e(),"2"==this.productParams.jkfs?o("el-button",{staticStyle:{"background-color":"#656B8B"},attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleZtCommand("close",t.queryParams.productId)}}},[t._v(t._s(t.$t("zg")))]):t._e()],1)],1),"3"===this.productType?o("el-card",{staticStyle:{"min-height":"700px","border-radius":"15px"}},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"overflow-y":"auto"},attrs:{"min-height":"700px","max-height":"700px",data:t.channelList,"span-method":t.objectSpanMethod,"header-cell-style":{background:"#FFFFFF",color:"#000000"}}},[o("el-table-column",{key:"1",attrs:{fixed:"",label:this.$t("sbmc"),"min-width":t.getStringWidth(this.$t("sbmc")),prop:"productName"}}),t._e(),t._e(),o("el-table-column",{key:"2",attrs:{fixed:"",label:this.$t("tdmc"),"min-width":t.getStringWidth(this.$t("tdmc")),prop:"productChName"}}),o("el-table-column",{key:"3",attrs:{fixed:"",label:this.$t("tdh"),"min-width":t.getStringWidth(this.$t("tdh")),prop:"productChId","show-overflow-tooltip":!0}}),"1"==this.productParams.dwkjk?o("el-table-column",{key:"4",attrs:{align:"center",label:this.$t("MACadress"),"min-width":t.getStringWidth(this.$t("MACadress"))+50,prop:"MACadress","show-overflow-tooltip":!0}}):t._e(),"1"==this.productParams.dwkjk?o("el-table-column",{key:"5",attrs:{align:"center",label:this.$t("IPadress"),"min-width":t.getStringWidth(this.$t("IPadress"))+50,prop:"IPadress","show-overflow-tooltip":!0}}):t._e(),o("el-table-column",{key:"6",attrs:{label:this.$t("sxxx"),"min-width":t.getStringWidth(this.$t("sxxx")),prop:"productPhOrder","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return["1"==e.row.outputStatus?o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))]):o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))])]}}],null,!1,2745642062)}),o("el-table-column",{key:"7",attrs:{label:this.$t("sxxdy")+"(V)","min-width":t.getStringWidth(this.$t("sxxdy")+"(V)"),prop:"productPhOrderDy","show-overflow-tooltip":!0}}),o("el-table-column",{key:"8",attrs:{label:this.$t("sxxdl")+"(A)","min-width":t.getStringWidth(this.$t("sxxdl")+"(A)"),prop:"productPhOrderDl","show-overflow-tooltip":!0}}),o("el-table-column",{key:"9",attrs:{label:this.$t("sxxgl")+"(W)","min-width":t.getStringWidth(this.$t("sxxgl")+"(W)"),prop:"productPhOrderGl","show-overflow-tooltip":!0}}),o("el-table-column",{key:"10",attrs:{label:this.$t("sxxhdl")+"(kWh)","min-width":t.getStringWidth(this.$t("sxxhdl")+"(kWh)"),prop:"productPhOrderHdl","show-overflow-tooltip":!0}}),o("el-table-column",{key:"11",attrs:{label:this.$t("gl")+"(W)","min-width":t.getStringWidth(this.$t("gl")+"(W)"),prop:"productChPower","show-overflow-tooltip":!0,align:"center"}}),o("el-table-column",{key:"11.5",attrs:{label:this.$t("szgl")+"(kW)","min-width":t.getStringWidth(this.$t("szgl")+"(kW)"),prop:"productApparentPower","show-overflow-tooltip":!0,align:"center"}}),"1"!=this.productType?o("el-table-column",{key:"12",attrs:{label:this.$t("pl"),"min-width":t.getStringWidth(this.$t("pl")),align:"center",prop:"productChPowerFreq","show-overflow-tooltip":!0}}):t._e(),o("el-table-column",{key:"13",attrs:{label:this.$t("hdl")+"(kWh)","min-width":t.getStringWidth(this.$t("hdl")+"(kWh)"),align:"center",prop:"productChConsumption","show-overflow-tooltip":!0}}),"1"!=this.productType?o("el-table-column",{key:"14",attrs:{label:this.$t("glys"),"min-width":t.getStringWidth(this.$t("glys")),align:"center",prop:"productChPowerFactor","show-overflow-tooltip":!0}}):t._e(),"2"===this.productParams.jkfs?o("el-table-column",{key:"115",attrs:{label:this.$t("kqys")+"(S)","min-width":t.getStringWidth(this.$t("kqys")+"(S)"),prop:"firingInterval",align:"center","show-overflow-tooltip":!0}}):t._e(),"2"===this.productParams.jkfs?o("el-table-column",{key:"116",attrs:{label:this.$t("gbys")+"(S)","min-width":t.getStringWidth(this.$t("gbys")+"(S)"),align:"center",prop:"closeInterval","show-overflow-tooltip":!0}}):t._e(),"2"===this.productParams.jkfs?o("el-table-column",{key:"17",attrs:{fixed:"right",label:this.$t("zt"),width:"100",align:"center",prop:"productChStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChStatus",e.$index)?o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChStatus",e.$index)?o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):o("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))])]}}],null,!1,3239504564)}):t._e(),"2"===this.productParams.jkfs?o("el-table-column",{key:"18",attrs:{fixed:"right",label:this.$t("cz"),align:"center","min-width":t.getStringWidth(this.$t("cz")),"class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz,icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChStatus",e.$index)?o("el-button",{attrs:{size:"mini",disabled:"1"==e.row.sfyxcz,type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,2206868349)}):t._e(),"1"==this.productParams.lxkz?o("el-table-column",{key:"19",attrs:{fixed:"right",label:this.$t("lxzt"),"min-width":t.getStringWidth(this.$t("lxzt")),align:"center",prop:"productChZeroStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):o("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))])]}}],null,!1,989595030)}):t._e(),"1"==this.productParams.lxkz?o("el-table-column",{key:"20",attrs:{fixed:"right",label:this.$t("lxcz"),align:"center","min-width":t.getStringWidth(this.$t("lxcz")),"class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand2("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand2("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3644445213)}):t._e(),o("el-table-column",{key:"21",attrs:{fixed:"right",label:this.$t("sclx"),"min-width":t.getStringWidth(this.$t("sclx")),align:"center",prop:"outputType","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return["1"==e.row.outputType?o("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(o){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))]):o("span",{staticStyle:{color:"#5C92B7",cursor:"pointer"},on:{click:function(o){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))])]}}],null,!1,924070322)}),"2"==this.productParams.jkfs?o("el-table-column",{key:"22",attrs:{fixed:"right",label:this.$t("pz"),"min-width":t.getStringWidth(t.$t("pz")),align:"center","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(o){return t.handleUpdate(e.row)}}},[t._v(t._s(t.$t("xg")))])]}}],null,!1,2814199834)}):t._e()],1)],1):t._e(),"4"===this.productType?o("el-card",{staticStyle:{"min-height":"700px","border-radius":"15px"}},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"overflow-y":"auto"},attrs:{"min-height":"700px","max-height":"700px",data:t.channelList,"header-cell-style":{background:"#FFFFFF",color:"#000000"}}},[o("el-table-column",{key:"1",attrs:{fixed:"",label:this.$t("sbmc"),"min-width":t.getStringWidth(this.$t("sbmc")),prop:"productName"}}),t._e(),t._e(),o("el-table-column",{key:"2",attrs:{fixed:"",label:this.$t("tdmc"),"min-width":t.getStringWidth(this.$t("tdmc")),prop:"productChName"}}),o("el-table-column",{key:"3",attrs:{fixed:"",label:this.$t("tdh"),"min-width":t.getStringWidth(this.$t("tdh")),prop:"productChId","show-overflow-tooltip":!0}}),"1"==this.productParams.dwkjk?o("el-table-column",{key:"4",attrs:{align:"center",label:this.$t("MACadress"),"min-width":t.getStringWidth(this.$t("MACadress"))+50,prop:"MACadress","show-overflow-tooltip":!0}}):t._e(),"1"==this.productParams.dwkjk?o("el-table-column",{key:"5",attrs:{align:"center",label:this.$t("IPadress"),"min-width":t.getStringWidth(this.$t("IPadress"))+50,prop:"IPadress","show-overflow-tooltip":!0}}):t._e(),o("el-table-column",{key:"6",attrs:{label:this.$t("sxxx"),"min-width":t.getStringWidth(this.$t("sxxx")),prop:"productPhOrder","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return["1"==e.row.outputStatus?o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))]):o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))])]}}],null,!1,2745642062)}),"3"==this.productType?o("el-table-column",{key:"41",attrs:{label:this.$t("sxx")+this.$t("dy")+"(V)","min-width":t.getStringWidth(this.$t("dy")),prop:"productPhOrderDy","show-overflow-tooltip":!0}}):t._e(),"3"==this.productType?o("el-table-column",{key:"42",attrs:{label:this.$t("sxx")+this.$t("dl")+"(A)","min-width":t.getStringWidth(this.$t("dl")),prop:"productPhOrderDl","show-overflow-tooltip":!0}}):t._e(),"3"==this.productType?o("el-table-column",{key:"43",attrs:{label:this.$t("sxx")+this.$t("gl")+"(W)","min-width":t.getStringWidth(this.$t("gl")),prop:"productPhOrderGl","show-overflow-tooltip":!0}}):t._e(),"3"==this.productType?o("el-table-column",{key:"44",attrs:{label:this.$t("sxx")+this.$t("hdl")+"(kWh)","min-width":t.getStringWidth(this.$t("hdl")),prop:"productPhOrderHdl","show-overflow-tooltip":!0}}):t._e(),o("el-table-column",{key:"7",attrs:{label:this.$t("dy")+"(V)","min-width":t.getStringWidth(this.$t("dy")+"(V)"),prop:"productChVoltage","show-overflow-tooltip":!0}}),o("el-table-column",{key:"8",attrs:{label:this.$t("dl")+"(A)","min-width":t.getStringWidth(this.$t("dl")+"(A)"),prop:"productChCurrent","show-overflow-tooltip":!0}}),o("el-table-column",{key:"9",attrs:{label:this.$t("gl")+"(W)","min-width":t.getStringWidth(this.$t("gl")+"(W)"),prop:"productChPower","show-overflow-tooltip":!0,align:"center"}}),o("el-table-column",{key:"9.5",attrs:{label:this.$t("szgl")+"(kW)","min-width":t.getStringWidth(this.$t("szgl")+"(kW)"),prop:"productApparentPower","show-overflow-tooltip":!0,align:"center"}}),"1"!=this.productType?o("el-table-column",{key:"45",attrs:{label:this.$t("pl"),"min-width":t.getStringWidth(this.$t("pl")),align:"center",prop:"productChPowerFreq","show-overflow-tooltip":!0}}):t._e(),o("el-table-column",{key:"10",attrs:{label:this.$t("hdl")+"(kWh)","min-width":t.getStringWidth(this.$t("hdl")+"(kWh)"),align:"center",prop:"productChConsumption","show-overflow-tooltip":!0}}),"1"!=this.productType?o("el-table-column",{key:"46",attrs:{label:this.$t("glys"),"min-width":t.getStringWidth(this.$t("glys")),align:"center",prop:"productChPowerFactor","show-overflow-tooltip":!0}}):t._e(),"2"==this.productParams.jkfs?o("el-table-column",{key:"11",attrs:{label:this.$t("kqys")+"(S)","min-width":t.getStringWidth(this.$t("kqys")+"(S)"),prop:"firingInterval",align:"center","show-overflow-tooltip":!0}}):t._e(),"2"==this.productParams.jkfs?o("el-table-column",{key:"12",attrs:{label:this.$t("gbys")+"(S)","min-width":t.getStringWidth(this.$t("gbys")+"(S)"),align:"center",prop:"closeInterval","show-overflow-tooltip":!0}}):t._e(),"2"==this.productParams.jkfs?o("el-table-column",{key:"13",attrs:{fixed:"right",label:this.$t("zt"),width:"100",align:"center",prop:"productChStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChStatus",e.$index)?o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChStatus",e.$index)?o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):o("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))])]}}],null,!1,3239504564)}):t._e(),"2"==this.productParams.jkfs?o("el-table-column",{key:"14",attrs:{fixed:"right",label:this.$t("cz"),align:"center","min-width":t.getStringWidth(this.$t("cz")),"class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz,icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz,icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3553321821)}):t._e(),"1"==this.productParams.lxkz?o("el-table-column",{key:"15",attrs:{fixed:"right",label:this.$t("lxzt"),"min-width":t.getStringWidth(this.$t("lxzt")),align:"center",prop:"productChZeroStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):o("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))])]}}],null,!1,989595030)}):t._e(),"1"==this.productParams.lxkz?o("el-table-column",{key:"16",attrs:{fixed:"right",label:this.$t("lxcz"),align:"center","min-width":t.getStringWidth(this.$t("lxcz")),"class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand2("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand2("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3644445213)}):t._e(),o("el-table-column",{key:"17",attrs:{fixed:"right",label:this.$t("sclx"),"min-width":t.getStringWidth(this.$t("sclx")),align:"center",prop:"outputType","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return["1"==e.row.outputType?o("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(o){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))]):o("span",{staticStyle:{color:"#5C92B7",cursor:"pointer"},on:{click:function(o){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))])]}}],null,!1,924070322)}),"2"==this.productParams.jkfs?o("el-table-column",{key:"18",attrs:{fixed:"right",label:this.$t("pz"),"min-width":t.getStringWidth(t.$t("pz")),align:"center","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(o){return t.handleUpdate(e.row)}}},[t._v(t._s(t.$t("xg")))])]}}],null,!1,2814199834)}):t._e()],1)],1):t._e(),"4"!=this.productType&&"3"!=this.productType&&"6"!=this.productType?o("el-card",{staticStyle:{"min-height":"700px","border-radius":"15px"}},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"overflow-y":"auto"},attrs:{"min-height":"700px","max-height":"700px",data:t.channelList,"header-cell-style":{background:"#FFFFFF",color:"#000000"}}},[o("el-table-column",{key:"1",attrs:{fixed:"",label:this.$t("sbmc"),"min-width":t.getStringWidth(this.$t("sbmc")),prop:"productName"}}),t._e(),t._e(),o("el-table-column",{key:"2",attrs:{fixed:"",label:this.$t("tdmc"),"min-width":t.getStringWidth(this.$t("tdmc")),prop:"productChName"}}),o("el-table-column",{key:"3",attrs:{fixed:"",label:this.$t("tdh"),"min-width":t.getStringWidth(this.$t("tdh")),prop:"productChId","show-overflow-tooltip":!0}}),"1"==this.productParams.dwkjk?o("el-table-column",{key:"4",attrs:{align:"center",label:this.$t("MACadress"),"min-width":t.getStringWidth(this.$t("MACadress"))+50,prop:"MACadress","show-overflow-tooltip":!0}}):t._e(),"1"==this.productParams.dwkjk?o("el-table-column",{key:"5",attrs:{align:"center",label:this.$t("IPadress"),"min-width":t.getStringWidth(this.$t("IPadress"))+50,prop:"IPadress","show-overflow-tooltip":!0}}):t._e(),"3"==this.productType?o("el-table-column",{key:"6",attrs:{label:this.$t("sxxx"),prop:"productPhOrder","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",[t._v(t._s(t.getDity(e.row,"productPhOrders")))])]}}],null,!1,1350926589)}):t._e(),"3"==this.productType?o("el-table-column",{key:"41",attrs:{label:this.$t("sxx")+this.$t("dy")+"(V)","min-width":t.getStringWidth(this.$t("dy")),prop:"productPhOrderDy","show-overflow-tooltip":!0}}):t._e(),"3"==this.productType?o("el-table-column",{key:"42",attrs:{label:this.$t("sxx")+this.$t("dl")+"(A)","min-width":t.getStringWidth(this.$t("dl")),prop:"productPhOrderDl","show-overflow-tooltip":!0}}):t._e(),"3"==this.productType?o("el-table-column",{key:"43",attrs:{label:this.$t("sxx")+this.$t("gl")+"(W)","min-width":t.getStringWidth(this.$t("gl")),prop:"productPhOrderGl","show-overflow-tooltip":!0}}):t._e(),"3"==this.productType?o("el-table-column",{key:"44",attrs:{label:this.$t("sxx")+this.$t("hdl")+"(kWh)","min-width":t.getStringWidth(this.$t("hdl")),prop:"productPhOrderHdl","show-overflow-tooltip":!0}}):t._e(),o("el-table-column",{key:"7",attrs:{label:this.$t("dy")+"(V)","min-width":t.getStringWidth(this.$t("dy")+"(V)"),prop:"productChVoltage","show-overflow-tooltip":!0}}),o("el-table-column",{key:"8",attrs:{label:this.$t("dl")+"(A)","min-width":t.getStringWidth(this.$t("dl")+"(A)"),prop:"productChCurrent","show-overflow-tooltip":!0}}),o("el-table-column",{key:"9",attrs:{label:this.$t("gl")+"(W)","min-width":t.getStringWidth(this.$t("gl")+"(W)"),prop:"productChPower","show-overflow-tooltip":!0,align:"center"}}),"5"==this.productType?o("el-table-column",{key:"9.5",attrs:{label:this.$t("szgl")+"(kW)","min-width":t.getStringWidth(this.$t("szgl")+"(kW)"),prop:"productApparentPower","show-overflow-tooltip":!0,align:"center"}}):t._e(),"1"!=this.productType?o("el-table-column",{key:"10",attrs:{label:this.$t("pl"),"min-width":t.getStringWidth(this.$t("pl")),align:"center",prop:"productChPowerFreq","show-overflow-tooltip":!0}}):t._e(),o("el-table-column",{key:"11",attrs:{label:this.$t("hdl")+"(kWh)","min-width":t.getStringWidth(this.$t("hdl")+"(kWh)"),align:"center",prop:"productChConsumption","show-overflow-tooltip":!0}}),"1"!=this.productType?o("el-table-column",{key:"12",attrs:{label:this.$t("glys"),"min-width":t.getStringWidth(this.$t("glys")),align:"center",prop:"productChPowerFactor","show-overflow-tooltip":!0}}):t._e(),"2"==this.productParams.jkfs?o("el-table-column",{key:"13",attrs:{label:this.$t("kqys")+"(S)","min-width":t.getStringWidth(this.$t("kqys")+"(S)"),prop:"firingInterval",align:"center","show-overflow-tooltip":!0}}):t._e(),"2"==this.productParams.jkfs?o("el-table-column",{key:"14",attrs:{label:this.$t("gbys")+"(S)","min-width":t.getStringWidth(this.$t("gbys")+"(S)"),align:"center",prop:"closeInterval","show-overflow-tooltip":!0}}):t._e(),"2"==this.productParams.jkfs?o("el-table-column",{key:"15",attrs:{fixed:"right",label:this.$t("zt"),align:"center",prop:"productChStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==e.row.productChStatus?o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity(e.row,"productChStatus")))]):"1"==e.row.productChStatus?o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity(e.row,"productChStatus")))]):o("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity(e.row,"productChStatus")))])]}}],null,!1,3145990359)}):t._e(),"2"==this.productParams.jkfs?o("el-table-column",{key:"16",attrs:{fixed:"right",label:this.$t("cz"),align:"center",width:"100","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==e.row.productChStatus?o("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz},on:{click:function(o){return t.handleCommand("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==e.row.productChStatus?o("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz},on:{click:function(o){return t.handleCommand("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3269593629)}):t._e(),"1"==this.productParams.lxkz?o("el-table-column",{key:"17",attrs:{fixed:"right",label:this.$t("lxzt"),"min-width":t.getStringWidth(this.$t("lxzt")),align:"center",prop:"productChZeroStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):o("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))])]}}],null,!1,989595030)}):t._e(),"1"==this.productParams.lxkz?o("el-table-column",{key:"18",attrs:{fixed:"right",label:this.$t("lxcz"),align:"center","min-width":t.getStringWidth(this.$t("lxcz")),"class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand2("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand2("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3644445213)}):t._e(),"2"==this.productParams.jkfs?o("el-table-column",{key:"19",attrs:{fixed:"right","min-width":t.getStringWidth(t.$t("pz")),label:this.$t("pz"),align:"center","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(o){return t.handleUpdate(e.row)}}},[t._v(t._s(t.$t("xg")))])]}}],null,!1,3653099289)}):t._e()],1)],1):t._e(),"6"===this.productType?o("el-card",{staticStyle:{"min-height":"700px","border-radius":"15px"}},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{"overflow-y":"auto"},attrs:{"min-height":"700px","max-height":"700px",data:t.channelList,"span-method":t.objectSpanMethod2,"header-cell-style":{background:"#FFFFFF",color:"#000000"}}},[o("el-table-column",{key:"1",attrs:{fixed:"",label:this.$t("sbmc"),"min-width":t.getStringWidth(this.$t("sbmc")),prop:"productName"}}),t._e(),t._e(),o("el-table-column",{key:"2",attrs:{fixed:"",label:this.$t("tdmc"),"min-width":t.getStringWidth(this.$t("tdmc")),prop:"productChName"}}),o("el-table-column",{key:"3",attrs:{fixed:"",label:this.$t("tdh"),"min-width":t.getStringWidth(this.$t("tdh")),prop:"productChId","show-overflow-tooltip":!0}}),"1"==this.productParams.dwkjk?o("el-table-column",{key:"4",attrs:{align:"center",label:this.$t("MACadress"),"min-width":t.getStringWidth(this.$t("MACadress"))+50,prop:"MACadress","show-overflow-tooltip":!0}}):t._e(),"1"==this.productParams.dwkjk?o("el-table-column",{key:"5",attrs:{align:"center",label:this.$t("IPadress"),"min-width":t.getStringWidth(this.$t("IPadress"))+50,prop:"IPadress","show-overflow-tooltip":!0}}):t._e(),o("el-table-column",{key:"6",attrs:{label:this.$t("sxxx"),"min-width":t.getStringWidth(this.$t("sxxx")),prop:"productPhOrder","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return["1"==e.row.outputStatus?o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))]):o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))])]}}],null,!1,2745642062)}),o("el-table-column",{key:"7",attrs:{label:this.$t("sxxdy")+"(V)","min-width":t.getStringWidth(this.$t("sxxdy")+"(V)"),prop:"productPhOrderDy","show-overflow-tooltip":!0}}),o("el-table-column",{key:"8",attrs:{label:this.$t("sxxdl")+"(A)","min-width":t.getStringWidth(this.$t("sxxdl")+"(A)"),prop:"productPhOrderDl","show-overflow-tooltip":!0}}),o("el-table-column",{key:"9",attrs:{label:this.$t("sxxgl")+"(W)","min-width":t.getStringWidth(this.$t("sxxgl")+"(W)"),prop:"productPhOrderGl","show-overflow-tooltip":!0}}),o("el-table-column",{key:"10",attrs:{label:this.$t("sxxhdl")+"(kWh)","min-width":t.getStringWidth(this.$t("sxxhdl")+"(kWh)"),prop:"productPhOrderHdl","show-overflow-tooltip":!0}}),o("el-table-column",{key:"11",attrs:{label:this.$t("gl")+"(W)","min-width":t.getStringWidth(this.$t("gl")+"(W)"),prop:"productChPower","show-overflow-tooltip":!0,align:"center"}}),o("el-table-column",{key:"11.5",attrs:{label:this.$t("szgl")+"(kW)","min-width":t.getStringWidth(this.$t("szgl")+"(kW)"),prop:"productApparentPower","show-overflow-tooltip":!0,align:"center"}}),"1"!=this.productType?o("el-table-column",{key:"12",attrs:{label:this.$t("pl"),"min-width":t.getStringWidth(this.$t("pl")),align:"center",prop:"productChPowerFreq","show-overflow-tooltip":!0}}):t._e(),o("el-table-column",{key:"13",attrs:{label:this.$t("hdl")+"(kWh)","min-width":t.getStringWidth(this.$t("hdl")+"(kWh)"),align:"center",prop:"productChConsumption","show-overflow-tooltip":!0}}),"1"!=this.productType?o("el-table-column",{key:"14",attrs:{label:this.$t("glys"),"min-width":t.getStringWidth(this.$t("glys")),align:"center",prop:"productChPowerFactor","show-overflow-tooltip":!0}}):t._e(),"2"===this.productParams.jkfs?o("el-table-column",{key:"115",attrs:{label:this.$t("kqys")+"(S)","min-width":t.getStringWidth(this.$t("kqys")+"(S)"),prop:"firingInterval",align:"center","show-overflow-tooltip":!0}}):t._e(),"2"===this.productParams.jkfs?o("el-table-column",{key:"116",attrs:{label:this.$t("gbys")+"(S)","min-width":t.getStringWidth(this.$t("gbys")+"(S)"),align:"center",prop:"closeInterval","show-overflow-tooltip":!0}}):t._e(),"2"===this.productParams.jkfs?o("el-table-column",{key:"17",attrs:{fixed:"right",label:this.$t("zt"),width:"100",align:"center",prop:"productChStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChStatus",e.$index)?o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChStatus",e.$index)?o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):o("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))])]}}],null,!1,3239504564)}):t._e(),"2"===this.productParams.jkfs?o("el-table-column",{key:"18",attrs:{fixed:"right",label:this.$t("cz"),align:"center","min-width":t.getStringWidth(this.$t("cz")),"class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz,icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz,icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3553321821)}):t._e(),"1"==this.productParams.lxkz?o("el-table-column",{key:"19",attrs:{fixed:"right",label:this.$t("lxzt"),"min-width":t.getStringWidth(this.$t("lxzt")),align:"center",prop:"productChZeroStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):o("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))])]}}],null,!1,989595030)}):t._e(),"1"==this.productParams.lxkz?o("el-table-column",{key:"20",attrs:{fixed:"right",label:this.$t("lxcz"),align:"center","min-width":t.getStringWidth(this.$t("lxcz")),"class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand2("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.handleCommand2("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3644445213)}):t._e(),o("el-table-column",{key:"21",attrs:{fixed:"right",label:this.$t("sclx"),"min-width":t.getStringWidth(this.$t("sclx")),align:"center",prop:"outputType","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return["1"==e.row.outputType||"3"==e.row.outputType?o("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(o){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))]):o("span",{staticStyle:{color:"#5C92B7",cursor:"pointer"},on:{click:function(o){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))])]}}],null,!1,2200049670)}),"2"==this.productParams.jkfs?o("el-table-column",{key:"22",attrs:{fixed:"right",label:this.$t("pz"),"min-width":t.getStringWidth(t.$t("pz")),align:"center","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(o){return t.handleUpdate(e.row)}}},[t._v(t._s(t.$t("xg")))])]}}],null,!1,2814199834)}):t._e()],1)],1):t._e(),o("el-dialog",{attrs:{title:t.title,visible:t.open,width:"500px","close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":""},on:{"update:visible":function(e){t.open=e}}},[o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"auto"}},[o("el-form-item",{attrs:{label:this.$t("tdh"),prop:"productChId"}},[o("el-input",{attrs:{readonly:!0,disabled:!0},model:{value:t.form.productChId,callback:function(e){t.$set(t.form,"productChId",e)},expression:"form.productChId"}})],1),o("el-form-item",{attrs:{label:this.$t("tdmc"),prop:"productChName"}},[o("el-input",{model:{value:t.form.productChName,callback:function(e){t.$set(t.form,"productChName",e)},expression:"form.productChName"}})],1),o("el-form-item",{attrs:{label:this.$t("tdfzlx")}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:this.$t("tdtisy"),"allow-create":"",clearable:"",filterable:""},model:{value:t.form.ChannelLoadType,callback:function(e){t.$set(t.form,"ChannelLoadType",e)},expression:"form.ChannelLoadType"}},t._l(t.channelLoadTypes,(function(e){return o("el-option",{key:e,attrs:{label:t.$t(e),value:e}})})),1)],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$t("qd")))]),o("el-button",{on:{click:t.cancel}},[t._v(t._s(t.$t("qx")))])],1)],1),o("el-dialog",{attrs:{title:t.outTitle,visible:t.outOpen,width:"500px","close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":""},on:{"update:visible":function(e){t.outOpen=e}}},[o("el-form",{ref:"outForm",attrs:{model:t.outForm,"label-width":"auto"}},[t._e(),t._e(),"6"!=this.productType?o("el-form-item",{attrs:{label:this.$t("sclx")}},[o("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled3,"allow-create":"",filterable:""},on:{change:t.handleSelectChange2},model:{value:t.outForm.outputType,callback:function(e){t.$set(t.outForm,"outputType",e)},expression:"outForm.outputType"}},t._l(t.outputTypes2,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1):o("el-form-item",{attrs:{label:this.$t("sclx")}},[o("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled3,"allow-create":"",filterable:""},on:{change:t.handleSelectChange2},model:{value:t.outForm.outputType,callback:function(e){t.$set(t.outForm,"outputType",e)},expression:"outForm.outputType"}},t._l(t.outputTypes3,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1),o("el-form-item",{attrs:{label:this.$t("sxxx")}},[o("el-select",{staticStyle:{width:"100%"},attrs:{disabled:t.disabled2,"allow-create":"",filterable:""},model:{value:t.outForm.productPhOrder,callback:function(e){t.$set(t.outForm,"productPhOrder",e)},expression:"outForm.productPhOrder"}},t._l(t.productPhOrders2,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:t.submitForm1}},[t._v(t._s(t.$t("qd")))]),o("el-button",{on:{click:t.cancel1}},[t._v(t._s(t.$t("qx")))])],1)],1),o("el-dialog",{attrs:{title:t.outTitle1,visible:t.outOpen1,width:"500px","close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":""},on:{"update:visible":function(e){t.outOpen1=e}}},[o("el-form",{ref:"outForm1",attrs:{model:t.outForm1,"label-width":"auto"}},[t._e(),o("el-form-item",{attrs:{label:this.$t("td"),prop:"productChIds"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",multiple:""},model:{value:t.outForm1.productChIds,callback:function(e){t.$set(t.outForm1,"productChIds",e)},expression:"outForm1.productChIds"}},[o("el-option",{attrs:{label:t.$t("qxuan"),value:t.$t("qxuan")},nativeOn:{click:function(e){return t.selectAll2()}}}),t._l(t.channelList1,(function(t){return o("el-option",{key:t.productChId,attrs:{label:t.productChName,value:t.productChId}})}))],2)],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:t.submitForm2}},[t._v(t._s(t.$t("qd")))]),o("el-button",{on:{click:t.cancel2}},[t._v(t._s(t.$t("qx")))])],1)],1)],1)},i=[],n=o("b85c"),s=(o("a15b"),o("d81d"),o("14d9"),o("b0c0"),o("e9c4"),o("b64b"),o("d3b7"),o("8647")),l=o("7ba4"),a={name:"Online",data:function(){return{loading:!0,total:0,productList:[],channelList:[],channelList1:[],title:"",open:!1,outTitle:"",outTitle1:"",outOpen:!1,outOpen1:!1,form:{},outForm:{},outForm1:{},channelLoadTypes:["kt","fwq","jhj","lyq","jsj","xsq","d","qt"],queryParams:{productChName:"",productId:"",productName:"",token:"",type:""},usertoken:"",productChStatuss:[{id:"0",name:"duank"},{id:"1",name:"jt"},{id:"-1",name:"lix"}],productPhOrders:[{id:"L1",name:"sxax"},{id:"L2",name:"sxbx"},{id:"L3",name:"sxcx"}],productPhOrders2:[],outputTypes:[{id:"1",name:"sx"},{id:"2",name:"dx"},{id:"3",name:"shuangx"}],outputTypes2:[{id:"1",name:"sx"},{id:"2",name:"dx"}],outputTypes3:[{id:"2",name:"dx"},{id:"3",name:"shuangx"}],outputStatus:[{id:"1",name:"sc"},{id:"2",name:"bsc"}],productType:"",disabled2:!1,disabled3:!1,productParams:{}}},mounted:function(){this.$bus.$on("CHANNEL_STATUS_MONITORING",this.onSocketMessageToChannel)},created:function(){this.usertoken=this.$store.state.user.usertoken,this.productParams=this.$store.state.user.productParams,this.queryProductList()},methods:{selectAll2:function(){var t=this;this.outForm1.productChIds.length<this.channelList1.length?(this.outForm1.productChIds=[],this.channelList1.map((function(e){t.outForm1.productChIds.push(e.productChId)}))):this.outForm1.productChIds=[]},getStringWidth:function(t){var e="14px Arial",o=document.createElement("canvas"),r=o.getContext("2d");r.font=e;var i=r.measureText(t);return i.width+40},handleSelectChange2:function(t){this.disabled2="1"==t||"3"==t},onclickOutType:function(t,e){console.log(t),this.outForm=JSON.parse(JSON.stringify(t)),this.outTitle=this.$t("pz");var o=[];if(this.productPhOrders2=this.productPhOrders,"6"==this.productType){for(var r=e;r<=e+1;r++){var i=this.channelList[r],s={};s.id=i.productPhOrder;var l,a=Object(n["a"])(this.productPhOrders);try{for(a.s();!(l=a.n()).done;){var d=l.value;if(i.productPhOrder==d.id){s.name=d.name;break}}}catch(p){a.e(p)}finally{a.f()}o.push(s)}this.productPhOrders2=o}if("1"==t.outputType||"3"==t.outputType){if("4"==this.productType)return void(this.disabled3=!0);this.disabled2=!0}else this.disabled2=!1;var c="";if("2"==t.outputType){for(r=e;r<=e+2;r++){var u=this.channelList[r];if("1"==u.outputStatus){c=u.productPhOrder;break}}this.outForm.productPhOrder=c}if("3"==t.outputType){for(r=e;r<=e+1;r++){var h=this.channelList[r];if("1"==h.outputStatus){c=h.productPhOrder;break}}this.outForm.productPhOrder=c}"4"==this.productType&&(this.disabled3=!0),this.outOpen=!0},objectSpanMethod:function(t){t.row,t.column;var e=t.rowIndex,o=t.columnIndex,r=(this.productParams.jkfs,this.productParams.dwkjk);this.productParams.lxkz;if("1"==r){if(5!=o&&6!=o&&7!=o&&8!=o&&9!=o)return e%3===0?{rowspan:3,colspan:1}:{rowspan:0,colspan:0}}else if(3!=o&&4!=o&&5!=o&&6!=o&&7!=o)return e%3===0?{rowspan:3,colspan:1}:{rowspan:0,colspan:0}},objectSpanMethod2:function(t){t.row,t.column;var e=t.rowIndex,o=t.columnIndex,r=(this.productParams.jkfs,this.productParams.dwkjk);this.productParams.lxkz;if("1"==r){if(5!=o&&6!=o&&7!=o&&8!=o&&9!=o)return e%2===0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}}else if(3!=o&&4!=o&&5!=o&&6!=o&&7!=o)return e%2===0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}},queryProductList:function(){var t=this,e={};e.token=this.usertoken,e.type="listSbRestartQuery",Object(l["f"])(e).then((function(e){t.productList=e.data,t.queryParams.productId=t.productList[0].productId,t.productType=t.productList[0].productType,t.handleQuery()})).catch((function(){}))},onSocketMessageToChannel:function(t){if(t.success){var e=t.data.data;null!=t.data&&""!=e&&null!=e&&(this.channelList=e)}},getDity:function(t,e){var o="",r="",i=[];"productChStatus"==e?(i=this.productChStatuss,r=t.productChStatus):"alarmStatus"==e?(i=this.alarmStatuss,r=t.alarmStatus):"connectionStatus"==e?(i=this.connectionStatuss,r=t.connectionStatus):"waterImmersionState"==e||"waterImmersionState"==e?(i=this.waterImmersionStates,r=t.waterImmersionState):"productPhOrders"==e?(i=this.productPhOrders,r=t.productPhOrder):"outputTypes"==e&&(i=this.outputTypes,r=t.outputType);for(var n=0;n<i.length;n++){var s=i[n];if(r==s.id)return o=s.name,this.$t(s.name)}return o},getDity1:function(t,e,o){var r="",i="",n=[];if("productChStatus"==e){for(var s="",l=o;l<=o+2;l++){var a=this.channelList[l];if("1"==a.outputStatus){s=a.productChStatus;break}}n=this.productChStatuss,i=s}else if("productChZeroStatus"==e){var d="";for(l=o;l<=o+2;l++){var c=this.channelList[l];if("1"==c.outputStatus){d=c.productChZeroStatus;break}}n=this.productChStatuss,i=d}else"alarmStatus"==e?(n=this.alarmStatuss,i=t.alarmStatus):"connectionStatus"==e?(n=this.connectionStatuss,i=t.connectionStatus):"waterImmersionState"==e||"waterImmersionState"==e?(n=this.waterImmersionStates,i=t.waterImmersionState):"productPhOrders"==e?(n=this.productPhOrders,i=t.productPhOrder):"outputTypes"==e&&(n=this.outputTypes,i=t.outputType);for(l=0;l<n.length;l++){var u=n[l];if(i==u.id)return r=u.name,this.$t(u.name)}return r},getDity2:function(t,e,o){var r="";if("productChStatus"==e){for(var i="",n=o;n<=o+2;n++){var s=this.channelList[n];if("1"==s.outputStatus){i=s.productChStatus;break}}this.productChStatuss,r=i}else if("productChZeroStatus"==e){var l="";for(n=o;n<=o+2;n++){var a=this.channelList[n];if("1"==a.outputStatus){l=a.productChZeroStatus;break}}this.productChStatuss,r=l}return r},dataRefreh:function(){var t=this;setInterval((function(){var e=[{productPhOrder:"L1",closeInterval:"12",productPhOrderDl:"131",productPhOrderHdl:"12",productChStatus:Math.random()<.5?0:1,outputType:"1",productName:"设备1",productChPower:"2",productPhOrderDy:"144",productChPowerFactor:"0",temperature:"12",productChConsumption:"0",humidity:"1",MACadress:"fe80::2959:2329:2c4e:b0a1%22",productChZeroStatus:"1",productChVoltage:Math.random(),productChId:"24",outputStatus:"1",productId:"35",productPhOrderGl:Math.random(),productChCurrent:Math.random(),productNumber:"100",firingInterval:Math.random()<.5?1:2,productChName:"通道1",productChPowerFreq:"0",IPadress:"172.27.128.1"},{productPhOrder:"L2",closeInterval:Math.random(),productPhOrderDl:Math.random(),productPhOrderHdl:Math.random(),productChStatus:Math.random()<.5?0:1,outputType:"1",productName:"设备1",productChPower:"2",productPhOrderDy:"144",productChPowerFactor:"0",temperature:"12",productChConsumption:"0",humidity:"1",MACadress:"fe80::2959:2329:2c4e:b0a1%22",productChZeroStatus:"1",productChVoltage:"2",productChId:"24",outputStatus:"1",productId:"15",productPhOrderGl:"133",productChCurrent:"2",productNumber:"100",firingInterval:Math.random()<.5?1:2,productChName:"通道1",productChPowerFreq:"0",IPadress:"172.27.128.1"}];t.channelList=e,console.log("执行成功")}),1e3)},queryChannelStatus:function(){var t=this;this.queryParams.token=this.usertoken,this.queryParams.type="listQuery",this.loading=!0;for(var e=0;e<this.productList.length;e++)this.queryParams.productId==this.productList[e].productId&&(this.productType=this.productList[e].productType);Object(l["c"])(this.queryParams).then((function(e){if(null!=e.data){t.channelList=e.data;for(var o,r=[],i=function(){o=e.data[n];var t={};t.productChId=o.productChId,t.productChName=o.productChName;var i=r.some((function(e){return e.productChId===t.productChId}));i||r.push(t)},n=0;n<e.data.length;n++)i();t.channelList1=r}})).catch((function(){})),this.loading=!1},queryChannelStatus11:function(){var t=this;this.queryParams.token=this.usertoken,this.queryParams.type="resetChannel",this.loading=!0;for(var e=0;e<this.productList.length;e++)this.queryParams.productId==this.productList[e].productId&&(this.productType=this.productList[e].productType);Object(l["c"])(this.queryParams).then((function(e){t.channelList=e.data})).catch((function(){})),this.loading=!1},queryChannelStatus12:function(){var t={};t.token=this.usertoken,t.type="resetChannel",t.productId=this.queryParams.productId;var e=this;this.$modal.confirm(this.$t("jcqr")).then((function(){Object(l["f"])(t).then((function(t){e.$modal.msgSuccess(e.$t("zxcg")),e.queryChannelStatus()})).catch((function(){}))})).then((function(){})).catch((function(){}))},queryChannelStatus13:function(){this.outOpen1=!0,this.outForm1={},this.outTitle1=this.$t("hdlfw1")+this.$t("pz")},handleUpdate:function(t){this.form=t,this.open=!0,this.title=this.$t("xg")},handleQuery:function(){this.queryChannelStatus()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleCommand:function(t,e){var o=this,r={};switch(r.token=this.usertoken,r.productChId=e.productChId,r.productId=e.productId,t){case"channelopen":r.type="open",this.$modal.confirm(this.$t("qrykqm")).then((function(){Object(l["c"])(r)})).then((function(){o.$modal.msgSuccess(o.$t("zxcg")),o.handleQuery()})).catch((function(){}));break;case"channelclose":r.type="close",this.$modal.confirm(this.$t("qrygbm")).then((function(){Object(l["c"])(r)})).then((function(){o.$modal.msgSuccess(o.$t("zxcg")),o.handleQuery()})).catch((function(){}));break;default:break}},handleCommand2:function(t,e,o){var r=this;if("2"==e.outputType)for(var i=o;i<=o+2;i++){var n=this.channelList[i];if("1"==n.outputStatus){e=n;break}}var s={};switch(s.token=this.usertoken,s.productChId=e.productChId,s.productId=e.productId,t){case"channelopen":s.Zerotype="open",this.$modal.confirm(this.$t("qrykqm")).then((function(){Object(l["c"])(s)})).then((function(){r.$modal.msgSuccess(r.$t("zxcg")),r.handleQuery()})).catch((function(){}));break;case"channelclose":s.Zerotype="close",this.$modal.confirm(this.$t("qrygbm")).then((function(){Object(l["c"])(s)})).then((function(){r.$modal.msgSuccess(r.$t("zxcg")),r.handleQuery()})).catch((function(){}));break;default:break}},submitForm:function(){var t=this;this.$refs["form"].validate((function(e){if(e){var o={};o.token=t.usertoken,o.type="save",o.productChName=t.form.productChName,o.productChId=t.form.productChId,o.productId=t.queryParams.productId,o.productPhOrder=t.form.productPhOrder,o.ChannelLoadType=t.$t(t.form.ChannelLoadType),t.loading=!0,Object(l["c"])(o).then((function(e){t.open=!1,t.$modal.msgSuccess(t.$t("zxcg")),t.handleQuery()}))}}))},submitForm1:function(){var t=this;this.$refs["outForm"].validate((function(e){if(e){var o={};o.token=t.usertoken,o.type="threeTypeSave",o.productChName=t.outForm.productChName,o.productChId=t.outForm.productChId,o.productId=t.queryParams.productId,o.productPhOrder=t.outForm.productPhOrder,o.outputType=t.outForm.outputType,t.loading=!0;var r=t;t.$modal.confirm(t.$t("qdybcm")).then((function(){Object(l["c"])(o).then((function(t){r.outOpen=!1,r.$modal.msgSuccess(r.$t("zxcg")),r.handleQuery()}))})).then((function(){})).catch((function(){}))}}))},submitForm2:function(){var t=this;this.$refs["outForm1"].validate((function(e){if(e){var o={};if(o.token=t.usertoken,o.type="batteryReset",o.productId=t.queryParams.productId,null==t.outForm1.productChIds||void 0==t.outForm1.productChIds||""==t.outForm1.productChIds)return void t.$modal.msgWarning(t.$t("td")+" "+t.$i18n.t("bnwk"));o.productChIds=t.outForm1.productChIds.join(","),t.loading=!0;var r=t;t.$modal.confirm(t.$t("qdybcm")).then((function(){Object(l["c"])(o).then((function(t){r.outOpen1=!1,r.$modal.msgSuccess(r.$t("zxcg")),r.handleQuery()}))})).then((function(){})).catch((function(){}))}}))},cancel2:function(){this.outOpen1=!1,this.handleQuery()},cancel:function(){this.open=!1},cancel1:function(){this.outOpen=!1,this.handleQuery()},handleZtCommand:function(t,e){var o=this,r={};if(r.token=this.usertoken,r.productId=e,""!=e)switch(t){case"open":r.type="open",this.$modal.confirm(this.$t("qrykqm2")).then((function(){Object(l["i"])(r)})).then((function(){o.$modal.msgSuccess(o.$t("zxcg")),o.handleQuery()})).catch((function(){}));break;case"close":r.type="close",this.$modal.confirm(this.$t("qrygbm2")).then((function(){Object(l["i"])(r)})).then((function(){o.$modal.msgSuccess(o.$t("zxcg")),o.handleQuery()})).catch((function(){}));break;default:break}else this.$modal.msgWarning(this.$t("qxz")+this.$t("shib"))},handleForceLogout:function(t){var e=this;this.$modal.confirm(this.$t("sfqztc")+t.userName+this.$t("yhm")).then((function(){return Object(s["a"])(t.tokenId)})).then((function(){e.getList(),e.$modal.msgSuccess(e.$t("qtcg"))})).catch((function(){}))}}},d=a,c=(o("7e4c"),o("2877")),u=Object(c["a"])(d,r,i,!1,null,null,null);e["default"]=u.exports},"7e4c":function(t,e,o){"use strict";o("84c7")},"84c7":function(t,e,o){},8647:function(t,e,o){"use strict";o.d(e,"b",(function(){return i})),o.d(e,"a",(function(){return n}));var r=o("b775");function i(t){return Object(r["a"])({url:"/monitor/online/list",method:"get",params:t})}function n(t){return Object(r["a"])({url:"/monitor/online/"+t,method:"delete"})}}}]);
|