chunk-2d12e59b.c147c71f.js 3.7 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d12e59b"],{"74af":function(t,e,o){},"83d8":function(t,e,o){"use strict";o("74af")},8614:function(t,e,o){"use strict";o.r(e);var l=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"app-container"},[o("el-card",{staticStyle:{"min-height":"700px","border-radius":"15px"}},[o("el-table",{attrs:{"max-height":"700",data:t.list,"header-cell-style":{background:"#FFFFFF",color:"#000000"}}},[o("el-table-column",{attrs:{label:this.$t("lx"),prop:"stType","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{label:this.$t("fwq"),prop:"server"}}),o("el-table-column",{attrs:{label:this.$t("dk2"),prop:"port","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{label:this.$t("stm"),prop:"public","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{label:this.$t("fwzt"),prop:"mode","show-overflow-tooltip":!0}}),o("el-table-column",{attrs:{label:this.$t("cz"),align:"center","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(o){return t.handleUpdate(e.row)}}},[t._v(t._s(t.$t("pz")))])]}}])})],1)],1),o("el-dialog",{attrs:{title:t.title,visible:t.open,width:"750px","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:20}},[o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{label:this.$t("dylx"),prop:"stType"}},[o("el-input",{attrs:{readonly:!0,disabled:!0},model:{value:t.form.stType,callback:function(e){t.$set(t.form,"stType",e)},expression:"form.stType"}})],1)],1),o("el-col",{attrs:{span:12}},[o("el-form-item",{attrs:{required:!0,label:this.$t("fwzt"),prop:"mode"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{"allow-create":"",clearable:"",filterable:!1},model:{value:t.form.mode,callback:function(e){t.$set(t.form,"mode",e)},expression:"form.mode"}},t._l(t.modes,(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)],1)},s=[],n=o("7ba4"),a={name:"Server",data:function(){return{server:[],totalStatus:{},channelList:[],title:"",show:"false",sensorStatusTitle:"",open:!1,usertoken:"",form:{},sensorStatusForm:{},modes:[{id:"0",name:"gb"},{id:"1",name:"kq"}],stType:["在线","离线"],activeName:"温湿度传感器",sensorStatusTabs:[],sensorStatusOpen:!1,list:[]}},created:function(){this.usertoken=this.$store.state.user.usertoken,this.queryIp()},methods:{editDisabled:function(){return"0"===this.form.mode},handleClick:function(t,e){console.log(t,e)},handleSelectChange:function(t){this.form.mode=t,this.editDisabled()},queryIp:function(){var t=this,e={};e.token=this.usertoken,e.type="listStQuery",Object(n["k"])(e).then((function(e){null!=e.data&&(t.list=e.data)}))},submitForm:function(){var t=this;this.$refs["form"].validate((function(e){if(e){var o={};o.token=t.usertoken,o.type="StSave",o.mode=t.form.mode,o.stType=t.form.stType,t.$modal.confirm(t.$t("qdybcm")).then((function(){Object(n["k"])(o)})).then((function(){})).catch((function(){}))}}))},handleUpdate:function(t){this.form=t,this.open=!0,this.title=this.$t("pz")},cancel:function(){this.open=!1},openLoading:function(){this.$modal.loading(this.$t("zzjzqsh"))}}},i=a,r=(o("83d8"),o("2877")),c=Object(r["a"])(i,l,s,!1,null,"347c6cec",null);e["default"]=c.exports}}]);