| | |
| | | yDataList: [], |
| | | mttr: '', |
| | | mtbf: '', |
| | | msr: '', |
| | | myChart: {}, |
| | | myChartStyle: {float: "left", width: "100%", height: "600px"}, //图表样式 |
| | | option: {} |
| | |
| | | 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) { |
| | |
| | | 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, |
| | |
| | | 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, |