|
@@ -12,10 +12,10 @@
|
|
|
>
|
|
|
<el-table-column type='expand'>
|
|
|
<template slot-scope='props'>
|
|
|
- <el-table :ref='`table${props.row.id}`' :data='props.row.children' @selection-change='handleSelectionChange' style='width: 100%;'>
|
|
|
+ <el-table :ref='`table${props.row.id}`' :data='props.row.children' @selection-change='handleSelectionChange' style='width:100%;'>
|
|
|
<el-table-column prop label align='right' min-width='100'></el-table-column>
|
|
|
<el-table-column type='selection' width='50'></el-table-column>
|
|
|
- <el-table-column prop label align='center' width='300'>
|
|
|
+ <el-table-column prop label align='center' width='250'>
|
|
|
<template slot-scope='{row}'>
|
|
|
<div>
|
|
|
<!-- <div style='display:flex;border:1px solid green;text-align:center'> -->
|
|
@@ -24,7 +24,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop label min-width='150' align='center'>
|
|
|
+ <el-table-column prop label min-width='130' align='center'>
|
|
|
<template slot-scope='{row}'>
|
|
|
<span>{{row.temperatureMin}}-{{row.temperatureMax}}</span>
|
|
|
</template>
|
|
@@ -32,25 +32,25 @@
|
|
|
<el-table-column prop='meanTindoor' label min-width='130' align='center'>
|
|
|
<template slot-scope='{row}'>{{(row.meanTindoor).toFixed(1)}}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop='tindoorOverrunDuration' label min-width='150' align='center'></el-table-column>
|
|
|
- <el-table-column prop='tindoorOverrunDegree' label min-width='150' align='center'>
|
|
|
+ <el-table-column prop='tindoorOverrunDuration' label min-width='130' align='center'></el-table-column>
|
|
|
+ <el-table-column prop='tindoorOverrunDegree' label min-width='130' align='center'>
|
|
|
<template slot-scope='{row}'>{{(row.tindoorOverrunDegree).toFixed(1)}}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop='longestTindoorOverrunDuration' label min-width='180' align='center'></el-table-column>
|
|
|
- <el-table-column prop='temperatureDifferenceMax' label min-width='150' align='center'>
|
|
|
+ <el-table-column prop='temperatureDifferenceMax' label min-width='130' align='center'>
|
|
|
<template slot-scope='{row}'>{{(row.temperatureDifferenceMax).toFixed(1)}}</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop='name' label min-width='100'></el-table-column>
|
|
|
- <el-table-column prop label='位置详情' width='300' align='center'></el-table-column>
|
|
|
- <el-table-column prop label='温度要求范围(℃)' min-width='150' align='center'></el-table-column>
|
|
|
+ <el-table-column prop label='位置详情' width='250' align='center'></el-table-column>
|
|
|
+ <el-table-column prop label='温度要求范围(℃)' min-width='130' align='center'></el-table-column>
|
|
|
<el-table-column prop label='平均温度(℃)' min-width='130' align='center'></el-table-column>
|
|
|
- <el-table-column prop label='累计超限时长(分钟)' min-width='150' align='center'></el-table-column>
|
|
|
- <el-table-column prop label='平均超限温度(℃)' min-width='150' align='center'></el-table-column>
|
|
|
+ <el-table-column prop label='累计超限时长(分钟)' min-width='130' align='center'></el-table-column>
|
|
|
+ <el-table-column prop label='平均超限温度(℃)' min-width='130' align='center'></el-table-column>
|
|
|
<el-table-column prop label='连续超限最大时长(分钟)' min-width='180' align='center'></el-table-column>
|
|
|
- <el-table-column prop label='最大超限程度(℃)' min-width='150' align='center'></el-table-column>
|
|
|
+ <el-table-column prop label='最大超限程度(℃)' min-width='130' align='center'></el-table-column>
|
|
|
</el-table>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -91,10 +91,9 @@ export default {
|
|
|
this.dataList.forEach(i => {
|
|
|
i.children.forEach(row => {
|
|
|
if (!row.isSatisfy) {
|
|
|
- if(this.$refs[`table${i.id}`]){
|
|
|
- this.$refs[`table${i.id}`].toggleRowSelection(row, true)
|
|
|
+ if (this.$refs[`table${i.id}`]) {
|
|
|
+ this.$refs[`table${i.id}`].toggleRowSelection(row, true)
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
})
|
|
@@ -103,13 +102,13 @@ export default {
|
|
|
this.selected = []
|
|
|
this.dataList.forEach(i => {
|
|
|
i.children.forEach(row => {
|
|
|
- if(this.$refs[`table${i.id}`]){
|
|
|
- this.selected = this.selected.concat(this.$refs[`table${i.id}`].selection)
|
|
|
+ if (this.$refs[`table${i.id}`]) {
|
|
|
+ this.selected = this.selected.concat(this.$refs[`table${i.id}`].selection)
|
|
|
}
|
|
|
//this.selected = this.selected.concat(this.$refs[`table${i.id}`].selection)
|
|
|
})
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
let obj = {}
|
|
|
let peon = this.selected.reduce((cur, next) => {
|
|
|
obj[next.id] ? '' : (obj[next.id] = true && cur.push(next))
|