|
@@ -121,7 +121,7 @@
|
|
|
<el-table-column type="selection" width="60" align="center" fixed />
|
|
|
<el-table-column label="序号" width="60" align="center" fixed>
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ (queryParams.page_index - 1) * queryParams.page_size + scope.$index + 1 }}</span>
|
|
|
+ <span>{{ (queryParams.page_index - 1) * queryParams.page_size + scope.row.index }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="boxName" label="盒子名称" align="center" width="180" show-overflow-tooltip fixed>
|
|
@@ -582,7 +582,7 @@ export default {
|
|
|
argsList: [],
|
|
|
selection: [], // 选中的数据
|
|
|
nameset: [], // 选中的项目名称集合
|
|
|
- mergeColums: ['boxName', 'runStatus', 'runMode'],
|
|
|
+ mergeColums: ['index', 'boxName', 'runStatus', 'runMode'],
|
|
|
runStatMap: define.runStatDict,
|
|
|
runModeMap: define.runModeDict,
|
|
|
connectStatMap: define.connectStatDict,
|
|
@@ -776,27 +776,27 @@ export default {
|
|
|
const newTrendCtrl = box.newTrendCtrl || [];
|
|
|
if (!newTrendCtrl.length || box.runStatus == 2) {
|
|
|
hasFilter2 = true;
|
|
|
- return true;
|
|
|
+ return false;
|
|
|
} else {
|
|
|
for (let j = 0; j < newTrendCtrl.length; j++) {
|
|
|
const dh = newTrendCtrl[j];
|
|
|
if (dh.nt_dew_point < this.extraParams.dhDewPointMin || dh.nt_dew_point > this.extraParams.dhDewPointMax) {
|
|
|
hasFilter2 = true;
|
|
|
- return true;
|
|
|
+ return false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
// 根据 换热站供水水温度 过滤盒子
|
|
|
- if (filterHexSuTemp && !hasFilter1 && hasFilter2) {
|
|
|
+ if (filterHexSuTemp && (!hasFilter1 && !hasFilter2)) {
|
|
|
const heatExchangeCtrl = box.hex || [];
|
|
|
if (!heatExchangeCtrl.length || box.runStatus == 2) {
|
|
|
- return true;
|
|
|
+ return false;
|
|
|
} else {
|
|
|
for (let j = 0; j < heatExchangeCtrl.length; j++) {
|
|
|
const hex = heatExchangeCtrl[j];
|
|
|
if (hex.hex_su_temp < this.extraParams.hexSuTempMin || hex.hex_su_temp > this.extraParams.hexSuTempMax) {
|
|
|
- return true;
|
|
|
+ return false;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -841,10 +841,11 @@ export default {
|
|
|
}
|
|
|
// 展开所有项目下的设备及单机
|
|
|
let expandNodes = expandAllNodes(pageData);
|
|
|
+ // console.log(">>> 展开后: ", expandNodes);
|
|
|
// 合并行和列
|
|
|
let dataSolve = mergeTableRows(expandNodes, this.mergeColums);
|
|
|
this.tableData = dataSolve;
|
|
|
- console.log('>>> tableData: ', this.tableData);
|
|
|
+ console.log('>>> 合并后: ', this.tableData);
|
|
|
},
|
|
|
/** 数据行合并 */
|
|
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|