index.vue 853 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <template>
  2. <a-card :bordered="false">
  3. <a-tabs type="card" @change="callback">
  4. <a-tab-pane key="historyData" tab="历史数据">
  5. <interlock-history-index></interlock-history-index>
  6. </a-tab-pane>
  7. <a-tab-pane key="timedReport" tab="定时报表">
  8. Content of Tab Pane 2
  9. <interlock-timedReport></interlock-timedReport>
  10. </a-tab-pane>
  11. </a-tabs>
  12. </a-card>
  13. </template>
  14. <script>
  15. import InterlockHistoryIndex from './InterlockHistoryIndex.vue';
  16. import InterlockTimedReport from './InterlockTimedReport.vue';
  17. export default {
  18. name: '',
  19. components: {
  20. InterlockTimedReport,
  21. InterlockHistoryIndex,
  22. },
  23. data () {
  24. return {
  25. }
  26. },
  27. created () {
  28. },
  29. mounted () {
  30. },
  31. methods: {
  32. callback(key){
  33. console.log(key);
  34. },
  35. }
  36. }
  37. </script>
  38. <style lang="less" scoped>
  39. </style>