tryClass.vue 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <div class='m-container'>
  3. <h2>试听课设置</h2>
  4. <div class="m-core">
  5. <!-- <div class='newBand'>新建</div> -->
  6. <!-- 列表 -->
  7. <div class="tableWrap">
  8. <el-table :data='tableList'>
  9. <el-table-column align='center'
  10. label="试听课可选专业">
  11. </el-table-column>
  12. <el-table-column align='center'
  13. label="收费方式">
  14. </el-table-column>
  15. <el-table-column align='center'
  16. label="收费金额">
  17. </el-table-column>
  18. <el-table-column align='center'
  19. label="操作">
  20. <template slot-scope="scope">
  21. <el-button type="text">删除</el-button>
  22. <el-button type="text">停用</el-button>
  23. </template>
  24. </el-table-column>
  25. </el-table>
  26. <pagination :total="pageInfo.total"
  27. :page.sync="pageInfo.page"
  28. :limit.sync="pageInfo.limit"
  29. :page-sizes="pageInfo.page_size"
  30. @pagination="getList" />
  31. </div>
  32. </div>
  33. </div>
  34. </template>
  35. <script>
  36. import pagination from '@/components/Pagination/index'
  37. import store from '@/store'
  38. export default {
  39. components: { pagination },
  40. name: 'adminManager',
  41. data () {
  42. return {
  43. tableList: [],
  44. pageInfo: {
  45. // 分页规则
  46. limit: 10, // 限制显示条数
  47. page: 1, // 当前页
  48. total: 0, // 总条数
  49. page_size: [10, 20, 40, 50] // 选择限制显示条数
  50. },
  51. organId: store.getters.organ
  52. }
  53. },
  54. mounted() {
  55. this.getList()
  56. this.getAreaList()
  57. },
  58. methods: {
  59. messageTips(title, res) {
  60. if(res.code == 200) {
  61. this.$message({
  62. message: title + '成功',
  63. type: 'success'
  64. })
  65. this.branchStatus = false
  66. this.getList()
  67. } else {
  68. this.$message.error(res.msg)
  69. }
  70. },
  71. getList () {
  72. }
  73. }
  74. }
  75. </script>
  76. <style lang="scss">
  77. .el-input-group__append, .el-button--primary {
  78. background: #14928a;
  79. border-color: #14928a;
  80. color: #fff;
  81. &:hover, &:active, &:focus {
  82. background: #14928a;
  83. border-color: #14928a;
  84. color: #FFF;
  85. }
  86. }
  87. .el-date-editor.el-input{
  88. width: 100% !important;
  89. }
  90. .el-select {
  91. width: 98% !important;
  92. }
  93. </style>