Commit 2ae3083e by 匡雅琴

bug修复

1 parent f8db0749
...@@ -36,7 +36,6 @@ export default { ...@@ -36,7 +36,6 @@ export default {
}, },
methods: { methods: {
drawBarLine() { drawBarLine() {
console.log(this.dataList);
this.barLineOptions = { this.barLineOptions = {
xAxis: { xAxis: {
type: 'category', type: 'category',
...@@ -44,7 +43,7 @@ export default { ...@@ -44,7 +43,7 @@ export default {
boundaryGap: true,//坐标轴两边留白 boundaryGap: true,//坐标轴两边留白
data: this.xAxisData, data: this.xAxisData,
axisLabel: { //坐标轴刻度标签的相关设置。 axisLabel: { //坐标轴刻度标签的相关设置。
interval: this.linetype == 1 ? (this.dataList.length > 10 ? 4 : 0): 0,//设置为 1,表示『隔一个标签显示一个标签』 interval: this.linetype == 1 ? (this.dataList.length > 10 ? 1 : 0): 0,//设置为 1,表示『隔一个标签显示一个标签』
// margin:15, // margin:15,
textStyle: { textStyle: {
color: '#FFFFFF', color: '#FFFFFF',
......
...@@ -121,7 +121,7 @@ ...@@ -121,7 +121,7 @@
:xAxisData="xAxisDataList"></LineCharts> :xAxisData="xAxisDataList"></LineCharts>
</div> </div>
<div v-else class="empty-box"> <div v-else class="empty-box">
<img src="../../assets/images/empty-status.png" alt=""> <img src="@/assets/images/empty-status.png" alt="">
<div>暂无里程数据</div> <div>暂无里程数据</div>
</div> </div>
</div> </div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!