story#6735 报警--添加跳转路径
This commit is contained in:
@ -29,7 +29,7 @@
|
|||||||
<div class="label">报警通道:</div>
|
<div class="label">报警通道:</div>
|
||||||
<div class="content content_flex">
|
<div class="content content_flex">
|
||||||
<span>{{ info.plateNumber + '_' + (info?.channel || '') }} <!--浙A7H1M2_1--></span>
|
<span>{{ info.plateNumber + '_' + (info?.channel || '') }} <!--浙A7H1M2_1--></span>
|
||||||
<span class="btn">查看监控</span>
|
<span class="btn" @click="goAlarmMonitoring">查看监控</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -110,6 +110,21 @@
|
|||||||
this.initMap();
|
this.initMap();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
goAlarmMonitoring() {
|
||||||
|
let data = {
|
||||||
|
"action":"goMonitoring",
|
||||||
|
"params": {
|
||||||
|
"code": this.code
|
||||||
|
}
|
||||||
|
};
|
||||||
|
let u = navigator.userAgent;
|
||||||
|
let isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
|
||||||
|
if(isiOS){
|
||||||
|
window.webkit.messageHandlers.nativeObject.postMessage(data);
|
||||||
|
}else {
|
||||||
|
window.android.sendMessage("code=" + this.code);
|
||||||
|
}
|
||||||
|
},
|
||||||
async operatorHandle() {
|
async operatorHandle() {
|
||||||
try {
|
try {
|
||||||
await dealWithAlarm({
|
await dealWithAlarm({
|
||||||
|
Reference in New Issue
Block a user