chunk-6f88ef7c.24a6cbaf.js 43 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f88ef7c"],{"40f8":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-col",{staticClass:"card-box",attrs:{span:24}},[o("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.tabName,callback:function(e){t.tabName=e},expression:"tabName"}},[o("el-tab-pane",{attrs:{label:this.$t("dylztyz"),name:"tab1"}},[this.$store.state.user.urseRoles.includes("1")?o("el-button",{staticStyle:{"background-color":"green","text-align":"right","max-width":"265px","margin-left":"90%"},attrs:{type:"primary"},on:{click:function(e){return t.handleUpdate1()}}},[t._v(t._s(t.$t("plsz")))]):t._e(),o("el-card",{staticStyle:{"border-radius":"15px"}},[o("el-table",{attrs:{height:"600",data:t.powerThresholdList,"header-cell-style":{background:"#FFFFFF",color:"#000000"}}},[o("el-table-column",{attrs:{label:this.$t("dylx"),prop:"dyType","min-width":t.getStringWidth(t.$t("dylx")),"show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",[t._v(t._s(t.getDity(e.row,"dyType")))])]}}])}),o("el-table-column",{attrs:{label:this.$t("mc"),prop:"productChName","min-width":t.getStringWidth(t.$t("mc"))}}),o("el-table-column",{attrs:{label:this.$t("bh"),prop:"productChId","show-overflow-tooltip":!0,"min-width":t.getStringWidth(t.$t("bh"))}}),t._e(),t._e(),t._e(),t._e(),t._e(),t._e(),o("el-table-column",{attrs:{label:this.$t("dlsxz")+"(A)","min-width":t.getStringWidth(t.$t("dlsxz")+"(A)"),prop:"currentUpperValue","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",{staticStyle:{color:"red"}},[t._v(t._s(e.row.currentUpperValue))])]}}])}),o("el-table-column",{attrs:{label:this.$t("dyasxxxz")+"(V)",prop:"thresholdValue","min-width":t.getStringWidth(t.$t("dyasxxxz"))},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",[t._v(t._s(t.$t("zdz"))+":"),o("a",{staticStyle:{color:"red"}},[t._v(t._s(e.row.voltageUpperValue))]),t._v(" / "+t._s(t.$t("zxz"))+":"),o("a",{staticStyle:{color:"green"}},[t._v(t._s(e.row.voltageDownValue))])])]}}])}),o("el-table-column",{attrs:{label:this.$t("glsxz")+"(P)","min-width":t.getStringWidth(t.$t("glsxz")+"(P)"),prop:"powerUpperValue","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",{staticStyle:{color:"red"}},[t._v(t._s(e.row.powerUpperValue))])]}}])}),o("el-table-column",{attrs:{label:this.$t("hdlsxz")+"(kWh)",prop:"alarmContentUpperValue","min-width":t.getStringWidth(t.$t("hdlsxz")+"(kWh)"),"show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",{staticStyle:{color:"red"}},[t._v(t._s(e.row.alarmContentUpperValue))])]}}])}),"1"!=this.productParams.jkfs&&"3"!=this.productParams.jkfs?o("el-table-column",{attrs:{label:this.$t("zt"),prop:"productChStatus","min-width":100,"show-overflow-tooltip":!0},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")))]):o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity(e.row,"productChStatus")))])]}}],null,!1,1956020816)}):t._e(),t.$store.state.user.urseRoles.includes("1")&&"1"!=t.productParams.jkfs&&"3"!=t.productParams.jkfs?o("el-table-column",{attrs:{label:this.$t("cz"),"min-width":t.getStringWidth(t.$t("cz")),align:"center","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$store.state.user.urseRoles.includes("1")?o("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(o){return t.handleUpdate(e.row)}}},[t._v(t._s(t.$t("pz")))]):t._e(),t.$store.state.user.urseRoles.includes("1")&&"0"==e.row.dyType&&"1"!=t.productParams.jkfs&&"3"!=t.productParams.jkfs?o("el-dropdown",{staticStyle:{"margin-left":"10px"},attrs:{size:"mini"},on:{command:function(o){return t.handleAllCommand(o,e.row)}}},[o("el-button",{staticStyle:{"margin-left":"10px"},attrs:{icon:"el-icon-d-arrow-right",size:"mini",type:"text"}},[t._v(t._s(t.$t("gd")))]),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{staticStyle:{"margin-left":"10px"},attrs:{command:"channelopen"}},[t._v(t._s(t.$t("dk")))]),o("el-dropdown-item",{staticStyle:{"margin-left":"10px"},attrs:{command:"channelclose"}},[t._v(t._s(t.$t("gb")))])],1)],1):t._e(),"0"==e.row.productChStatus&&"1"==e.row.dyType&&"1"!=t.productParams.jkfs&&"3"!=t.productParams.jkfs?o("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"))},on:{click:function(o){return t.handleCommand("channelopen",e.row)}}},[t._v(t._s(t.$t("dk")))]):t._e(),"1"==e.row.productChStatus&&"1"==e.row.dyType&&"1"!=t.productParams.jkfs&&"3"!=t.productParams.jkfs?o("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"))},on:{click:function(o){return t.handleCommand("channelclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e()]}}],null,!1,3828679024)}):t._e()],1)],1)],1),o("el-tab-pane",{attrs:{label:this.$t("cgqlyz"),name:"tab2"}},[o("el-card",{staticStyle:{"border-radius":"15px"}},[o("el-table",{attrs:{height:"600",data:t.sensorThresholdList,"header-cell-style":{background:"#FFFFFF",color:"#000000"}}},[t._e(),o("el-table-column",{attrs:{label:this.$t("cgqxh"),prop:"sensorId","show-overflow-tooltip":!0,"min-width":t.getStringWidth(t.$t("mc"))}}),o("el-table-column",{attrs:{label:this.$t("cgqmc"),prop:"sensorName","show-overflow-tooltip":!0}}),t._e(),t._e(),t._e(),t._e(),t._e(),t._e(),o("el-table-column",{attrs:{label:t.$t("cgq")+" "+t.$t("lx"),prop:"sensorType",width:"140","show-overflow-tooltip":!0},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",[t._v(t._s(t.getDity(e.row,"sensorType")))])]}}])}),o("el-table-column",{attrs:{label:t.$t("yz")+" "+t.$t("lx"),prop:"thresholdType","min-width":t.getStringWidth(t.$t("mc"))}}),o("el-table-column",{attrs:{label:this.$t("ljzt"),align:"center",prop:"connectionStatus"},scopedSlots:t._u([{key:"default",fn:function(e){return["1"==e.row.connectionStatus?o("span",{staticStyle:{color:"red"}},[t._v(t._s(t.getDity(e.row,"connectionStatus")))]):o("span",{staticStyle:{color:"green"}},[t._v(t._s(t.getDity(e.row,"connectionStatus")))])]}}])}),o("el-table-column",{attrs:{label:this.$t("sznr"),align:"center",prop:"thresholdValue"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("span",[t._v(t._s(t.$t("zdz"))+":"),o("a",{staticStyle:{color:"red"}},[t._v(t._s(e.row.thresholdUpperValue))]),t._v(" / "+t._s(t.$t("zxz"))+":"),o("a",{staticStyle:{color:"green"}},[t._v(t._s(e.row.thresholdDownValue))])])]}}])}),o("el-table-column",{attrs:{label:this.$t("dw"),align:"center",prop:"unit"}}),this.$store.state.user.urseRoles.includes("1")?o("el-table-column",{attrs:{label:this.$t("cz"),align:"center","min-width":t.getStringWidth(t.$t("mc")),"class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return["0"==e.row.sensorType||"4"==e.row.sensorType||"11"==e.row.sensorType||"5"==e.row.sensorType||"8"==e.row.sensorType||"9"==e.row.sensorType||"10"==e.row.sensorType?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(o){return t.sensorStatusUpdate(e.row)}}},[t._v(t._s(t.$t("pz")))]):t._e(),"1"==e.row.sensorType?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.issueInstructionsReset(e.row)}}},[t._v(t._s(t.$t("fw")))]):t._e(),"3"==e.row.sensorType?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.issueInstructionsRelease(e.row)}}},[t._v(t._s(t.$t("sf")))]):t._e(),"6"==e.row.sensorType&&"0"==e.row.connectionStatus?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.sensorStatusHandleCommand("sensorStatusclose",e.row)}}},[t._v(t._s(t.$t("gb")))]):t._e(),"6"==e.row.sensorType&&"1"==e.row.connectionStatus?o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-refresh"},on:{click:function(o){return t.sensorStatusHandleCommand("sensorStatusopen",e.row)}}},[t._v(t._s(t.$t("kq")))]):t._e()]}}],null,!1,1788969505)}):t._e()],1)],1)],1),o("el-tab-pane",{attrs:{label:this.$t("sgpz"),name:"tab3"}},[o("el-row",[o("el-col",{staticClass:"card-box",attrs:{span:8}},[o("el-card",[o("div",{attrs:{slot:"header"},slot:"header"},[o("span",{staticStyle:{"font-size":"20px","font-weight":"bold"}},[o("i",{staticClass:"el-icon-monitor"}),t._v(" "+t._s(t.$t("sgbjpz")))])]),o("div",{staticClass:"el-table el-table--enable-row-hover el-table--medium"},[[o("el-form",{ref:"formData",attrs:{model:t.formData,"label-width":"auto"}},[o("el-form-item",{attrs:{label:this.$t("ledgjzt"),prop:"ledEnable"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{"allow-create":"",disabled:t.readOnlyQx,filterable:!1},model:{value:t.formData.ledEnable,callback:function(e){t.$set(t.formData,"ledEnable",e)},expression:"formData.ledEnable"}},t._l(t.sqStatuss,(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("sygjzt"),prop:"beepEnable"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{"allow-create":"",disabled:t.readOnlyQx,filterable:!1},model:{value:t.formData.beepEnable,callback:function(e){t.$set(t.formData,"beepEnable",e)},expression:"formData.beepEnable"}},t._l(t.sqStatuss,(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("gjjg")}},[o("el-input",{attrs:{disabled:t.readOnlyQx},model:{value:t.formData.timeInterval,callback:function(e){t.$set(t.formData,"timeInterval",e)},expression:"formData.timeInterval"}})],1),o("el-form-item",{attrs:{label:this.$t("gjsj1")}},[o("el-input",{attrs:{disabled:t.readOnlyQx},model:{value:t.formData.timeDuration,callback:function(e){t.$set(t.formData,"timeDuration",e)},expression:"formData.timeDuration"}})],1)],1),this.$store.state.user.urseRoles.includes("1")?o("div",{staticClass:"dialog-footer",staticStyle:{float:"right"},attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:t.submitFormSq}},[t._v(t._s(t.$t("bc")))])],1):t._e()]],2)])],1)],1)],1)],1)],1),o("el-dialog",{attrs:{title:t.title,visible:t.open,width:t.dialogwidth,"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-row",{attrs:{span:22}},[o("el-col",[t._e(),t._e()],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("mc"),prop:"productChName"}},[o("el-input",{attrs:{disabled:!0,readonly:!0},model:{value:t.form.productChName,callback:function(e){t.$set(t.form,"productChName",e)},expression:"form.productChName"}})],1)],1),o("el-col",[t._e()],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("dlsxz")+"(A)",prop:"currentUpperValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice("dlsxz")}},model:{value:t.form.currentUpperValue,callback:function(e){t.$set(t.form,"currentUpperValue",e)},expression:"form.currentUpperValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},model:{value:t.form.currentUpperAction,callback:function(e){t.$set(t.form,"currentUpperAction",e)},expression:"form.currentUpperAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("dysxz")+"(V)",prop:"voltageUpperValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice("dysxz")}},model:{value:t.form.voltageUpperValue,callback:function(e){t.$set(t.form,"voltageUpperValue",e)},expression:"form.voltageUpperValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},model:{value:t.form.voltageUpperAction,callback:function(e){t.$set(t.form,"voltageUpperAction",e)},expression:"form.voltageUpperAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("dyxxz")+"(V)",prop:"voltageDownValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice("dyxxz")}},model:{value:t.form.voltageDownValue,callback:function(e){t.$set(t.form,"voltageDownValue",e)},expression:"form.voltageDownValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},model:{value:t.form.voltageDownAction,callback:function(e){t.$set(t.form,"voltageDownAction",e)},expression:"form.voltageDownAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("glsxz")+"(W)",prop:"powerUpperValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice("glsxz")}},model:{value:t.form.powerUpperValue,callback:function(e){t.$set(t.form,"powerUpperValue",e)},expression:"form.powerUpperValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},model:{value:t.form.powerUpperAction,callback:function(e){t.$set(t.form,"powerUpperAction",e)},expression:"form.powerUpperAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("hdlsxz")+"(kWh)",prop:"alarmContentUpperValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice("hdlsxz")}},model:{value:t.form.alarmContentUpperValue,callback:function(e){t.$set(t.form,"alarmContentUpperValue",e)},expression:"form.alarmContentUpperValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},model:{value:t.form.alarmContentUpperAction,callback:function(e){t.$set(t.form,"alarmContentUpperAction",e)},expression:"form.alarmContentUpperAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],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.title1,visible:t.open1,width:t.dialogwidth,"close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":""},on:{"update:visible":function(e){t.open1=e}}},[o("el-form",{ref:"form1",attrs:{model:t.form1,"label-width":"auto"}},[o("el-row",{attrs:{span:22}},[o("el-col",[t._e(),t._e()],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("td"),prop:"productChIds"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",multiple:""},model:{value:t.form1.productChIds,callback:function(e){t.$set(t.form1,"productChIds",e)},expression:"form1.productChIds"}},[o("el-option",{attrs:{label:t.$t("qxuan"),value:t.$t("qxuan")},nativeOn:{click:function(e){return t.selectAll3()}}}),t._l(t.channelList,(function(t){return o("el-option",{key:t.productChId,attrs:{label:t.productChName,value:t.productChId}})}))],2)],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("dlsxz")+"(A)",prop:"currentUpperValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice1("dlsxz")}},model:{value:t.form1.currentUpperValue,callback:function(e){t.$set(t.form1,"currentUpperValue",e)},expression:"form1.currentUpperValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},model:{value:t.form1.currentUpperAction,callback:function(e){t.$set(t.form1,"currentUpperAction",e)},expression:"form1.currentUpperAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("dysxz")+"(V)",prop:"voltageUpperValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice1("dysxz")}},model:{value:t.form1.voltageUpperValue,callback:function(e){t.$set(t.form1,"voltageUpperValue",e)},expression:"form1.voltageUpperValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},model:{value:t.form1.voltageUpperAction,callback:function(e){t.$set(t.form1,"voltageUpperAction",e)},expression:"form1.voltageUpperAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("dyxxz")+"(V)",prop:"voltageDownValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice1("dyxxz")}},model:{value:t.form1.voltageDownValue,callback:function(e){t.$set(t.form1,"voltageDownValue",e)},expression:"form1.voltageDownValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},model:{value:t.form1.voltageDownAction,callback:function(e){t.$set(t.form1,"voltageDownAction",e)},expression:"form1.voltageDownAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("glsxz")+"(W)",prop:"powerUpperValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice1("glsxz")}},model:{value:t.form1.powerUpperValue,callback:function(e){t.$set(t.form1,"powerUpperValue",e)},expression:"form1.powerUpperValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},model:{value:t.form1.powerUpperAction,callback:function(e){t.$set(t.form1,"powerUpperAction",e)},expression:"form1.powerUpperAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("hdlsxz")+"(kWh)",prop:"alarmContentUpperValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice1("hdlsxz")}},model:{value:t.form1.alarmContentUpperValue,callback:function(e){t.$set(t.form1,"alarmContentUpperValue",e)},expression:"form1.alarmContentUpperValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},model:{value:t.form1.alarmContentUpperAction,callback:function(e){t.$set(t.form1,"alarmContentUpperAction",e)},expression:"form1.alarmContentUpperAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1)],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.sensorStatusTitle,visible:t.sensorStatusOpen,width:t.dialogwidth,"append-to-body":""},on:{"update:visible":function(e){t.sensorStatusOpen=e}}},[o("el-form",{ref:"sensorStatusForm",attrs:{model:t.sensorStatusForm,"label-width":"auto"}},[o("el-row",{attrs:{span:22}},[o("el-col",[t._e(),t._e()],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("mc"),prop:"sensorName"}},[o("el-input",{attrs:{readonly:!0,disabled:!0},model:{value:t.sensorStatusForm.sensorName,callback:function(e){t.$set(t.sensorStatusForm,"sensorName",e)},expression:"sensorStatusForm.sensorName"}})],1)],1),o("el-col",[t._e()],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("cgq")+this.$t("lx"),prop:"sensorTypeName"}},[o("el-input",{attrs:{readonly:!0,disabled:!0},model:{value:t.sensorStatusForm.sensorTypeName,callback:function(e){t.$set(t.sensorStatusForm,"sensorTypeName",e)},expression:"sensorStatusForm.sensorTypeName"}})],1)],1),o("el-col",[o("el-form-item",{attrs:{label:t.$t("yz")+t.$t("lx"),prop:"thresholdType"}},[o("el-input",{attrs:{readonly:!0,disabled:!0},model:{value:t.sensorStatusForm.thresholdType,callback:function(e){t.$set(t.sensorStatusForm,"thresholdType",e)},expression:"sensorStatusForm.thresholdType"}})],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("dw"),prop:"unit"}},[o("el-input",{attrs:{readonly:!0,disabled:!0},model:{value:t.sensorStatusForm.unit,callback:function(e){t.$set(t.sensorStatusForm,"unit",e)},expression:"sensorStatusForm.unit"}})],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("zdz"),prop:"thresholdUpperValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice("zdz")}},model:{value:t.sensorStatusForm.thresholdUpperValue,callback:function(e){t.$set(t.sensorStatusForm,"thresholdUpperValue",e)},expression:"sensorStatusForm.thresholdUpperValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},on:{change:t.handleSelectChange1},model:{value:t.sensorStatusForm.thresholdUpperAction,callback:function(e){t.$set(t.sensorStatusForm,"thresholdUpperAction",e)},expression:"sensorStatusForm.thresholdUpperAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1),o("el-select",{staticStyle:{width:"180px"},attrs:{disabled:t.disabled1,clearable:"",multiple:""},model:{value:t.sensorStatusForm.thresholdUpperChanel,callback:function(e){t.$set(t.sensorStatusForm,"thresholdUpperChanel",e)},expression:"sensorStatusForm.thresholdUpperChanel"}},[o("el-option",{attrs:{label:t.$t("qxuan"),value:t.$t("qxuan")},nativeOn:{click:function(e){return t.selectAll()}}}),t._l(t.channelList,(function(t){return o("el-option",{key:t.productChId,attrs:{label:t.productChName,value:t.productChId}})}))],2)],1)],1),o("el-col",[o("el-form-item",{attrs:{label:this.$t("zxz"),prop:"thresholdDownValue"}},[o("el-input",{staticStyle:{width:"110px"},on:{blur:function(e){return t.blurRowPrice("zxz")}},model:{value:t.sensorStatusForm.thresholdDownValue,callback:function(e){t.$set(t.sensorStatusForm,"thresholdDownValue",e)},expression:"sensorStatusForm.thresholdDownValue"}}),o("el-select",{staticStyle:{width:"180px"},attrs:{"allow-create":"",clearable:"",filterable:""},on:{change:t.handleSelectChange2},model:{value:t.sensorStatusForm.thresholdDownAction,callback:function(e){t.$set(t.sensorStatusForm,"thresholdDownAction",e)},expression:"sensorStatusForm.thresholdDownAction"}},t._l(t.dzs,(function(e){return o("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1),o("el-select",{staticStyle:{width:"180px"},attrs:{disabled:t.disabled2,clearable:"",multiple:""},model:{value:t.sensorStatusForm.thresholdDownChanel,callback:function(e){t.$set(t.sensorStatusForm,"thresholdDownChanel",e)},expression:"sensorStatusForm.thresholdDownChanel"}},[o("el-option",{attrs:{label:t.$t("qxuan"),value:t.$t("qxuan")},nativeOn:{click:function(e){return t.selectAll2()}}}),t._l(t.channelList,(function(t){return o("el-option",{key:t.productChId,attrs:{label:t.productChName,value:t.productChId}})}))],2)],1)],1)],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:t.sensorStatusSubmitForm}},[t._v(t._s(t.$t("qd")))]),o("el-button",{on:{click:t.sensorStatusCancel}},[t._v(t._s(t.$t("qx")))])],1)],1)],1)},s=[],n=o("ade3"),a=(o("4de4"),o("caad"),o("a15b"),o("d81d"),o("14d9"),o("b0c0"),o("e9c4"),o("a9e3"),o("b64b"),o("d3b7"),o("ac1f"),o("00b4"),o("2532"),o("7ba4")),l=o("852e"),i=o.n(l),u={name:"Online",data:function(){var t;return t={formData:{ledEnable:"",beepEnable:"",timeInterval:"",timeDuration:""},readOnlyQx:!1,loading:!0,total:0,dateRange:[],powerThresholdList:[],sensorThresholdList:[],title:"",title1:""},Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(t,"total",0),"open",!1),"open1",!1),"form",{}),"form1",{}),"channelLoadTypes",["空调","服务器","交换机","路由器","计算机","显示器","灯","其他"]),"queryParams",{startTime:"",pageNum:1,pageSize:10,endTime:"",productChName:"",productChId:"",token:"",type:""}),"usertoken",""),"tabName","tab1"),"sensorStatusForm",{}),Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(t,"sensorStatusOpen",!1),"sensorStatusTitle",""),"sensorStatusTabs",[{id:"0",name:"wsdcgq"},{id:"1",name:"ywcgq"},{id:"2",name:"sqcgq"},{id:"3",name:"mjcgq"},{id:"4",name:"qtcgq"},{id:"5",name:"qyqlcgq"},{id:"6",name:"ktcgq"},{id:"7",name:"xlcgq"},{id:"8",name:"dwdcgq"},{id:"9",name:"stwdcgq"},{id:"10",name:"ylcgq"},{id:"11",name:"wycgq"}]),"dyTypes",[{id:"0",name:"shib"},{id:"1",name:"td"}]),"connectionStatuss",[{id:"0",name:"zx"},{id:"1",name:"lix"}]),"productChStatuss",[{id:"0",name:"duank"},{id:"1",name:"jt"}]),"sqStatuss",[{id:"1",name:"kq"},{id:"0",name:"gb"}]),"dzs",[{id:"1",name:"gbtd"},{id:"2",name:"jbj"}]),"minValue",0),"productType",""),Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(Object(n["a"])(t,"cookieslanguage",""),"dialogwidth","710px"),"channelList",[]),"disabled1",!1),"disabled2",!1),"productParams",{}),"chipType","")},mounted:function(){this.$bus.$on("CHANNEL_STATUS_MONITORING",this.onSocketMessageToChannel)},created:function(){this.usertoken=this.$store.state.user.usertoken,this.queryDeviceChipTypeList(),this.queryDeviceList(),this.handleQuery(),this.cookieslanguage=i.a.get("flowinnIotLanguage"),"zh-CN"==this.cookieslanguage&&(this.dialogwidth="600px"),this.productParams=this.$store.state.user.productParams;var t=this.productParams.jkfs;"1"!=t&&"3"!=t||(this.dzs=[{id:"2",name:"jbj"}]),this.$store.state.user.urseRoles.includes("1")||(this.readOnlyQx=!0)},methods:{queryDeviceChipTypeList:function(){var t=this,e={};e.token=this.usertoken,e.type="chipType",this.loading=!0,Object(a["f"])(e).then((function(e){null!=e.data?(t.chipType=e.data.chipType,"T113-s"==t.chipType?t.sensorStatusTabs=[{id:"0",name:"wsdcgq"},{id:"4",name:"qtcgq"},{id:"5",name:"qyqlcgq"},{id:"6",name:"ktcgq"},{id:"7",name:"xlcgq"},{id:"8",name:"dwdcgq"},{id:"9",name:"stwdcgq"},{id:"11",name:"wycgq"}]:t.chipType=""):t.chipType=""})).catch((function(){})),this.loading=!1},handleSubmit:function(){console.log(this.formData)},onSocketMessageToChannel:function(t){if(t.success){var e=t.data.data,o=this.powerThresholdList;if(null!=t.data&&""!=e&&null!=e&&null!=o&&o.length>0){for(var r=0;r<e.length;r++)for(var s=e[r],n=0;n<o.length;n++){var a=o[r];if(s.productChId==a.productChId){a.productChStatus=s.productChStatus;break}}this.powerThresholdList=o}}},handleSelectChange1:function(t){this.disabled1="2"==t},handleSelectChange2:function(t){this.disabled2="2"==t},selectAll:function(){var t=this;this.sensorStatusForm.thresholdUpperChanel.length<this.channelList.length?(this.sensorStatusForm.thresholdUpperChanel=[],this.channelList.map((function(e){t.sensorStatusForm.thresholdUpperChanel.push(e.productChId)}))):this.sensorStatusForm.thresholdUpperChanel=[]},selectAll2:function(){var t=this;this.sensorStatusForm.thresholdDownChanel.length<this.channelList.length?(this.sensorStatusForm.thresholdDownChanel=[],this.channelList.map((function(e){t.sensorStatusForm.thresholdDownChanel.push(e.productChId)}))):this.sensorStatusForm.thresholdDownChanel=[]},selectAll3:function(){var t=this;this.form1.productChIds.length<this.channelList.length?(this.form1.productChIds=[],this.channelList.map((function(e){t.form1.productChIds.push(e.productChId)}))):this.form1.productChIds=[]},getStringWidth:function(t){var e="14px Arial",o=document.createElement("canvas"),r=o.getContext("2d");r.font=e;var s=r.measureText(t);return s.width+40},queryDeviceList:function(){var t=this,e={};e.token=this.usertoken,e.type="listSbRestartQuery",this.loading=!0,Object(a["f"])(e).then((function(e){null!=e.data?t.productType=e.data[0].productType:t.productType="3";var o={type:"listQuery"};o.token=t.usertoken,o.productId=t.queryParams.productId,Object(a["c"])(o).then((function(e){if(null!=e.data){for(var o,r=[],s=function(){o=e.data[n];var t={};t.productChId=o.productChId,t.productChName=o.productChName;var s=r.some((function(e){return e.productChId===t.productChId}));s||r.push(t)},n=0;n<e.data.length;n++)s();t.channelList=r}})).catch((function(){}))})).catch((function(){})),this.loading=!1},blurRowPrice1:function(t){var e=/^\d+(\.\d+)?$/;if("dysxz"==t){if(!e.test(this.form1.voltageUpperValue))return void(this.form1.voltageUpperValue=null);this.form1.voltageUpperValue>999999&&(this.form1.voltageUpperValue=999999);var o=this.form1.voltageUpperValue,r=this.form1.voltageDownValue;Number(o)<Number(r)&&(this.$modal.msgWarning(this.$t("zxzpd1")),this.form1.voltageUpperValue=null)}else if("dyxxz"==t){if(!e.test(this.form1.voltageDownValue))return void(this.form1.voltageDownValue=null);this.form1.voltageDownValue>999999&&(this.form1.voltageDownValue=999999);var s=this.form1.voltageUpperValue,n=this.form1.voltageDownValue;Number(s)<Number(n)&&(this.$modal.msgWarning(this.$t("zxzpd2")),this.form1.voltageDownValue=null)}else if("zxz"==t){if(!e.test(this.sensorStatusForm.thresholdDownValue))return void(this.sensorStatusForm.thresholdDownValue=null);this.sensorStatusForm.thresholdDownValue>999999&&(this.sensorStatusForm.thresholdDownValue=999999);var a=this.sensorStatusForm.thresholdDownValue,l=this.sensorStatusForm.thresholdUpperValue;Number(l)<Number(a)&&(this.$modal.msgWarning(this.$t("zxzpd3")),this.sensorStatusForm.thresholdDownValue=null)}else if("zdz"==t){if(!e.test(this.sensorStatusForm.thresholdUpperValue))return void(this.sensorStatusForm.thresholdUpperValue=null);this.sensorStatusForm.thresholdUpperValue>999999&&(this.sensorStatusForm.thresholdUpperValue=999999);a=this.sensorStatusForm.thresholdDownValue,l=this.sensorStatusForm.thresholdUpperValue;Number(l)<Number(a)&&(this.$modal.msgWarning(this.$t("zxzpd4")),this.sensorStatusForm.thresholdUpperValue=null)}else if("dlsxz"==t){if(!e.test(this.form1.currentUpperValue))return void(this.form1.currentUpperValue=null);if(this.form1.currentUpperValue>999999)return void(this.form1.currentUpperValue=999999)}else if("glsxz"==t){if(!e.test(this.form1.powerUpperValue))return void(this.form1.powerUpperValue=null);if(this.form1.powerUpperValue>999999)return void(this.form1.powerUpperValue=999999)}else if("hdlsxz"==t){if(!e.test(this.form1.alarmContentUpperValue))return void(this.form1.alarmContentUpperValue=null);if(this.form1.alarmContentUpperValue>999999)return void(this.form1.alarmContentUpperValue=999999)}},blurRowPrice:function(t){var e=/^\d+(\.\d+)?$/,o=/^-?\d+(?:\.\d+)?$/;if("dysxz"==t){if(!e.test(this.form.voltageUpperValue))return void(this.form.voltageUpperValue=null);this.form.voltageUpperValue>999999&&(this.form.voltageUpperValue=999999);var r=this.form.voltageUpperValue,s=this.form.voltageDownValue;Number(r)<Number(s)&&(this.$modal.msgWarning(this.$t("zxzpd1")),this.form.voltageUpperValue=null)}else if("dyxxz"==t){if(!e.test(this.form.voltageDownValue))return void(this.form.voltageDownValue=null);this.form.voltageDownValue>999999&&(this.form.voltageDownValue=999999);var n=this.form.voltageUpperValue,a=this.form.voltageDownValue;Number(n)<Number(a)&&(this.$modal.msgWarning(this.$t("zxzpd2")),this.form.voltageDownValue=null)}else if("zxz"==t){if("0"==this.sensorStatusForm.sensorType||"8"==this.sensorStatusForm.sensorType){if(!o.test(this.sensorStatusForm.thresholdDownValue))return void(this.sensorStatusForm.thresholdDownValue=null);this.sensorStatusForm.thresholdDownValue>999999&&(this.sensorStatusForm.thresholdDownValue=999999)}else{if(!e.test(this.sensorStatusForm.thresholdDownValue))return void(this.sensorStatusForm.thresholdDownValue=null);this.sensorStatusForm.thresholdDownValue>999999&&(this.sensorStatusForm.thresholdDownValue=999999)}var l=this.sensorStatusForm.thresholdDownValue,i=this.sensorStatusForm.thresholdUpperValue;Number(i)<Number(l)&&(this.$modal.msgWarning(this.$t("zxzpd3")),this.sensorStatusForm.thresholdDownValue=null)}else if("zdz"==t){if(!e.test(this.sensorStatusForm.thresholdUpperValue))return void(this.sensorStatusForm.thresholdUpperValue=null);this.sensorStatusForm.thresholdUpperValue>999999&&(this.sensorStatusForm.thresholdUpperValue=999999);l=this.sensorStatusForm.thresholdDownValue,i=this.sensorStatusForm.thresholdUpperValue;Number(i)<Number(l)&&(this.$modal.msgWarning(this.$t("zxzpd4")),this.sensorStatusForm.thresholdUpperValue=null)}else if("dlsxz"==t){if(!e.test(this.form.currentUpperValue))return void(this.form.currentUpperValue=null);if(this.form.currentUpperValue>999999)return void(this.form.currentUpperValue=999999)}else if("glsxz"==t){if(!e.test(this.form.powerUpperValue))return void(this.form.powerUpperValue=null);if(this.form.powerUpperValue>999999)return void(this.form.powerUpperValue=999999)}else if("hdlsxz"==t){if(!e.test(this.form.alarmContentUpperValue))return void(this.form.alarmContentUpperValue=null);if(this.form.alarmContentUpperValue>999999)return void(this.form.alarmContentUpperValue=999999)}},getDity:function(t,e){var o="",r="",s=[];"productChStatus"==e?(s=this.productChStatuss,r=t.productChStatus):"accessControlStatus"==e?(s=this.accessControlStatuss,r=t.accessControlStatus):"alarmStatus"==e?(s=this.alarmStatuss,r=t.alarmStatus):"connectionStatus"==e?(s=this.connectionStatuss,r=t.connectionStatus):"waterImmersionState"==e||"waterImmersionState"==e?(s=this.waterImmersionStates,r=t.waterImmersionState):"sensorType"==e?(s=this.sensorStatusTabs,r=t.sensorType):"dyType"==e&&(s=this.dyTypes,r=t.dyType);for(var n=0;n<s.length;n++){var a=s[n];if(r==a.id)return o=a.name,this.$t(a.name)}return o},handleUpdate:function(t){this.form=t,this.open=!0,this.title=this.$t("pz")},handleUpdate1:function(t){this.form1={};var e=this.channelList.map((function(t){return t.productChId}));this.$set(this.form1,"productChIds",e),this.open1=!0,this.title1=this.$t("pz")},sensorStatusUpdate:function(t){this.sensorStatusForm=JSON.parse(JSON.stringify(t));for(var e=0;e<this.sensorStatusTabs.length;e++){var o=this.sensorStatusTabs[e];t.sensorType==o.id&&(this.sensorStatusForm.sensorTypeName=this.$t(o.name))}null!=this.sensorStatusForm.thresholdUpperChanel&&void 0!=this.sensorStatusForm.thresholdUpperChanel&&(this.sensorStatusForm.thresholdUpperChanel=this.sensorStatusForm.thresholdUpperChanel.split(",")),null!=this.sensorStatusForm.thresholdDownChanel&&void 0!=this.sensorStatusForm.thresholdDownChanel&&(this.sensorStatusForm.thresholdDownChanel=this.sensorStatusForm.thresholdDownChanel.split(",")),this.handleSelectChange1(this.sensorStatusForm.thresholdUpperAction),this.handleSelectChange2(this.sensorStatusForm.thresholdDownAction),this.sensorStatusOpen=!0,this.sensorStatusTitle=this.$t("pz")},issueInstructionsReset:function(t){var e=this,o=this,r={token:""};r.sensorId=t.sensorId,r.productId=t.productId,r.type="reset",this.$modal.confirm(this.$t("qryfwm")).then((function(){Object(a["j"])(r).then((function(t){o.handleQuery()})).catch((function(){}))})).then((function(){e.$modal.msgSuccess(e.$t("zxcg"))})).catch((function(){}))},issueInstructionsRelease:function(t){var e=this,o=this,r={token:""};r.sensorId=t.sensorId,r.productId=t.productId,r.type="release",this.$modal.confirm(this.$t("qrysfm")).then((function(){Object(a["j"])(r).then((function(t){o.handleQuery()})).catch((function(){}))})).then((function(){e.$modal.msgSuccess(e.$t("zxcg"))})).catch((function(){}))},sensorStatusHandleCommand:function(t,e){var o=this,r=this,s={token:""};switch(s.sensorId=e.sensorId,s.productId=e.productId,t){case"sensorStatusopen":s.type="open",this.$modal.confirm(this.$t("qrykqm")).then((function(){Object(a["j"])(s).then((function(t){r.handleQuery()})).catch((function(){}))})).then((function(){o.$modal.msgSuccess(o.$t("zxcg"))})).catch((function(){}));break;case"sensorStatusclose":s.type="close",this.$modal.confirm(this.$t("qrygbm")).then((function(){Object(a["j"])(s).then((function(t){r.handleQuery()})).catch((function(){}))})).then((function(){o.$modal.msgSuccess(o.$t("zxcg"))})).catch((function(){}));break;default:break}},handleAllCommand:function(t,e){var o=this,r=this,s={};switch(s.token=this.usertoken,s.productChId=e.productChId,s.productId=e.productId,t){case"channelopen":s.type="open",this.$modal.confirm(this.$t("qrykqm")).then((function(){Object(a["i"])(s).then((function(t){r.handleQuery()})).catch((function(){}))})).then((function(){o.$modal.msgSuccess(o.$t("zxcg"))})).catch((function(){}));break;case"channelclose":s.type="close",this.$modal.confirm(this.$t("qrygbm")).then((function(){Object(a["i"])(s).then((function(t){r.handleQuery()})).catch((function(){}))})).then((function(){o.$modal.msgSuccess(o.$t("zxcg"))})).catch((function(){}));break;default:break}},handleCommand:function(t,e){var o=this,r=this,s={};switch(s.token=this.usertoken,s.productChId=e.productChId,s.productId=e.productId,t){case"channelopen":s.type="open",this.$modal.confirm(this.$t("qrykqm")).then((function(){Object(a["c"])(s).then((function(t){r.handleQuery()})).catch((function(){}))})).then((function(){o.$modal.msgSuccess(o.$t("zxcg"))})).catch((function(){}));break;case"channelclose":s.type="close",this.$modal.confirm(this.$t("qrygbm")).then((function(){Object(a["c"])(s).then((function(t){r.handleQuery()})).catch((function(){}))})).then((function(){o.$modal.msgSuccess(o.$t("zxcg"))})).catch((function(){}));break;default:break}},getNowDateTime:function(t){var e=t.getFullYear(),o=t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1,r=t.getDate()<10?"0"+t.getDate():t.getDate(),s=t.getHours()<10?"0"+t.getHours():t.getHours(),n=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),a=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return e+"-"+o+"-"+r+" "+s+":"+n+":"+a},handleClick:function(t,e){this.tabName=t.name,this.handleQuery()},queryChannelStatus:function(){var t=this;this.loading=!0,this.queryParams.token=this.usertoken,"tab1"==this.tabName?(this.queryParams.type="powerThresholdList",Object(a["a"])(this.queryParams).then((function(e){t.powerThresholdList=e.data})).catch((function(){}))):"tab2"==this.tabName?(this.queryParams.type="sensorThresholdList",this.sensorThresholdList=[],Object(a["a"])(this.queryParams).then((function(e){if("T113-s"==t.chipType){var o=e.data.filter((function(t){return"1"!=t.sensorType&&"2"!=t.sensorType&&"3"!=t.sensorType}));t.sensorThresholdList=o}else t.sensorThresholdList=e.data})).catch((function(){}))):"tab3"==this.tabName&&(this.queryParams.type="listSGQuery",Object(a["a"])(this.queryParams).then((function(e){t.formData=e.data})).catch((function(){}))),this.loading=!1},handleQuery:function(){this.queryChannelStatus()},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.form.productId,o.currentUpperValue=t.form.currentUpperValue,o.voltageUpperValue=t.form.voltageUpperValue,o.voltageDownValue=t.form.voltageDownValue,o.powerUpperValue=t.form.powerUpperValue,o.alarmContentUpperValue=t.form.alarmContentUpperValue,o.currentUpperAction=t.form.currentUpperAction,o.voltageUpperAction=t.form.voltageUpperAction,o.voltageDownAction=t.form.voltageDownAction,o.powerUpperAction=t.form.powerUpperAction,o.alarmContentUpperAction=t.form.alarmContentUpperAction;var r=t;t.loading=!0,t.$modal.confirm(t.$t("qdybcm")).then((function(){Object(a["a"])(o).then((function(t){r.open=!1,r.$modal.msgSuccess(r.$t("zxcg")),r.handleQuery()}))})).then((function(){t.open=!1})).catch((function(){}))}})),this.handleQuery()},submitFormSq:function(){var t={};t.token=this.usertoken,t.type="saveSG",t.ledEnable=this.formData.ledEnable,t.beepEnable=this.formData.beepEnable,t.timeInterval=this.formData.timeInterval,t.timeDuration=this.formData.timeDuration;var e=this;this.loading=!0,this.$modal.confirm(this.$t("qdybcm")).then((function(){Object(a["a"])(t).then((function(t){e.$modal.msgSuccess(e.$t("zxcg")),e.queryChannelStatus()}))})).then((function(){})).catch((function(){})),this.queryChannelStatus()},cancel:function(){this.open=!1,this.queryChannelStatus()},submitForm1:function(){var t=this;this.$refs["form1"].validate((function(e){if(e){var o={};if(o.token=t.usertoken,o.type="batchSave",null==t.form1.productChIds||void 0==t.form1.productChIds||""==t.form1.productChIds)return void t.$modal.msgWarning(t.$t("td")+" "+t.$i18n.t("bnwk"));o.productChIds=t.form1.productChIds.join(","),o.productId=t.form1.productId,o.currentUpperValue=t.form1.currentUpperValue,o.voltageUpperValue=t.form1.voltageUpperValue,o.voltageDownValue=t.form1.voltageDownValue,o.powerUpperValue=t.form1.powerUpperValue,o.alarmContentUpperValue=t.form1.alarmContentUpperValue,o.currentUpperAction=t.form1.currentUpperAction,o.voltageUpperAction=t.form1.voltageUpperAction,o.voltageDownAction=t.form1.voltageDownAction,o.powerUpperAction=t.form1.powerUpperAction,o.alarmContentUpperAction=t.form1.alarmContentUpperAction;var r=t;t.loading=!0,t.$modal.confirm(t.$t("qdybcm")).then((function(){Object(a["a"])(o).then((function(t){r.$modal.msgSuccess(r.$t("zxcg")),r.open1=!1,r.handleQuery()}))})).then((function(){})).catch((function(){}))}})),this.handleQuery()},cancel1:function(){this.open1=!1,this.queryChannelStatus()},sensorStatusSubmitForm:function(){var t=this;this.$refs["sensorStatusForm"].validate((function(e){if(e){var o={};if(o.token=t.usertoken,o.sensorType=t.sensorStatusForm.sensorType,o.thresholdType=t.sensorStatusForm.thresholdType,o.sensorId=t.sensorStatusForm.sensorId,o.sensorName=t.sensorStatusForm.sensorName,o.comSlogan=t.sensorStatusForm.comSlogan,o.thresholdUpperValue=t.sensorStatusForm.thresholdUpperValue+"",o.thresholdDownValue=t.sensorStatusForm.thresholdDownValue+"",o.thresholdUpperAction=t.sensorStatusForm.thresholdUpperAction,o.thresholdDownAction=t.sensorStatusForm.thresholdDownAction,null!=t.sensorStatusForm.thresholdUpperChanel&&t.sensorStatusForm.thresholdUpperChanel.length>0&&(o.thresholdUpperChanel=t.sensorStatusForm.thresholdUpperChanel.join(",")),null!=t.sensorStatusForm.thresholdDownChanel&&t.sensorStatusForm.thresholdDownChanel.length>0&&(o.thresholdDownChanel=t.sensorStatusForm.thresholdDownChanel.join(",")),o.connectionStatus=t.sensorStatusForm.connectionStatus,void 0!=t.sensorStatusForm.sensorId&&""!=t.sensorStatusForm.sensorId){t.loading=!0,o.type="update",o.productId=t.sensorStatusForm.productId;var r=t;t.$modal.confirm(t.$t("qdybcm")).then((function(){Object(a["a"])(o).then((function(t){r.loading=!1,r.sensorStatusOpen=!1,r.$modal.msgSuccess(r.$t("zxcg")),r.handleQuery()}))})).then((function(){})).catch((function(){}))}}}))},sensorStatusCancel:function(){this.sensorStatusOpen=!1,this.queryChannelStatus()},handleForceLogout:function(t){var e=this;this.$modal.confirm(this.$t("sfqztc")+t.userName+this.$t("yhm")).then((function(){return forceLogout(t.tokenId)})).then((function(){e.getList(),e.$modal.msgSuccess(e.$t("qtcg"))})).catch((function(){}))}}},c=u,h=(o("d7d3"),o("2877")),p=Object(h["a"])(c,r,s,!1,null,null,null);e["default"]=p.exports},c4a3:function(t,e,o){},d7d3:function(t,e,o){"use strict";o("c4a3")}}]);