index.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <template>
  2. <div id="baseManageInfos">
  3. <el-button @click="jumpPages">营销</el-button>
  4. <el-button type="primary">资源</el-button>
  5. <div style="display: flex">
  6. <div class="infoBox">
  7. <div class="he">课程</div>
  8. <div>
  9. <el-button
  10. style="margin: 10px; display: block"
  11. v-for="(item, index) in list2"
  12. :key="index"
  13. @click="jumpPage(item)"
  14. >{{ item.title }}</el-button
  15. >
  16. </div>
  17. </div>
  18. <div class="infoBox" style="margin-left: 12px; height: 100%">
  19. <div class="he">题库</div>
  20. <div>
  21. <el-button
  22. style="margin: 10px; display: block"
  23. v-for="(item, index) in list3"
  24. :key="index"
  25. @click="jumpPage(item)"
  26. >{{ item.title }}</el-button
  27. >
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </template>
  33. <script>
  34. export default {
  35. name: "baseManageInfos",
  36. data() {
  37. return {
  38. status: 2,
  39. list2: [
  40. {
  41. title: "教育类型",
  42. url: "educationTypes",
  43. },
  44. {
  45. title: "项目类型",
  46. url: "projectType",
  47. },
  48. {
  49. title: "业务层次",
  50. url: "businessLevel",
  51. },
  52. {
  53. title: "院校",
  54. url: "colleges",
  55. },
  56. {
  57. title: "专业",
  58. url: "professional",
  59. },
  60. {
  61. title: "专业标签",
  62. url: "label",
  63. },
  64. {
  65. title: "科目",
  66. url: "suject",
  67. },
  68. {
  69. title: "考期",
  70. url: "testPeriod",
  71. },
  72. {
  73. title: "报读地区",
  74. url: "enrollmentArea",
  75. },
  76. {
  77. title: "证书类型",
  78. url: "certificate",
  79. },
  80. ],
  81. list3: [
  82. // {
  83. // title: "题目类型",
  84. // url: "questionType",
  85. // },
  86. {
  87. title: "试卷类型",
  88. url: "papers",
  89. },
  90. ],
  91. };
  92. },
  93. methods: {
  94. jumpPages() {
  95. this.$router.push({
  96. name: "BasicParameters",
  97. });
  98. },
  99. jumpPage(item) {
  100. this.$router.push({
  101. path: item.url,
  102. });
  103. },
  104. },
  105. };
  106. </script>
  107. <style lang="less" scoped>
  108. .infoBox {
  109. border-radius: 8px;
  110. border: 1px solid #a4a4a4;
  111. width: 200px;
  112. overflow: hidden;
  113. margin: 20px 0px;
  114. .he {
  115. height: 40px;
  116. line-height: 40px;
  117. background-color: #eee;
  118. text-align: center;
  119. }
  120. }
  121. </style>