|
@@ -4960,13 +4960,13 @@
|
|
|
)
|
|
|
},
|
|
|
// 重启
|
|
|
- rebootFun(data){
|
|
|
+ rebootFun(obj){
|
|
|
this.$confirm('Restart the RTU module?','Prompt', {
|
|
|
confirmButtonText: 'confirm',
|
|
|
cancelButtonText: 'cancel',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- data.rebootLoading = true;
|
|
|
+ obj.rebootLoading = true;
|
|
|
baseApi.websocket1(allUrl.websocket.wss,data=>{
|
|
|
if(data.data.status == '1'){
|
|
|
baseApi.ajax_post_ws(
|
|
@@ -4975,7 +4975,7 @@
|
|
|
username:this.username,
|
|
|
client_key:this.client_key,
|
|
|
token:this.token,
|
|
|
- lamp_id:data.id,
|
|
|
+ lamp_id:obj.id,
|
|
|
clientid:data.data.clientid,
|
|
|
},
|
|
|
this,
|
|
@@ -4988,18 +4988,18 @@
|
|
|
message:data.msg,
|
|
|
type: 'success'
|
|
|
});
|
|
|
- data.rebootLoading = false;
|
|
|
+ obj.rebootLoading = false;
|
|
|
}else{
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
message:data.msg,
|
|
|
type: 'warning'
|
|
|
});
|
|
|
- data.rebootLoading = false;
|
|
|
+ obj.rebootLoading = false;
|
|
|
}
|
|
|
}
|
|
|
},() => {
|
|
|
- this.loading.setLoadFun = false;
|
|
|
+ obj.rebootLoading = false;
|
|
|
},this)
|
|
|
}).catch(() => {
|
|
|
this.$message({
|
|
@@ -6562,6 +6562,15 @@
|
|
|
font-size: 1rem;
|
|
|
color: rgba(163, 175, 187, 1);
|
|
|
}
|
|
|
+ .el-loading-spinner{
|
|
|
+ width: 100%;height: 100%;
|
|
|
+ top: initial;
|
|
|
+ margin-top: initial;
|
|
|
+ position:relative;
|
|
|
+ .circular{
|
|
|
+ width: 100%;height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.status{
|
|
|
display: flex;align-items: center;justify-content: center;
|