Browse Source

人房

shibei_master
jiangyy 3 years ago
parent
commit
b3b349e43f
  1. 4
      src/assets/scss/modules/visual/houseStatic.scss
  2. 17
      src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue
  3. 4
      src/views/modules/visual/basicinfo/houseStatic/options.js
  4. 4
      src/views/modules/visual/basicinfo/houseStatic/userOptions.js

4
src/assets/scss/modules/visual/houseStatic.scss

@ -114,7 +114,7 @@
width: 100%; width: 100%;
.echart-wr{ .echart-wr{
flex-shrink: 0; flex-shrink: 0;
height: 420px; height: 380px;
width: 70%; width: 70%;
} }
.div-tip{ .div-tip{
@ -169,7 +169,7 @@
margin-top:2px; margin-top:2px;
width: 20px; width: 20px;
height: 10px; height: 10px;
background: #1B51FF; background: #ff7800;
border-radius: 4px; border-radius: 4px;
} }

17
src/views/modules/visual/basicinfo/houseStatic/houseStatic.vue

@ -262,7 +262,7 @@ export default {
ldUserRatio: '5%',// ldUserRatio: '5%',//
}, },
userColorArray: ['#1B51FF', '#00E5ED'], userColorArray: ['#ff7800', '#00E5ED'],
userPieData: [], userPieData: [],
subList: [], subList: [],
@ -285,10 +285,11 @@ export default {
methods: { methods: {
async getApiData () { async getApiData () {
this.housePieInitState = false
await this.getHousechart() this.userPieInitState = false
await this.getUserchart() this.getHousechart()
await this.getSubuserhouselist() this.getUserchart()
this.getSubuserhouselist()
this.getHousePie() this.getHousePie()
this.getUserPie() this.getUserPie()
@ -296,13 +297,13 @@ export default {
housePieInitOk (dom) { housePieInitOk (dom) {
console.log('pie准备好了', dom) console.log('pie准备好了', dom)
this.housePieChartS = dom this.housePieChartS = dom
this.housePieInitState = true // this.housePieInitState = true
}, },
userPieInitOk (dom) { userPieInitOk (dom) {
console.log('pie准备好了', dom) console.log('pie准备好了', dom)
this.userPieChartS = dom this.userPieChartS = dom
this.userPieInitState = true // this.userPieInitState = true
}, },
@ -330,6 +331,7 @@ export default {
this.houseData = {} this.houseData = {}
this.$message.error(msg); this.$message.error(msg);
} }
this.housePieInitState = true
}, },
getHousePie () { getHousePie () {
@ -411,6 +413,7 @@ export default {
this.userData = {} this.userData = {}
this.$message.error(msg); this.$message.error(msg);
} }
this.userPieInitState = true
}, },
getUserPie () { getUserPie () {

4
src/views/modules/visual/basicinfo/houseStatic/options.js

@ -1,10 +1,10 @@
export function housePieOption (_charts) { export function housePieOption (_charts) {
const center= ['50%', '200px'] const center= ['50%', '150px']
return { return {
title: { title: {
text: '0', text: '0',
top: 170, top: 120,
left: 'center', left: 'center',
textStyle: { textStyle: {
width: '100%', width: '100%',

4
src/views/modules/visual/basicinfo/houseStatic/userOptions.js

@ -1,10 +1,10 @@
export function userPieOption (_charts) { export function userPieOption (_charts) {
const center= ['50%', '200px'] const center= ['50%', '150px']
return { return {
title: { title: {
text: '0', text: '0',
top: 170, top: 120,
left: 'center', left: 'center',
textStyle: { textStyle: {
width: '100%', width: '100%',

Loading…
Cancel
Save