|
|
|
@ -48,8 +48,8 @@ |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="12"> |
|
|
|
<div class="div_table_title">房屋用途统计</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<div class="flex"> |
|
|
|
<div class="width1"> |
|
|
|
<div :style="'height:' + TableHeight + 'px;margin-top:20px'"> |
|
|
|
<screen-echarts-frame |
|
|
|
@handelClickMyPei="handelClickMyPei" |
|
|
|
@ -58,27 +58,27 @@ |
|
|
|
ref="pieChart" |
|
|
|
></screen-echarts-frame> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
</div> |
|
|
|
<div class="flex1"> |
|
|
|
<div :style="'height:' + TableHeight + 'px;margin-top:20px;display:flex;align-items: center;'"> |
|
|
|
<div class="legend"> |
|
|
|
<div class="legend-row" :key="item.name" v-for="(item, index) in chartData.data" @click="handleClickItem(item)"> |
|
|
|
<div class="kuai" :style="{ backgroundColor: color[index] }"></div> |
|
|
|
<div class="kuai" :style="{ backgroundColor: color1[index] }"></div> |
|
|
|
<div class="content"> |
|
|
|
<div class="name">{{ item.name }}</div> |
|
|
|
<div class="name">{{ index }}{{ item.name }}</div> |
|
|
|
<div class="num">{{ item.value }}</div> |
|
|
|
<div class="unit" :style="{ color: color[index] }">{{ item.radio }}%</div> |
|
|
|
<div class="unit" :style="{ color: color1[index] }">{{ item.radio }}%</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
<div class="div_table_title">房屋状态统计</div> |
|
|
|
<el-row> |
|
|
|
<el-col :span="12"> |
|
|
|
<div class="flex"> |
|
|
|
<div class="width1"> |
|
|
|
<div :style="'height:' + TableHeight + 'px;margin-top:20px'"> |
|
|
|
<screen-echarts-frame2 |
|
|
|
@handelClickMyPei="handelClickMyPei2" |
|
|
|
@ -87,8 +87,8 @@ |
|
|
|
ref="pieChart2" |
|
|
|
></screen-echarts-frame2> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
<el-col :span="12"> |
|
|
|
</div> |
|
|
|
<div class="flex1"> |
|
|
|
<div :style="'height:' + TableHeight + 'px;margin-top:20px;display:flex;align-items: center;'"> |
|
|
|
<div class="legend2"> |
|
|
|
<div class="legend-row" :key="item.name" v-for="(item, index) in chartData2.data" @click="handleClickItem2(item)"> |
|
|
|
@ -99,13 +99,13 @@ |
|
|
|
<div class="content"> |
|
|
|
<div class="name">{{ item.name }}</div> |
|
|
|
<div class="num">{{ item.value }}</div> |
|
|
|
<div class="unit" :style="{ color: color[index] }">{{ item.radio }}%</div> |
|
|
|
<div class="unit" :style="{ color: color2[index] }">{{ item.radio }}%</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
|
@ -192,7 +192,7 @@ export default { |
|
|
|
return time.getTime() > nowData; |
|
|
|
}; |
|
|
|
return { |
|
|
|
optionData:{}, |
|
|
|
optionData: {}, |
|
|
|
dialogVisible: false, |
|
|
|
detailId: '', |
|
|
|
detailData: {}, |
|
|
|
@ -233,7 +233,8 @@ export default { |
|
|
|
pieInitState2: false, |
|
|
|
pieOption: [], |
|
|
|
pieOption2: [], |
|
|
|
color: ['#3C94FE', '#22C1C3', '#F0D915', '#FE6252', '#A17AFA', '#A19FFF', '#6FC364', '#FEB349', '#FE6252', '#F44230', '#5DC7F0'], |
|
|
|
color1: ['#3C94FE', '#A17AFA', '#A19FFF', '#22C1C3', '#6FC364', '#FEB349', '#FE6252', '#F0D915', '#5DC7F0'], |
|
|
|
color2: ['#3C94FE', '#22C1C3', '#F0D915', '#FE6252', '#A17AFA', '#A19FFF', '#6FC364', '#FEB349', '#FE6252', '#F44230', '#5DC7F0'], |
|
|
|
chartData: [], |
|
|
|
chartData2: [], |
|
|
|
pieData: [], |
|
|
|
@ -448,7 +449,7 @@ export default { |
|
|
|
color: '#fff' |
|
|
|
} |
|
|
|
}, |
|
|
|
color: this.color, |
|
|
|
color: this.color1, |
|
|
|
title: { |
|
|
|
text: this.pieData.total, |
|
|
|
subtext: '总数', |
|
|
|
@ -552,7 +553,7 @@ export default { |
|
|
|
color: '#fff' |
|
|
|
} |
|
|
|
}, |
|
|
|
color: this.color, |
|
|
|
color: this.color2, |
|
|
|
title: { |
|
|
|
text: this.pieData2.total, |
|
|
|
subtext: '总数', |
|
|
|
@ -714,7 +715,7 @@ export default { |
|
|
|
// const _arr = [{ ...agencyList, subAgencyList: [...subAgencyList] }]; |
|
|
|
// this.orgOptions = this.deepTree(_arr); |
|
|
|
this.orgOptions = []; |
|
|
|
this.optionData=data; |
|
|
|
this.optionData = data; |
|
|
|
this.orgOptions.push(data); |
|
|
|
this.orgId = data.agencyId; |
|
|
|
this.orgIdPath = data.orgIdPath; |
|
|
|
@ -909,4 +910,13 @@ export default { |
|
|
|
border-radius: 6px; |
|
|
|
color: #fff; |
|
|
|
} |
|
|
|
.flex { |
|
|
|
display: flex; |
|
|
|
.width1 { |
|
|
|
width: 220px; |
|
|
|
} |
|
|
|
.flex1 { |
|
|
|
flex: 1; |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
|