2be1d1d99a854ac3422d8c1a154ee633917e802e.svn-base 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <el-container style="height:520px;">
  3. <el-main style="margin-left:5px;padding:0px;">
  4. <el-tabs tab-position="top" style="height: 200px;padding: 0 10px;">
  5. <el-tab-pane :label="item.label" v-for="(item,index) in tabsOption" :key="index">
  6. <component :is="item.component" :baseId="baseId" :currentObjectCode="currentObjectCode" :currentObjectWintCode="currentObjectWintCode" :currentObjectId="currentObjectId" :currentObjectRgstrId="currentObjectRgstrId"></component>
  7. </el-tab-pane>
  8. </el-tabs>
  9. </el-main>
  10. </el-container>
  11. </template>
  12. <script>
  13. import qushuikou from './taizhang/qushuikou'
  14. import qushuihu from './taizhang/qushuihu'
  15. import jiliang from './taizhang/jiliang'
  16. import shenpi from './taizhang/shenpi'
  17. import jihua from './taizhang/jihua'
  18. export default {
  19. props: ['currentObjectId','currentObjectCode','currentObjectWintCode','currentObjectRgstrId','baseId'],
  20. data(){
  21. return{
  22. tabsOption:[
  23. {label:'基本信息',component: 'qushuikou'},
  24. {label:'取水监测计量',component: 'jiliang'},
  25. {label:'近三年取水量',component: 'jihua'},
  26. ]
  27. }
  28. },
  29. components:{
  30. qushuikou,
  31. qushuihu,
  32. jiliang,
  33. shenpi,
  34. jihua
  35. }
  36. }
  37. </script>
  38. <style scoped>
  39. </style>