123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- <!--全域土地综合整治专题-->
- <template>
- <div class="ghzc LandConsolidation">
- <div v-show="!iscontrast">
- <div>
- <div class="headerCheck">
- <ul>
- <li
- :class="{ liActive: i == activeIndex }"
- v-for="(item, i) in checkList"
- :key="i"
- @click="onClick(i)"
- >
- {{ item.title }}
- </li>
- </ul>
- </div>
- </div>
- <Gdzl
- v-show="activeIndex == 0 || activeIndex == 1"
- :pageType="activeIndex"
- ref="gdzl"
- ptaye="gdbh"
- @contrast="goContrast"
- ></Gdzl>
- <Jctb v-if="activeIndex == 2" ref="jctb"></Jctb>
- <Fzyp v-show="activeIndex == 3"></Fzyp>
- </div>
- <!-- <div
- class="innerContainer legendPane"
- v-drag
- v-show="activeIndex == 0 || activeIndex == 1"
- >
- <div class="xz_box">
- 图例
- <div v-for="(litem, li) in legends" :key="litem.label">
- <span :class="`legend${li}`" class="lcolor"></span>
- <span class="legLabel">{{ litem.label }}</span>
- </div>
- </div>
- </div> -->
- <Contrast
- ref="contrastModal"
- v-show="iscontrast"
- @fly="fly"
- @close="contrastClose"
- ></Contrast>
- </div>
- </template>
- <script>
- // import Organize from "./components/organize.vue";
- import Gdzl from "./gdzl/index.vue";
- import Jctb from "./jctb/index.vue";
- // import Qhdb from "./components/qhdb.vue";
- // import List from "./components/list.vue";
- // import preCheck from "./components/preCheck.vue";
- // import Xzgd from "./components/xzgd.vue";
- // import Details from "./components/details.vue";
- import Contrast from "../LandConsolidation/components/contrast.vue";
- import Fzyp from "./index.vue";
- import { legends } from "./config.js";
- import * as pick_cockpit_vector from "@/components/Query/clickQuery/pick_cockpit_vector.js";
- export default {
- name: "farmlandProtectionNew",
- components: {
- Gdzl,
- Jctb,
- // Qhdb,
- // List,
- // preCheck,
- // Details,
- // Details,
- // Organize,
- // Xzgd,
- Contrast,
- Fzyp,
- },
- data() {
- return {
- loading: false,
- drawer: false,
- xzqh: "",
- checkList: [
- { title: "耕地" },
- { title: "永久基本农田" },
- { title: "监测图斑" },
- { title: "辅助研判" },
- ],
- activeIndex: 1,
- iscontrast: false,
- legends: legends,
- };
- },
- computed: {
- computed_vectorData() {
- return store.state.vectorData;
- },
- },
- created() {
- if (sessionStorage.getItem("cockpitDate"))
- store.setCockpitDate(sessionStorage.getItem("cockpitDate").split(","));
- },
- mounted() {
- this.xzqh = store.state.cockpit_region.id;
- this.regionChange();
- this.bus.$on("handleView", this.handleView);
- },
- methods: {
- changeData(name, updata) {
- this[name] = updata;
- },
- goContrast(dbdata) {
- this.$refs.gdzl.sourcesshow(false);
- this.iscontrast = true;
- this.$refs.contrastModal.show(dbdata);
- },
- fly() {
- this.$refs.gdzl.fly();
- },
- contrastClose() {
- this.iscontrast = false;
- this.$refs.gdzl.sourcesshow(true);
- },
- handleView(row, type) {
- this.$refs.detailModal.handleView(row, type);
- },
- regionChange() {
- this.onClick(this.activeIndex);
- },
- cockpit() {
- //驾驶舱矢量数据点选查询
- pick_cockpit_vector.init_handler();
- },
- onClick(val) {
- this.activeIndex = val;
- if (val != 0) this.$refs.gdzl.reset();
- if (val == 0) {
- this.$refs.gdzl.regionChange(this.xzqh);
- }
- if (val == 1) this.$refs.gdzl.regionChange(this.xzqh);
- if (val !== 2 && this.$refs.jctb) this.$refs.jctb.isShowTb = false;
- },
- },
- watch: {
- // activeIndex(val) {},
- computed_vectorData(newVal) {
- console.log(newVal, "newVal");
- newVal.forEach((res) => {
- if (res.name == "id") {
- this.handleView({ id: res.value }, ""); //this.$refs.list.getType()
- }
- });
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .LandConsolidation {
- .xz_box {
- padding-bottom: 0;
- }
- .document {
- // position: absolute;
- // right: 110px;
- // top: 19px;
- color: cornflowerblue;
- font-size: 24px;
- margin-left: 10px;
- margin-top: 5px;
- cursor: pointer;
- z-index: 100;
- }
- .clearBtn {
- cursor: pointer;
- z-index: 200;
- }
- .bottomPane {
- width: 43%;
- height: 330px;
- top: calc(100% - 360px);
- left: 600px;
- }
- .legendPane {
- width: 130px;
- height: 120px;
- // top: calc(100% - 500px);
- top: calc(100% - 150px);
- left: 460px;
- .lcolor {
- display: inline-block;
- width: 16px;
- height: 16px;
- margin-left: 10px;
- }
- .legend0 {
- background: #caf982;
- }
- .legend1 {
- background: #80ffff;
- }
- .legend2 {
- background: #facd91;
- }
- }
- }
- .newContainer {
- height: 758px !important;
- top: 70px !important;
- }
- .el-select-dropdown {
- background-color: rgba(4, 28, 50, 1) !important;
- }
- </style>
- <style lang="scss">
- .LandConsolidation {
- .region {
- width: 100px !important;
- margin: 0 20px;
- }
- .tdTitle {
- color: #64daff;
- font-size: 18px;
- font-weight: bold;
- display: inline-block;
- margin-right: 5px;
- }
- .el-cascader--mini {
- top: 0px;
- background: transparent;
- }
- .headerCheck {
- width: 520px;
- height: 50px;
- position: absolute;
- left: 35vw;
- top: 3vh;
- z-index: 99;
- pointer-events: none;
- ul {
- list-style: none;
- display: flex;
- justify-content: space-between;
- align-items: center;
- height: 100%;
- li {
- width: 114px;
- height: 36px;
- background: inherit;
- // background-color: rgba(128, 255, 255, 0.39);
- box-sizing: border-box;
- border-width: 2px;
- border-style: solid;
- border-color: #64daff;
- border-radius: 9px;
- border-top-right-radius: 0px;
- border-bottom-left-radius: 0px;
- color: #64daff;
- text-align: center;
- line-height: 36px;
- pointer-events: all;
- cursor: pointer;
- }
- li:active,
- li:focus {
- background-color: rgba(128, 255, 255, 0.39) !important;
- }
- }
- .liActive {
- background-color: rgba(128, 255, 255, 0.39) !important;
- }
- .liItem {
- background-color: transparent !important;
- }
- }
- }
- @import "../complianceAnalysis/ghzc.scss";
- </style>
|