提交 e4a1ece3 编写于 作者: W wwx691809

scalar review

上级 3fd413d9
...@@ -17,7 +17,8 @@ limitations under the License. ...@@ -17,7 +17,8 @@ limitations under the License.
<div class="cl-scalar-manage"> <div class="cl-scalar-manage">
<div class="scalar-bk"> <div class="scalar-bk">
<div class="cl-title cl-scalar-title"> <div class="cl-title cl-scalar-title"
v-show="originDataArr.length>0">
<div class="cl-title-left">{{$t("scalar.titleText")}}</div> <div class="cl-title-left">{{$t("scalar.titleText")}}</div>
<div class="cl-title-right"> <div class="cl-title-right">
<ScalarButton class="scalar-btn" <ScalarButton class="scalar-btn"
...@@ -33,14 +34,14 @@ limitations under the License. ...@@ -33,14 +34,14 @@ limitations under the License.
<!--operation area --> <!--operation area -->
<div class="cl-eval-operate-content" <div class="cl-eval-operate-content"
v-show="!compare"> v-show="!compare && originDataArr.length>0">
<multiselectGroupComponents ref="multiselectGroupComponents" <multiselectGroupComponents ref="multiselectGroupComponents"
:checkListArr="tagOperateList" :checkListArr="tagOperateList"
@selectedChange="tagSelectedChanged"></multiselectGroupComponents> @selectedChange="tagSelectedChanged"></multiselectGroupComponents>
</div> </div>
<!-- Slider --> <!-- Slider -->
<div class="cl-eval-slider-operate-content" <div class="cl-eval-slider-operate-content"
v-show="!compare"> v-show="!compare && originDataArr.length>0">
<div class="xaxis-title">{{$t('scalar.xAxisTitle')}}</div> <div class="xaxis-title">{{$t('scalar.xAxisTitle')}}</div>
<el-radio-group v-model="curAxisName" <el-radio-group v-model="curAxisName"
fill="#00A5A7" fill="#00A5A7"
...@@ -726,6 +727,15 @@ export default { ...@@ -726,6 +727,15 @@ export default {
), ),
); );
tempStorgeArr.forEach((item) => {
if (item.lt) {
item.lt = Number(item.lt.toFixed(2));
}
if (item.gt) {
item.gt = Number(item.gt.toFixed(2));
}
});
let pieceStr = ''; let pieceStr = '';
if (tempStorgeArr.length === 1) { if (tempStorgeArr.length === 1) {
if (tempStorgeArr[0].gt && tempStorgeArr[0].lt) { if (tempStorgeArr[0].gt && tempStorgeArr[0].lt) {
...@@ -1944,6 +1954,15 @@ export default { ...@@ -1944,6 +1954,15 @@ export default {
}); });
} }
chartPieces.forEach((item) => {
if (item.lt) {
item.lt = Number(item.lt.toFixed(2));
}
if (item.gt) {
item.gt = Number(item.gt.toFixed(2));
}
});
if (this.thresholdSwitch) { if (this.thresholdSwitch) {
this.originDataArr.forEach((sampleObject) => { this.originDataArr.forEach((sampleObject) => {
if (this.multiSelectedTagNames[sampleObject.tagName]) { if (this.multiSelectedTagNames[sampleObject.tagName]) {
...@@ -2129,6 +2148,7 @@ export default { ...@@ -2129,6 +2148,7 @@ export default {
if (!val) { if (!val) {
this.thresholdValue[1].value = ''; this.thresholdValue[1].value = '';
this.thresholdErrorMsg = ''; this.thresholdErrorMsg = '';
this.thresholdValue[1].filterCondition = this.$t('scalar.lessThan');
} }
}, },
...@@ -2144,6 +2164,7 @@ export default { ...@@ -2144,6 +2164,7 @@ export default {
this.currentSample = {}; this.currentSample = {};
this.thresholdSwitch = false; this.thresholdSwitch = false;
this.thresholdRelational = ''; this.thresholdRelational = '';
this.thresholdValue[1].filterCondition = this.$t('scalar.lessThan');
this.thresholdDialogVisible = false; this.thresholdDialogVisible = false;
}, },
}, },
...@@ -2165,6 +2186,10 @@ export default { ...@@ -2165,6 +2186,10 @@ export default {
font-weight: bold; font-weight: bold;
} }
.w261 {
width: 261px;
}
.w60 { .w60 {
width: 60px; width: 60px;
margin-left: 20px; margin-left: 20px;
...@@ -2403,20 +2428,24 @@ export default { ...@@ -2403,20 +2428,24 @@ export default {
padding-left: 5px; padding-left: 5px;
font-size: 14px; font-size: 14px;
color: #6c7280; color: #6c7280;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.chartThresholdRight { .chartThresholdRight {
flex: 1; width: 120px;
text-align: right; text-align: right;
padding-right: 10px; padding-right: 10px;
font-size: 12px; font-size: 12px;
color: #00a5a7; color: #00a5a7;
flex-shrink: 0;
span { span {
cursor: pointer;
width: 80px; width: 80px;
height: 39px; height: 39px;
display: inline-block; display: inline-block;
cursor: pointer;
} }
} }
} }
...@@ -2452,6 +2481,7 @@ export default { ...@@ -2452,6 +2481,7 @@ export default {
.image-noData { .image-noData {
width: 100%; width: 100%;
height: 450px; height: 450px;
padding-top: 200px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册