From 26ebef24f023a80f5be5ff27c93585f70688f6ee Mon Sep 17 00:00:00 2001 From: jinlin <jinlin> Date: 星期二, 22 十月 2024 14:45:39 +0800 Subject: [PATCH] 关于修改可靠性产品重复 --- web/src/views/modules/taskReliability/SimulatCurve.vue | 33 ++++++++++++++++++++------------- 1 files changed, 20 insertions(+), 13 deletions(-) diff --git a/web/src/views/modules/taskReliability/SimulatCurve.vue b/web/src/views/modules/taskReliability/SimulatCurve.vue index ae749f3..835cab1 100644 --- a/web/src/views/modules/taskReliability/SimulatCurve.vue +++ b/web/src/views/modules/taskReliability/SimulatCurve.vue @@ -17,7 +17,7 @@ mtbf: '', msr: '', myChart: {}, - myChartStyle: {float: "left", width: "100%", height: "600px"}, //鍥捐〃鏍峰紡 + myChartStyle: {float: "left", width: "100%", height: "680px"}, //鍥捐〃鏍峰紡 option: {} } }, @@ -36,28 +36,35 @@ } this.option = { title: { - text: "mttr:" + this.mttr + " mtbf:" + this.mtbf+ " msr:" + this.msr, + text: "mttf:" + this.mtbf + " mttr:" + this.mttr + " msr:" + this.msr, textStyle: { // 涓绘爣棰樻枃鏈牱寮弡"fontSize": 18,"fontWeight": "bolder","color": "#333"} fontFamily: 'Arial', fontSize: 30, fontStyle: 'normal', fontWeight: 'normal', }, - textAlign:'auto',//鏁翠綋锛堝寘鎷� text 鍜� subtext锛夌殑姘村钩瀵归綈 - textVerticalAlign:'auto',//鏁翠綋锛堝寘鎷� text 鍜� subtext锛夌殑鍨傜洿瀵归綈 - padding:0,//[5,10] | [ 5,6, 7, 8] ,鏍囬鍐呰竟璺� - left:'center',//'5' | '5%'锛宼itle 缁勪欢绂诲鍣ㄥ乏渚х殑璺濈 - right:'auto',//'title 缁勪欢绂诲鍣ㄥ彸渚х殑璺濈 - top:'auto',//title 缁勪欢绂诲鍣ㄤ笂渚х殑璺濈 - bottom:'auto',//title 缁勪欢绂诲鍣ㄤ笅渚х殑璺濈 + textAlign: 'auto',//鏁翠綋锛堝寘鎷� text 鍜� subtext锛夌殑姘村钩瀵归綈 + textVerticalAlign: 'auto',//鏁翠綋锛堝寘鎷� text 鍜� subtext锛夌殑鍨傜洿瀵归綈 + padding: 0,//[5,10] | [ 5,6, 7, 8] ,鏍囬鍐呰竟璺� + left: 'center',//'5' | '5%'锛宼itle 缁勪欢绂诲鍣ㄥ乏渚х殑璺濈 + right: 'auto',//'title 缁勪欢绂诲鍣ㄥ彸渚х殑璺濈 + top: '20',//title 缁勪欢绂诲鍣ㄤ笂渚х殑璺濈 + bottom: 'auto',//title 缁勪欢绂诲鍣ㄤ笅渚х殑璺濈 }, 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: "mttr:" + this.mttr + " mtbf:" + this.mtbf+ " 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