hanbaoshan
2020-08-24 9ab52e845dd5b20d11d4bcbd65aec56cf1d23035
src/pages/gb28181/index/App.vue
@@ -1,5 +1,5 @@
<template>
  <div class="s-basic-setting">
  <div class="s-basic-setting" @contextmenu.prevent="toOpenMenuList">
    <el-menu
      :default-openeds="openeds"
      background-color="#fff"
@@ -200,7 +200,7 @@
} from './api'
import { isPort, isIPv4 } from '@/scripts/validate'
import bus from '@/plugin/bus'
export default {
  name: 'Gb28181Setting',
  directives: {
@@ -210,6 +210,7 @@
      }
    }
  },
  data() {
    return {
      openeds: ['0'],
@@ -261,6 +262,7 @@
    }
  },
  mounted() {
    //this.$nextTick(()=>{
    this.initGB28181Conf()
    //})
@@ -329,6 +331,14 @@
    },
    menuClose(){
      
    },
    toOpenMenuList(e){
      debugger
      let t = e.clientY - this.$el.offsetTop+30;
      let l = e.clientX-this.$el.offsetLeft;
      window.parent.postMessage({source:location.href.split('/')[location.href.split('/').length-1], trigger: 'contextmenu', menuT:t, menuL:l},"*");
      return false;
    }
  }
}