处理无效数据

master
fanluyan 1 year ago
parent 0f262b5b9d
commit b7180be51e

@ -92,10 +92,14 @@
<span v-else> - </span>
</template>
</el-table-column>
<el-table-column
prop="maxPull"
label="最大拉力(Kg)"
></el-table-column>
<el-table-column prop="maxPull" label="最大拉力(Kg)">
<template slot-scope="scope">
<span v-if="scope.row.maxPull != 65535">
{{ scope.row.maxPull }}</span
>
<span v-else> - </span>
</template>
</el-table-column>
<el-table-column
prop="maxPullWind"
label="最大拉力时风偏角(°)"
@ -104,10 +108,14 @@
prop="maxPullTilt"
label="最大拉力时倾斜角(°)"
></el-table-column>
<el-table-column
prop="minPull"
label="最小拉力(Kg)"
></el-table-column>
<el-table-column prop="minPull" label="最小拉力(Kg)">
<template slot-scope="scope">
<span v-if="scope.row.minPull != 65535">
{{ scope.row.minPull }}</span
>
<span v-else> - </span>
</template>
</el-table-column>
<el-table-column
prop="minPullWind"
label="最小拉力时风偏角(°)"
@ -127,7 +135,14 @@
<el-table-column
prop="maxWindPull"
label="最大风偏角时拉力(Kg)"
></el-table-column>
>
<template slot-scope="scope">
<span v-if="scope.row.maxWindPull != 65535">
{{ scope.row.maxWindPull }}</span
>
<span v-else> - </span>
</template>
</el-table-column>
<el-table-column
prop="minWind"
label="最小风偏角(°)"
@ -139,7 +154,14 @@
<el-table-column
prop="minWindPull"
label="最小风偏角时拉力(Kg)"
></el-table-column>
>
<template slot-scope="scope">
<span v-if="scope.row.minWindPull != 65535">
{{ scope.row.minWindPull }}</span
>
<span v-else> - </span>
</template>
</el-table-column>
</el-table>
</div>
<div class="pageNation" v-if="!echartsShow">
@ -455,24 +477,32 @@ export default {
{
name: "最大拉力",
type: "line",
data: result[i].map((item) => item.maxPull),
data: result[i].map((item) =>
item.maxPull == 65535 ? "" : item.maxPull
),
},
{
name: "最小拉力",
type: "line",
data: result[i].map((item) => item.minPull),
data: result[i].map((item) =>
item.minPull == 65535 ? "" : item.minPull
),
},
{
name: "最大风偏角时拉力",
type: "line",
data: result[i].map((item) => item.maxWindPull),
data: result[i].map((item) =>
item.maxWindPull == 65535 ? "" : item.maxWindPull
),
},
{
name: "最小风偏角时拉力",
type: "line",
data: result[i].map((item) => item.minWindPull),
data: result[i].map((item) =>
item.minWindPull == 65535 ? "" : item.minWindPull
),
},
{
name: "最大拉力时风偏角",

Loading…
Cancel
Save