index.vue 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <div class="page_configureCenter">
  3. <div class="configureCenterTitle">
  4. <i class="iconfont icon-zuojiantou jiantou" @click="$router.go(-1)"></i>
  5. <span class="titleName">配置中心</span>
  6. </div>
  7. <div class="configureCenterMain">
  8. <van-tabs v-model="active" sticky>
  9. <van-tab title="分区">
  10. <partition :active="active"></partition>
  11. </van-tab>
  12. <van-tab title="分组">
  13. <grouping :active="active"></grouping>
  14. </van-tab>
  15. <van-tab title="床位">
  16. <bed :active="active"></bed>
  17. </van-tab>
  18. </van-tabs>
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. import Partition from "@/pages/configureCenter/components/Partition";
  24. import Grouping from "@/pages/configureCenter/components/Grouping";
  25. import Bed from "@/pages/configureCenter/components/Bed";
  26. import { setRem } from "@/libs/functionRem";
  27. export default {
  28. components: {
  29. Partition,
  30. Grouping,
  31. Bed
  32. },
  33. data() {
  34. return {
  35. active: 0
  36. };
  37. },
  38. methods: {
  39. toReturn() {
  40. this.$router.push("/manageconsole");
  41. }
  42. },
  43. created() {
  44. setRem()
  45. // if (this.$route.query.active) {
  46. // this.active = parseInt(this.$route.query.active);
  47. // console.log("ac", this.active);
  48. // }
  49. }
  50. };
  51. </script>
  52. <style lang="scss" scoped>
  53. .page_configureCenter {
  54. height: 100%;
  55. overflow: hidden;
  56. overflow-y: auto;
  57. .configureCenterTitle {
  58. background: #fff;
  59. padding: 0 1.125rem;
  60. height: 3.125rem;
  61. display: flex;
  62. align-items: center;
  63. }
  64. .jiantou {
  65. font-size: 1.5rem;
  66. font-weight: 600;
  67. margin-right: 7rem;
  68. }
  69. .titleName {
  70. font-size: 1.125rem;
  71. font-weight: 600;
  72. }
  73. }
  74. </style>
  75. <style lang="scss">
  76. .page_configureCenter {
  77. .van-tabs__line {
  78. background: #5b98ff;
  79. }
  80. .van-tab--active {
  81. font-size: 1rem;
  82. color: #000;
  83. font-weight: bold;
  84. }
  85. }
  86. </style>