| | |
| | | }, |
| | | components: {}, |
| | | methods: { |
| | | initEcharts(taskId, samplPeriod) { |
| | | initEcharts(id,taskId, samplPeriod) { |
| | | this.option = { |
| | | title: { |
| | | text: '', |
| | |
| | | } |
| | | ] |
| | | }; |
| | | this.getEchart(taskId, samplPeriod) |
| | | |
| | | this.getEchart(id,taskId, samplPeriod) |
| | | }, |
| | | async getEchart(taskId, samplPeriod) { |
| | | async getEchart(id,taskId, samplPeriod) { |
| | | let task = await this.$http.get(`/taskReliability/Task/${taskId}`) |
| | | samplPeriod = samplPeriod / 60 |
| | | let i = 0 |
| | |
| | | this.series[0].data.push(task.taskDuration); |
| | | } |
| | | |
| | | let res = await this.$http.get(`/taskReliability/SimulatAssess/${id}`) |
| | | |
| | | |
| | | |
| | | this.myChart = echarts.init(document.getElementById("mychart")); |