|
@@ -7,10 +7,11 @@
|
|
|
<!-- 属性弹窗 -->
|
|
|
<AttributePopup
|
|
|
class="comprehensive-analysis-popup"
|
|
|
- v-if="true"
|
|
|
- :boxWidth="'600'"
|
|
|
- :boxHeight="'600'"
|
|
|
+ v-if="attrTableShow"
|
|
|
+ :boxWidth="boxWidth"
|
|
|
+ :boxHeight="boxHeight"
|
|
|
:tableType="tableType"
|
|
|
+ @close="closeEvent"
|
|
|
/>
|
|
|
<!-- <div class="comprehensive-analysis-popup" v-if="true"></div> -->
|
|
|
<!-- 右上角工具栏 -->
|
|
@@ -49,8 +50,8 @@
|
|
|
<Legend
|
|
|
class="comprehensive-analysis-legendbox"
|
|
|
:legendData="{
|
|
|
- boxWidth: '200',
|
|
|
- boxHeight: '200',
|
|
|
+ boxWidth: '250',
|
|
|
+ boxHeight: '350',
|
|
|
menuIndex: '3',
|
|
|
legendIcon: legendIcon,
|
|
|
legendTitle: legendTitle,
|
|
@@ -166,6 +167,8 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
tableType: "normal",
|
|
|
+ boxWidth: "600",
|
|
|
+ boxHeight: "600",
|
|
|
attrTableShow: false,
|
|
|
activeNames: ["myLabel"],
|
|
|
rightPanelTitle: "",
|
|
@@ -224,35 +227,8 @@ export default {
|
|
|
children: "children",
|
|
|
label: "label",
|
|
|
},
|
|
|
- legendIcon: [
|
|
|
- {
|
|
|
- background: "transparent",
|
|
|
- border: "1px solid rgba(255, 152, 51, 1)",
|
|
|
- },
|
|
|
- {
|
|
|
- background: "transparent",
|
|
|
- border: "1px solid rgba(253, 255, 76, 1)",
|
|
|
- },
|
|
|
- {
|
|
|
- background: "transparent",
|
|
|
- border: "1px solid rgba(75, 195, 19, 1)",
|
|
|
- },
|
|
|
- {
|
|
|
- background: "transparent",
|
|
|
- border: "1px solid rgba(65, 239, 255, 1)",
|
|
|
- },
|
|
|
- {
|
|
|
- background: "transparent",
|
|
|
- border: "1px solid rgba(255, 64, 0, 1)",
|
|
|
- },
|
|
|
- ],
|
|
|
- legendTitle: [
|
|
|
- "永久基本农田",
|
|
|
- "一般耕地",
|
|
|
- "建设用地减量化",
|
|
|
- "特征地",
|
|
|
- "基本农田被侵占",
|
|
|
- ],
|
|
|
+ legendIcon: [],
|
|
|
+ legendTitle: [],
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -343,14 +319,22 @@ export default {
|
|
|
},
|
|
|
handleCheckChange(data, checked) {
|
|
|
if (checked) {
|
|
|
+ this.showRightBox = true;
|
|
|
this.rightPanelTitle = data.label;
|
|
|
- // this.originalData = this.rightPanelDataMap.get(data.label);
|
|
|
this.originalData[data.label] = this.rightPanelDataMap.get(data.label);
|
|
|
this.activeNames = ["myLabel", data.label];
|
|
|
} else {
|
|
|
delete this.originalData[data.label];
|
|
|
this.activeNames = ["myLabel"];
|
|
|
}
|
|
|
+ this.legendTitle = Object.keys(this.originalData);
|
|
|
+ this.legendIcon = this.legendTitle.map((v) => {
|
|
|
+ let color = publicFun.getRandomColor();
|
|
|
+ return {
|
|
|
+ background: "transparent",
|
|
|
+ border: `1px solid ${color}`,
|
|
|
+ };
|
|
|
+ });
|
|
|
},
|
|
|
listItemClick(type, data) {
|
|
|
// data
|
|
@@ -359,16 +343,19 @@ export default {
|
|
|
this.attrTableShow = true;
|
|
|
if (type === "default") {
|
|
|
this.tableType = "normal";
|
|
|
-
|
|
|
+ this.boxWidth = "600";
|
|
|
+ this.boxHeight = "600";
|
|
|
console.log(data, "defaultTable");
|
|
|
}
|
|
|
if (type === "new") {
|
|
|
this.tableType = "personal";
|
|
|
+ this.boxWidth = "300";
|
|
|
+ this.boxHeight = "300";
|
|
|
console.log(data, "newTable");
|
|
|
}
|
|
|
},
|
|
|
- collapseHandleChange(data) {
|
|
|
- console.log(data, "collapseHandleChange");
|
|
|
+ closeEvent() {
|
|
|
+ this.attrTableShow = false;
|
|
|
},
|
|
|
},
|
|
|
};
|
|
@@ -551,10 +538,11 @@ export default {
|
|
|
}
|
|
|
/* 弹窗 */
|
|
|
&-popup {
|
|
|
- background: red;
|
|
|
+ // background: red;
|
|
|
position: absolute;
|
|
|
top: 10%;
|
|
|
left: 35%;
|
|
|
+ pointer-events: auto;
|
|
|
}
|
|
|
/* 左边树状面板 */
|
|
|
&-left {
|