@@ -1139,6 +1139,13 @@ export default {
// console.log(row)
this.bjClick(row);
},
+ tableContext(row,column, event){
+ event.preventDefault(); // 阻止默认菜单
+ const routerUrl = this.$router.resolve({ path: '/equipment/index', query: {code: row.code } });
+ window.open(routerUrl.href, "_blank");
+ // this.dialogVisible = true
+ // console.log(row)
+ },
// 点击查询
inquireHandle() {
this.getSblb();
diff --git a/src/components/monitoring/electricity.vue b/src/components/monitoring/electricity.vue
index eaebc79..4ab6f48 100644
--- a/src/components/monitoring/electricity.vue
+++ b/src/components/monitoring/electricity.vue
@@ -280,12 +280,16 @@
-

-
设备列表
+
+

+
设备列表
+
+
+
更多
-
-
+
+
+ 设备类型:电力
+
+
通讯地址
+
IP地址:192.168.20.101
+
端口号:502
+
数据偏移量:12
+
+
+
设备编码
+
模型:业务区
+
楼栋:1号楼
+
楼层:01
+
+
+
基础配置
+
编码:10100000001
+
名称:1号楼B1
+
简称:净水器
+
使用时间:净水器
+
具体位置:WH2
+
固定资产编号:
+
维保人:
+
维保电话:
+
维保时间:
+
+
+
@@ -412,6 +452,7 @@ export default {
},
data() {
return {
+ dialogVisible:false,
current: 1, //当前页
size: 5, //每页数量
total: 14, //总条目数
@@ -457,12 +498,13 @@ export default {
},
mounted() {
this.getNavigationMap();
- let dom = document.getElementById('eletric_box');
- dom.addEventListener('contextmenu', (event)=> {
- event.preventDefault(); // 阻止默认菜单
- const routerUrl = this.$router.resolve({ path: '/equipment/index', query: { classCode: '0100' } });
- window.open(routerUrl.href, "_blank");
- });
+ // let dom = document.getElementById('eletric_box');
+ // dom.addEventListener('contextmenu', (event)=> {
+ // console.log(event)
+ // event.preventDefault(); // 阻止默认菜单
+ // // const routerUrl = this.$router.resolve({ path: '/equipment/index', query: { classCode: '0100' } });
+ // // window.open(routerUrl.href, "_blank");
+ // });
},
watch: {
bimModel: {
@@ -648,6 +690,11 @@ export default {
},
},
methods: {
+ // 点击更多按钮
+ clickMore(){
+ const routerUrl = this.$router.resolve({ path: '/equipment/index', query: { classCode: '0100' } });
+ window.open(routerUrl.href, "_blank");
+ },
//确认告警 - 重新查询告警列表
doCancelWarn(item) {
getCancelWarn(item.id).then((res) => {
@@ -710,6 +757,13 @@ export default {
tableClick(row, column, event) {
this.bjClick(row);
},
+ tableContext(row,column, event){
+ event.preventDefault(); // 阻止默认菜单
+ const routerUrl = this.$router.resolve({ path: '/equipment/index', query: {code: row.code } });
+ window.open(routerUrl.href, "_blank");
+ // this.dialogVisible = true
+ // console.log(row)
+ },
// 添加标签
addLabel(objectId, name, type, location, dataNum) {
// 构件id/设备名称/设备状态/设备位置/累计电量
@@ -1971,6 +2025,8 @@ export default {
color: #fff;
font-size: 15px;
font-weight: bold;
+ display: flex;
+ justify-content: space-between;
img {
display: block;
diff --git a/src/components/monitoring/firefighting.vue b/src/components/monitoring/firefighting.vue
index 9cc1f8b..31f12d0 100644
--- a/src/components/monitoring/firefighting.vue
+++ b/src/components/monitoring/firefighting.vue
@@ -154,7 +154,7 @@
设备列表
-
@@ -919,6 +919,13 @@ export default {
// console.log(row)
this.bjClick(row);
},
+ tableContext(row,column, event){
+ event.preventDefault(); // 阻止默认菜单
+ const routerUrl = this.$router.resolve({ path: '/equipment/index', query: {code: row.code } });
+ window.open(routerUrl.href, "_blank");
+ // this.dialogVisible = true
+ // console.log(row)
+ },
chooseFire() {
if (this.bimModel == 1) {
if (this.towers != null) {
diff --git a/src/components/monitoring/lift.vue b/src/components/monitoring/lift.vue
index b76cf97..153230a 100644
--- a/src/components/monitoring/lift.vue
+++ b/src/components/monitoring/lift.vue
@@ -92,7 +92,7 @@
设备列表
-
@@ -346,6 +346,13 @@ export default {
bfHelper.clearComponent();
},
methods: {
+ tableContext(row,column, event){
+ event.preventDefault(); // 阻止默认菜单
+ const routerUrl = this.$router.resolve({ path: '/equipment/index', query: {code: row.code } });
+ window.open(routerUrl.href, "_blank");
+ // this.dialogVisible = true
+ // console.log(row)
+ },
//确认告警 - 重新查询告警列表
doCancelWarn(item) {
getCancelWarn(item.id).then((res) => {
diff --git a/src/components/monitoring/light.vue b/src/components/monitoring/light.vue
index 38c89b7..634cc00 100644
--- a/src/components/monitoring/light.vue
+++ b/src/components/monitoring/light.vue
@@ -158,7 +158,7 @@
+ @click="openTotal" />

@@ -200,7 +200,7 @@