| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4e99148e"],{1054:function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("el-form",{ref:"queryForm",attrs:{model:t.queryParams,size:"small",inline:!0,"label-width":"auto"}},[r("el-form-item",{attrs:{label:this.$t("sbmc"),prop:"productName"}},[r("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 r("el-option",{key:t.productId,attrs:{label:t.productName,value:t.productId}})})),1)],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.queryChannelStatus11}},[t._v(t._s(t.$t("ss")))]),this.$store.state.user.urseRoles.includes("1")?r("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")))]):t._e()],1),this.$store.state.user.urseRoles.includes("1")?r("el-form-item",{staticStyle:{position:"absolute",right:"0%","margin-right":"5%"}},["2"==this.productParams.jkfs?r("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?r("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):t._e()],1),"3"===this.productType?r("el-card",{staticStyle:{"min-height":"700px","border-radius":"15px"}},[r("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"}}},[r("el-table-column",{key:"1",attrs:{fixed:"",label:this.$t("sbmc"),"min-width":t.getStringWidth(this.$t("sbmc")),prop:"productName"}}),t._e(),t._e(),r("el-table-column",{key:"2",attrs:{fixed:"",label:this.$t("tdmc"),"min-width":t.getStringWidth(this.$t("tdmc")),prop:"productChName"}}),"1"!=this.productParams.jkfs&&"3"!=this.productParams.jkfs?r("el-table-column",{key:"2.1",attrs:{fixed:"",label:this.$t("tdfzlx"),"min-width":t.getStringWidth(this.$t("tdfzlx")),prop:"ChannelLoadType"}}):t._e(),r("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?r("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?r("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(),r("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?r("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))]):r("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))])]}}],null,!1,2745642062)}),r("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}}),r("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}}),r("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}}),r("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}}),r("el-table-column",{key:"11",attrs:{label:this.$t("gl")+"(kW)","min-width":t.getStringWidth(this.$t("gl")+"(kW)"),prop:"productChPower","show-overflow-tooltip":!0,align:"center"}}),r("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?r("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(),r("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?r("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?r("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?r("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?r("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)?r("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChStatus",e.$index)?r("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):r("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))])]}}],null,!1,3239504564)}):t._e(),"2"===this.productParams.jkfs?r("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)?r("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz||!("3"==e.row.ChannelPermissions||"2"==e.row.ChannelPermissions&&(t.$store.state.user.urseRoles.includes("1")||t.$store.state.user.urseRoles.includes("2"))||"1"==e.row.ChannelPermissions&&t.$store.state.user.urseRoles.includes("1")),icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChStatus",e.$index)?r("el-button",{attrs:{size:"mini",disabled:"1"==e.row.sfyxcz||!("3"==e.row.ChannelPermissions||"2"==e.row.ChannelPermissions&&(t.$store.state.user.urseRoles.includes("1")||t.$store.state.user.urseRoles.includes("2"))||"1"==e.row.ChannelPermissions&&t.$store.state.user.urseRoles.includes("1")),type:"text",icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,2635881437)}):t._e(),"1"==this.productParams.lxkz?r("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)?r("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?r("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):r("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))])]}}],null,!1,989595030)}):t._e(),"1"==this.productParams.lxkz?r("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)?r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand2("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand2("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3644445213)}):t._e(),r("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?r("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(r){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))]):r("span",{staticStyle:{color:"#5C92B7",cursor:"pointer"},on:{click:function(r){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))])]}}],null,!1,924070322)}),this.$store.state.user.urseRoles.includes("1")&&"2"==this.productParams.jkfs?r("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[r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(r){return t.handleUpdate(e.row)}}},[t._v(t._s(t.$t("xg")))])]}}],null,!1,2814199834)}):t._e()],1)],1):t._e(),"4"===this.productType?r("el-card",{staticStyle:{"min-height":"700px","border-radius":"15px"}},[r("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"}}},[r("el-table-column",{key:"1",attrs:{fixed:"",label:this.$t("sbmc"),"min-width":t.getStringWidth(this.$t("sbmc")),prop:"productName"}}),t._e(),t._e(),r("el-table-column",{key:"2",attrs:{fixed:"",label:this.$t("tdmc"),"min-width":t.getStringWidth(this.$t("tdmc")),prop:"productChName"}}),r("el-table-column",{key:"2.1",attrs:{fixed:"",label:this.$t("tdfzlx"),"min-width":t.getStringWidth(this.$t("tdfzlx")),prop:"ChannelLoadType"}}),r("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?r("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?r("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(),r("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?r("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))]):r("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))])]}}],null,!1,2745642062)}),"3"==this.productType?r("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?r("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?r("el-table-column",{key:"43",attrs:{label:this.$t("sxx")+this.$t("gl")+"(kW)","min-width":t.getStringWidth(this.$t("gl")),prop:"productPhOrderGl","show-overflow-tooltip":!0}}):t._e(),"3"==this.productType?r("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(),r("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}}),r("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}}),r("el-table-column",{key:"9",attrs:{label:this.$t("gl")+"(kW)","min-width":t.getStringWidth(this.$t("gl")+"(kW)"),prop:"productChPower","show-overflow-tooltip":!0,align:"center"}}),r("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?r("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(),r("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?r("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?r("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?r("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?r("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)?r("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChStatus",e.$index)?r("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):r("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))])]}}],null,!1,3239504564)}):t._e(),"2"==this.productParams.jkfs?r("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)?r("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz||!("3"==e.row.ChannelPermissions||"2"==e.row.ChannelPermissions&&(t.$store.state.user.urseRoles.includes("1")||t.$store.state.user.urseRoles.includes("2"))||"1"==e.row.ChannelPermissions&&t.$store.state.user.urseRoles.includes("1")),icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChStatus",e.$index)?r("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz||!("3"==e.row.ChannelPermissions||"2"==e.row.ChannelPermissions&&(t.$store.state.user.urseRoles.includes("1")||t.$store.state.user.urseRoles.includes("2"))||"1"==e.row.ChannelPermissions&&t.$store.state.user.urseRoles.includes("1")),icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,4030247517)}):t._e(),"1"==this.productParams.lxkz?r("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)?r("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?r("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):r("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))])]}}],null,!1,989595030)}):t._e(),"1"==this.productParams.lxkz?r("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)?r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand2("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand2("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3644445213)}):t._e(),r("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?r("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(r){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))]):r("span",{staticStyle:{color:"#5C92B7",cursor:"pointer"},on:{click:function(r){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))])]}}],null,!1,924070322)}),this.$store.state.user.urseRoles.includes("1")&&"2"==this.productParams.jkfs?r("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[r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(r){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?r("el-card",{staticStyle:{"min-height":"700px","border-radius":"15px"}},[r("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"}}},[r("el-table-column",{key:"1",attrs:{fixed:"",label:this.$t("sbmc"),"min-width":t.getStringWidth(this.$t("sbmc")),prop:"productName"}}),t._e(),t._e(),r("el-table-column",{key:"2",attrs:{fixed:"",label:this.$t("tdmc"),"min-width":t.getStringWidth(this.$t("tdmc")),prop:"productChName"}}),r("el-table-column",{key:"2.1",attrs:{fixed:"",label:this.$t("tdfzlx"),"min-width":t.getStringWidth(this.$t("tdfzlx")),prop:"ChannelLoadType"}}),r("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?r("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?r("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?r("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[r("span",[t._v(t._s(t.getDity(e.row,"productPhOrders")))])]}}],null,!1,1350926589)}):t._e(),"3"==this.productType?r("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?r("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?r("el-table-column",{key:"43",attrs:{label:this.$t("sxx")+this.$t("gl")+"(kW)","min-width":t.getStringWidth(this.$t("gl")),prop:"productPhOrderGl","show-overflow-tooltip":!0}}):t._e(),"3"==this.productType?r("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(),r("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}}),r("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}}),r("el-table-column",{key:"9",attrs:{label:this.$t("gl")+"(kW)","min-width":t.getStringWidth(this.$t("gl")+"(kW)"),prop:"productChPower","show-overflow-tooltip":!0,align:"center"}}),r("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?r("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(),r("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?r("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?r("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?r("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?r("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?r("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity(e.row,"productChStatus")))]):"1"==e.row.productChStatus?r("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity(e.row,"productChStatus")))]):r("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity(e.row,"productChStatus")))])]}}],null,!1,3145990359)}):t._e(),"2"==this.productParams.jkfs?r("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?r("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz||"2"==e.row.ChannelPermissions&&t.$store.state.user.urseRoles.includes("3")||"1"==e.row.ChannelPermissions&&(t.$store.state.user.urseRoles.includes("3")||t.$store.state.user.urseRoles.includes("2"))},on:{click:function(r){return t.handleCommand("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==e.row.productChStatus?r("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz||"2"==e.row.ChannelPermissions&&t.$store.state.user.urseRoles.includes("3")||"1"==e.row.ChannelPermissions&&(t.$store.state.user.urseRoles.includes("3")||t.$store.state.user.urseRoles.includes("2"))},on:{click:function(r){return t.handleCommand("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,1135640797)}):t._e(),"1"==this.productParams.lxkz?r("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)?r("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?r("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):r("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))])]}}],null,!1,989595030)}):t._e(),"1"==this.productParams.lxkz?r("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)?r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand2("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand2("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3644445213)}):t._e(),this.$store.state.user.urseRoles.includes("1")&&"2"==this.productParams.jkfs?r("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[r("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(r){return t.handleUpdate(e.row)}}},[t._v(t._s(t.$t("xg")))])]}}],null,!1,3653099289)}):t._e()],1)],1):t._e(),"6"===this.productType?r("el-card",{staticStyle:{"min-height":"700px","border-radius":"15px"}},[r("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"}}},[r("el-table-column",{key:"1",attrs:{fixed:"",label:this.$t("sbmc"),"min-width":t.getStringWidth(this.$t("sbmc")),prop:"productName"}}),t._e(),t._e(),r("el-table-column",{key:"2",attrs:{fixed:"",label:this.$t("tdmc"),"min-width":t.getStringWidth(this.$t("tdmc")),prop:"productChName"}}),"1"!=this.productParams.jkfs&&"3"!=this.productParams.jkfs?r("el-table-column",{key:"2.1",attrs:{fixed:"",label:this.$t("tdfzlx"),"min-width":t.getStringWidth(this.$t("tdfzlx")),prop:"ChannelLoadType"}}):t._e(),r("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?r("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?r("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(),r("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?r("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))]):r("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity(e.row,"productPhOrders")))])]}}],null,!1,2745642062)}),r("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}}),r("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}}),r("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}}),r("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}}),r("el-table-column",{key:"11",attrs:{label:this.$t("gl")+"(kW)","min-width":t.getStringWidth(this.$t("gl")+"(kW)"),prop:"productChPower","show-overflow-tooltip":!0,align:"center"}}),r("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?r("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(),r("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?r("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?r("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?r("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?r("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)?r("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChStatus",e.$index)?r("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))]):r("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChStatus",e.$index)))])]}}],null,!1,3239504564)}):t._e(),"2"===this.productParams.jkfs?r("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)?r("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz||!("3"==e.row.ChannelPermissions||"2"==e.row.ChannelPermissions&&(t.$store.state.user.urseRoles.includes("1")||t.$store.state.user.urseRoles.includes("2"))||"1"==e.row.ChannelPermissions&&t.$store.state.user.urseRoles.includes("1")),icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChStatus",e.$index)?r("el-button",{attrs:{size:"mini",type:"text",disabled:"1"==e.row.sfyxcz||!("3"==e.row.ChannelPermissions||"2"==e.row.ChannelPermissions&&(t.$store.state.user.urseRoles.includes("1")||t.$store.state.user.urseRoles.includes("2"))||"1"==e.row.ChannelPermissions&&t.$store.state.user.urseRoles.includes("1")),icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,2112450781)}):t._e(),"1"==this.productParams.lxkz?r("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)?r("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?r("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))]):r("span",{staticStyle:{color:"#c747b1"}},[t._v(t._s(t.getDity1(e.row,"productChZeroStatus",e.$index)))])]}}],null,!1,989595030)}):t._e(),"1"==this.productParams.lxkz?r("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)?r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand2("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==t.getDity2(e.row,"productChZeroStatus",e.$index)?r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(r){return t.handleCommand2("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3644445213)}):t._e(),r("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?r("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(r){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))]):r("span",{staticStyle:{color:"#5C92B7",cursor:"pointer"},on:{click:function(r){return t.onclickOutType(e.row,e.$index)}}},[t._v(t._s(t.getDity(e.row,"outputTypes")))])]}}],null,!1,2200049670)}),this.$store.state.user.urseRoles.includes("1")&&"2"==this.productParams.jkfs?r("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[r("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(r){return t.handleUpdate(e.row)}}},[t._v(t._s(t.$t("xg")))])]}}],null,!1,2814199834)}):t._e()],1)],1):t._e(),r("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}}},[r("el-form",{ref:"form",attrs:{model:t.form,"label-width":"auto"}},[r("el-form-item",{attrs:{label:this.$t("tdh"),prop:"productChId"}},[r("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),r("el-form-item",{attrs:{label:this.$t("tdmc"),prop:"productChName"}},[r("el-input",{model:{value:t.form.productChName,callback:function(e){t.$set(t.form,"productChName",e)},expression:"form.productChName"}})],1),r("el-form-item",{attrs:{label:this.$t("tdfzlx")}},[r("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 r("el-option",{key:e,attrs:{label:t.$t(e),value:e}})})),1)],1),r("el-form-item",{attrs:{label:this.$t("yhqx")}},[r("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:this.$t("yhqx"),"allow-create":"",clearable:"",filterable:""},model:{value:t.form.ChannelPermissions,callback:function(e){t.$set(t.form,"ChannelPermissions",e)},expression:"form.ChannelPermissions"}},t._l(t.ChannelPermissionss,(function(e){return r("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$t("qd")))]),r("el-button",{on:{click:t.cancel}},[t._v(t._s(t.$t("qx")))])],1)],1),r("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}}},[r("el-form",{ref:"outForm",attrs:{model:t.outForm,"label-width":"auto"}},[t._e(),t._e(),"6"!=this.productType?r("el-form-item",{attrs:{label:this.$t("sclx")}},[r("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 r("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1):r("el-form-item",{attrs:{label:this.$t("sclx")}},[r("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 r("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1),r("el-form-item",{attrs:{label:this.$t("sxxx")}},[r("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 r("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:t.submitForm1}},[t._v(t._s(t.$t("qd")))]),r("el-button",{on:{click:t.cancel1}},[t._v(t._s(t.$t("qx")))])],1)],1),r("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}}},[r("el-form",{ref:"outForm1",attrs:{model:t.outForm1,"label-width":"auto"}},[t._e(),r("el-form-item",{attrs:{label:this.$t("td"),prop:"productChIds"}},[r("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"}},[r("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 r("el-option",{key:t.productChId,attrs:{label:t.productChName,value:t.productChId}})}))],2)],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary"},on:{click:t.submitForm2}},[t._v(t._s(t.$t("qd")))]),r("el-button",{on:{click:t.cancel2}},[t._v(t._s(t.$t("qx")))])],1)],1)],1)},s=[],i=r("b85c"),n=(r("a15b"),r("d81d"),r("14d9"),r("b0c0"),r("e9c4"),r("b64b"),r("d3b7"),r("8647")),l=r("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"}],ChannelPermissionss:[{id:"1",name:"cjgly"},{id:"2",name:"gly"},{id:"3",name:"ptyf"}],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",r=document.createElement("canvas"),o=r.getContext("2d");o.font=e;var s=o.measureText(t);return s.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 r=[];if(this.productPhOrders2=this.productPhOrders,"6"==this.productType){for(var o=e;o<=e+1;o++){var s=this.channelList[o],n={};n.id=s.productPhOrder;var l,a=Object(i["a"])(this.productPhOrders);try{for(a.s();!(l=a.n()).done;){var d=l.value;if(s.productPhOrder==d.id){n.name=d.name;break}}}catch(p){a.e(p)}finally{a.f()}r.push(n)}this.productPhOrders2=r}if("1"==t.outputType||"3"==t.outputType){if("4"==this.productType)return void(this.disabled3=!0);this.disabled2=!0}else this.disabled2=!1;var u="";if("2"==t.outputType){for(o=e;o<=e+2;o++){var c=this.channelList[o];if("1"==c.outputStatus){u=c.productPhOrder;break}}this.outForm.productPhOrder=u}if("3"==t.outputType){for(o=e;o<=e+1;o++){var h=this.channelList[o];if("1"==h.outputStatus){u=h.productPhOrder;break}}this.outForm.productPhOrder=u}"4"==this.productType&&(this.disabled3=!0),this.outOpen=!0},objectSpanMethod:function(t){t.row,t.column;var e=t.rowIndex,r=t.columnIndex,o=this.productParams.jkfs,s=this.productParams.dwkjk;this.productParams.lxkz;if("1"==s){if("1"==o||"3"==o){if(6!=r&&7!=r&&8!=r&&9!=r&&10!=r)return e%3===0?{rowspan:3,colspan:1}:{rowspan:0,colspan:0}}else if(5!=r&&6!=r&&7!=r&&8!=r&&9!=r)return e%3===0?{rowspan:3,colspan:1}:{rowspan:0,colspan:0}}else if("1"==o||"3"==o){if(4!=r&&5!=r&&6!=r&&7!=r&&8!=r)return e%3===0?{rowspan:3,colspan:1}:{rowspan:0,colspan:0}}else if(3!=r&&4!=r&&5!=r&&6!=r&&7!=r)return e%3===0?{rowspan:3,colspan:1}:{rowspan:0,colspan:0}},objectSpanMethod2:function(t){t.row,t.column;var e=t.rowIndex,r=t.columnIndex,o=this.productParams.jkfs,s=this.productParams.dwkjk;this.productParams.lxkz;if("1"==s){if("1"==o||"3"==o){if(5!=r&&6!=r&&7!=r&&8!=r&&9!=r)return e%2===0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}}else if(6!=r&&7!=r&&8!=r&&9!=r&&10!=r)return e%2===0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}}else if("1"==o||"3"==o){if(3!=r&&4!=r&&5!=r&&6!=r&&7!=r)return e%2===0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}}else if(4!=r&&5!=r&&6!=r&&7!=r&&8!=r)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 r="",o="",s=[];"productChStatus"==e?(s=this.productChStatuss,o=t.productChStatus):"alarmStatus"==e?(s=this.alarmStatuss,o=t.alarmStatus):"connectionStatus"==e?(s=this.connectionStatuss,o=t.connectionStatus):"waterImmersionState"==e||"waterImmersionState"==e?(s=this.waterImmersionStates,o=t.waterImmersionState):"productPhOrders"==e?(s=this.productPhOrders,o=t.productPhOrder):"outputTypes"==e&&(s=this.outputTypes,o=t.outputType);for(var i=0;i<s.length;i++){var n=s[i];if(o==n.id)return r=n.name,this.$t(n.name)}return r},getDity1:function(t,e,r){var o="",s="",i=[];if("productChStatus"==e){for(var n="",l=r;l<=r+2;l++){var a=this.channelList[l];if("1"==a.outputStatus){n=a.productChStatus;break}}i=this.productChStatuss,s=n}else if("productChZeroStatus"==e){var d="";for(l=r;l<=r+2;l++){var u=this.channelList[l];if("1"==u.outputStatus){d=u.productChZeroStatus;break}}i=this.productChStatuss,s=d}else"alarmStatus"==e?(i=this.alarmStatuss,s=t.alarmStatus):"connectionStatus"==e?(i=this.connectionStatuss,s=t.connectionStatus):"waterImmersionState"==e||"waterImmersionState"==e?(i=this.waterImmersionStates,s=t.waterImmersionState):"productPhOrders"==e?(i=this.productPhOrders,s=t.productPhOrder):"outputTypes"==e&&(i=this.outputTypes,s=t.outputType);for(l=0;l<i.length;l++){var c=i[l];if(s==c.id)return o=c.name,this.$t(c.name)}return o},getDity2:function(t,e,r){var o="";if("productChStatus"==e){for(var s="",i=r;i<=r+2;i++){var n=this.channelList[i];if("1"==n.outputStatus){s=n.productChStatus;break}}this.productChStatuss,o=s}else if("productChZeroStatus"==e){var l="";for(i=r;i<=r+2;i++){var a=this.channelList[i];if("1"==a.outputStatus){l=a.productChZeroStatus;break}}this.productChStatuss,o=l}return o},dataRefreh:function(){var t=this;setInterval((function(){var e={code:200,data:[{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH1",productChId:"1",productChVoltage:"215.073",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"49.008",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"1",closeInterval:"1",productPhOrder:"L1",productPhOrderDy:"215.073",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"1",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH2",productChId:"2",productChVoltage:"215.078",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"48.997",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"2",closeInterval:"2",productPhOrder:"L1",productPhOrderDy:"215.078",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"1",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH3",productChId:"3",productChVoltage:"215.009",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"49.061",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"3",closeInterval:"3",productPhOrder:"L1",productPhOrderDy:"215.009",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"1",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH4",productChId:"4",productChVoltage:"215.033",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"49.072",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"4",closeInterval:"4",productPhOrder:"L1",productPhOrderDy:"215.033",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"1",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH5",productChId:"5",productChVoltage:"215.294",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"49.083",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"5",closeInterval:"5",productPhOrder:"L1",productPhOrderDy:"215.294",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"1",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH6",productChId:"6",productChVoltage:"0.000",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"0.000",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"1",closeInterval:"1",productPhOrder:"L2",productPhOrderDy:"0.000",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"0",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH7",productChId:"7",productChVoltage:"0.000",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"0.000",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"2",closeInterval:"2",productPhOrder:"L2",productPhOrderDy:"0.000",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"0",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH8",productChId:"8",productChVoltage:"0.000",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"0.000",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"3",closeInterval:"3",productPhOrder:"L2",productPhOrderDy:"0.000",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"0",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH9",productChId:"9",productChVoltage:"0.000",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"0.000",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"4",closeInterval:"4",productPhOrder:"L2",productPhOrderDy:"0.000",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"0",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH10",productChId:"10",productChVoltage:"0.000",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"0.000",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"5",closeInterval:"5",productPhOrder:"L2",productPhOrderDy:"0.000",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"0",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH11",productChId:"11",productChVoltage:"0.000",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"0.000",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"1",closeInterval:"1",productPhOrder:"L3",productPhOrderDy:"0.000",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"0",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH12",productChId:"12",productChVoltage:"0.000",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"0.000",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"2",closeInterval:"2",productPhOrder:"L3",productPhOrderDy:"0.000",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"0",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH13",productChId:"13",productChVoltage:"0.000",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"0.000",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"3",closeInterval:"3",productPhOrder:"L3",productPhOrderDy:"0.000",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"0",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH14",productChId:"14",productChVoltage:"0.000",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"0.000",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"4",closeInterval:"4",productPhOrder:"L3",productPhOrderDy:"0.000",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"0",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""},{productName:"Smart PDU",productNumber:"X00001",productId:"0",productChName:"CH15",productChId:"15",productChVoltage:"0.000",productChCurrent:"0.000",productChPower:"0.000",productApparentPower:"0.000",productChPowerFreq:"0.000",productChConsumption:"0.000",productChPowerFactor:"0.000",firingInterval:"5",closeInterval:"5",productPhOrder:"L3",productPhOrderDy:"0.000",productPhOrderDl:"0.000",productPhOrderGl:"0.000",productPhOrderHdl:"0.000",outputType:"2",outputStatus:"1",productChStatus:"0",productChZeroStatus:"0",sfyxcz:"0",ChannelPermissions:"1",ChannelLoadType:""}],msg:"操作成功"};t.channelList=e.data,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 r,o=[],s=function(){r=e.data[i];var t={};t.productChId=r.productChId,t.productChName=r.productChName;var s=o.some((function(e){return e.productChId===t.productChId}));s||o.push(t)},i=0;i<e.data.length;i++)s();t.channelList1=o}})).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 r=this,o={};switch(o.token=this.usertoken,o.productChId=e.productChId,o.productId=e.productId,t){case"channelopen":o.type="open",this.$modal.confirm(this.$t("qrykqm")).then((function(){Object(l["c"])(o)})).then((function(){r.$modal.msgSuccess(r.$t("zxcg")),r.handleQuery()})).catch((function(){}));break;case"channelclose":o.type="close",this.$modal.confirm(this.$t("qrygbm")).then((function(){Object(l["c"])(o)})).then((function(){r.$modal.msgSuccess(r.$t("zxcg")),r.handleQuery()})).catch((function(){}));break;default:break}},handleCommand2:function(t,e,r){var o=this;if("2"==e.outputType)for(var s=r;s<=r+2;s++){var i=this.channelList[s];if("1"==i.outputStatus){e=i;break}}var n={};switch(n.token=this.usertoken,n.productChId=e.productChId,n.productId=e.productId,t){case"channelopen":n.Zerotype="open",this.$modal.confirm(this.$t("qrykqm")).then((function(){Object(l["c"])(n)})).then((function(){o.$modal.msgSuccess(o.$t("zxcg")),o.handleQuery()})).catch((function(){}));break;case"channelclose":n.Zerotype="close",this.$modal.confirm(this.$t("qrygbm")).then((function(){Object(l["c"])(n)})).then((function(){o.$modal.msgSuccess(o.$t("zxcg")),o.handleQuery()})).catch((function(){}));break;default:break}},submitForm:function(){var t=this;this.$refs["form"].validate((function(e){if(e){var r={};r.token=t.usertoken,r.type="save",r.productChName=t.form.productChName,r.productChId=t.form.productChId,r.productId=t.queryParams.productId,r.productPhOrder=t.form.productPhOrder,r.ChannelPermissions=t.form.ChannelPermissions,r.ChannelLoadType=t.$t(t.form.ChannelLoadType),t.loading=!0,Object(l["c"])(r).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 r={};r.token=t.usertoken,r.type="threeTypeSave",r.productChName=t.outForm.productChName,r.productChId=t.outForm.productChId,r.productId=t.queryParams.productId,r.productPhOrder=t.outForm.productPhOrder,r.outputType=t.outForm.outputType,t.loading=!0;var o=t;t.$modal.confirm(t.$t("qdybcm")).then((function(){Object(l["c"])(r).then((function(t){o.outOpen=!1,o.$modal.msgSuccess(o.$t("zxcg")),o.handleQuery()}))})).then((function(){})).catch((function(){}))}}))},submitForm2:function(){var t=this;this.$refs["outForm1"].validate((function(e){if(e){var r={};if(r.token=t.usertoken,r.type="batteryReset",r.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"));r.productChIds=t.outForm1.productChIds.join(","),t.loading=!0;var o=t;t.$modal.confirm(t.$t("qdybcm")).then((function(){Object(l["c"])(r).then((function(t){o.outOpen1=!1,o.$modal.msgSuccess(o.$t("zxcg")),o.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 r=this,o={};if(o.token=this.usertoken,o.productId=e,""!=e)switch(t){case"open":o.type="open",this.$modal.confirm(this.$t("qrykqm2")).then((function(){Object(l["i"])(o)})).then((function(){r.$modal.msgSuccess(r.$t("zxcg")),r.handleQuery()})).catch((function(){}));break;case"close":o.type="close",this.$modal.confirm(this.$t("qrygbm2")).then((function(){Object(l["i"])(o)})).then((function(){r.$modal.msgSuccess(r.$t("zxcg")),r.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(n["a"])(t.tokenId)})).then((function(){e.getList(),e.$modal.msgSuccess(e.$t("qtcg"))})).catch((function(){}))}}},d=a,u=(r("215f"),r("2877")),c=Object(u["a"])(d,o,s,!1,null,"6f296ba7",null);e["default"]=c.exports},"215f":function(t,e,r){"use strict";r("d813")},8647:function(t,e,r){"use strict";r.d(e,"b",(function(){return s})),r.d(e,"a",(function(){return i}));var o=r("b775");function s(t){return Object(o["a"])({url:"/monitor/online/list",method:"get",params:t})}function i(t){return Object(o["a"])({url:"/monitor/online/"+t,method:"delete"})}},d813:function(t,e,r){}}]);
|