index.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. <!--全域土地综合整治专题-->
  2. <template>
  3. <div class="ghzc LandConsolidation">
  4. <div v-show="!iscontrast">
  5. <div class="headerCheck">
  6. <ul>
  7. <li
  8. :class="{ liActive: i == activeIndex }"
  9. v-for="(item, i) in checkList"
  10. :key="i"
  11. @click="onClick(i)"
  12. >
  13. {{ item.title }}
  14. </li>
  15. </ul>
  16. </div>
  17. <div class="innerContainer leftPane" v-drag>
  18. <h2 class="Pangetitle darg-div el-col">
  19. <span class="pange_text">全域土地综合整治专题 </span>
  20. <el-dropdown @command="download">
  21. <span class="document el-icon-document"> </span>
  22. <el-dropdown-menu slot="dropdown">
  23. <el-dropdown-item
  24. v-for="file in filelist"
  25. :key="file"
  26. :command="file"
  27. >{{ file.slice(19) }}
  28. </el-dropdown-item>
  29. </el-dropdown-menu>
  30. </el-dropdown>
  31. <div class="region">
  32. <!-- clearable -->
  33. <el-cascader
  34. v-model="xzqh"
  35. :show-all-levels="false"
  36. :options="store.state.region_tree"
  37. @change="regionChange"
  38. placeholder="行政区"
  39. size="mini"
  40. :props="{
  41. checkStrictly: true,
  42. expandTrigger: 'hover',
  43. emitPath: false,
  44. }"
  45. ></el-cascader>
  46. </div>
  47. </h2>
  48. <div class="xz_box">
  49. <Sdgk
  50. @updateParent="changeData"
  51. ref="sdgk"
  52. v-show="activeIndex == 0"
  53. @gozzxm="onClick(1)"
  54. ></Sdgk>
  55. <List
  56. @updateParent="changeData"
  57. @cockpit="cockpit"
  58. @contrast="goContrast"
  59. ref="list"
  60. v-show="activeIndex == 1"
  61. ></List>
  62. <Xzgd
  63. @updateParent="changeData"
  64. @cockpit="cockpit"
  65. ref="xzgd"
  66. v-show="activeIndex == 2"
  67. ></Xzgd>
  68. <preCheck
  69. @updateParent="changeData"
  70. ref="preCheck"
  71. v-show="activeIndex == 3"
  72. ></preCheck>
  73. </div>
  74. </div>
  75. <div class="innerContainer bottomPane" v-drag v-show="activeIndex == 0">
  76. <div class="xz_box">
  77. <Qhdb
  78. @updateParent="changeData"
  79. @contrast="goContrast"
  80. ref="qhdb"
  81. ></Qhdb>
  82. </div>
  83. </div>
  84. <div
  85. class="innerContainer legendPane"
  86. :class="showlist ? '' : 'hielegend'"
  87. v-drag
  88. >
  89. <div class="xz_box">
  90. 图例
  91. <div
  92. class="eicon"
  93. :class="showlist ? 'eyes' : 'close_eyes'"
  94. @click="showlist = !showlist"
  95. ></div>
  96. <div v-if="showlist">
  97. <div v-for="(litem, li) in legends" :key="litem.label">
  98. <span :class="`legend${li}`" class="lcolor"></span>
  99. <span class="legLabel">{{ litem.label }}</span>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. <div
  105. class="innerContainer rightPane newContainer"
  106. v-show="activeIndex == 0"
  107. >
  108. <Organize ref="organize"></Organize>
  109. </div>
  110. </div>
  111. <Details ref="detailModal" @goxzgd="goxzgd"></Details>
  112. <Contrast
  113. ref="contrastModal"
  114. v-show="iscontrast"
  115. @close="contrastClose"
  116. ></Contrast>
  117. <RzDtails
  118. :rzBsm="rzBsm"
  119. :rzMc="nowObj.xmmc"
  120. @updateParent="changeData"
  121. @rzClose="rzClose"
  122. ></RzDtails>
  123. </div>
  124. </template>
  125. <script>
  126. import { QueryOne } from "@/api/cockpitNew";
  127. import Organize from "./components/organize.vue";
  128. import Sdgk from "./components/sdgk.vue";
  129. import Qhdb from "./components/qhdb.vue";
  130. import List from "./components/list.vue";
  131. import preCheck from "./components/preCheck.vue";
  132. import Xzgd from "./components/xzgd.vue";
  133. import Details from "./components/details.vue";
  134. import Contrast from "./components/contrast.vue";
  135. import { legends } from "./components/config.js";
  136. import RzDtails from "../complianceAnalysis/components/rzDtails.vue";
  137. import * as pick_cockpit_vector from "@/components/Query/clickQuery/pick_cockpit_vector.js";
  138. export default {
  139. name: "LandConsolidation",
  140. components: {
  141. Sdgk,
  142. Qhdb,
  143. List,
  144. preCheck,
  145. Details,
  146. Details,
  147. Organize,
  148. Xzgd,
  149. Contrast,
  150. RzDtails,
  151. },
  152. data() {
  153. return {
  154. showlist: true,
  155. // htmlContent: htmlContent,
  156. filelist: [],
  157. loading: false,
  158. drawer: false,
  159. xzqh: "",
  160. checkList: [
  161. {
  162. title: "试点总揽",
  163. },
  164. {
  165. title: "整治项目",
  166. },
  167. {
  168. title: "新增耕地",
  169. },
  170. {
  171. title: "整治预检",
  172. },
  173. ],
  174. activeIndex: 0,
  175. legends: legends,
  176. iscontrast: false,
  177. rzBsm: "",
  178. nowObj: {}, //当前点击对象
  179. };
  180. },
  181. computed: {
  182. computed_vectorData() {
  183. return store.state.vectorData;
  184. },
  185. },
  186. created() {
  187. if (sessionStorage.getItem("cockpitDate"))
  188. store.setCockpitDate(sessionStorage.getItem("cockpitDate").split(","));
  189. },
  190. mounted() {
  191. this.xzqh = "460202"; //store.state.cockpit_region.id;
  192. this.regionChange();
  193. this.bus.$on("handleView", this.handleView);
  194. },
  195. methods: {
  196. changeData(name, updata) {
  197. this[name] = updata;
  198. },
  199. async getssfa() {
  200. let res = await QueryOne({
  201. jscType: "qytuzz_sdzl_sdmb_ssfa",
  202. id: this.xzqh,
  203. });
  204. console.log(res.data);
  205. this.filelist = res.data.zzwafile.split(",");
  206. },
  207. handleClick() {},
  208. download(file) {
  209. console.log(file, "aa");
  210. // window.open(this.$props.scjgObj.fxbg); //this.$props.scjgObj.task.fxbg
  211. window.open(
  212. ` ${window.axiosURI}/analyse/fzss/ShowReport?filePath=${file}`,
  213. "_blank"
  214. );
  215. },
  216. goContrast(dbdata) {
  217. this.$refs.sdgk.sourcesshow(false, dbdata.type);
  218. this.iscontrast = true;
  219. this.$refs.contrastModal.show(dbdata);
  220. },
  221. contrastClose() {
  222. this.iscontrast = false;
  223. this.$refs.sdgk.sourcesshow(true);
  224. },
  225. rzClose() {
  226. this.$refs.preCheck.rzClose();
  227. },
  228. handleView(row, type) {
  229. this.$refs.detailModal.handleView(row, type);
  230. },
  231. regionChange() {
  232. this.onClick(this.activeIndex);
  233. this.$refs.detailModal.closeInster();
  234. this.getssfa();
  235. },
  236. cockpit() {
  237. //驾驶舱矢量数据点选查询
  238. pick_cockpit_vector.init_handler();
  239. },
  240. onClick(val, xmdata) {
  241. this.activeIndex = val;
  242. if (val != 0) this.$refs.sdgk.reset();
  243. if (val != 1) this.$refs.list.reset();
  244. if (val != 2) this.$refs.xzgd.reset();
  245. if (val == 0) {
  246. this.$refs.sdgk.regionChange(this.xzqh);
  247. this.$refs.qhdb.regionChange(this.xzqh);
  248. this.$refs.organize.regionChange(this.xzqh);
  249. }
  250. if (val == 1) this.$refs.list.regionChange(this.xzqh);
  251. if (val == 2) this.$refs.xzgd.regionChange(this.xzqh, xmdata);
  252. this.$refs.detailModal.closeInster();
  253. },
  254. goxzgd(xmdata) {
  255. this.onClick(2, xmdata);
  256. },
  257. },
  258. watch: {
  259. // activeIndex(val) {},
  260. computed_vectorData(newVal) {
  261. console.log(newVal, "newVal");
  262. newVal.forEach((res) => {
  263. if (res.name == "res") {
  264. if ((res.value.entity = "整治图斑"))
  265. this.handleView(res.value, "整治图斑"); //this.$refs.list.getType()
  266. }
  267. });
  268. },
  269. },
  270. };
  271. </script>
  272. <style lang="scss" scoped>
  273. .LandConsolidation {
  274. .xz_box {
  275. padding-bottom: 0;
  276. }
  277. .document {
  278. // position: absolute;
  279. // right: 110px;
  280. // top: 19px;
  281. color: cornflowerblue;
  282. font-size: 24px;
  283. margin-left: 10px;
  284. margin-top: 5px;
  285. cursor: pointer;
  286. z-index: 100;
  287. }
  288. .clearBtn {
  289. cursor: pointer;
  290. z-index: 200;
  291. }
  292. .bottomPane {
  293. // width: 45vw;
  294. width: 52vw;
  295. height: 330px;
  296. top: calc(100% - 360px);
  297. // left: 600px;
  298. // left: 31.2vw;
  299. left: 24vw;
  300. }
  301. .legendPane {
  302. // position: relative;
  303. // width: 130px;
  304. // height: 120px;
  305. width: 6.7vw;
  306. height: 12.6vh;
  307. top: calc(100% - 500px);
  308. // top: calc(100% - 150px);
  309. // left: 460px;
  310. // left: 23.5vw;
  311. left: 24vw;
  312. .eicon {
  313. width: 20px;
  314. height: 20px;
  315. margin-top: 10px;
  316. background-size: 100% 100%;
  317. position: absolute;
  318. top: 0;
  319. right: 20px;
  320. }
  321. // .eyes {
  322. // background-image: url("/static/images/ghzc/eyes.png");
  323. // }
  324. // .close_eyes {
  325. // background-image: url("/static/images/ghzc/close_eyes.png");
  326. // }
  327. .lcolor {
  328. display: inline-block;
  329. width: 16px;
  330. height: 16px;
  331. margin-left: 10px;
  332. }
  333. .legend0 {
  334. background: #caf982;
  335. }
  336. .legend1 {
  337. background: #80ffff;
  338. }
  339. .legend2 {
  340. background: #facd91;
  341. }
  342. }
  343. .hielegend {
  344. height: 40px;
  345. }
  346. }
  347. .newContainer {
  348. top: 40px !important;
  349. }
  350. </style>
  351. <style lang="scss">
  352. .LandConsolidation {
  353. .region {
  354. width: 100px !important;
  355. margin: 0 20px;
  356. }
  357. .tdTitle {
  358. color: #64daff;
  359. font-size: 18px;
  360. font-weight: bold;
  361. display: inline-block;
  362. margin-right: 5px;
  363. }
  364. .el-cascader--mini {
  365. top: 0px;
  366. background: transparent;
  367. }
  368. .headerCheck {
  369. width: 520px;
  370. height: 50px;
  371. // background: rgba(255, 192, 203, 0.379);
  372. position: absolute;
  373. left: 35vw;
  374. top: 3vh;
  375. z-index: 99;
  376. pointer-events: none;
  377. ul {
  378. list-style: none;
  379. display: flex;
  380. justify-content: space-between;
  381. align-items: center;
  382. height: 100%;
  383. li {
  384. width: 114px;
  385. height: 36px;
  386. background: inherit;
  387. // background-color: rgba(128, 255, 255, 0.39);
  388. box-sizing: border-box;
  389. border-width: 2px;
  390. border-style: solid;
  391. border-color: #64daff;
  392. border-radius: 9px;
  393. border-top-right-radius: 0px;
  394. border-bottom-left-radius: 0px;
  395. color: #64daff;
  396. text-align: center;
  397. line-height: 36px;
  398. pointer-events: all;
  399. cursor: pointer;
  400. }
  401. li:active,
  402. li:focus {
  403. background-color: rgba(128, 255, 255, 0.39) !important;
  404. }
  405. }
  406. .liActive {
  407. background-color: rgba(128, 255, 255, 0.39) !important;
  408. }
  409. .liItem {
  410. background-color: transparent !important;
  411. }
  412. }
  413. }
  414. .el-dropdown-menu,
  415. .el-select-dropdown {
  416. background-color: rgba(4, 28, 50, 1) !important;
  417. border: 1px solid rgba(15, 122, 200, 0.4) !important;
  418. }
  419. .el-dropdown-menu__item {
  420. color: #fff !important;
  421. }
  422. .el-dropdown-menu__item:focus,
  423. .el-dropdown-menu__item:not(.is-disabled):hover {
  424. background-color: rgba(255, 255, 255, 0.35) !important;
  425. }
  426. @import "../complianceAnalysis/ghzc.scss";
  427. </style>