tbDetails.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <div class="ghzc">
  3. <div class="sm-panel sm-function-module-query" v-drag>
  4. <div class="sm-panel-header">
  5. <span>服务详情</span>
  6. <i class="el-icon-close" @click="closeBox"></i>
  7. </div>
  8. <div class="ServiceCon">
  9. <el-tabs type="border-card" class="xz_box" v-model="activeTabs" stretch>
  10. <el-tab-pane label="基本信息" name="jbxx">
  11. <Jbxx :detailObj="detailObj" @updateParent="changeData"></Jbxx>
  12. </el-tab-pane>
  13. <el-tab-pane label="核查信息" name="hcxx">
  14. <Hcxx @updateParent="changeData"></Hcxx>
  15. </el-tab-pane>
  16. </el-tabs>
  17. </div>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. import Jbxx from "./jbxx.vue";
  23. import Hcxx from "./hcxx.vue";
  24. export default {
  25. props: {
  26. detailObj: {
  27. type: Object,
  28. },
  29. },
  30. components: {
  31. Jbxx,
  32. Hcxx,
  33. },
  34. data() {
  35. return {
  36. activeTabs: "jbxx",
  37. templateList: [
  38. {
  39. 图斑编号: 6401812024070108270002,
  40. 行政名称: "海棠区",
  41. 前时相: "20230925",
  42. 后时相: "20240701",
  43. 前类型: "XX",
  44. 后类型: "XXX",
  45. },
  46. ],
  47. };
  48. },
  49. computed: {},
  50. mounted() {},
  51. methods: {
  52. closeBox() {
  53. this.$emit("updateParent", "isShowTb", false);
  54. },
  55. },
  56. watch: {},
  57. watch: {},
  58. beforeDestroy() {},
  59. };
  60. </script>
  61. <style lang="less" scoped>
  62. .ServiceCon {
  63. height: 760px;
  64. // background-color: aliceblue;
  65. cursor: auto;
  66. }
  67. /deep/ .el-icon-close:before {
  68. position: absolute;
  69. top: 10px;
  70. right: 10px;
  71. font-size: larger;
  72. font-weight: bold;
  73. &:hover {
  74. color: aqua;
  75. }
  76. }
  77. .sm-panel {
  78. width: 400px;
  79. max-width: 400px;
  80. /deep/ .el-icon-close:before {
  81. position: absolute;
  82. top: 10px;
  83. right: 10px;
  84. font-size: larger;
  85. font-weight: bold;
  86. &:hover {
  87. color: aqua;
  88. }
  89. }
  90. }
  91. .sm-function-module-query {
  92. max-height: 800px !important;
  93. top: 28px !important;
  94. }
  95. .xz_box {
  96. padding: 1rem 0.5rem 0px 0.5rem;
  97. height: 100% !important;
  98. }
  99. </style>