|
@@ -46,7 +46,13 @@
|
|
|
<el-table-column label="数据源" align="right" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">{{ scope.row.Datasource }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="LocationFlag" label="位置标签" align="right" show-overflow-tooltip></el-table-column>
|
|
|
+ <el-table-column label="位置标签" align="right">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tooltip :content="scope.row.LocationFlag.toString()" placement="top">
|
|
|
+ <span>{{scope.row.LocationFlag.toString()}}</span>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="SubTypeName" label="设备类型关键字" align="right" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column prop="EquipmentMark" label="设备标识" show-overflow-tooltip align="right" width="200" class-name="bgf5"></el-table-column>
|
|
|
<el-table-column type="selection" width="35" class-name="bgf5"></el-table-column>
|
|
@@ -317,11 +323,17 @@ export default {
|
|
|
//查询左侧列表
|
|
|
queryLeftTable() {
|
|
|
this.lPage.pageNumber = 1;
|
|
|
+ if (this.$refs.lTableBody && this.$refs.lTableBody.bodyWrapper) {
|
|
|
+ this.$refs.lTableBody.bodyWrapper.scrollTop = 0
|
|
|
+ }
|
|
|
this.getLeftData();
|
|
|
},
|
|
|
//查询右侧列表
|
|
|
queryRightTable() {
|
|
|
this.rPage.pageNumber = 1;
|
|
|
+ if (this.$refs.rTableBody && this.$refs.rTableBody.bodyWrapper) {
|
|
|
+ this.$refs.rTableBody.bodyWrapper.scrollTop = 0
|
|
|
+ }
|
|
|
this.getRightData();
|
|
|
},
|
|
|
//获取待关联点位-左侧
|
|
@@ -362,7 +374,7 @@ export default {
|
|
|
PageSize: this.rPage.pageSize,
|
|
|
TypeNameList: [this.typeName]
|
|
|
};
|
|
|
- //处理查询条件(目前只是单个查,需后台支持)
|
|
|
+ //处理查询条件
|
|
|
if (this.form.EquipLocalName && this.form.EquipLocalName.length) {
|
|
|
param.EquipLocalName = this.form.EquipLocalName;
|
|
|
}
|
|
@@ -381,6 +393,12 @@ export default {
|
|
|
if (this.form.locationVal.length > 3) {
|
|
|
param.RoomLocalName = this.form.locationVal[3];
|
|
|
}
|
|
|
+ if (!this.form.locationVal.length) {
|
|
|
+ delete param.BuildLocalName
|
|
|
+ delete param.FloorLocalName
|
|
|
+ delete param.SpaceType
|
|
|
+ delete param.RoomLocalName
|
|
|
+ }
|
|
|
this.rTableLoading = true;
|
|
|
dynamicPendingobjs(param, res => {
|
|
|
this.rPage.total = res.Total;
|