|
@@ -1,23 +1,24 @@
|
|
<template>
|
|
<template>
|
|
- <div class="wpjg">
|
|
|
|
- <div class="box">
|
|
|
|
- <div class="title">卫片监管</div>
|
|
|
|
- <div class="content">
|
|
|
|
- <div class="item">
|
|
|
|
- <span class="dlabel">图斑变化数量:</span>
|
|
|
|
- <span class="dvalue">{{ sdata.value || 0 }}个</span>
|
|
|
|
- </div>
|
|
|
|
- <div class="item">
|
|
|
|
- <span class="dlabel"> 图斑变化面积:</span>
|
|
|
|
- <span class="dvalue">{{ sdata.value || 0 }}公顷</span>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <borderTemplate titleName="卫片监管" class="wpjg">
|
|
|
|
+ <template v-slot:title>
|
|
|
|
+ <!-- #content="row" -->
|
|
|
|
+ </template>
|
|
|
|
+ <div class="stacontent">
|
|
|
|
+ <div class="item">
|
|
|
|
+ <span class="dlabel">图斑变化数量:</span>
|
|
|
|
+ <span class="dvalue">{{ sdata.value || 0 }}个</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="item">
|
|
|
|
+ <span class="dlabel"> 图斑变化面积:</span>
|
|
|
|
+ <span class="dvalue">{{ sdata.value || 0 }}公顷</span>
|
|
</div>
|
|
</div>
|
|
- <sankey id="wpjp_echart" ref="echartRef"></sankey>
|
|
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ <sankey id="wpjp_echart" ref="echartRef"></sankey>
|
|
|
|
+ </borderTemplate>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import borderTemplate from "./borderTemplate.vue";
|
|
import sankey from "../../components/echartsTemplate/sankey.vue";
|
|
import sankey from "../../components/echartsTemplate/sankey.vue";
|
|
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
|
|
//这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
|
|
let lcolors = ["#1677CA", "#5BB57A", "#B1651F"];
|
|
let lcolors = ["#1677CA", "#5BB57A", "#B1651F"];
|
|
@@ -33,7 +34,7 @@ let rcolors = [
|
|
"#D4E0FF",
|
|
"#D4E0FF",
|
|
];
|
|
];
|
|
export default {
|
|
export default {
|
|
- components: { sankey },
|
|
|
|
|
|
+ components: { borderTemplate, sankey },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
sdata: {},
|
|
sdata: {},
|
|
@@ -46,146 +47,112 @@ export default {
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
getComputedStyle() {
|
|
getComputedStyle() {
|
|
- // let data = [
|
|
|
|
- // { name: "农用地", itemStyle: { color: lcolors[0] } },
|
|
|
|
- // { name: "林地", itemStyle: { color: lcolors[1] } },
|
|
|
|
- // { name: "耕地", itemStyle: { color: lcolors[2] } },
|
|
|
|
- // { name: "a1" },
|
|
|
|
- // { name: "a2" },
|
|
|
|
- // { name: "b1" },
|
|
|
|
- // { name: "c" },
|
|
|
|
- // ];
|
|
|
|
- // let data = [
|
|
|
|
- // { name: "耕地", v: 1 },
|
|
|
|
- // { name: "园地", v: 2 },
|
|
|
|
- // { name: "林地", v: 3 },
|
|
|
|
- // { name: "草地", v: 4 },
|
|
|
|
- // { name: "湿地", v: 5 },
|
|
|
|
- // { name: "农业设施用地", v: 6 },
|
|
|
|
- // {
|
|
|
|
- // name: "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
- // v: 7,
|
|
|
|
- // },
|
|
|
|
- // { name: "交通运输用地", v: 8 },
|
|
|
|
- // { name: "公共设施用地", v: 9 },
|
|
|
|
- // { name: "绿地与开敞空间用地", v: 10 },
|
|
|
|
-
|
|
|
|
- // { name: "陆地水城", v: 11 },
|
|
|
|
- // { name: "其他土地", v: 12 },
|
|
|
|
- // {
|
|
|
|
- // name: "渔业用海、工矿通信用海、交通运输用海、游憩用海、特殊用海、其他海域",
|
|
|
|
- // v: 13,
|
|
|
|
- // },
|
|
|
|
- // ];
|
|
|
|
let data = [
|
|
let data = [
|
|
- { name: "耕地" },
|
|
|
|
- { name: "园地" },
|
|
|
|
- { name: "林地" },
|
|
|
|
- { name: "草地" },
|
|
|
|
- { name: "湿地" },
|
|
|
|
|
|
+ { name: "t耕地" },
|
|
|
|
+ { name: "t园地" },
|
|
|
|
+ { name: "t林地" },
|
|
|
|
+ { name: "t草地" },
|
|
|
|
+ // { name: "t湿地" },
|
|
|
|
+ // { name: "t农业设施用地" },
|
|
|
|
+ {
|
|
|
|
+ name: "t居住用地",
|
|
|
|
+ },
|
|
|
|
+ { name: "t交通运输用地" },
|
|
|
|
+ // { name: "t公共设施用地" },
|
|
|
|
+ // { name: "t绿地与开敞空间用地" },
|
|
|
|
+
|
|
|
|
+ { name: "t陆地水城" },
|
|
|
|
+ // { name: "t其他土地" },
|
|
|
|
+ {
|
|
|
|
+ // name: "t渔业用海、工矿通信用海、交通运输用海、游憩用海、特殊用海、其他海域",
|
|
|
|
+ },
|
|
|
|
+ // { name: "耕地" },
|
|
|
|
+ // { name: "园地" },
|
|
|
|
+ // { name: "林地" },
|
|
|
|
+ // { name: "草地" },
|
|
|
|
+ // { name: "湿地" },
|
|
{ name: "农业设施用地" },
|
|
{ name: "农业设施用地" },
|
|
{
|
|
{
|
|
- name: "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
|
|
+ name: "居住用地",
|
|
},
|
|
},
|
|
{ name: "交通运输用地" },
|
|
{ name: "交通运输用地" },
|
|
- { name: "公共设施用地" },
|
|
|
|
|
|
+ // { name: "公共设施用地" },
|
|
{ name: "绿地与开敞空间用地" },
|
|
{ name: "绿地与开敞空间用地" },
|
|
|
|
|
|
{ name: "陆地水城" },
|
|
{ name: "陆地水城" },
|
|
- { name: "其他土地" },
|
|
|
|
|
|
+ // { name: "其他土地" },
|
|
{
|
|
{
|
|
- name: "渔业用海、工矿通信用海、交通运输用海、游憩用海、特殊用海、其他海域",
|
|
|
|
|
|
+ // name: "渔业用海、工矿通信用海、交通运输用海、游憩用海、特殊用海、其他海域",
|
|
},
|
|
},
|
|
];
|
|
];
|
|
- // let l = [
|
|
|
|
- // { source: "农用地", target: "a1", value: 5 },
|
|
|
|
- // { source: "农用地", target: "a2", value: 3 },
|
|
|
|
- // { source: "林地", target: "b1", value: 8 },
|
|
|
|
- // { source: "农用地", target: "b1", value: 3 },
|
|
|
|
- // { source: "林地", target: "a1", value: 1 },
|
|
|
|
- // { source: "林地", target: "c", value: 2 },
|
|
|
|
- // { source: "耕地", target: "c", value: 2 },
|
|
|
|
- // ];
|
|
|
|
|
|
|
|
let l = [
|
|
let l = [
|
|
- { source: "耕地", target: "陆地水城", value: 1 },
|
|
|
|
- { source: "耕地", target: "农业设施用地", value: 1 },
|
|
|
|
|
|
+ { source: "t耕地", target: "陆地水城", value: 1 },
|
|
|
|
+ { source: "t耕地", target: "农业设施用地", value: 1 },
|
|
{
|
|
{
|
|
- source: "耕地",
|
|
|
|
- target:
|
|
|
|
- "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
|
|
+ source: "t耕地",
|
|
|
|
+ target: "居住用地",
|
|
value: 25,
|
|
value: 25,
|
|
},
|
|
},
|
|
- { source: "耕地", target: "交通运输用地", value: 16 },
|
|
|
|
|
|
+ { source: "t耕地", target: "交通运输用地", value: 16 },
|
|
{
|
|
{
|
|
- source: "陆地水城",
|
|
|
|
- target:
|
|
|
|
- "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
|
|
+ source: "t陆地水城",
|
|
|
|
+ target: "居住用地",
|
|
value: 1,
|
|
value: 1,
|
|
},
|
|
},
|
|
- { source: "陆地水城", target: "交通运输用地", value: 5 },
|
|
|
|
- { source: "园地", target: "农业设施用地", value: 2 },
|
|
|
|
|
|
+ { source: "t陆地水城", target: "交通运输用地", value: 5 },
|
|
|
|
+ { source: "t园地", target: "农业设施用地", value: 2 },
|
|
{
|
|
{
|
|
- source: "园地",
|
|
|
|
- target:
|
|
|
|
- "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
|
|
+ source: "t园地",
|
|
|
|
+ target: "居住用地",
|
|
value: 3,
|
|
value: 3,
|
|
},
|
|
},
|
|
- { source: "林地", target: "陆地水城", value: 1 },
|
|
|
|
- { source: "林地", target: "农业设施用地", value: 4 },
|
|
|
|
|
|
+ { source: "t林地", target: "陆地水城", value: 1 },
|
|
|
|
+ { source: "t林地", target: "农业设施用地", value: 4 },
|
|
{
|
|
{
|
|
- source: "林地",
|
|
|
|
- target:
|
|
|
|
- "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
|
|
+ source: "t林地",
|
|
|
|
+ target: "居住用地",
|
|
value: 56,
|
|
value: 56,
|
|
},
|
|
},
|
|
- { source: "林地", target: "交通运输用地", value: 6 },
|
|
|
|
- { source: "草地", target: "农业设施用地", value: 1 },
|
|
|
|
|
|
+ { source: "t林地", target: "交通运输用地", value: 6 },
|
|
|
|
+ { source: "t草地", target: "农业设施用地", value: 1 },
|
|
{
|
|
{
|
|
- source: "草地",
|
|
|
|
- target:
|
|
|
|
- "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
|
|
+ source: "t草地",
|
|
|
|
+ target: "居住用地",
|
|
value: 89,
|
|
value: 89,
|
|
},
|
|
},
|
|
- { source: "草地", target: "交通运输用地", value: 8 },
|
|
|
|
|
|
+ { source: "t草地", target: "交通运输用地", value: 8 },
|
|
{
|
|
{
|
|
- source:
|
|
|
|
- "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
|
|
+ source: "t居住用地",
|
|
target: "绿地与开敞空间用地",
|
|
target: "绿地与开敞空间用地",
|
|
value: 3,
|
|
value: 3,
|
|
},
|
|
},
|
|
- // {
|
|
|
|
- // source:
|
|
|
|
- // "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
- // target: "陆地水城",
|
|
|
|
- // value: 1,
|
|
|
|
- // },
|
|
|
|
{
|
|
{
|
|
- source:
|
|
|
|
- "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
|
|
+ source: "t居住用地",
|
|
|
|
+ target: "陆地水城",
|
|
|
|
+ value: 1,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ source: "t居住用地",
|
|
target: "农业设施用地",
|
|
target: "农业设施用地",
|
|
value: 2,
|
|
value: 2,
|
|
},
|
|
},
|
|
- // {
|
|
|
|
- // source:
|
|
|
|
- // "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
- // target:
|
|
|
|
- // "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
- // value: 170,
|
|
|
|
- // },
|
|
|
|
{
|
|
{
|
|
- source:
|
|
|
|
- "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
|
|
+ source: "t居住用地",
|
|
|
|
+ target: "居住用地",
|
|
|
|
+ value: 170,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ source: "t居住用地",
|
|
target: "交通运输用地",
|
|
target: "交通运输用地",
|
|
value: 10,
|
|
value: 10,
|
|
},
|
|
},
|
|
- // {
|
|
|
|
- // source:
|
|
|
|
- // "居住用地、公共管理与公共服务用地、商业服务业用地、工矿用地、仓储用地",
|
|
|
|
- // target: "交通运输用地",
|
|
|
|
- // value: 1,
|
|
|
|
- // },
|
|
|
|
- // { source: "交通运输用地", target: "交通运输用地", value: 1 },
|
|
|
|
|
|
+ {
|
|
|
|
+ source: "t居住用地",
|
|
|
|
+ target: "交通运输用地",
|
|
|
|
+ value: 1,
|
|
|
|
+ },
|
|
|
|
+ { source: "t交通运输用地", target: "交通运输用地", value: 1 },
|
|
];
|
|
];
|
|
// l.forEach((a)=>{
|
|
// l.forEach((a)=>{
|
|
// data.push({name:a.source})
|
|
// data.push({name:a.source})
|
|
@@ -206,88 +173,40 @@ export default {
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.wpjg {
|
|
.wpjg {
|
|
- border-width: 0px;
|
|
|
|
- position: absolute;
|
|
|
|
- left: 1366px;
|
|
|
|
- top: 68%;
|
|
|
|
- width: 534px;
|
|
|
|
- height: 260px;
|
|
|
|
- display: -ms-flexbox;
|
|
|
|
- display: flex;
|
|
|
|
-
|
|
|
|
- .box {
|
|
|
|
- font-family: "Arial Normal", "Arial";
|
|
|
|
- font-weight: 400;
|
|
|
|
- font-style: normal;
|
|
|
|
- font-size: 13px;
|
|
|
|
- letter-spacing: normal;
|
|
|
|
- color: #333333;
|
|
|
|
- text-align: center;
|
|
|
|
- line-height: normal;
|
|
|
|
- text-transform: none;
|
|
|
|
- border-width: 0px;
|
|
|
|
- position: absolute;
|
|
|
|
- left: 0px;
|
|
|
|
- top: 0px;
|
|
|
|
- width: 535px;
|
|
|
|
- height: 260px;
|
|
|
|
- background: inherit;
|
|
|
|
- background-color: rgba(3, 25, 67, 0.698039215686274);
|
|
|
|
- border: none;
|
|
|
|
- border-radius: 0px;
|
|
|
|
- box-shadow: none;
|
|
|
|
- // background-repeat: no-repeat;
|
|
|
|
- // background-size: 100% 47%;
|
|
|
|
- // background-image: url("/static/images/cockpitNew/wpjg.png");
|
|
|
|
- .title {
|
|
|
|
- border-width: 0px;
|
|
|
|
- width: 100%;
|
|
|
|
- height: 40px;
|
|
|
|
- font-family: "Arial Negreta", "Arial Normal", "Arial";
|
|
|
|
- font-weight: 700;
|
|
|
|
- font-style: normal;
|
|
|
|
- color: #00ffff;
|
|
|
|
- padding: 2%;
|
|
|
|
- text-align: justify;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .content {
|
|
|
|
- width: 100%;
|
|
|
|
- height: 24px;
|
|
|
|
- }
|
|
|
|
|
|
+ top: calc(66.6% + 20px) !important;
|
|
|
|
+ .stacontent {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 24px;
|
|
|
|
+ }
|
|
|
|
|
|
- .item {
|
|
|
|
- width: 45%;
|
|
|
|
- height: 30%;
|
|
|
|
- display: inline-block;
|
|
|
|
- // border: #00FFFF 1px solid;
|
|
|
|
- }
|
|
|
|
|
|
+ .item {
|
|
|
|
+ width: 45%;
|
|
|
|
+ height: 30%;
|
|
|
|
+ display: inline-block;
|
|
|
|
+ // border: #00FFFF 1px solid;
|
|
|
|
+ }
|
|
|
|
|
|
- .dlabel {
|
|
|
|
- font-family: HarmonyOS Sans Naskh Arabic UI,
|
|
|
|
- HarmonyOS Sans Naskh Arabic UI;
|
|
|
|
- font-weight: 400;
|
|
|
|
- font-size: 14px;
|
|
|
|
- color: #bcd3e5;
|
|
|
|
- line-height: 24px;
|
|
|
|
- text-align: left;
|
|
|
|
- }
|
|
|
|
|
|
+ .dlabel {
|
|
|
|
+ font-family: HarmonyOS Sans Naskh Arabic UI, HarmonyOS Sans Naskh Arabic UI;
|
|
|
|
+ font-weight: 400;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ color: #bcd3e5;
|
|
|
|
+ line-height: 24px;
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
|
|
- .dvalue {
|
|
|
|
- font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
- font-weight: bold;
|
|
|
|
- color: #64daff;
|
|
|
|
- line-height: 16px;
|
|
|
|
- text-align: left;
|
|
|
|
- }
|
|
|
|
|
|
+ .dvalue {
|
|
|
|
+ font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
|
|
|
|
+ font-weight: bold;
|
|
|
|
+ color: #64daff;
|
|
|
|
+ line-height: 16px;
|
|
|
|
+ text-align: left;
|
|
|
|
+ }
|
|
|
|
|
|
- #wpjp_echart {
|
|
|
|
- width: 100%;
|
|
|
|
- height: calc(100% - 100px);
|
|
|
|
- position: relative;
|
|
|
|
- // left: -28%;
|
|
|
|
- // top: 40%;
|
|
|
|
- }
|
|
|
|
|
|
+ #wpjp_echart {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: calc(100% - 24px);
|
|
|
|
+ position: relative;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|