tianq 3 years ago
parent
commit
95b0e4762d
  1. 8
      src/views/modules/census/census-accountList.vue
  2. 15
      src/views/modules/census/census-orgStatusList.vue

8
src/views/modules/census/census-accountList.vue

@ -539,6 +539,7 @@ export default {
// //
async iniPieChart(chartData) { async iniPieChart(chartData) {
this.$refs.pieChart.clear(); this.$refs.pieChart.clear();
// pieChart // pieChart
this.pieOption = { this.pieOption = {
grid: { grid: {
@ -588,7 +589,9 @@ export default {
lineStyle: { lineStyle: {
color: '#F3F7FD' color: '#F3F7FD'
} }
} },
min:0,
max:1000,
}, },
series: [ series: [
{ {
@ -602,6 +605,9 @@ export default {
} }
] ]
}; };
if (chartData.data.length>0) {
this.pieOption.yAxis.max=null
}
this.$refs.pieChart.setOption(this.pieOption); this.$refs.pieChart.setOption(this.pieOption);
}, },
handelClickMyPei(param) { handelClickMyPei(param) {

15
src/views/modules/census/census-orgStatusList.vue

@ -218,7 +218,7 @@ export default {
TableHeight: '', TableHeight: '',
pieData: {}, pieData: {},
agencyId: '', agencyId: '',
level:'', level: ''
}; };
}, },
components: { components: {
@ -227,7 +227,7 @@ export default {
computed: { computed: {
maxTableHeight() { maxTableHeight() {
this.TableHeight = this.$store.state.inIframe ? this.clientHeight - 431 + this.iframeHeigh : this.clientHeight - 431; this.TableHeight = this.$store.state.inIframe ? this.clientHeight - 431 + this.iframeHeigh : this.clientHeight - 431;
console.log("this.TableHeight",this.TableHeight) console.log('this.TableHeight', this.TableHeight);
return this.TableHeight; return this.TableHeight;
}, },
@ -443,6 +443,7 @@ export default {
// //
async iniPieChart(chartData) { async iniPieChart(chartData) {
this.$refs.pieChart.clear(); this.$refs.pieChart.clear();
// pieChart // pieChart
this.pieOption = { this.pieOption = {
grid: { grid: {
@ -492,7 +493,9 @@ export default {
lineStyle: { lineStyle: {
color: '#F3F7FD' color: '#F3F7FD'
} }
} },
min: 0,
max: 1000
}, },
series: [ series: [
{ {
@ -501,11 +504,14 @@ export default {
type: 'bar', type: 'bar',
itemStyle: { itemStyle: {
color: 'rgb(33, 149, 254)', color: 'rgb(33, 149, 254)',
borderRadius: [4, 4, 0, 0], borderRadius: [4, 4, 0, 0]
} }
} }
] ]
}; };
if (chartData.data.length>0) {
this.pieOption.yAxis.max=null
}
this.$refs.pieChart.setOption(this.pieOption); this.$refs.pieChart.setOption(this.pieOption);
}, },
handelClickMyPei(param) { handelClickMyPei(param) {
@ -604,5 +610,4 @@ export default {
border-radius: 6px; border-radius: 6px;
color: #fff; color: #fff;
} }
</style> </style>

Loading…
Cancel
Save