| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-37fda618"],{"3f58":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[o("el-form",{ref:"queryForm",attrs:{model:t.queryParams,size:"small",inline:!0,"label-width":"auto"}},[o("el-form-item",{attrs:{label:this.$t("sbmc"),prop:"productName"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{clearable:""},model:{value:t.queryParams.productId,callback:function(e){t.$set(t.queryParams,"productId",e)},expression:"queryParams.productId"}},t._l(t.productList,(function(t){return o("el-option",{key:t.productId,attrs:{label:t.productName,value:t.productId}})})),1)],1),o("el-form-item",[o("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.handleQuery}},[t._v(t._s(t.$t("ss")))])],1)],1),o("el-card",{staticStyle:{"min-height":"700px","border-radius":"15px"}},[o("el-table",{attrs:{"max-height":"700",data:t.channelList,"header-cell-style":{background:"#FFFFFF",color:"#000000"}}},[o("el-table-column",{attrs:{align:"center",label:this.$t("sbmc"),prop:"productName"}}),t._e(),o("el-table-column",{attrs:{align:"center",label:this.$t("sbbh"),prop:"productNumber"}}),o("el-table-column",{attrs:{align:"center",label:this.$t("sbyzm"),prop:"productCode",width:"180","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{align:"center",label:this.$t("sbxh"),prop:"productModel","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{align:"center",label:this.$t("gjbb"),prop:"productVersion","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{align:"center",label:this.$t("xtsj"),prop:"systemTime","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{align:"center",label:this.$t("yxsj"),prop:"runTime","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{align:"center",label:"IP"+this.$t("dz"),prop:"IPadress","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{align:"center",label:"MAC"+this.$t("dz"),prop:"MACadress","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{align:"center",label:"RS485"+this.$t("dz"),prop:"RSadress","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{align:"center",label:this.$t("cz"),"class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(o){return t.handleUpdate(e.row)}}},[t._v(t._s(t.$t("xg")))])]}}])})],1)],1),o("el-dialog",{attrs:{title:t.title,visible:t.open,width:"500px","close-on-click-modal":!1,"close-on-press-escape":!1,"append-to-body":""},on:{"update:visible":function(e){t.open=e}}},[o("el-form",{ref:"form",attrs:{model:t.form,"label-width":"auto"}},[t._e(),o("el-form-item",{attrs:{label:this.$t("sbbh"),prop:"productNumber"}},[o("el-input",{attrs:{readonly:!0,disabled:!0},model:{value:t.form.productNumber,callback:function(e){t.$set(t.form,"productNumber",e)},expression:"form.productNumber"}})],1),o("el-form-item",{attrs:{label:this.$t("sbmc"),prop:"productName"}},[o("el-input",{model:{value:t.form.productName,callback:function(e){t.$set(t.form,"productName",e)},expression:"form.productName"}})],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)],1)},r=[],a=o("8647"),l=o("7ba4"),i={name:"Online",data:function(){return{loading:!0,total:0,channelList:[],title:"",open:!1,sortnoOpen:!1,form:{},sortnoForm:{},modes:["开启","关闭"],queryParams:{productName:"",productNumber:"",token:"",type:""},usertoken:"",tableData:[],tableProps:[{prop:"sortno",isShow:!0,label:"序号",width:"55",minWidth:"100",align:"center",type:"index"},{prop:"productChId",isShow:!0,label:"通道号",width:"150",minWidth:"100",align:"center",type:"index"},{prop:"productChName",isShow:!0,label:"通道名称",width:"",minWidth:"100",align:"center"},{prop:"status",isShow:!0,label:"状态",width:"",minWidth:"100",align:"center"}],productList:[],upload:{open:!1,title:"",isUploading:!1,url:window.location.origin+"/pdu/equipmentMintenanceUpload"}}},created:function(){this.usertoken=this.$store.state.user.usertoken,this.queryProductList(),this.handleQuery()},methods:{queryProductList:function(){var t=this,e={};e.token=this.usertoken,e.type="listSbWhQuery",Object(l["f"])(e).then((function(e){t.productList=e.data})).catch((function(){}))},handleAdd:function(){this.sortnoOpen=!0},handleCommand:function(t,e){var o={};switch(o.token=this.usertoken,o.productId=e.productId,o.productNumber=e.productNumber,t){case"channelopen":o.type="sBRestart",this.$modal.confirm(this.$t("qdycqm")).then((function(){Object(l["f"])(o)})).then((function(){})).catch((function(){}));break;default:break}},queryChannelStatus:function(){var t=this;this.queryParams.token=this.usertoken,this.queryParams.type="listSbWhQuery",this.loading=!0,Object(l["f"])(this.queryParams).then((function(e){t.channelList=e.data})).catch((function(){})),this.loading=!1},handleQuery:function(){this.queryChannelStatus()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleUpdate:function(t){this.form=t,this.open=!0,this.title=this.$t("xg")},submitForm:function(){var t=this;this.$refs["form"].validate((function(e){if(e){var o={};o.token=t.usertoken,o.type="gysbSave",o.productNumber=t.form.productNumber,o.productId=t.form.productId,o.productName=t.form.productName,o.RSadress=t.form.RSadress,t.loading=!0,t.$modal.confirm(t.$t("qdybcm")).then((function(){var t=this;Object(l["k"])(o).then((function(e){t.open=!1,t.queryChannelStatus()}))})).then((function(){t.open=!1})).catch((function(){}))}}))},cancel:function(){this.open=!1},handleForceLogout:function(t){var e=this;this.$modal.confirm(this.$t("sfqztc")+t.userName+this.$t("yhm")).then((function(){return Object(a["a"])(t.tokenId)})).then((function(){e.getList(),e.$modal.msgSuccess(e.$t("qtcg"))})).catch((function(){}))}}},s=i,c=o("2877"),u=Object(c["a"])(s,n,r,!1,null,null,null);e["default"]=u.exports},8647:function(t,e,o){"use strict";o.d(e,"b",(function(){return r})),o.d(e,"a",(function(){return a}));var n=o("b775");function r(t){return Object(n["a"])({url:"/monitor/online/list",method:"get",params:t})}function a(t){return Object(n["a"])({url:"/monitor/online/"+t,method:"delete"})}}}]);
|