(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["set_proctrol"],{"032f":function(t,e,o){},"32b4":function(t,e,o){"use strict";o.r(e);var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("Modal",{attrs:{title:"网络设置","mask-closable":!1,closable:!0},on:{"on-ok":t.setWanLanInfo},model:{value:t.wifiModel,callback:function(e){t.wifiModel=e},expression:"wifiModel"}},[o("div",{staticClass:"subSection"},[o("Form",{staticStyle:{color:"#fff"},attrs:{model:t.formItem,"label-width":120}},[o("FormItem",{staticStyle:{color:"#fff"},attrs:{label:"网卡名称："}},[o("Select",{model:{value:t.formItem.eth,callback:function(e){t.$set(t.formItem,"eth",e)},expression:"formItem.eth"}},[o("Option",{attrs:{value:"eth0"}},[t._v("eth0")]),o("Option",{attrs:{value:"eth1"}},[t._v("eth1")])],1)],1),o("FormItem",{staticStyle:{color:"#fff"},attrs:{label:"网络模式："}},[o("Select",{model:{value:t.formItem.mode,callback:function(e){t.$set(t.formItem,"mode",e)},expression:"formItem.mode"}},[o("Option",{attrs:{value:"DHCP"}},[t._v("DHCP")]),o("Option",{attrs:{value:"static"}},[t._v("static")])],1)],1),o("FormItem",{attrs:{label:"IP地址:"}},[o("Input",{attrs:{placeholder:""},model:{value:t.formItem.ip,callback:function(e){t.$set(t.formItem,"ip",e)},expression:"formItem.ip"}})],1),o("FormItem",{attrs:{label:"MAC地址："}},[o("Input",{attrs:{placeholder:""},model:{value:t.formItem.mac,callback:function(e){t.$set(t.formItem,"mac",e)},expression:"formItem.mac"}})],1),o("FormItem",{attrs:{label:"广播地址："}},[o("Input",{attrs:{placeholder:""},model:{value:t.formItem.broadcast,callback:function(e){t.$set(t.formItem,"broadcast",e)},expression:"formItem.broadcast"}})],1),o("FormItem",{attrs:{label:"子掩码："}},[o("Input",{attrs:{placeholder:""},model:{value:t.formItem.netmask,callback:function(e){t.$set(t.formItem,"netmask",e)},expression:"formItem.netmask"}})],1),o("FormItem",{attrs:{label:"默认网关："}},[o("Input",{attrs:{placeholder:""},model:{value:t.formItem.defaultgw,callback:function(e){t.$set(t.formItem,"defaultgw",e)},expression:"formItem.defaultgw"}})],1)],1)],1)])},n=[],l=o("6968"),s=o("365c"),c={name:"dashbord1",components:{Title:l["a"]},data:function(){return{wifiModel:!1,formItem:{eth:"eth0",mode:"DHCP",mac:"",ip:"",broadcast:"",netmask:"",defaultgw:""}}},created:function(){this.getWanLanInfo()},methods:{show:function(){this.wifiModel=!0},set:function(t){console.log(t)},getWanLanInfo:function(){var t=this;s["a"].Get("/action/web_GetLanInfo",{eth:"eth0"}).then((function(e){200==e.code&&(t.formItem=e.data)})).catch((function(t){console.log(t),console.log(t.isSuccess)}))},setWanLanInfo:function(){var t=this;s["a"].Get("/action/web_SetLanInfo",this.formItem).then((function(e){200==e.code&&t.$Message.success("设置成功")})).catch((function(t){console.log(t),console.log(t.isSuccess)}))}}},r=c,m=(o("9caa"),o("2877")),i=Object(m["a"])(r,a,n,!1,null,"408919c1",null);e["default"]=i.exports},6968:function(t,e,o){"use strict";var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"title-info-content"},[o("h3",[t._v(" "+t._s(t.title)+" ")]),o("p",{staticClass:"title-info"},[t._v(t._s(t.desc))])])},n=[],l={name:"ititle",data:function(){return{}},props:{title:{type:String,default:""},desc:{type:String,default:""}}},s=l,c=o("2877"),r=Object(c["a"])(s,a,n,!1,null,null,null);e["a"]=r.exports},"9caa":function(t,e,o){"use strict";var a=o("032f"),n=o.n(a);n.a}}]);