Tenant.vue 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <tenant-page>
  3. <template #default="{ group }">
  4. <div class="l-flex__auto l-flex--col">
  5. <el-tabs
  6. v-model="active"
  7. class="c-tabs has-bottom-padding"
  8. >
  9. <el-tab-pane
  10. label="设备"
  11. name="Device"
  12. />
  13. <el-tab-pane
  14. label="屏幕配置"
  15. name="Product"
  16. />
  17. <el-tab-pane
  18. label="屏幕类型"
  19. name="ProductType"
  20. />
  21. </el-tabs>
  22. <component
  23. :is="active"
  24. :key="active"
  25. :tenant="group.path"
  26. />
  27. </div>
  28. </template>
  29. </tenant-page>
  30. </template>
  31. <script>
  32. import ProductType from './components/ProductType'
  33. import Product from './components/Product'
  34. import Device from './components/Device'
  35. export default {
  36. name: 'TenantDeviceManagement',
  37. components: {
  38. ProductType,
  39. Product,
  40. Device
  41. },
  42. data () {
  43. return {
  44. active: 'Device'
  45. }
  46. }
  47. }
  48. </script>