From a8230f1ab02069431738bd72f36ab95a0ace01ae Mon Sep 17 00:00:00 2001
From: xyc <jc_xiong@hotmail.com>
Date: 星期二, 06 八月 2024 15:22:22 +0800
Subject: [PATCH] 修改仿真后台
---
web/src/views/modules/taskReliability/SimulatCurve.vue | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/web/src/views/modules/taskReliability/SimulatCurve.vue b/web/src/views/modules/taskReliability/SimulatCurve.vue
index 128cc91..ae749f3 100644
--- a/web/src/views/modules/taskReliability/SimulatCurve.vue
+++ b/web/src/views/modules/taskReliability/SimulatCurve.vue
@@ -15,6 +15,7 @@
yDataList: [],
mttr: '',
mtbf: '',
+ msr: '',
myChart: {},
myChartStyle: {float: "left", width: "100%", height: "600px"}, //鍥捐〃鏍峰紡
option: {}
@@ -23,6 +24,7 @@
components: {},
methods: {
async initEcharts(Param) {
+ console.log(Param)
let res = await this.$http.post(`/taskReliability/SimulatAssess/getResultXML`, Param)
console.log(res.data)
if (res.data) {
@@ -30,10 +32,11 @@
this.xDataList = res.data.curveParam.xdata
this.mttr = res.data.mttr.toFixed(4)
this.mtbf = res.data.mtbf.toFixed(4)
+ this.msr = res.data.msr.toFixed(4)
}
this.option = {
title: {
- text: "mttr:" + this.mttr + " mtbf:" + this.mtbf,
+ text: "mttr:" + this.mttr + " mtbf:" + this.mtbf+ " msr:" + this.msr,
textStyle: { // 涓绘爣棰樻枃鏈牱寮弡"fontSize": 18,"fontWeight": "bolder","color": "#333"}
fontFamily: 'Arial',
fontSize: 30,
@@ -80,10 +83,11 @@
this.xDataList = res.data.curveParam.xdata
this.mttr = res.data.mttr.toFixed(4)
this.mtbf = res.data.mtbf.toFixed(4)
+ this.msr = res.data.msr.toFixed(4)
}
this.option = {
title: {
- text: "mttr:" + this.mttr + " mtbf:" + this.mtbf,
+ text: "mttr:" + this.mttr + " mtbf:" + this.mtbf+ " msr:" + this.msr,
textStyle: { // 涓绘爣棰樻枃鏈牱寮弡"fontSize": 18,"fontWeight": "bolder","color": "#333"}
fontFamily: 'Arial',
fontSize: 30,
--
Gitblit v1.9.1