|
@@ -109,7 +109,7 @@
|
|
|
</div>
|
|
|
<div class="text">
|
|
|
<p>流入耕地</p>
|
|
|
- <span>{{ store.state.cockpit_gdbh.gdxz.title.st_mj }}</span>km²
|
|
|
+ <span>{{ zbpg_hz.jcpg.lrgd == '暂无' ? 0 : zbpg_hz.jcpg.lrgd }}</span>km²
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
@@ -121,7 +121,7 @@
|
|
|
</div>
|
|
|
<div class="text">
|
|
|
<p>流出耕地</p>
|
|
|
- <span>{{ store.state.cockpit_gdbh.gdxz.title.sjd_mj }}</span>km²
|
|
|
+ <span>{{ zbpg_hz.jcpg.lcgd == '暂无' ? 0 : zbpg_hz.jcpg.lcgd }}</span>km²
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
@@ -197,6 +197,8 @@ import borderTemplate from "./borderTemplate.vue";
|
|
|
// import highPie from "../../components/echartsTemplate/highPie.vue";
|
|
|
import pie3d from "../../components/echartsTemplate/3dPie.vue";
|
|
|
import { QueryOne, QueryList } from "../../api/cockpitNew";
|
|
|
+import parse from "wellknown";
|
|
|
+
|
|
|
export default {
|
|
|
components: { borderTemplate, pie3d },
|
|
|
data() {
|
|
@@ -218,18 +220,26 @@ export default {
|
|
|
qzst: 0,
|
|
|
tslscn: 0,
|
|
|
mj: 0,
|
|
|
+ },
|
|
|
+ jcpg: {
|
|
|
+ lrgd: 0,
|
|
|
+ lcgd: 0,
|
|
|
+ lc_st: 0,
|
|
|
+ lc_hd: 0,
|
|
|
+ lc_sjd: 0
|
|
|
}
|
|
|
|
|
|
},
|
|
|
- balanceData:{
|
|
|
- cb_cn:0,
|
|
|
+ vector_data: null,
|
|
|
+ balanceData: {
|
|
|
+ cb_cn: 0,
|
|
|
cb_gdm: 0,
|
|
|
cb_st: 0,
|
|
|
create_time: "20240101",
|
|
|
id: "4602",
|
|
|
- zy_cn:0,
|
|
|
+ zy_cn: 0,
|
|
|
zy_gdmj: 0,
|
|
|
- zy_st:0
|
|
|
+ zy_st: 0
|
|
|
},//占补平衡数据存储
|
|
|
};
|
|
|
},
|
|
@@ -629,6 +639,47 @@ export default {
|
|
|
})
|
|
|
this.$refs.jcpg.setOptions(arr);
|
|
|
},
|
|
|
+ async init_jcph_table(params) {
|
|
|
+ const that = this;
|
|
|
+ let obj = {
|
|
|
+ jscType: "jsc_gdbh_jcph_zbmc",
|
|
|
+ id: params ? params.id : "4602",
|
|
|
+ val1: 1,
|
|
|
+ val2: 50000,
|
|
|
+ beginTime: store.state.cockpit_date[1].slice(0, 4)
|
|
|
+ };
|
|
|
+ let data = await QueryList(obj);
|
|
|
+ data.data.map((res) => {
|
|
|
+ if (res.geom) {
|
|
|
+ res.geom = parse(res.geom.split(";")[1]);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ this.vector_data = data.data;
|
|
|
+ store.setCockpit_vector({
|
|
|
+ title: "进出平衡",
|
|
|
+ tableData: this.vector_data,
|
|
|
+ tablejscType: 'jsc_tdgy_gy_zbmx',
|
|
|
+ columns: [
|
|
|
+ "进出状态",
|
|
|
+ "地类编码",
|
|
|
+ "地类编码名称",
|
|
|
+ ],
|
|
|
+ });
|
|
|
+ },
|
|
|
+ async init_jcpg_hz(params) {
|
|
|
+ let res = await QueryOne({
|
|
|
+ jscType: "jsc_gdbh_jcph_hz",
|
|
|
+ id: params ? params.id : '4602',
|
|
|
+ val0: store.state.cockpit_date[1].slice(0, 4)
|
|
|
+ });
|
|
|
+console.log(store.state.cockpit_date[1],"store.state.cockpit_date[1]");
|
|
|
+ this.zbpg_hz.jcpg.lrgd = res.data.lrgd
|
|
|
+ this.zbpg_hz.jcpg.lcgd = res.data.lcgd
|
|
|
+ this.zbpg_hz.jcpg.lc_st = res.data.lc_st
|
|
|
+ this.zbpg_hz.jcpg.lc_hd = res.data.lc_hd
|
|
|
+ this.zbpg_hz.jcpg.lc_sjd = res.data.lc_sjd
|
|
|
+
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
// const optionsData = [
|
|
@@ -646,7 +697,8 @@ export default {
|
|
|
this.init_zbph();
|
|
|
this.init_jcpg();
|
|
|
this.init_zbph_hz();
|
|
|
-
|
|
|
+ // this.init_jcph_table();
|
|
|
+ this.init_jcpg_hz();
|
|
|
})
|
|
|
},
|
|
|
};
|