|
@@ -145,7 +145,7 @@
|
|
|
</el-table>
|
|
|
<div class="echartTitle">
|
|
|
<div class="block-title">{{ titles[route.query.type] }}统计图</div>
|
|
|
- <el-select v-model="bartype" @change="changeNtype">
|
|
|
+ <el-select v-model="bartype" @change="changeBartype">
|
|
|
<el-option
|
|
|
v-for="item in typeoptions"
|
|
|
:key="item.id"
|
|
@@ -401,6 +401,9 @@ function changeNtype() {
|
|
|
}
|
|
|
echartsMap.value.init(mapVals.value, mname);
|
|
|
}
|
|
|
+function changeBartype() {
|
|
|
+ setLnbh(tableData.value);
|
|
|
+}
|
|
|
function setLnbh(data) {
|
|
|
//eData.value.yName = `变化面积${this.unitList[this.nowunit].unit}`;
|
|
|
eData.value.xData = [];
|
|
@@ -408,15 +411,16 @@ function setLnbh(data) {
|
|
|
eData.value.yData = [[], [], []];
|
|
|
if (route.query.type == "judge")
|
|
|
eData.value.legend = ["未判定", "已判定(拆分前)", "已判定(拆分后)"];
|
|
|
- else if (route.query.type == "judge")
|
|
|
+ else if (route.query.type == "result")
|
|
|
eData.value.legend = ["合法用地", "违法用地", "其它用地"];
|
|
|
else eData.value.legend = [];
|
|
|
data.forEach((res, i) => {
|
|
|
- if (i) {//去掉合计
|
|
|
+ if (i) {
|
|
|
+ //去掉合计
|
|
|
eData.value.xData.push(res.xzqmc);
|
|
|
if (route.query.type == "all") {
|
|
|
eData.value.yData[0].push(
|
|
|
- res[ntype.value == "0" ? "countNumber" : "countSum"]
|
|
|
+ res[bartype.value == "0" ? "countNumber" : "countSum"]
|
|
|
);
|
|
|
} else {
|
|
|
//if (route.query.type == "judge")
|