(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["RemotPwrCtrl"],{6716:function(t,a,s){},6968:function(t,a,s){"use strict";var e=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"title-info-content"},[s("h3",[t._v(" "+t._s(t.title)+" ")]),s("p",{staticClass:"title-info"},[t._v(t._s(t.desc))])])},i=[],o={name:"ititle",data:function(){return{}},props:{title:{type:String,default:""},desc:{type:String,default:""}}},n=o,c=s("2877"),r=Object(c["a"])(n,e,i,!1,null,null,null);a["a"]=r.exports},c8c0:function(t,a,s){"use strict";s.r(a);var e=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"dashboard_box set-pro",staticStyle:{width:"1180px",margin:"auto"}},[s("iTitle",{attrs:{title:"远程控制与状态",desc:"要执行电源控制操作，请选择以下选项之一，然后按“执行操作”。"}}),s("div",{staticClass:"subSection"},[s("RadioGroup",{attrs:{vertical:""},model:{value:t.vertical,callback:function(a){t.vertical=a},expression:"vertical"}},[s("p",[t._v("当前状态："+t._s("on"==t.data.powerStatus?"开机":"关机"))]),s("Radio",{attrs:{label:"reset"}},[s("span",{staticClass:"ivu-radio-color"},[t._v("复位")])]),s("Radio",{attrs:{label:"off",disabled:"off"==t.data.powerStatus}},[s("span",{staticClass:"ivu-radio-color"},[t._v("关闭电源（立即）")])]),s("Radio",{attrs:{label:"soft",disabled:"off"==t.data.powerStatus}},[s("span",{staticClass:"ivu-radio-color"},[t._v("关闭电源（顺序掉电）")])]),s("Radio",{attrs:{label:"on",disabled:"on"==t.data.powerStatus}},[s("span",{staticClass:"ivu-radio-color"},[t._v("开启电源")])]),s("Radio",{attrs:{label:"cycle"}},[s("span",{staticClass:"ivu-radio-color"},[t._v("电源循环")])])],1),s("div",{staticClass:"btn-footer"},[s("Button",{attrs:{type:"primary"},on:{click:t.setAction}},[t._v("执行")])],1)],1)],1)},i=[],o=s("6968"),n=s("365c"),c={name:"remot-ctrl",components:{iTitle:o["a"]},data:function(){return{vertical:null,data:{},timer:""}},created:function(){this.getChassisStatus()},mounted:function(){this.timer=setInterval(this.getChassisStatus,1e3)},beforeDestroy:function(){var t=this;this.$once("hook:beforeDestroy",(function(){clearInterval(t.timer)}))},methods:{setAction:function(){n["a"].Get("/action/chassisPwrCtrl",{pwrAction:this.vertical}).then((function(t){})).catch((function(t){console.log(t)}))},getChassisStatus:function(){var t=this;n["a"].Get("/action/getChassisStatus",{}).then((function(a){t.data=a.data})).catch((function(t){console.log(t)}))}}},r=c,l=(s("ea0e"),s("2877")),u=Object(l["a"])(r,e,i,!1,null,"c36919ec",null);a["default"]=u.exports},ea0e:function(t,a,s){"use strict";var e=s("6716"),i=s.n(e);i.a}}]);