修改 冀北 台账树问题

This commit is contained in:
GGJ
2024-09-09 11:15:24 +08:00
parent 9bfb30a197
commit d9bcec8ea0
6 changed files with 152 additions and 108 deletions

View File

@@ -1,5 +1,5 @@
<template>
<el-dialog v-model="dialogVisible" :title="title" width="50%" draggable>
<el-dialog v-model="dialogVisible" :title="title" width="1200" draggable>
<vxe-table v-bind="defaultAttribute" ref="vxeRef" height="500px" :data="tableData">
<vxe-colgroup field="anotherName" title="指标" width="180" />
<!-- <vxe-colgroup field="unit" title="单位" /> -->
@@ -7,21 +7,21 @@
<vxe-column field="minphaseA" title="A">
<template #default="{ row }">
<span :style="{ color: row.limit < row.minphaseA ? 'red' : '' }">
{{ row.minphaseA }}
{{ row.minphaseA || '/' }}
</span>
</template>
</vxe-column>
<vxe-column field="minphaseB" title="B">
<template #default="{ row }">
<span :style="{ color: row.limit < row.minphaseB ? 'red' : '' }">
{{ row.minphaseB }}
{{ row.minphaseB || '/' }}
</span>
</template>
</vxe-column>
<vxe-column field="minphaseC" title="C">
<template #default="{ row }">
<span :style="{ color: row.limit < row.minphaseC ? 'red' : '' }">
{{ row.minphaseC }}
{{ row.minphaseC || '/' }}
</span>
</template>
</vxe-column>
@@ -30,21 +30,21 @@
<vxe-column field="maxphaseA" title="A">
<template #default="{ row }">
<span :style="{ color: row.limit < row.maxphaseA ? 'red' : '' }">
{{ row.maxphaseA }}
{{ row.maxphaseA || '/' }}
</span>
</template>
</vxe-column>
<vxe-column field="maxphaseB" title="B">
<template #default="{ row }">
<span :style="{ color: row.limit < row.maxphaseB ? 'red' : '' }">
{{ row.maxphaseB }}
{{ row.maxphaseB || '/' }}
</span>
</template>
</vxe-column>
<vxe-column field="maxphaseC" title="C">
<template #default="{ row }">
<span :style="{ color: row.limit < row.maxphaseC ? 'red' : '' }">
{{ row.maxphaseC }}
{{ row.maxphaseC || '/' }}
</span>
</template>
</vxe-column>
@@ -53,21 +53,21 @@
<vxe-column field="avgphaseA" title="A">
<template #default="{ row }">
<span :style="{ color: row.limit < row.avgphaseA ? 'red' : '' }">
{{ row.avgphaseA }}
{{ row.avgphaseA || '/' }}
</span>
</template>
</vxe-column>
<vxe-column field="avgphaseB" title="B">
<template #default="{ row }">
<span :style="{ color: row.limit < row.avgphaseB ? 'red' : '' }">
{{ row.avgphaseB }}
{{ row.avgphaseB || '/' }}
</span>
</template>
</vxe-column>
<vxe-column field="avgphaseC" title="C">
<template #default="{ row }">
<span :style="{ color: row.limit < row.avgphaseC ? 'red' : '' }">
{{ row.avgphaseC }}
{{ row.avgphaseC || '/' }}
</span>
</template>
</vxe-column>
@@ -76,27 +76,27 @@
<vxe-column field="cp95PhaseA" title="A">
<template #default="{ row }">
<span :style="{ color: row.limit < row.cp95PhaseA ? 'red' : '' }">
{{ row.cp95PhaseA }}
{{ row.cp95PhaseA || '/' }}
</span>
</template>
</vxe-column>
<vxe-column field="cp95PhaseB" title="B">
<template #default="{ row }">
<span :style="{ color: row.limit < row.cp95PhaseB ? 'red' : '' }">
{{ row.cp95PhaseB }}
{{ row.cp95PhaseB || '/' }}
</span>
</template>
</vxe-column>
<vxe-column field="cp95PhaseC" title="C">
<template #default="{ row }">
<span :style="{ color: row.limit < row.cp95PhaseC ? 'red' : '' }">
{{ row.cp95PhaseC }}
{{ row.cp95PhaseC || '/' }}
</span>
</template>
</vxe-column>
</vxe-colgroup>
<vxe-column field="limit" title="国限值" />
<vxe-column field="limit" title="国限值" />
</vxe-table>
</el-dialog>
</template>