|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
- <div class="ZTGlobal rootele">
|
|
|
- <el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
+ <div class="ZTGlobal rootele" style="width: 100%;">
|
|
|
+ <el-tabs v-model="activeName" @tab-click="handleClick" style="width: 100%;">
|
|
|
<el-tab-pane label="拆迁补偿预估" name="first">
|
|
|
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="8rem" class="demo-ruleForm">
|
|
|
<el-form-item label="项目范围:" prop="">
|
|
@@ -72,17 +72,17 @@
|
|
|
<el-tab-pane label="分析记录" name="second">
|
|
|
<el-row>
|
|
|
<el-col :span="10">
|
|
|
- <el-input size="mini" placeholder="请输入项目名称" v-model="searchName">
|
|
|
+ <el-input size="mini" clearable placeholder="请输入项目名称" @change="queryProjectBystart" v-model="searchName">
|
|
|
<!-- <i slot="suffix" class="el-input__icon el-icon-search"></i> -->
|
|
|
</el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="10">
|
|
|
- <el-date-picker size="mini" v-model="dateVal" type="daterange" range-separator="至" start-placeholder="开始日期"
|
|
|
+ <el-date-picker @change="queryProjectBystart" size="mini" v-model="dateVal" type="daterange" range-separator="" start-placeholder="开始日期"
|
|
|
end-placeholder="结束日期">
|
|
|
</el-date-picker>
|
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
|
- <el-button type="primary" size="mini" @click="queryProject">查询</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="queryProjectBystart">查询</el-button>
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
@@ -117,8 +117,9 @@
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
- <el-tab-pane label="分析结果" name="third">
|
|
|
- <el-row class="box-card" v-model="curProjectInfo">
|
|
|
+ <el-tab-pane label="分析结果" name="third" style="width: 100%;">
|
|
|
+ <el-empty v-if="curProjectInfo==null" description="暂无数据"></el-empty>
|
|
|
+ <el-row class="box-card" v-model="curProjectInfo" v-if="curProjectInfo!=null">
|
|
|
<el-col :span="18">
|
|
|
<span style="font-size: 1rem">{{
|
|
|
curProjectInfo.name
|
|
@@ -127,7 +128,7 @@
|
|
|
<el-button type="primary" size="mini" @click="exportWord(curProjectInfo)">导出报告</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-tabs v-model="activePage1" @tab-click="pageClick" style="height: auto;">
|
|
|
+ <el-tabs v-model="activePage1" v-if="curProjectInfo!=null" @tab-click="pageClick" style="height: auto;">
|
|
|
<el-tab-pane label="国有评估" name="GY">
|
|
|
<div class="divrow">
|
|
|
<div class="divCol">
|
|
@@ -159,7 +160,23 @@
|
|
|
</div>
|
|
|
<el-tabs v-model="activePage2" @tab-click="gyPpageClick" style="height: auto;">
|
|
|
<el-tab-pane label="国有权属" name="GYQS">
|
|
|
+ <el-row style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <el-col :span="22" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <span style="font-size: 1.1rem;font-weight: bold;">权属信息</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <i ref="GYQS_button" class="el-icon-closeeyes" @click="Showlayers($event,'GYQSChart')"></i>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<div id="GYQSChart" style="height: 15rem; width: 25rem;"></div>
|
|
|
+ <el-row style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <el-col :span="22" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <span style="font-size: 1.1rem;font-weight: bold;">现状情况</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2">
|
|
|
+ <i ref="GYDL_button" class="el-icon-closeeyes" @click="Showlayers($event,'GYDLChart')"></i>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<div id="GYDLChart" style="height: 15rem; width: 25rem;"></div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="国有房产" name="GYFC">
|
|
@@ -263,8 +280,35 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="22"></el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <el-col :span="22" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <span style="font-size: 1.1rem;font-weight: bold;">集体所有权信息</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <i ref="JTOwner_button" class="el-icon-closeeyes" @click="Showlayers($event,'JTOwnerChart')"></i>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<div id="JTOWNERChart" style="height:12rem; width: 25rem;"></div>
|
|
|
+ <el-row style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <el-col :span="22" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <span style="font-size: 1.1rem;font-weight: bold;">集体使用权信息</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <i ref="JTUSE_button" class="el-icon-closeeyes" @click="Showlayers($event,'JTUseChart')"></i>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<div id="JTUSEChart" style="height: 12rem; width: 25rem;"></div>
|
|
|
+ <el-row style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <el-col :span="22" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <span style="font-size: 1.1rem;font-weight: bold;">现状信息</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <i ref="JTDL_button" class="el-icon-closeeyes" @click="Showlayers($event,'JTDLChart')"></i>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<div id="JTDLChart" style="height: 12rem; width: 25rem;"></div>
|
|
|
|
|
|
</el-tab-pane>
|
|
@@ -389,7 +433,24 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="22"></el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <el-col :span="22" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <span style="font-size: 1.1rem;font-weight: bold;">农作物补偿面积</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="2" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <i ref="QMBC_button" class="el-icon-closeeyes" @click="Showlayers($event,'QMBCChart')"></i>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
<div id="QMMJChart" style="height: 10rem; width: 25rem"></div>
|
|
|
+ <el-row >
|
|
|
+ <el-col :span="22" style="display: flex; justify-content: center; align-items: center;">
|
|
|
+ <span style="font-size: 1.1rem;font-weight: bold;">农作物补偿费用</span>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ </el-row>
|
|
|
<div id="QMFYChart" style="height: 10rem; width: 25rem"></div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="房屋拆迁补偿评估" name="FWCQ">
|
|
@@ -528,7 +589,6 @@ export default {
|
|
|
name: "DemolitionList",
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
searchName: "",
|
|
|
FileList: [],
|
|
|
localLoading: null,
|
|
@@ -1092,8 +1152,40 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.initSetting();
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
+ Showlayers(dom,name){
|
|
|
+ dom.currentTarget.classList.toggle("el-icon-openeyes") ;
|
|
|
+ dom.currentTarget.classList.toggle("el-icon-closeeyes") ;
|
|
|
+ var isshow=dom.currentTarget.classList.contains("el-icon-openeyes");
|
|
|
+
|
|
|
+ switch (name) {
|
|
|
+ case 'GYQSChart'://国有权属信息
|
|
|
+ this.GYQSChart(isshow);
|
|
|
+ break;
|
|
|
+ case 'GYDLChart'://国有权属现状信息
|
|
|
+ this.GYDLChart(isshow);
|
|
|
+ break;
|
|
|
+ case 'JTOwnerChart'://集体所有权信息
|
|
|
+ this.JTOwnerChart( isshow);
|
|
|
+ break;
|
|
|
+ case 'JTUseChart'://集体使用权信息
|
|
|
+ this.JTUseChart( isshow);
|
|
|
+ break;
|
|
|
+ case 'JTDLChart'://集体现状情况
|
|
|
+ this.JTDLChart( isshow);
|
|
|
+ break;
|
|
|
+ case 'QMBCChart'://农作物补偿
|
|
|
+ this.QMBCChart( isshow);
|
|
|
+ break;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ },
|
|
|
formatterArea(area) {
|
|
|
if (area) {
|
|
|
return area.toFixed(2);
|
|
@@ -1109,8 +1201,15 @@ export default {
|
|
|
* @param {Object} event
|
|
|
*/
|
|
|
handleClick(tab, event) {
|
|
|
+ debugger
|
|
|
if (this.activeName == "third") {
|
|
|
- this.pageClick();
|
|
|
+ // this.pageClick();
|
|
|
+ this.activePage1='GY';
|
|
|
+ this.activePage2='GYQS';
|
|
|
+ }else{
|
|
|
+ this.clear();
|
|
|
+ this.removePolygonEntity();
|
|
|
+ this.curProjectInfo=null;
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
@@ -1175,8 +1274,12 @@ export default {
|
|
|
endDate = ""
|
|
|
}
|
|
|
else {
|
|
|
- startDate = that.formatDateTime(that.dateVal[0])
|
|
|
- endDate = that.formatDateTime(that.dateVal[1])
|
|
|
+ debugger
|
|
|
+ startDate = that.formatDateTime(that.dateVal[0]);
|
|
|
+ var dateTime= new Date(that.dateVal[1]);
|
|
|
+ dateTime= dateTime.setDate(that.dateVal[1].getDate()+1);
|
|
|
+ dateTime= new Date(dateTime);
|
|
|
+ endDate = that.formatDateTime(dateTime)
|
|
|
}
|
|
|
if (window.isUseDB) {
|
|
|
var queryParams = {
|
|
@@ -1221,7 +1324,12 @@ export default {
|
|
|
list = list.slice((that.currentPage - 1) * that.pageSize, that.pageSize)
|
|
|
}
|
|
|
},
|
|
|
- onCurrentChange() {
|
|
|
+ queryProjectBystart(){
|
|
|
+ this.currentPage = 1;
|
|
|
+ this.queryProject();
|
|
|
+ },
|
|
|
+ onCurrentChange(val) {
|
|
|
+ this.currentPage = val;
|
|
|
this.queryProject()
|
|
|
},
|
|
|
formatDateTimeToLong(date) {
|
|
@@ -1453,6 +1561,9 @@ export default {
|
|
|
showResult(projectInfo) {
|
|
|
var that = this
|
|
|
that.activeName = "third";
|
|
|
+ this.activePage1='GY';
|
|
|
+ this.activePage2='GYQS';
|
|
|
+ this.activePage3='ZDPG';
|
|
|
debugger
|
|
|
that.curProjectInfo = projectInfo;
|
|
|
that.regions = JSON.parse(that.curProjectInfo.regions)
|
|
@@ -1499,7 +1610,13 @@ export default {
|
|
|
popupBox=null;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+ for (let index in this.$refs) {
|
|
|
+ var element=this.$refs[index];
|
|
|
+ if(element&&element.classList&&element.classList.contains("el-icon-openeyes")){
|
|
|
+ element.classList.remove("el-icon-openeyes");
|
|
|
+ element.classList.add("el-icon-closeeyes");
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
that.entities.forEach((item) => {
|
|
|
viewer.entities.removeById(item.id);
|
|
@@ -1615,7 +1732,10 @@ export default {
|
|
|
if (res)
|
|
|
debugger
|
|
|
that.$layer.close(id)
|
|
|
- that.$message("数据已删除!");
|
|
|
+ that.$message({
|
|
|
+ message: '数据已删除',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
that.queryProject();
|
|
|
}).catch((err) => {
|
|
|
console.log(err)
|
|
@@ -1863,7 +1983,7 @@ export default {
|
|
|
/**
|
|
|
*征地补偿chart
|
|
|
*/
|
|
|
- JTDLChart() {
|
|
|
+ JTDLChart(isLayerShow) {
|
|
|
var that = this;
|
|
|
var chartDom = document.getElementById("JTDLChart");
|
|
|
var myChart = window.echarts.init(chartDom);
|
|
@@ -1880,7 +2000,7 @@ export default {
|
|
|
})
|
|
|
var option = {
|
|
|
title: {
|
|
|
- text: '现状情况',
|
|
|
+ // text: '现状情况',
|
|
|
subtext: '',
|
|
|
top: 'top',
|
|
|
left: 'center',
|
|
@@ -1895,7 +2015,7 @@ export default {
|
|
|
type: "scroll",
|
|
|
orient: "vertical",
|
|
|
right: 0,
|
|
|
- top: '20%',
|
|
|
+ top: '10%',
|
|
|
bottom: 20,
|
|
|
radius: "55%",
|
|
|
// bottom: 20,
|
|
@@ -1919,7 +2039,7 @@ export default {
|
|
|
{
|
|
|
name: "征地补偿分析",
|
|
|
type: "pie",
|
|
|
- center: ["25%", "50%"],
|
|
|
+ center: ["25%", "45%"],
|
|
|
radius: ["25%", "45%"],
|
|
|
avoidLabelOverlap: false,
|
|
|
// itemStyle: {
|
|
@@ -1947,13 +2067,16 @@ export default {
|
|
|
};
|
|
|
myChart.clear()
|
|
|
myChart.setOption(option);
|
|
|
- var showOrHide = false;
|
|
|
+ var showOrHide = isLayerShow!=null?isLayerShow:false;
|
|
|
that.JTDLLoad(null, showOrHide);
|
|
|
myChart.on("legendselectchanged", function (parmas) {
|
|
|
- that.pickEntity('ZDJTYD');
|
|
|
+ if(that.$refs['JTDL_button'].classList.contains("el-icon-openeyes")){
|
|
|
+ that.pickEntity('ZDJTYD');
|
|
|
var name = parmas.name
|
|
|
showOrHide = parmas.selected[name]
|
|
|
that.JTDLLoad(name, showOrHide);
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
/**
|
|
@@ -2037,7 +2160,7 @@ export default {
|
|
|
/**
|
|
|
*国有chart
|
|
|
*/
|
|
|
- GYDLChart() {
|
|
|
+ GYDLChart(isLayerShow) {
|
|
|
var that = this;
|
|
|
var chartDom = document.getElementById("GYDLChart");
|
|
|
var myChart = window.echarts.init(chartDom);
|
|
@@ -2055,7 +2178,7 @@ export default {
|
|
|
}
|
|
|
var option = {
|
|
|
title: {
|
|
|
- text: '现状情况', //国有所有权信息
|
|
|
+ // text: '现状情况', //国有所有权信息
|
|
|
subtext: '',
|
|
|
top: 'top',
|
|
|
left: 'center',
|
|
@@ -2070,7 +2193,7 @@ export default {
|
|
|
type: "scroll",
|
|
|
orient: "vertical",
|
|
|
right: 0,
|
|
|
- top: '20%',
|
|
|
+ top: '10%',
|
|
|
bottom: 20,
|
|
|
radius: "55%",
|
|
|
// bottom: 20,
|
|
@@ -2105,7 +2228,7 @@ export default {
|
|
|
{
|
|
|
name: "国有征地权属分析",
|
|
|
type: "pie",
|
|
|
- center: ["25%", "50%"],
|
|
|
+ center: ["25%", "45%"],
|
|
|
radius: ["25%", "45%"],
|
|
|
avoidLabelOverlap: false,
|
|
|
// itemStyle: {
|
|
@@ -2131,15 +2254,21 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
+ myChart.clear();
|
|
|
myChart.setOption(option);
|
|
|
|
|
|
- var shaowOrHide = false;
|
|
|
+ var shaowOrHide = isLayerShow!=null?isLayerShow:false;
|
|
|
that.GYDLLoad(null, shaowOrHide);
|
|
|
+
|
|
|
+ debugger
|
|
|
myChart.on("legendselectchanged", function (parmas) {
|
|
|
- that.pickEntity('ZDGYDL');
|
|
|
+ if(that.$refs['GYDL_button'].classList.contains("el-icon-openeyes")){
|
|
|
+ that.pickEntity('ZDGYDL');
|
|
|
var name = parmas.name
|
|
|
shaowOrHide = parmas.selected[name]
|
|
|
that.GYDLLoad(name, shaowOrHide);
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
/**
|
|
@@ -2233,7 +2362,7 @@ export default {
|
|
|
/**
|
|
|
* 青苗补偿chart
|
|
|
*/
|
|
|
- QMBCChart() {
|
|
|
+ QMBCChart(isLayerShow) {
|
|
|
|
|
|
var that = this;
|
|
|
var chartDom1 = document.getElementById("QMMJChart");
|
|
@@ -2262,7 +2391,7 @@ export default {
|
|
|
}
|
|
|
var option1 = {
|
|
|
title: {
|
|
|
- text: "农作物补偿面积",
|
|
|
+ // text: "农作物补偿面积",
|
|
|
// subtext: '',
|
|
|
left: "center",
|
|
|
textStyle: {
|
|
@@ -2325,15 +2454,17 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
+ myChart1.clear();
|
|
|
myChart1.setOption(option1);
|
|
|
- var showOrHide = false;
|
|
|
+ var showOrHide = isLayerShow!=null?isLayerShow:false;
|
|
|
that.QMBCLoad(null, showOrHide)
|
|
|
myChart1.on("legendselectchanged", function (parmas) {
|
|
|
- that.pickEntity('ZDQMBC');
|
|
|
+ if(that.$refs['QMBC_button'].classList.contains("el-icon-openeyes")){
|
|
|
+ that.pickEntity('ZDQMBC');
|
|
|
var name = parmas.name
|
|
|
showOrHide = parmas.selected[name]
|
|
|
that.QMBCLoad(name, showOrHide)
|
|
|
-
|
|
|
+ }
|
|
|
});
|
|
|
var chartDom2 = document.getElementById("QMFYChart");
|
|
|
var myChart2 = window.echarts.init(chartDom2);
|
|
@@ -2354,7 +2485,7 @@ export default {
|
|
|
}
|
|
|
var option2 = {
|
|
|
title: {
|
|
|
- text: "农作物补偿费用",
|
|
|
+ // text: "农作物补偿费用",
|
|
|
subtext: "",
|
|
|
left: "center",
|
|
|
textStyle: {
|
|
@@ -2418,6 +2549,7 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
+ myChart2.clear();
|
|
|
myChart2.setOption(option2);
|
|
|
},
|
|
|
QMBCLoad(name, showOrHide) {
|
|
@@ -2546,7 +2678,7 @@ export default {
|
|
|
/**
|
|
|
* 国有权属
|
|
|
*/
|
|
|
- GYQSChart() {
|
|
|
+ GYQSChart(isLayerShow) {
|
|
|
var that = this;
|
|
|
var chartDom = document.getElementById("GYQSChart");
|
|
|
var myChart = window.echarts.init(chartDom);
|
|
@@ -2569,7 +2701,7 @@ export default {
|
|
|
}
|
|
|
var option = {
|
|
|
title: {
|
|
|
- text: '权属信息', //国有所有权信息
|
|
|
+ // text: '权属信息', //国有所有权信息
|
|
|
subtext: '',
|
|
|
top: 'top',
|
|
|
left: 'center',
|
|
@@ -2584,7 +2716,7 @@ export default {
|
|
|
type: "scroll",
|
|
|
orient: "vertical",
|
|
|
right: 0,
|
|
|
- top: '20%',
|
|
|
+ top: '10%',
|
|
|
bottom: 20,
|
|
|
radius: "55%",
|
|
|
// bottom: 20,
|
|
@@ -2625,7 +2757,7 @@ export default {
|
|
|
{
|
|
|
name: "",
|
|
|
type: "pie",
|
|
|
- center: ["25%", "50%"],
|
|
|
+ center: ["25%", "45%"],
|
|
|
radius: ["35%", "50%"],
|
|
|
avoidLabelOverlap: false,
|
|
|
itemStyle: {
|
|
@@ -2655,14 +2787,17 @@ export default {
|
|
|
|
|
|
myChart.clear();
|
|
|
myChart.setOption(option);
|
|
|
- that.GYQSLoad(that.gyqsChartdatas, null, false);
|
|
|
+ var showOrHide = isLayerShow!=null?isLayerShow:false;
|
|
|
+ that.GYQSLoad(that.gyqsChartdatas, null, showOrHide);
|
|
|
|
|
|
myChart.on("legendselectchanged", function (parmas) {
|
|
|
- that.pickEntity('ZDGYQS');
|
|
|
- var name = parmas.name
|
|
|
- var showOrHide = parmas.selected[name]
|
|
|
+ if(that.$refs['GYQS_button'].classList.contains("el-icon-openeyes")){
|
|
|
+ that.pickEntity('ZDGYQS');
|
|
|
+ var name = parmas.name;
|
|
|
+ var showOrHide = parmas.selected[name];
|
|
|
// var index = Object.keys(parmas.selected).findIndex(t => t == name)
|
|
|
that.GYQSLoad(that.gyqsChartdatas, name, showOrHide);
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
GYQSLoad(datas, name, showOrHide) {
|
|
@@ -2794,7 +2929,7 @@ export default {
|
|
|
/**
|
|
|
* 集体使用权
|
|
|
*/
|
|
|
- JTUseChart() {
|
|
|
+ JTUseChart(isLayerShow) {
|
|
|
var that = this;
|
|
|
var chartDom = document.getElementById("JTUSEChart");
|
|
|
var myChart = window.echarts.init(chartDom);
|
|
@@ -2809,7 +2944,7 @@ export default {
|
|
|
}
|
|
|
var option = {
|
|
|
title: {
|
|
|
- text: '集体使用权信息',
|
|
|
+ // text: '集体使用权信息',
|
|
|
subtext: '',
|
|
|
top: 'top',
|
|
|
left: 'center',
|
|
@@ -2824,7 +2959,7 @@ export default {
|
|
|
type: "scroll",
|
|
|
orient: "vertical",
|
|
|
right: 0,
|
|
|
- top: '20%',
|
|
|
+ top: '10%',
|
|
|
bottom: 20,
|
|
|
radius: "55%",
|
|
|
itemStyle: {
|
|
@@ -2865,7 +3000,7 @@ export default {
|
|
|
{
|
|
|
name: "集体使用权信息",
|
|
|
type: "pie",
|
|
|
- center: ["25%", "50%"],
|
|
|
+ center: ["25%", "45%"],
|
|
|
radius: ["25%", "45%"],
|
|
|
avoidLabelOverlap: false,
|
|
|
// itemStyle: {
|
|
@@ -2892,13 +3027,16 @@ export default {
|
|
|
};
|
|
|
myChart.clear();
|
|
|
myChart.setOption(option);
|
|
|
- var shaowOrHide = false;
|
|
|
+ var shaowOrHide = isLayerShow!=null?isLayerShow:false;
|
|
|
that.JTUseLoad(datas, null, shaowOrHide)
|
|
|
myChart.on("legendselectchanged", function (parmas) {
|
|
|
- that.pickEntity('ZDJTUSE');
|
|
|
- var name = parmas.name
|
|
|
- shaowOrHide = parmas.selected[name]
|
|
|
- that.JTUseLoad(datas, name, shaowOrHide)
|
|
|
+ if(that.$refs['JTUSE_button'].classList.contains("el-icon-openeyes")){
|
|
|
+ that.pickEntity('ZDJTUSE');
|
|
|
+ var name = parmas.name
|
|
|
+ shaowOrHide = parmas.selected[name]
|
|
|
+ that.JTUseLoad(datas, name, shaowOrHide)
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
|
|
|
},
|
|
@@ -3034,7 +3172,7 @@ export default {
|
|
|
/**
|
|
|
* 集体所有权
|
|
|
*/
|
|
|
- JTOwnerChart() {
|
|
|
+ JTOwnerChart(isLayerShow) {
|
|
|
var that = this;
|
|
|
var chartDom = document.getElementById("JTOWNERChart");
|
|
|
var myChart = window.echarts.init(chartDom);
|
|
@@ -3051,7 +3189,7 @@ export default {
|
|
|
}
|
|
|
var option = {
|
|
|
title: {
|
|
|
- text: '集体所有权信息',
|
|
|
+ // text: '集体所有权信息',
|
|
|
subtext: '',
|
|
|
top: 'top',
|
|
|
left: 'center',
|
|
@@ -3066,7 +3204,7 @@ export default {
|
|
|
type: "scroll",
|
|
|
orient: "vertical",
|
|
|
right: 0,
|
|
|
- top: '20%',
|
|
|
+ top: '10%',
|
|
|
bottom: 20,
|
|
|
radius: "55%",
|
|
|
// bottom: 20,
|
|
@@ -3105,7 +3243,7 @@ export default {
|
|
|
{
|
|
|
name: "集体所有权属分析",
|
|
|
type: "pie",
|
|
|
- center: ["25%", "50%"],
|
|
|
+ center: ["25%", "45%"],
|
|
|
radius: ["25%", "45%"],
|
|
|
avoidLabelOverlap: false,
|
|
|
// itemStyle: {
|
|
@@ -3131,15 +3269,18 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
};
|
|
|
- var showOrHide = false;
|
|
|
+ var showOrHide = isLayerShow!=null?isLayerShow:false;
|
|
|
that.JTOwnerLoad(datas, null, showOrHide);
|
|
|
myChart.clear();
|
|
|
myChart.setOption(option);
|
|
|
myChart.on("legendselectchanged", function (parmas) {
|
|
|
- that.pickEntity('ZDJTOWNER');
|
|
|
+ if(that.$refs['JTOwner_button'].classList.contains("el-icon-openeyes")){
|
|
|
+ that.pickEntity('ZDJTOWNER');
|
|
|
var name = parmas.name
|
|
|
showOrHide = parmas.selected[name]
|
|
|
that.JTOwnerLoad(datas, name, showOrHide);
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
},
|
|
|
JTOwnerLoad(datas, name, showOrHide) {
|
|
@@ -4057,6 +4198,18 @@ export default {
|
|
|
},
|
|
|
clear() {
|
|
|
|
|
|
+ for (let index in this.$refs) {
|
|
|
+ var element=this.$refs[index];
|
|
|
+ if(element&&element.classList&&element.classList.contains("el-icon-openeyes")){
|
|
|
+ element.classList.remove("el-icon-openeyes");
|
|
|
+ element.classList.add("el-icon-closeeyes");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if(popupBox){
|
|
|
+ popupBox.destroy();
|
|
|
+ popupBox=null;
|
|
|
+ }
|
|
|
this.positions = [];
|
|
|
this.regions = [];
|
|
|
this.entities.forEach((item) => {
|
|
@@ -4125,6 +4278,7 @@ export default {
|
|
|
* 清楚临时图元
|
|
|
*/
|
|
|
beforeDestroy() {
|
|
|
+
|
|
|
this.removePolygonEntity();
|
|
|
if (handlerPolygon) {
|
|
|
handlerPolygon.deactivate();
|
|
@@ -4149,6 +4303,31 @@ export default {
|
|
|
</script>
|
|
|
<style lang="scss">
|
|
|
@import "@/../../zt.scss";
|
|
|
+.el-icon-openeyes {
|
|
|
+ background: url("./眼睛.png") center no-repeat;
|
|
|
+ font-size: 0.7rem;
|
|
|
+ background-size: cover;
|
|
|
+ line-height:1rem;
|
|
|
+}
|
|
|
+.el-icon-openeyes:before {
|
|
|
+ content: "显示";
|
|
|
+ font-size: 0.7rem;
|
|
|
+ visibility: hidden;
|
|
|
+ line-height:1rem;
|
|
|
+}
|
|
|
+.el-icon-closeeyes {
|
|
|
+ background: url("./闭眼睛.png") center no-repeat;
|
|
|
+ font-size: 0.7rem;
|
|
|
+ background-size: cover;
|
|
|
+ line-height:1rem;
|
|
|
+}
|
|
|
+.el-icon-closeeyes:before {
|
|
|
+ content: "隐藏";
|
|
|
+ font-size: 0.7rem;
|
|
|
+ visibility: hidden;
|
|
|
+ line-height:1rem;
|
|
|
+}
|
|
|
+
|
|
|
</style>
|
|
|
<style scoped>
|
|
|
.fileInput {
|