|
@@ -167,7 +167,7 @@
|
|
|
<script>
|
|
|
import MapHolder from "@/components/map/MapHolder.vue";
|
|
|
import Header from "@/components/layout/Header.vue";
|
|
|
-import MenuCard from "@/components/layout/MenuCard";
|
|
|
+import MenuCard from "@/components/layout/MenuCard.vue";
|
|
|
import NewSelect from "@/components/common/NewSelect.vue";
|
|
|
import BarChart from "@/components/chart/BarChart.vue";
|
|
|
import {
|
|
@@ -176,6 +176,7 @@ import {
|
|
|
soilData,
|
|
|
waterData,
|
|
|
forestryData,
|
|
|
+ menusMap
|
|
|
} from "@/config/common";
|
|
|
import publicFun from "@/utils/publicFunction.js";
|
|
|
import TagCard from "@/components/common/TagCard";
|
|
@@ -224,303 +225,7 @@ export default {
|
|
|
testTitle: "土地资源",
|
|
|
activeIndex: 1,
|
|
|
// 菜单配置,后期最好根据用户权限通过后台动态返回。
|
|
|
- menus: {
|
|
|
- left: [
|
|
|
- {
|
|
|
- type: "card",
|
|
|
- title: "土地资源",
|
|
|
- menuIndex: "1",
|
|
|
- position: "left",
|
|
|
- minDomWidth: 420,
|
|
|
- gotoPageInfo: { index: "2", subIndex: "1", name: "土地资源" },
|
|
|
- topSolt: {
|
|
|
- commonName: "TagTableCard",
|
|
|
- commonData: [
|
|
|
- {
|
|
|
- title: "基本农田面积",
|
|
|
- value: 150,
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [100, 120, 150],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "储备土地面积",
|
|
|
- value: 250,
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [2000, 220, 250],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "减量化面积",
|
|
|
- value: 350,
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [300, 20, 350],
|
|
|
- },
|
|
|
- {
|
|
|
- title: "一般耕地面积",
|
|
|
- value: 450,
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [40, 420, 450],
|
|
|
- },
|
|
|
- {
|
|
|
- type: "tb",
|
|
|
- title: "土地资源面积",
|
|
|
- value: 172,
|
|
|
- unit: "公顷",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- bottomSolt: {
|
|
|
- commonName: "ChartCard",
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- type: "card",
|
|
|
- title: "水资源",
|
|
|
- menuIndex: "1",
|
|
|
- position: "left",
|
|
|
- minDomWidth: 420,
|
|
|
- gotoPageInfo: { index: "2", subIndex: "2", name: "水资源" },
|
|
|
- topSolt: {
|
|
|
- commonName: "TagCard",
|
|
|
- commonData: [
|
|
|
- {
|
|
|
- type: "tb",
|
|
|
- title: "水域数量",
|
|
|
- value: 654,
|
|
|
- unit: "条",
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [40, 420, 654],
|
|
|
- },
|
|
|
- {
|
|
|
- type: "tb",
|
|
|
- title: "区管河道数量",
|
|
|
- value: 654,
|
|
|
- unit: "条",
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [400, 420, 654],
|
|
|
- },
|
|
|
- {
|
|
|
- type: "tb",
|
|
|
- title: "镇管河道数量",
|
|
|
- value: 654,
|
|
|
- unit: "条",
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [400, 40, 654],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- bottomSolt: {
|
|
|
- commonName: "ChartCard",
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- type: "card",
|
|
|
- title: "林地资源",
|
|
|
- menuIndex: "1",
|
|
|
- position: "left",
|
|
|
- minDomWidth: 420,
|
|
|
- gotoPageInfo: { index: "2", subIndex: "3", name: "林地资源" },
|
|
|
- topSolt: {
|
|
|
- commonName: "TagCard",
|
|
|
- commonData: [
|
|
|
- {
|
|
|
- type: "lr",
|
|
|
- title: "林地面积",
|
|
|
- value: 654,
|
|
|
- unit: "公顷",
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [40, 420, 654],
|
|
|
- },
|
|
|
- {
|
|
|
- type: "lr",
|
|
|
- title: "公益林面积",
|
|
|
- value: 654,
|
|
|
- unit: "公顷",
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [400, 420, 654],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- bottomSolt: {
|
|
|
- commonName: "ChartCard",
|
|
|
- },
|
|
|
- },
|
|
|
- ],
|
|
|
- leftW: [
|
|
|
- {
|
|
|
- type: "imageMenu",
|
|
|
- index: 0,
|
|
|
- title: "基本农田被违规占用",
|
|
|
- titleWidth: 81,
|
|
|
- boxHeight: 236,
|
|
|
- imageUrl: "/static/images/2.png",
|
|
|
- menuIndex: "2",
|
|
|
- subMenuIndex: "1",
|
|
|
- menuName: "土地资源",
|
|
|
- position: "left",
|
|
|
- gotoPageInfo: { index: "3", subIndex: "", name: "综合分析" },
|
|
|
- },
|
|
|
- {
|
|
|
- type: "imageMenu",
|
|
|
- index: 1,
|
|
|
- title: "基本农田种林",
|
|
|
- titleWidth: 81,
|
|
|
- boxHeight: 236,
|
|
|
- imageUrl: "/static/images/3.png",
|
|
|
- menuIndex: "2",
|
|
|
- subMenuIndex: "1",
|
|
|
- menuName: "土地资源",
|
|
|
- position: "left",
|
|
|
- gotoPageInfo: { index: "3", subIndex: "", name: "综合分析" },
|
|
|
- },
|
|
|
- {
|
|
|
- type: "imageMenu",
|
|
|
- index: 2,
|
|
|
- title: "基本农田抛荒",
|
|
|
- titleWidth: 81,
|
|
|
- boxHeight: 236,
|
|
|
- imageUrl: "/static/images/1.png",
|
|
|
- menuIndex: "2",
|
|
|
- subMenuIndex: "1",
|
|
|
- menuName: "土地资源",
|
|
|
- position: "left",
|
|
|
- gotoPageInfo: { index: "3", subIndex: "", name: "综合分析" },
|
|
|
- },
|
|
|
- {
|
|
|
- type: "imageMenu",
|
|
|
- index: 3,
|
|
|
- title: "一般耕地被违规占用",
|
|
|
- titleWidth: 81,
|
|
|
- boxHeight: 236,
|
|
|
- imageUrl: "/static/images/4.png",
|
|
|
- menuIndex: "2",
|
|
|
- subMenuIndex: "1",
|
|
|
- menuName: "土地资源",
|
|
|
- position: "left",
|
|
|
- gotoPageInfo: { index: "3", subIndex: "", name: "综合分析" },
|
|
|
- },
|
|
|
- ],
|
|
|
- main: [
|
|
|
- {
|
|
|
- type: "chart",
|
|
|
- title: "浦东新区自然资源分布",
|
|
|
- boxWidth: "360",
|
|
|
- boxHeight: "370",
|
|
|
- boxBackground: "rgba(0,39,77,0.6)",
|
|
|
- menuIndex: "1",
|
|
|
- position: "top",
|
|
|
- minDomWidth: 1500,
|
|
|
- },
|
|
|
- ],
|
|
|
- right: [
|
|
|
- {
|
|
|
- type: "card",
|
|
|
- title: "资金投入情况",
|
|
|
- titleWidth: 64,
|
|
|
- menuIndex: "1",
|
|
|
- position: "right",
|
|
|
- minDomWidth: 1000,
|
|
|
- topSolt: {
|
|
|
- commonName: "TagCard",
|
|
|
- commonData: [
|
|
|
- {
|
|
|
- type: "lr",
|
|
|
- title: "资金投入",
|
|
|
- value: 72,
|
|
|
- unit: "万元",
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [100, 120, 72],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- bottomSolt: {
|
|
|
- commonName: "ChartCard",
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- type: "card",
|
|
|
- title: "资源环境项目",
|
|
|
- titleWidth: 64,
|
|
|
- menuIndex: "1",
|
|
|
- position: "right",
|
|
|
- minDomWidth: 1000,
|
|
|
- topSolt: {
|
|
|
- commonName: "TagCard",
|
|
|
- commonData: [
|
|
|
- {
|
|
|
- type: "tb",
|
|
|
- title: "资源环境项目",
|
|
|
- value: 172,
|
|
|
- unit: "个",
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [40, 420, 172],
|
|
|
- },
|
|
|
- {
|
|
|
- type: "tb",
|
|
|
- title: "自然资源环境项目",
|
|
|
- value: 156,
|
|
|
- unit: "个",
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [400, 420, 156],
|
|
|
- },
|
|
|
- {
|
|
|
- type: "tb",
|
|
|
- title: "调查项目",
|
|
|
- value: 188,
|
|
|
- unit: "个",
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [100, 40, 188],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- bottomSolt: {
|
|
|
- commonName: "ChartCard",
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- type: "card",
|
|
|
- title: "历年频发问题TOP5",
|
|
|
- titleWidth: 81,
|
|
|
- menuIndex: "1",
|
|
|
- position: "right",
|
|
|
- minDomWidth: 1000,
|
|
|
- gotoPageInfo: { index: "5", subIndex: "2", name: "频发问题" },
|
|
|
- },
|
|
|
- {
|
|
|
- type: "card",
|
|
|
- title: "土地类问题",
|
|
|
- titleWidth: 60,
|
|
|
- menuIndex: "2",
|
|
|
- subMenuIndex: "1",
|
|
|
- position: "right",
|
|
|
- minDomWidth: 1200,
|
|
|
- topSolt: {
|
|
|
- commonName: "TagCard",
|
|
|
- commonData: [
|
|
|
- {
|
|
|
- type: "lr",
|
|
|
- title: "土地类疑点",
|
|
|
- value: 72,
|
|
|
- unit: "个",
|
|
|
- categoryData: ["2019", "2020", "2021"],
|
|
|
- valueData: [100, 120, 72],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- bottomSolt: {
|
|
|
- commonName: "ChartCard",
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- type: "card",
|
|
|
- title: "土地类问题TOP5",
|
|
|
- titleWidth: 81,
|
|
|
- menuIndex: "2",
|
|
|
- subMenuIndex: "1",
|
|
|
- position: "right",
|
|
|
- minDomWidth: 1200,
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
+ menus: {},
|
|
|
// 首页饼图相关
|
|
|
buttonData: ["A", "B", "C"],
|
|
|
legendTitle: [
|
|
@@ -626,6 +331,7 @@ export default {
|
|
|
},
|
|
|
// 镇域专题下拉框
|
|
|
specialTownSelect(val) {
|
|
|
+ this.$store.commit("changeHomeSpecialTown", val);
|
|
|
if (val === "全部") {
|
|
|
this.$refs.mapLoaderRef.setView(townLocationMap.get(val), 10);
|
|
|
} else {
|
|
@@ -635,6 +341,7 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
created() {
|
|
|
+ this.menus = menusMap;
|
|
|
// 目录
|
|
|
let category = Object.keys(streetLocation);
|
|
|
// 默认A类
|