| | |
| | | <template> |
| | | <div class="s-basic-setting"> |
| | | <div class="s-basic-setting" @contextmenu.prevent="toOpenMenuList"> |
| | | <el-menu |
| | | :default-openeds="openeds" |
| | | background-color="#fff" |
| | |
| | | } from './api' |
| | | |
| | | import { isPort, isIPv4 } from '@/scripts/validate' |
| | | |
| | | import bus from '@/plugin/bus' |
| | | export default { |
| | | name: 'Gb28181Setting', |
| | | directives: { |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | data() { |
| | | return { |
| | | openeds: ['0'], |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | |
| | | //this.$nextTick(()=>{ |
| | | this.initGB28181Conf() |
| | | //}) |
| | |
| | | }, |
| | | 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; |
| | | } |
| | | } |
| | | } |