From f770e36d5ec735f53df298445a6940daa20d0bfa Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期一, 18 十一月 2024 11:12:05 +0800
Subject: [PATCH] 修复bug:1)一键排版时不要自动保存; 2)无论设备数量多少,deviceNo统一改成从1开始。
---
web/src/views/modules/taskReliability/SimulatCurve.vue | 17 ++++++++++++-----
1 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/web/src/views/modules/taskReliability/SimulatCurve.vue b/web/src/views/modules/taskReliability/SimulatCurve.vue
index 1ca6d67..835cab1 100644
--- a/web/src/views/modules/taskReliability/SimulatCurve.vue
+++ b/web/src/views/modules/taskReliability/SimulatCurve.vue
@@ -36,7 +36,7 @@
}
this.option = {
title: {
- text: "mtbf:" + this.mtbf + " mttr:" + this.mttr + " msr:" + this.msr,
+ text: "mttf:" + this.mtbf + " mttr:" + this.mttr + " msr:" + this.msr,
textStyle: { // 涓绘爣棰樻枃鏈牱寮弡"fontSize": 18,"fontWeight": "bolder","color": "#333"}
fontFamily: 'Arial',
fontSize: 30,
@@ -53,11 +53,18 @@
},
xAxis: {
data: this.xDataList,
- name: '浠跨湡鎬绘椂闀�'
+ name: '浠跨湡鎬绘椂闀�',
+ type: 'category',
+ axisLabel: {
+ formatter: function(value) {
+ // 灏� X 杞村埢搴﹀�兼牸寮忓寲涓轰繚鐣欎袱浣嶅皬鏁扮殑瀛楃涓�
+ return parseFloat(value).toFixed(2);
+ }
+ }
},
yAxis: {
-
- name: '',
+ type:"value",
+ name: '鍙潬搴�',
},
series: [
{
@@ -87,7 +94,7 @@
}
this.option = {
title: {
- text: "mtbf:" + this.mtbf + " mttr:" + this.mttr + " msr:" + this.msr,
+ text: "mttf:" + this.mtbf + " mttr:" + this.mttr + " msr:" + this.msr,
textStyle: { // 涓绘爣棰樻枃鏈牱寮弡"fontSize": 18,"fontWeight": "bolder","color": "#333"}
fontFamily: 'Arial',
fontSize: 30,
--
Gitblit v1.9.1