|
@@ -13,14 +13,17 @@
|
|
|
<span style="float: left;">对应的工程信息化信息</span>
|
|
|
<el-link icon="el-icon-close" :underline="false" @click="visible = false"></el-link>
|
|
|
</div>
|
|
|
- <el-tabs v-model="activeName" @tab-click="handleClickTab">
|
|
|
+ <el-tabs v-model="activeName">
|
|
|
<el-tab-pane v-if="tabData.tableData.length" label="设备设施" name="equip">
|
|
|
<el-table :data="tabData.tableData" max-height="235" style="width: 100%">
|
|
|
- <el-table-column prop="id" width="80" label="设备内码" :show-overflow-tooltip='true'></el-table-column>
|
|
|
- <el-table-column prop="name" label="设备简称" width="208" :show-overflow-tooltip='true'></el-table-column>
|
|
|
- <el-table-column label="操作" width="50">
|
|
|
+ <el-table-column prop="sbjc" label="设备简称" width="180" :show-overflow-tooltip='true'></el-table-column>
|
|
|
+ <el-table-column prop="assetnum" width="80" label="设备内码" :show-overflow-tooltip='true'></el-table-column>
|
|
|
+ <el-table-column prop="sl" width="80" label="数量" :show-overflow-tooltip='true'></el-table-column>
|
|
|
+ <el-table-column prop="sb_status" width="80" label="设备状态" :show-overflow-tooltip='true'></el-table-column>
|
|
|
+ <el-table-column prop="sbglgs" width="80" label="管理归属" :show-overflow-tooltip='true'></el-table-column>
|
|
|
+ <el-table-column label="" width="60">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button @click="handleClickEquipDetail(scope.row)" type="text" size="small">查看</el-button>
|
|
|
+ <el-button @click="handleClickEquipDetail(scope.row)" type="text" size="small">台账详情</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -118,17 +121,22 @@ export default {
|
|
|
this.showBtnWell = false;
|
|
|
this.visible = false;
|
|
|
this.activeItem = null;
|
|
|
- console.log(item)
|
|
|
+ console.log("handleClickLegendItem",item)
|
|
|
if (item.data.AttachObjectIds && item.data.AttachObjectIds.length) {
|
|
|
const e = events[0];
|
|
|
+ const equipIds = [];
|
|
|
this.activeItem = item;
|
|
|
item.data.AttachObjectIds.forEach(v => {
|
|
|
if (v.type == "Image") {
|
|
|
+ // if(v.id) { equipIds.push(v.id) }
|
|
|
this.tabData.tableData.push(v);
|
|
|
} else if (v.type == "Zone") {
|
|
|
this.tabData.pointData.push(v);
|
|
|
}
|
|
|
})
|
|
|
+ // getEquipDeatil({ }).then(res => {
|
|
|
+
|
|
|
+ // })
|
|
|
this.activeName = this.tabData.tableData.length?"equip":"point";
|
|
|
this.popoverPosition.top = `${e.clientY}px`;
|
|
|
this.popoverPosition.left = `${e.clientX}px`;
|
|
@@ -145,12 +153,14 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- // 切换浮层tab
|
|
|
- handleClickTab() {
|
|
|
-
|
|
|
- },
|
|
|
// 查看浮层设备详情
|
|
|
- handleClickEquipDetail(equip) {},
|
|
|
+ handleClickEquipDetail(row) {
|
|
|
+ if (row.assetuid) {
|
|
|
+ window.open(`http://gcgl.wanda.cn/maximo/ui/?event=loadapp&value=assetdevic&uniqueid=${row.assetuid}`)
|
|
|
+ } else {
|
|
|
+ this.$message.error("数据暂无,缺少 assetuid ");
|
|
|
+ }
|
|
|
+ },
|
|
|
// 查看浮层位置详情
|
|
|
handleClickPointDeatil(point) {
|
|
|
if (point.id && this.activeItem)
|
|
@@ -583,12 +593,9 @@ export default {
|
|
|
this.getEvent()
|
|
|
},
|
|
|
created() {
|
|
|
- document.onclick = () => {
|
|
|
- if (this.visible) {
|
|
|
- debugger
|
|
|
- console.log(this.visible)
|
|
|
- }
|
|
|
- }
|
|
|
+ // document.addEventListener("mousedown", () => {
|
|
|
+ // this.visible = false;
|
|
|
+ // })
|
|
|
this.urlMsg = {
|
|
|
categoryId: this.$cookie.get('categoryId'),
|
|
|
ProjectID: this.plazaId,
|
|
@@ -670,14 +677,14 @@ a:hover {
|
|
|
height: 0;
|
|
|
}
|
|
|
.is-active {
|
|
|
- color: #fff !important;
|
|
|
- border-color: #025baa !important;
|
|
|
- background: linear-gradient(180deg, #369cf7 0%, #025baa 100%);
|
|
|
+ color: #025BAA !important;
|
|
|
+ border-color: #025BAA !important;
|
|
|
+ background: rgba(2,91,170,0.15);
|
|
|
}
|
|
|
.el-tabs__item {
|
|
|
padding: 5px 16px;
|
|
|
height: 30px;
|
|
|
- line-height: 22px;
|
|
|
+ line-height: 20px;
|
|
|
font-size: 14px;
|
|
|
font-family: MicrosoftYaHei;
|
|
|
color: rgba(31, 36, 41, 1);
|