|
@@ -44,6 +44,16 @@ export default defineComponent({
|
|
const initChart = () => {
|
|
const initChart = () => {
|
|
const chart = echarts.init(ref_chart.value);
|
|
const chart = echarts.init(ref_chart.value);
|
|
const option = {
|
|
const option = {
|
|
|
|
+ title: {
|
|
|
|
+ show: props.data.length === 0,
|
|
|
|
+ text: '暂无数据',
|
|
|
|
+ left: 'center',
|
|
|
|
+ top: '50%',
|
|
|
|
+ textStyle: {
|
|
|
|
+ color: '#4C4C4C',
|
|
|
|
+ fontWeight: 'normal'
|
|
|
|
+ }
|
|
|
|
+ },
|
|
tooltip: {
|
|
tooltip: {
|
|
trigger: 'item'
|
|
trigger: 'item'
|
|
},
|
|
},
|