|
@@ -5,6 +5,17 @@
|
|
|
|
|
|
<!-- 镇域专题 -->
|
|
|
<div id="TownContainer" v-if="$ifMenu('2', '5')">
|
|
|
+ <Legend
|
|
|
+ id="TownContainer_bottomLegend"
|
|
|
+ :legendData="{
|
|
|
+ boxWidth: '150',
|
|
|
+ boxHeight: '180',
|
|
|
+ menuIndex: '2',
|
|
|
+ subMenuIndex: '5',
|
|
|
+ legendIcon: legendIcon,
|
|
|
+ legendTitle: legendTitle,
|
|
|
+ }"
|
|
|
+ />
|
|
|
<div class="select-title">所属街道</div>
|
|
|
<NewSelect
|
|
|
class="select-container"
|
|
@@ -145,33 +156,16 @@
|
|
|
</div>
|
|
|
</MenuCard>
|
|
|
</div>
|
|
|
- <MenuCard
|
|
|
+ <Legend
|
|
|
id="mainMenus_bottomLegend"
|
|
|
- :menuData="{
|
|
|
- type: 'chart',
|
|
|
- title: '图例',
|
|
|
+ :legendData="{
|
|
|
boxWidth: '150',
|
|
|
boxHeight: '180',
|
|
|
- legendShowState: true,
|
|
|
menuIndex: '1',
|
|
|
- position: 'bottom',
|
|
|
+ legendIcon: legendIcon,
|
|
|
+ legendTitle: legendTitle,
|
|
|
}"
|
|
|
- ><div class="legend-container">
|
|
|
- <div class="left-container">
|
|
|
- <div
|
|
|
- class="legend-icon"
|
|
|
- v-for="(item, index) in legendData"
|
|
|
- :key="index"
|
|
|
- :style="{ background: item }"
|
|
|
- ></div>
|
|
|
- </div>
|
|
|
- <div class="right-container">
|
|
|
- <div class="lengend-title" v-for="item in buttonData" :key="item">
|
|
|
- {{ item }} 类
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </MenuCard>
|
|
|
+ />
|
|
|
</div>
|
|
|
<!-- 右侧菜单列 -->
|
|
|
<div class="rightMenus">
|
|
@@ -239,6 +233,8 @@ import ChartCard from "@/components/common/ChartCard.vue";
|
|
|
import TagTableCard from "@/components/common/TagTableCard";
|
|
|
import TopCard from "@/components/common/TopCard";
|
|
|
import BottomMenus from "@/components/common/BottomMenus";
|
|
|
+// 图例
|
|
|
+import Legend from "@/components/map/Legend.vue";
|
|
|
// 综合分析
|
|
|
import ComprehensiveAnalysis from "@/views/ComprehensiveAnalysis.vue";
|
|
|
import TagProblemCard from "@/components/common/TagProblemCard.vue";
|
|
@@ -257,6 +253,7 @@ export default {
|
|
|
BottomMenus,
|
|
|
ComprehensiveAnalysis,
|
|
|
TagProblemCard,
|
|
|
+ Legend,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -427,7 +424,22 @@ export default {
|
|
|
},
|
|
|
// 首页饼图相关
|
|
|
buttonData: ["A", "B", "C"],
|
|
|
- legendData: ["#E565FF", "#0055FF", "#00FFD5"],
|
|
|
+ legendTitle: ["A类", "B类", "C类"],
|
|
|
+ // legendData: ["#E565FF", "#0055FF", "#00FFD5"],
|
|
|
+ legendIcon: [
|
|
|
+ {
|
|
|
+ background: "#E565FF",
|
|
|
+ border: "none",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ background: "#0055FF",
|
|
|
+ border: "none",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ background: "#00FFD5",
|
|
|
+ border: "none",
|
|
|
+ },
|
|
|
+ ],
|
|
|
btnChecked: "A",
|
|
|
AData: {
|
|
|
soil: [],
|
|
@@ -589,6 +601,13 @@ export default {
|
|
|
top: 60px;
|
|
|
z-index: 999;
|
|
|
pointer-events: none;
|
|
|
+ &_bottomLegend {
|
|
|
+ position: absolute;
|
|
|
+ color: #fff;
|
|
|
+ left: 60px;
|
|
|
+ bottom: 30px;
|
|
|
+ pointer-events: auto;
|
|
|
+ }
|
|
|
.select-title {
|
|
|
position: absolute;
|
|
|
left: 60px;
|
|
@@ -722,65 +741,11 @@ export default {
|
|
|
z-index: 99999;
|
|
|
color: #fff;
|
|
|
}
|
|
|
- .legend-line {
|
|
|
- position: absolute;
|
|
|
- left: 24px;
|
|
|
- bottom: 208px;
|
|
|
- width: 104px;
|
|
|
- height: 20px;
|
|
|
- background: url("../assets/home/legend_line.png") no-repeat center;
|
|
|
- z-index: 99999;
|
|
|
- }
|
|
|
&_bottomLegend {
|
|
|
position: absolute;
|
|
|
left: 20px;
|
|
|
- bottom: 24px;
|
|
|
+ bottom: 30px;
|
|
|
color: #fff;
|
|
|
- z-index: 99999;
|
|
|
- .legend-container {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- position: relative;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- .left-container {
|
|
|
- width: 50%;
|
|
|
- height: 100%;
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- top: 0;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: space-evenly;
|
|
|
- .legend-icon {
|
|
|
- width: 25px;
|
|
|
- height: 15px;
|
|
|
- background: @commonBorderColor;
|
|
|
- border-radius: 2px;
|
|
|
- margin: 0 auto;
|
|
|
- }
|
|
|
- }
|
|
|
- .right-container {
|
|
|
- width: 50%;
|
|
|
- height: 100%;
|
|
|
- position: absolute;
|
|
|
- right: 0;
|
|
|
- top: 0;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-evenly;
|
|
|
- .legend-title {
|
|
|
- width: 30px;
|
|
|
- height: 20px;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- color: white;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
&_topSelect {
|
|
|
position: absolute;
|