(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["fan"],{2592:function(t,e,n){},"88df":function(t,e,n){"use strict";var o=n("2592"),a=n.n(o);a.a},f76d:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dashboard_box",staticStyle:{width:"1180px",margin:"auto"}},[n("table",{staticClass:"table"},[t._m(0),n("tbody",{attrs:{id:"tableContent"}},t._l(t.fanList,(function(e){return n("tr",[n("td",[t._v(t._s(e.name))]),n("td",[t._v(t._s(e.speed)+"RPM")]),n("td",[n("select",{directives:[{name:"model",rawName:"v-model",value:e.mode,expression:"item.mode"}],staticClass:"form-control",on:{change:function(n){var o=Array.prototype.filter.call(n.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(e,"mode",n.target.multiple?o:o[0])}}},[n("option",{attrs:{value:"0"}},[t._v("自动")]),n("option",{attrs:{value:"1"}},[t._v("手动")])])]),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.level,expression:"item.level"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:e.level},on:{input:function(n){n.target.composing||t.$set(e,"level",n.target.value)}}})]),n("td",[n("Button",{attrs:{type:"primary"},on:{click:function(n){return t.set(e)}}},[t._v("设置")])],1)])})),0)])])},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",[n("tr",[n("th",[t._v("名称")]),n("th",[t._v("速度(RPM)")]),n("th",{staticStyle:{width:"200px"}},[t._v("模式")]),n("th",{staticStyle:{width:"200px"}},[t._v("转速设置(%)")]),n("th",{staticStyle:{width:"120px"}},[t._v("操作")])])])}],s=n("365c"),l={name:"dashbord1",data:function(){return{fanList:[]}},created:function(){console.log("111111111111111111"),this.getAllFanInfo()},methods:{set:function(t){var e=this;console.log(t),0!=t.mode?s["a"].Get("/action/setFanInfo",t).then((function(t){200==t.code&&(e.getAllFanInfo(),e.$Message.success("设置成功！"))})).catch((function(t){console.log(t),console.log(t.isSuccess)})):this.$Message.error("自动模式下不能操作，请改为手动模式！")},getAllFanInfo:function(){var t=this;s["a"].Get("/action/getAllFanInfo",{}).then((function(e){200==e.code&&(t.fanList=e.data)})).catch((function(t){console.log(t),console.log(t.isSuccess)}))}}},i=l,c=(n("88df"),n("2877")),r=Object(c["a"])(i,o,a,!1,null,"2f1ee6fa",null);e["default"]=r.exports}}]);