diff --git a/src/assets/icons/svg/empty.svg b/src/assets/icons/svg/empty.svg new file mode 100644 index 0000000..a6afeb7 --- /dev/null +++ b/src/assets/icons/svg/empty.svg @@ -0,0 +1,190 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/system/archiveStatistics/index.vue b/src/views/system/archiveStatistics/index.vue index d918424..b288810 100644 --- a/src/views/system/archiveStatistics/index.vue +++ b/src/views/system/archiveStatistics/index.vue @@ -48,9 +48,13 @@ value-format="yyyy-MM" @change="handleTypeDate" /> -
+
+
+ +

暂无数据

+
@@ -91,8 +95,12 @@ value-format="yyyy-MM" @change="handleSearchDate" /> -
- +
+ +
+
+ +

暂无数据

@@ -178,7 +186,6 @@ export default { } } .center-box{ - // width:100%; margin:20px 0; display: flex; justify-content: space-between; @@ -188,4 +195,22 @@ export default { flex: 1; } } + +.empty-main{ + display: flex; + height: calc(100% - 40px); + flex-flow: column; + justify-content: center; + align-items: center; + .empty-img{ + width: 140px; + height: 140px; + vertical-align: middle; + } + p{ + font-size: 12px; + color: #999; + margin-top: -10px; + } +} diff --git a/src/views/system/archiveStatistics/module/acrossBar.vue b/src/views/system/archiveStatistics/module/acrossBar.vue index ccd2b87..48e5120 100644 --- a/src/views/system/archiveStatistics/module/acrossBar.vue +++ b/src/views/system/archiveStatistics/module/acrossBar.vue @@ -126,7 +126,6 @@ export default { } ] } - option && this.chart.setOption(option) } } @@ -134,5 +133,4 @@ export default { diff --git a/src/views/system/archiveStatistics/module/barEcharts.vue b/src/views/system/archiveStatistics/module/barEcharts.vue index bf33ebc..69968df 100644 --- a/src/views/system/archiveStatistics/module/barEcharts.vue +++ b/src/views/system/archiveStatistics/module/barEcharts.vue @@ -144,18 +144,6 @@ export default { axisPointer: { type: 'shadow' }, - // formatter: function(params) { - // var res = "

" + echarts.format.formatTime('yyyy年M月', new Date(params[0].name)) + '

' - // for (var i = 0; i < params.length; i++) { - // res += `
- // - // ${params[i].color} - // ${params[i].seriesName} - // ${params[i].data} - //
` - // } - // return res - // }, formatter(params) { const val0 = params[0]['data'] const val1 = params[1]['data'] @@ -280,7 +268,6 @@ export default { } ] } - option && this.chart.setOption(option) } } @@ -288,5 +275,4 @@ export default { diff --git a/src/views/system/archiveStatistics/module/lineEchart.vue b/src/views/system/archiveStatistics/module/lineEchart.vue index e708aeb..412eec1 100644 --- a/src/views/system/archiveStatistics/module/lineEchart.vue +++ b/src/views/system/archiveStatistics/module/lineEchart.vue @@ -45,7 +45,6 @@ export default { }, mounted() { this.drawChart() - console.log(this.year) window.addEventListener('resize', this.__resizeHandler) }, methods: { @@ -177,5 +176,4 @@ export default {