| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2e5ccca8"],{5075:function(t,e,s){"use strict";s.r(e);var r=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-container"},[s("el-row",[s("el-col",{staticClass:"card-box",attrs:{span:12}},[s("el-card",[s("div",{attrs:{slot:"header"},slot:"header"},[s("span",{staticStyle:{"font-size":"20px","font-weight":"bold"}},[s("i",{staticClass:"el-icon-monitor"}),t._v(t._s(t.$t("radiussz")))])]),s("div",{staticClass:"el-table el-table--enable-row-hover el-table--medium"},[[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"auto"}},[s("el-form-item",{attrs:{label:this.$t("zt"),prop:"status"}},[s("el-select",{staticStyle:{width:"100%"},attrs:{"allow-create":"",clearable:"",filterable:!1},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},t._l(t.modes,(function(e){return s("el-option",{key:e.id,attrs:{label:t.$t(e.name),value:e.id}})})),1)],1),s("el-form-item",{attrs:{label:this.$t("bhyh"),prop:"user"}},[s("el-input",{model:{value:t.form.user,callback:function(e){t.$set(t.form,"user",e)},expression:"form.user"}})],1),s("el-form-item",{attrs:{label:this.$t("bhmm"),prop:"password"}},[s("el-input",{attrs:{type:"password"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),s("el-form-item",{attrs:{label:this.$t("radiusms"),prop:"key"}},[s("el-input",{model:{value:t.form.key,callback:function(e){t.$set(t.form,"key",e)},expression:"form.key"}})],1),s("el-form-item",{attrs:{label:this.$t("rzfwq"),prop:"authServer"}},[s("el-input",{model:{value:t.form.authServer,callback:function(e){t.$set(t.form,"authServer",e)},expression:"form.authServer"}})],1)],1),s("div",{staticClass:"dialog-footer",staticStyle:{float:"right"},attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(t._s(t.$t("qd")))])],1)]],2)])],1)],1)],1)},o=[],a=s("7ba4"),i={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"}],activeName:"温湿度传感器",sensorStatusTabs:[],sensorStatusOpen:!1,sensorStatusList:[],rules:{mode:[{required:!0,message:this.$i18n.t("zt")+" "+this.$i18n.t("bnwk"),trigger:"blur"}]}}},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={},this.form.mode=t,this.editDisabled()},queryIp:function(){var t=this,e={};e.token=this.usertoken,e.type="listRadius",Object(a["k"])(e).then((function(e){null!=e.data&&(t.form=e.data)}))},submitForm:function(){var t=this;this.$refs["form"].validate((function(e){if(e){var s={};s.token=t.usertoken,s.type="radiusSave",s.status=t.form.status,s.user=t.form.user,s.password=t.form.password,s.key=t.form.key,s.authServer=t.form.authServer,t.$modal.confirm(t.$t("qdybcm")).then((function(){Object(a["k"])(s)})).then((function(){t.$modal.msgSuccess(t.$t("zxcg")),t.queryIp()})).catch((function(){}))}}))},openLoading:function(){this.$modal.loading(this.$t("zzjzqsh"))}}},l=i,n=(s("ef86"),s("2877")),u=Object(n["a"])(l,r,o,!1,null,"19d0e182",null);e["default"]=u.exports},ca52:function(t,e,s){},ef86:function(t,e,s){"use strict";s("ca52")}}]);
|