|
@@ -126,31 +126,73 @@
|
|
|
<div class="content">
|
|
|
<div class="chart">
|
|
|
<div class="title">加速度变化曲线</div>
|
|
|
- <line-chart id="taskInfoLineA"></line-chart>
|
|
|
+ <!-- v-show="yListA.length > 0" -->
|
|
|
+ <line-chart-task-info
|
|
|
+ id="taskInfoLineA"
|
|
|
+ :xList="xList"
|
|
|
+ :yList="yListA"
|
|
|
+ yUnit="m/s²"
|
|
|
+ ></line-chart-task-info>
|
|
|
</div>
|
|
|
<div class="chart">
|
|
|
<div class="title">距车道中心线距离变化曲线</div>
|
|
|
- <line-chart id="taskInfoLineB"></line-chart>
|
|
|
+ <!-- v-if="yListB.length > 0" -->
|
|
|
+ <line-chart-task-info
|
|
|
+ id="taskInfoLineB"
|
|
|
+ :xList="xList"
|
|
|
+ :yList="yListB"
|
|
|
+ yUnit="m"
|
|
|
+ ></line-chart-task-info>
|
|
|
</div>
|
|
|
<div class="chart">
|
|
|
<div class="title">刹车变化曲线</div>
|
|
|
- <line-chart id="taskInfoLineC"></line-chart>
|
|
|
+ <!-- v-if="yListC.length > 0" -->
|
|
|
+ <line-chart-task-info
|
|
|
+ id="taskInfoLineC"
|
|
|
+ :xList="xList"
|
|
|
+ :yList="yListC"
|
|
|
+ yUnit="百分比"
|
|
|
+ ></line-chart-task-info>
|
|
|
</div>
|
|
|
<div class="chart">
|
|
|
<div class="title">方向盘转角变化曲线</div>
|
|
|
- <line-chart id="taskInfoLineD"></line-chart>
|
|
|
+ <!-- v-if="yListD.length > 0" -->
|
|
|
+ <line-chart-task-info
|
|
|
+ id="taskInfoLineD"
|
|
|
+ :xList="xList"
|
|
|
+ :yList="yListD"
|
|
|
+ yUnit="°"
|
|
|
+ ></line-chart-task-info>
|
|
|
</div>
|
|
|
<div class="chart">
|
|
|
<div class="title">油门变化曲线</div>
|
|
|
- <line-chart id="taskInfoLineE"></line-chart>
|
|
|
+ <!-- v-if="yListE.length > 0" -->
|
|
|
+ <line-chart-task-info
|
|
|
+ id="taskInfoLineE"
|
|
|
+ :xList="xList"
|
|
|
+ :yList="yListE"
|
|
|
+ yUnit="百分比"
|
|
|
+ ></line-chart-task-info>
|
|
|
</div>
|
|
|
<div class="chart">
|
|
|
<div class="title">横摆角速度变化曲线</div>
|
|
|
- <line-chart id="taskInfoLineF"></line-chart>
|
|
|
+ <!-- v-if="yListF.length > 0" -->
|
|
|
+ <line-chart-task-info
|
|
|
+ id="taskInfoLineF"
|
|
|
+ :xList="xList"
|
|
|
+ :yList="yListF"
|
|
|
+ yUnit="°/s"
|
|
|
+ ></line-chart-task-info>
|
|
|
</div>
|
|
|
<div class="chart">
|
|
|
<div class="title">速度变化曲线</div>
|
|
|
- <line-chart id="taskInfoLineG"></line-chart>
|
|
|
+ <!-- v-if="yListG.length > 0" -->
|
|
|
+ <line-chart-task-info
|
|
|
+ id="taskInfoLineG"
|
|
|
+ :xList="xList"
|
|
|
+ :yList="yListG"
|
|
|
+ yUnit="m/s"
|
|
|
+ ></line-chart-task-info>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -160,11 +202,11 @@
|
|
|
|
|
|
<script>
|
|
|
import tableList from "@/components/grid/TableList";
|
|
|
-import lineChart from "@/components/echarts/lineChart";
|
|
|
+import lineChartTaskInfo from "@/components/echarts/lineChartTaskInfo";
|
|
|
|
|
|
export default {
|
|
|
name: "taskInfo", // 任务详情
|
|
|
- components: { tableList, lineChart },
|
|
|
+ components: { tableList, lineChartTaskInfo },
|
|
|
data() {
|
|
|
return {
|
|
|
// id: "",
|
|
@@ -231,6 +273,14 @@ export default {
|
|
|
],
|
|
|
param: {},
|
|
|
},
|
|
|
+ xList: [],
|
|
|
+ yListA: [],
|
|
|
+ yListB: [],
|
|
|
+ yListC: [],
|
|
|
+ yListD: [],
|
|
|
+ yListE: [],
|
|
|
+ yListF: [],
|
|
|
+ yListG: [],
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -255,6 +305,16 @@ export default {
|
|
|
}).then((res) => {
|
|
|
if (res.code == 200 && res.info) {
|
|
|
this.info = res.info;
|
|
|
+ this.xList = res.info.curveData.time;
|
|
|
+
|
|
|
+
|
|
|
+ this.yListA = res.info.curveData.acceleration;
|
|
|
+ this.yListB = res.info.curveData.lane_offset;
|
|
|
+ this.yListC = res.info.curveData.brake;
|
|
|
+ this.yListD = res.info.curveData.steeting;
|
|
|
+ this.yListE = res.info.curveData.throttle;
|
|
|
+ this.yListF = res.info.curveData.yaw_rate;
|
|
|
+ this.yListG = res.info.curveData.velocity;
|
|
|
} else {
|
|
|
this.$message.error(res.message || "获取信息失败");
|
|
|
}
|