diff --git a/src/views/modules/census/census-accountActiveList.vue b/src/views/modules/census/census-accountActiveList.vue index 16c58cc89..9987471cc 100644 --- a/src/views/modules/census/census-accountActiveList.vue +++ b/src/views/modules/census/census-accountActiveList.vue @@ -15,7 +15,7 @@ @change="handleChangeAgency" /> - + - + - + @@ -105,7 +105,7 @@ style="width: 100%" :height="maxTableHeight" > - + diff --git a/src/views/modules/census/census-accountList.vue b/src/views/modules/census/census-accountList.vue index 8b1772342..0062d99f4 100644 --- a/src/views/modules/census/census-accountList.vue +++ b/src/views/modules/census/census-accountList.vue @@ -97,7 +97,7 @@ style="width: 100%" :height="maxTableHeight" > - + @@ -130,20 +130,20 @@ @@ -250,7 +250,7 @@ export default { }, computed: { maxTableHeight() { - this.TableHeight = this.$store.state.inIframe ? this.clientHeight - 425 + this.iframeHeigh : this.clientHeight - 425; + this.TableHeight = this.$store.state.inIframe ? this.clientHeight - 431 + this.iframeHeigh : this.clientHeight - 431; return this.TableHeight; }, @@ -539,15 +539,29 @@ export default { // 获取饼状图 async iniPieChart(chartData) { this.$refs.pieChart.clear(); + // 获取pieChart配置 this.pieOption = { + grid: { + x: 50, + y: 50, + x2: 50, + y2: 50 + }, tooltip: { trigger: 'axis' }, xAxis: { type: 'category', data: chartData.name, + axisLine: { + show: true, + lineStyle: { + color: '#F3F7FD' + } + }, axisLabel: { + color: '#666666', interval: 0, interval: 0, //设置横坐标为斜 rotate: 30, //文字倾斜角度 @@ -557,8 +571,7 @@ export default { } return value; } - }, - triggerEvent: true + } }, yAxis: { type: 'value', @@ -567,18 +580,34 @@ export default { areaStyle: { color: ['#fff', '#F3F7FD'] } - } + }, + axisLabel: { + color: '#666666' + }, + axisLine: { + show: true, + lineStyle: { + color: '#F3F7FD' + } + }, + min:0, + max:1000, }, series: [ { data: chartData.data, + barWidth: 24, type: 'bar', itemStyle: { - color: 'rgb(33, 149, 254)' + color: 'rgb(33, 149, 254)', + borderRadius: [4, 4, 0, 0], } } ] }; + if (chartData.data.length>0) { + this.pieOption.yAxis.max=null + } this.$refs.pieChart.setOption(this.pieOption); }, handelClickMyPei(param) { @@ -657,8 +686,11 @@ export default { } } } +.div_table{ + padding: 30px!important; +} .div_table_title { - margin-top: 20px; + margin-top: -10px; line-height: 30px; font-size: 20px; @@ -686,4 +718,5 @@ export default { flex: 1; } } + diff --git a/src/views/modules/census/census-houseList.vue b/src/views/modules/census/census-houseList.vue index ede0515de..ecf0896c9 100644 --- a/src/views/modules/census/census-houseList.vue +++ b/src/views/modules/census/census-houseList.vue @@ -16,7 +16,7 @@ @change="handleChangeAgency" > - + 房屋用途统计
-
+
-
+
@@ -79,7 +79,7 @@
房屋状态统计
-
+
-
+
@@ -122,14 +122,14 @@ style="width: 100%;" :height="maxTableHeight" > - - - - - + + + + + - - + +