|
@@ -76,9 +76,12 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="host_temp_diff" label="温差" align="center" width="100">
|
|
<el-table-column prop="host_temp_diff" label="温差" align="center" width="100">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <span class="el-table-tag" :style="{ background: scope.row.host_temp_diff && scope.row.host_temp_diff <= 5 ? 'yellowgreen' : '' }">
|
|
|
|
- {{ fixedVal(scope.row.host_temp_diff) }}
|
|
|
|
- </span>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <span class="el-table-tag" :style="{ background: scope.row.host_temp_diff && scope.row.host_temp_diff <= 5 ? 'yellowgreen' : '' }">
|
|
|
|
+ {{ fixedVal(scope.row.host_temp_diff) }}
|
|
|
|
+ </span>
|
|
|
|
+ <i v-if="scope.row.hpCnt > scope.row.maxCnt" class="el-icon-caret-bottom ml10" @click.stop="handleClickMore(scope.row, 'host')"></i>
|
|
|
|
+ </div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -426,8 +429,21 @@ export default {
|
|
},
|
|
},
|
|
/** 数据行合并 */
|
|
/** 数据行合并 */
|
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
|
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
|
|
|
+ // 主机合并
|
|
|
|
+ if (columnIndex >= 5 && columnIndex <= 10) {
|
|
|
|
+ return { rowspan: row.hpSpanRows, colspan: 1 };
|
|
|
|
+ }
|
|
|
|
+ // 新风机
|
|
|
|
+ if (columnIndex >= 11 && columnIndex <= 16) {
|
|
|
|
+ return { rowspan: row.dhSpanRows, colspan: 1 };
|
|
|
|
+ }
|
|
|
|
+ // 换热站
|
|
|
|
+ if (columnIndex >= 17 && columnIndex <= 23) {
|
|
|
|
+ return { rowspan: row.hexSpanRows, colspan: 1 };
|
|
|
|
+ }
|
|
|
|
+ // 末端
|
|
if (columnIndex >= 24) {
|
|
if (columnIndex >= 24) {
|
|
- return { rowspan: row.spanRows, colspan: 1 };
|
|
|
|
|
|
+ return { rowspan: row.cbSpanRows, colspan: 1 };
|
|
}
|
|
}
|
|
const span = column['property'] + '-span';
|
|
const span = column['property'] + '-span';
|
|
if (row[span]) {
|
|
if (row[span]) {
|