index.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <!--闲置土地-->
  2. <template>
  3. <div class="ghzc complianceAnalysis">
  4. <div class="innerContainer leftPane" v-drag>
  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>
  9. <el-tab-pane label="统计总览" name="tjzl">
  10. <Tjzl
  11. v-loading="loading"
  12. @updateParent="changeData"
  13. ref="tjzl"
  14. ></Tjzl>
  15. </el-tab-pane>
  16. <el-tab-pane label="闲置管理" name="xzgl">
  17. <Xzgl
  18. v-loading="loading"
  19. @updateParent="changeData"
  20. ref="xzgl"
  21. ></Xzgl>
  22. </el-tab-pane>
  23. </el-tabs>
  24. </div>
  25. <Details ref="detailModal"></Details>
  26. </div>
  27. </template>
  28. <script>
  29. import Tjzl from "./components/tjzl.vue";
  30. import Xzgl from "./components/xzgl.vue";
  31. import Details from "./components/details.vue";
  32. // import TabelView from "./components/tabelView.vue";
  33. export default {
  34. name: "complianceAnalysis",
  35. components: {
  36. Tjzl,
  37. Xzgl,
  38. Details,
  39. // TabelView,
  40. },
  41. data() {
  42. return {
  43. loading: false,
  44. activeTabs: "xzgl",
  45. };
  46. },
  47. created() {},
  48. mounted() {
  49. this.bus.$on("handleView", this.handleView);
  50. },
  51. methods: {
  52. changeData(name, updata) {
  53. this[name] = updata;
  54. },
  55. handleView(row, type) {
  56. this.$refs.detailModal.handleView(row, type);
  57. },
  58. },
  59. watch: {
  60. activeTabs(newValue) {
  61. // if (newValue != "tjzl") this.$refs.tjzl.reset();
  62. if (newValue != "xzgl") this.$refs.xzgl.reset();
  63. if (newValue == "tjzl") this.$refs.tjzl.getData();
  64. if (newValue == "xzgl") {
  65. this.$refs.xzgl.reset();
  66. this.$refs.xzgl.changeForm();
  67. }
  68. },
  69. },
  70. };
  71. </script>
  72. <style lang="scss" scoped>
  73. .complianceAnalysis {
  74. .xz_box {
  75. padding-bottom: 0;
  76. .title {
  77. padding: 8px;
  78. margin-bottom: 10px;
  79. span {
  80. color: #605e5e;
  81. padding-left: 8px;
  82. border-left: 3px solid #3a8ee6;
  83. }
  84. button {
  85. padding: 0;
  86. float: right;
  87. margin-right: 5px;
  88. min-height: unset;
  89. }
  90. }
  91. }
  92. }
  93. </style>
  94. <style lang="scss">
  95. @import "../complianceAnalysis/ghzc.scss";
  96. </style>