(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["RemotPwrCtrl"],{2125:function(t,a,e){"use strict";var s=e("7885"),i=e.n(s);i.a},6968:function(t,a,e){"use strict";var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"title-info-content"},[e("h3",[t._v(" "+t._s(t.title)+" ")]),e("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:""}}},r=o,n=e("2877"),c=Object(n["a"])(r,s,i,!1,null,null,null);a["a"]=c.exports},7885:function(t,a,e){},c8c0:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"dashboard_box set-pro",staticStyle:{width:"1180px",margin:"auto"}},[e("iTitle",{attrs:{title:"远程控制与状态",desc:"当前服务器电源状态如下所示。 要执行电源控制操作，请选择以下选项之一，然后按“执行操作”。"}}),e("div",{staticClass:"subSection"},[e("RadioGroup",{attrs:{vertical:""},model:{value:t.vertical,callback:function(a){t.vertical=a},expression:"vertical"}},[e("Radio",{attrs:{label:"reset"}},[e("span",{staticClass:"ivu-radio-color"},[t._v("Reset Server")])]),e("Radio",{attrs:{label:"off",disabled:"off"==t.data.powerStatus}},[e("span",{staticClass:"ivu-radio-color"},[t._v("Power Off Server - Immediate")])]),e("Radio",{attrs:{label:"soft",disabled:"off"==t.data.powerStatus}},[e("span",{staticClass:"ivu-radio-color"},[t._v("Power Off Server - Orderly Shutdown")])]),e("Radio",{attrs:{label:"on",disabled:"on"==t.data.powerStatus}},[e("span",{staticClass:"ivu-radio-color"},[t._v("Power On Server")])]),e("Radio",{attrs:{label:"cycle"}},[e("span",{staticClass:"ivu-radio-color"},[t._v("Power Cycle Server")])])],1),e("div",{staticClass:"btn-footer"},[e("Button",{attrs:{type:"primary"},on:{click:t.setAction}},[t._v("设置")])],1)],1)],1)},i=[],o=e("6968"),r=e("365c"),n={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(){r["a"].Get("/action/chassisPwrCtrl",{pwrAction:this.vertical}).then((function(t){})).catch((function(t){console.log(t)}))},getChassisStatus:function(){var t=this;r["a"].Get("/action/getChassisStatus",{}).then((function(a){t.data=a.data})).catch((function(t){console.log(t)}))}}},c=n,l=(e("2125"),e("2877")),u=Object(l["a"])(c,s,i,!1,null,"f74df57c",null);a["default"]=u.exports}}]);