完成008A功能开发
This commit is contained in:
@ -40,7 +40,7 @@
|
||||
MsgInfo
|
||||
} from '@/utils/MsgPops.js'
|
||||
import Common from '@/utils/Common.js';
|
||||
|
||||
import api from '@/api/670/HBY670.js';
|
||||
|
||||
var these = null;
|
||||
var eventChannel = null;
|
||||
@ -67,7 +67,8 @@
|
||||
longitude: null,
|
||||
alarmStatus: null,
|
||||
detailPageUrl: "",
|
||||
showConfirm: false
|
||||
showConfirm: false,
|
||||
sosSmsMsg:null
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -101,11 +102,24 @@
|
||||
if(data.sosSmsMsg){
|
||||
this.txt=data.sosSmsMsg;
|
||||
}
|
||||
this.init();
|
||||
});
|
||||
|
||||
|
||||
},
|
||||
methods: {
|
||||
init(){
|
||||
api.getDetail(this.device.id).then(res => {
|
||||
|
||||
if (res && res.code == 200) {
|
||||
let data = res.data;
|
||||
if(data.length){
|
||||
data=data[0];
|
||||
}
|
||||
this.txt=data.sosSmsMsg;
|
||||
}
|
||||
});
|
||||
},
|
||||
copyTo(item, index) {
|
||||
this.txt = item;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user