修改测试问题
This commit is contained in:
@@ -96,8 +96,8 @@ export default {
|
||||
return {
|
||||
sections: SECTIONS,
|
||||
phaseColors: [
|
||||
{ name: 'A相', color: '#F1B22E' },
|
||||
{ name: 'B相', color: '#2BA471' },
|
||||
{ name: 'A相', color: '#DAA520' },
|
||||
{ name: 'B相', color: '#2E8B57' },
|
||||
{ name: 'C相', color: '#D54941' },
|
||||
],
|
||||
renderData: {
|
||||
@@ -304,7 +304,7 @@ export default {
|
||||
}
|
||||
|
||||
.phase-value-vertical {
|
||||
font-size: 28rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
||||
@@ -83,8 +83,8 @@ export default {
|
||||
return {
|
||||
sections: SECTIONS,
|
||||
phaseColors: [
|
||||
{ name: 'A相', color: '#F1B22E' },
|
||||
{ name: 'B相', color: '#2BA471' },
|
||||
{ name: 'A相', color: '#DAA520' },
|
||||
{ name: 'B相', color: '#2E8B57' },
|
||||
{ name: 'C相', color: '#D54941' },
|
||||
],
|
||||
renderData: {
|
||||
@@ -173,9 +173,9 @@ export default {
|
||||
if (Number.isNaN(num)) return value
|
||||
if (divide) {
|
||||
// return (num / divide).toFixed(2)
|
||||
return num != 0 ? (num / divide).toFixed(2) : num
|
||||
return num != 0 ? (num / divide).toFixed(2) : num.toFixed(2)
|
||||
}
|
||||
return num
|
||||
return num.toFixed(2)
|
||||
},
|
||||
chunkedChildren(children) {
|
||||
const result = []
|
||||
@@ -290,7 +290,7 @@ export default {
|
||||
}
|
||||
|
||||
.phase-value-vertical {
|
||||
font-size: 28rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<view class="xieBo">
|
||||
<view >
|
||||
<uni-load-more status="loading" v-if="loading"></uni-load-more>
|
||||
|
||||
<view v-else>
|
||||
<view v-else class="xieBo">
|
||||
<div class="header-form">
|
||||
<uni-data-select v-model="parity" :localdata="parityOption" @change="initEcharts" style="flex: 1"
|
||||
:clear="false"></uni-data-select>
|
||||
|
||||
@@ -692,7 +692,7 @@ export default {
|
||||
z-index: 2;
|
||||
text-align: center;
|
||||
color: #111;
|
||||
width: 150rpx;
|
||||
width: 180rpx;
|
||||
font-size: 16rpx;
|
||||
opacity: 0.8;
|
||||
|
||||
|
||||
@@ -664,4 +664,19 @@ export default {
|
||||
left: -9999px;
|
||||
width: 375px;
|
||||
}
|
||||
</style>
|
||||
|
||||
/deep/ .uni-select__input-text {
|
||||
width: 170px !important;
|
||||
}
|
||||
|
||||
/deep/ .uni-select__selector-item {
|
||||
uni-text {
|
||||
white-space: nowrap !important;
|
||||
/* 强制不换行 */
|
||||
overflow: hidden !important;
|
||||
/* 溢出内容隐藏 */
|
||||
text-overflow: ellipsis !important;
|
||||
/* 溢出部分显示省略号 */
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -144,8 +144,8 @@ export default {
|
||||
return {
|
||||
loading: true,
|
||||
phaseColors: [
|
||||
{ name: 'A相', color: '#F1B22E' },
|
||||
{ name: 'B相', color: '#2BA471' },
|
||||
{ name: 'A相', color: '#DAA520' },
|
||||
{ name: 'B相', color: '#2E8B57' },
|
||||
{ name: 'C相', color: '#D54941' },
|
||||
],
|
||||
deviceInfo: {},
|
||||
@@ -157,7 +157,7 @@ export default {
|
||||
echartsDataV2: {},
|
||||
echartsDataV3: {},
|
||||
echartsDataA1: {},
|
||||
echartsDataA2: {},
|
||||
echartsDataA2: {},
|
||||
echartsDataA3: {},
|
||||
// 图表实例,用于后续操作
|
||||
echart0: null,
|
||||
@@ -185,8 +185,8 @@ export default {
|
||||
{ name: '电压总谐波畸变率(%)', A: '-', B: '-', C: '-' },
|
||||
],
|
||||
phaseColors: [
|
||||
{ name: 'A相', color: '#F1B22E' },
|
||||
{ name: 'B相', color: '#2BA471' },
|
||||
{ name: 'A相', color: '#DAA520' },
|
||||
{ name: 'B相', color: '#2E8B57' },
|
||||
{ name: 'C相', color: '#D54941' },
|
||||
],
|
||||
disabled: false,
|
||||
@@ -1126,7 +1126,7 @@ export default {
|
||||
}
|
||||
|
||||
.phase-value-vertical {
|
||||
font-size: 28rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user