index.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <div id="basicParameters">
  3. <el-button @click="status = 1" :type="status === 1 ? 'primary' : ''"
  4. >营销</el-button
  5. >
  6. <el-button @click="status = 2" :type="status === 2 ? 'primary' : ''"
  7. >资源</el-button
  8. >
  9. <div v-if="status === 1">
  10. <div class="infoBox">
  11. <div class="he">订单</div>
  12. <div>
  13. <el-button
  14. style="margin: 10px; display: block"
  15. v-for="(item, index) in list1"
  16. :key="index"
  17. @click="jumpPage(item)"
  18. >{{ item.title }}</el-button
  19. >
  20. </div>
  21. </div>
  22. </div>
  23. <div v-if="status === 2" style="display: flex">
  24. <div class="infoBox">
  25. <div class="he">课程</div>
  26. <div>
  27. <el-button
  28. style="margin: 10px; display: block"
  29. v-for="(item, index) in list2"
  30. :key="index"
  31. @click="jumpPage(item)"
  32. >{{ item.title }}</el-button
  33. >
  34. </div>
  35. </div>
  36. <div class="infoBox" style="margin-left: 12px;height:100%;">
  37. <div class="he">题库</div>
  38. <div>
  39. <el-button
  40. style="margin: 10px; display: block"
  41. v-for="(item, index) in list3"
  42. :key="index"
  43. @click="jumpPage(item)"
  44. >{{ item.title }}</el-button
  45. >
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </template>
  51. <script>
  52. export default {
  53. data() {
  54. return {
  55. status: 1,
  56. list1: [
  57. {
  58. title: "支付通道",
  59. url: "paymentChannel",
  60. },
  61. {
  62. title: "收款方",
  63. url: "beneficiary",
  64. },
  65. {
  66. title: "渠道来源",
  67. url: "channelSource",
  68. },
  69. {
  70. title: "到访分校",
  71. url: "visitCampus",
  72. },
  73. {
  74. title: "服务模式",
  75. url: "serviceModel",
  76. },
  77. {
  78. title: "供应方",
  79. url: "supplier",
  80. },
  81. {
  82. title: "收费性质",
  83. url: "natureCharge",
  84. },
  85. {
  86. title: "费用类型",
  87. url: "typesFee",
  88. },
  89. ],
  90. list2: [
  91. {
  92. title: "教育类型",
  93. url: "educationType",
  94. },
  95. {
  96. title: "项目类型",
  97. url: "projectType",
  98. },
  99. {
  100. title: "业务层次",
  101. url: "businessLevel",
  102. },
  103. {
  104. title: "院校",
  105. url: "colleges",
  106. },
  107. {
  108. title: "专业",
  109. url: "professional",
  110. },
  111. {
  112. title: "科目/类目",
  113. url: "suject",
  114. },
  115. {
  116. title: "考期",
  117. url: "testPeriod",
  118. },
  119. {
  120. title: "报读地区",
  121. url: "enrollmentArea",
  122. },
  123. {
  124. title: "证书",
  125. url: "certificate",
  126. },
  127. {
  128. title: "标签",
  129. url: "label",
  130. },
  131. ],
  132. list3: [
  133. {
  134. title: "题目类型",
  135. url: "questionType",
  136. },
  137. {
  138. title: "试卷类型",
  139. url: "papers",
  140. },
  141. ],
  142. };
  143. },
  144. methods: {
  145. jumpPage(item) {
  146. console.log(item.url);
  147. this.$router.push({
  148. path: item.url,
  149. });
  150. },
  151. },
  152. };
  153. </script>
  154. <style lang="less" scoped>
  155. .infoBox {
  156. border-radius: 8px;
  157. border: 1px solid #a4a4a4;
  158. width: 200px;
  159. overflow: hidden;
  160. margin: 20px 0px;
  161. .he {
  162. height: 40px;
  163. line-height: 40px;
  164. background-color: #eee;
  165. text-align: center;
  166. }
  167. }
  168. </style>