|
|
@@ -150,7 +150,6 @@ export default {
|
|
|
onLoad(opt) {
|
|
|
this.deviceInfo.deviceId = opt.id;
|
|
|
this.deviceInfo.ccid = opt.ccid;
|
|
|
-
|
|
|
},
|
|
|
onShow(){
|
|
|
this.getInfo();
|
|
|
@@ -179,8 +178,8 @@ export default {
|
|
|
let type = data.type;
|
|
|
let real_data = data.real_data;
|
|
|
if(type == 103){
|
|
|
- self.portDetail = real_data;
|
|
|
- self.$modal.closeLoading();
|
|
|
+ self.portDetail = real_data
|
|
|
+ self.$modal.closeLoading();
|
|
|
}
|
|
|
if(type == 116){
|
|
|
self.$modal.closeLoading();
|
|
|
@@ -195,6 +194,7 @@ export default {
|
|
|
self.formatMainboardData();
|
|
|
self.$modal.closeLoading();
|
|
|
}
|
|
|
+ self.$forceUpdate();
|
|
|
console.log('收到服务器内容:' + JSON.stringify(data));
|
|
|
});
|
|
|
scriptTask.onClose(function (res) {
|
|
|
@@ -233,6 +233,7 @@ export default {
|
|
|
getInfo() {
|
|
|
this.$modal.loading("正在获取状态,请稍等...");
|
|
|
sendPortDetailCmd(this.deviceInfo).then(res => {
|
|
|
+ this.$modal.loading("正在获取状态,请稍等...");
|
|
|
this.visitTime = res.msg;
|
|
|
if(!this.visitTime){
|
|
|
this.$modal.msg("请重新进入页面");
|