|
@@ -1,6 +1,9 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <div style="width: 95%; height: 250px; margin: 0 auto">
|
|
|
+ <div
|
|
|
+ style="width: 95%; height: 250px; margin: 0 auto"
|
|
|
+ v-if="courseTypeArray && courseTypeArray.length"
|
|
|
+ >
|
|
|
<!-- <img src="../../assets/dataimage/1.png" style="width:90%" /> -->
|
|
|
<div
|
|
|
id="charts_canvas"
|
|
@@ -8,6 +11,9 @@
|
|
|
style="width: 100%; height: 100%"
|
|
|
></div>
|
|
|
</div>
|
|
|
+ <div v-else style="text-align: center; height: 100%; line-height: 215px">
|
|
|
+ 暂无课程类型分析
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -74,7 +80,7 @@ export default {
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
|
- minInterval: 1 // 设置最小间隔为 1
|
|
|
+ minInterval: 1, // 设置最小间隔为 1
|
|
|
},
|
|
|
series: [
|
|
|
{
|