From 3300f811726041a3175784324eb2be9458e80e09 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期三, 21 十月 2020 10:37:10 +0800
Subject: [PATCH] 左侧目录树图标对齐
---
src/pages/gb28181/index/App.vue | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/src/pages/gb28181/index/App.vue b/src/pages/gb28181/index/App.vue
index 3b6935b..2bf92c4 100644
--- a/src/pages/gb28181/index/App.vue
+++ b/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"
@@ -40,6 +40,7 @@
@change="changeProvince"
size="small"
placeholder="璇烽�夋嫨鐪佷唤"
+ :disabled="gb28181.idType === 0"
>
<el-option
v-for="item in locationCity.provinceOptions"
@@ -95,6 +96,7 @@
v-model="gb28181.PublicId"
placeholder="璇疯緭鍏�"
size="small"
+ :disabled="gb28181.idType === 1"
></el-input>
</el-form-item>
@@ -200,7 +202,7 @@
} from './api'
import { isPort, isIPv4 } from '@/scripts/validate'
-
+import bus from '@/plugin/bus'
export default {
name: 'Gb28181Setting',
directives: {
@@ -210,6 +212,7 @@
}
}
},
+
data() {
return {
openeds: ['0'],
@@ -261,6 +264,7 @@
}
},
mounted() {
+
//this.$nextTick(()=>{
this.initGB28181Conf()
//})
@@ -326,6 +330,17 @@
},
menuOpen(){
+ },
+ 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;
}
}
}
--
Gitblit v1.8.0