index.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <!--合规性分析-->
  2. <template >
  3. <div class="ghzc siteselection">
  4. <div class="innerContainer leftPane" v-drag @click.native.stop>
  5. <h2 class="Pangetitle darg-div">
  6. <span class="pange_text">耕地保护</span>
  7. </h2>
  8. <el-tabs type="border-card" class="xz_box" v-model="activeTabs" stretch @tab-click="tabClick">
  9. <el-tab-pane label="辅助监测研判" name="fzjcyp">
  10. <FZJCYP v-loading="loading" @updateParent="changeData" ref="fzjcyp"></FZJCYP>
  11. </el-tab-pane>
  12. <el-tab-pane label="历史记录" name="lsju">
  13. <Lsjl :rzBsm="rzBsm" :activeTabs="activeTabs" @updateParent="changeData" type="gdbh" ref="lsju"></Lsjl>
  14. </el-tab-pane>
  15. <el-tab-pane label="分析结果" :disabled="activeTabs != 'scjg'" name="fxjg">
  16. <div v-drag style="height: 100%;">
  17. <FXJG :activeTabs="activeTabs" :loading="loading" :fxjgObj="nowObj" ref="fxjg"
  18. v-if="activeTabs == 'fxjg'"></FXJG>
  19. </div>
  20. </el-tab-pane>
  21. </el-tabs>
  22. </div>
  23. <!-- <RzDtails :rzBsm="rzBsm" @updateParent="changeData" :interObj="interObj"></RzDtails> -->
  24. </div>
  25. </template>
  26. <script>
  27. import FZJCYP from "./components/fzjcyp.vue";
  28. import FXJG from "./components/fxjg.vue";
  29. import Lsjl from "../complianceAnalysis/components/lsjl.vue";
  30. import RzDtails from "./components/interDetails.vue";
  31. export default {
  32. name: "farmlandProtection",
  33. components: {
  34. FZJCYP,
  35. Lsjl,
  36. FXJG,
  37. RzDtails
  38. },
  39. data() {
  40. return {
  41. activeTabs: "fzjcyp",
  42. rzBsm: "",
  43. rwBsm: "",
  44. nowObj: {},
  45. rzMc: "",
  46. loading: false,
  47. interObj:{},//套合信息存储
  48. };
  49. },
  50. created() { },
  51. methods: {
  52. changeData(name, updata) {
  53. this[name] = updata;
  54. console.log(this[name])
  55. },
  56. tabClick(evt) {
  57. this.activeTabs = evt.name;
  58. },
  59. },
  60. watch: {
  61. activeTabs(newValue) {
  62. // if (newValue != "fzxz") this.$refs.fzxz.reset();
  63. if (newValue != "lsju") this.$refs.lsju.reset();
  64. if (newValue == "lsju") {
  65. this.$refs.lsju.reset();
  66. this.$refs.lsju.changeForm();
  67. }
  68. if (newValue == "fxjg") {
  69. this.$nextTick(() => {
  70. this.$refs.fxjg.initData();
  71. });
  72. }
  73. },
  74. },
  75. };
  76. </script>
  77. <style lang="scss" scoped>
  78. .siteselection {
  79. .xz_box {
  80. .title {
  81. padding: 8px;
  82. margin-bottom: 10px;
  83. span {
  84. color: #605e5e;
  85. padding-left: 8px;
  86. border-left: 3px solid #3a8ee6;
  87. }
  88. button {
  89. padding: 0;
  90. float: right;
  91. margin-right: 5px;
  92. min-height: unset;
  93. }
  94. }
  95. .el-form-item {
  96. margin-bottom: 0;
  97. }
  98. .xz_table {
  99. height: 180px;
  100. /deep/.el-table__header-wrapper {
  101. height: 40px;
  102. }
  103. /deep/.el-table__body-wrapper {
  104. height: calc(100% - 40px);
  105. overflow-y: auto;
  106. }
  107. }
  108. .xz_type {
  109. margin-bottom: 10px;
  110. justify-content: space-evenly;
  111. div {
  112. i {
  113. font-size: 36px;
  114. }
  115. }
  116. }
  117. .xz-btn {
  118. width: 100%;
  119. // background: #efefef;
  120. position: absolute;
  121. height: 55px;
  122. z-index: 999;
  123. bottom: 0;
  124. right: 0;
  125. display: flex;
  126. align-items: center;
  127. }
  128. .jg-box {
  129. td {
  130. padding-left: 15px;
  131. }
  132. .el-collapse-item__header {
  133. span {
  134. position: absolute;
  135. right: 40px;
  136. }
  137. }
  138. .el-collapse-item__content {
  139. padding-bottom: 0;
  140. }
  141. }
  142. }
  143. .tckz {
  144. position: absolute;
  145. left: auto;
  146. right: 10px;
  147. bottom: 100px;
  148. text-align: center;
  149. // background-color: rgba(255, 255, 255, 0.85);
  150. padding-top: 5px;
  151. padding-bottom: 5px;
  152. padding-right: 5px;
  153. padding-left: 5px;
  154. border-radius: 5px;
  155. >div {
  156. padding: 5px;
  157. text-align: left;
  158. }
  159. }
  160. }
  161. </style>
  162. <style lang="scss">
  163. @import "../complianceAnalysis//ghzc.scss";
  164. </style>