|
@@ -16,7 +16,7 @@
|
|
|
<span class="span2" :style="xinfa.color">{{xinfa.text}}</span>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
- <el-col class="module2" v-if="xinfa.sbState">
|
|
|
+ <el-col class="module2" >
|
|
|
<div class="title">设备控制:</div>
|
|
|
<div class="wrap">
|
|
|
<el-button type="success" round size="mini" class="open" @click="xinfaSwitch('open')">唤醒</el-button>
|
|
@@ -30,6 +30,7 @@
|
|
|
<script>
|
|
|
import axios from 'axios'
|
|
|
import { xinfaToken } from "@/plugins/api"
|
|
|
+import { Message } from 'element-ui'
|
|
|
export default {
|
|
|
props:['resInfo'],
|
|
|
data() {
|
|
@@ -136,15 +137,13 @@ export default {
|
|
|
}).then(res =>{
|
|
|
if(res.data.result =="success"){
|
|
|
if(e == "open"){
|
|
|
- this.$xinfa({
|
|
|
- showClose: true,
|
|
|
- xinfa: '设备唤醒成功',
|
|
|
+ Message({
|
|
|
+ message:"设备唤醒成功",
|
|
|
type: 'success'
|
|
|
});
|
|
|
}else{
|
|
|
- this.$xinfa({
|
|
|
- showClose: true,
|
|
|
- xinfa: '设备已进入休眠状态',
|
|
|
+ Message({
|
|
|
+ message:"设备已进入休眠状态",
|
|
|
type: 'success'
|
|
|
});
|
|
|
}
|