tryClass.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. :header-cell-style="{background:'#EDEEF0',color:'#444'}">
  10. <el-table-column align='center'
  11. label="试听课可选专业">
  12. </el-table-column>
  13. <el-table-column align='center'
  14. label="收费方式">
  15. </el-table-column>
  16. <el-table-column align='center'
  17. label="收费金额">
  18. </el-table-column>
  19. <el-table-column align='center'
  20. label="操作">
  21. <template slot-scope="scope">
  22. <el-button type="text">删除</el-button>
  23. <el-button type="text">停用</el-button>
  24. </template>
  25. </el-table-column>
  26. </el-table>
  27. <pagination :total="pageInfo.total"
  28. :page.sync="pageInfo.page"
  29. :limit.sync="pageInfo.limit"
  30. :page-sizes="pageInfo.page_size"
  31. @pagination="getList" />
  32. </div>
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. import pagination from '@/components/Pagination/index'
  38. import store from '@/store'
  39. export default {
  40. name: 'tryClass',
  41. components: { pagination },
  42. data () {
  43. return {
  44. tableList: [],
  45. pageInfo: {
  46. // 分页规则
  47. limit: 10, // 限制显示条数
  48. page: 1, // 当前页
  49. total: 0, // 总条数
  50. page_size: [10, 20, 40, 50] // 选择限制显示条数
  51. },
  52. organId: null
  53. }
  54. },
  55. mounted () {
  56. this.getList()
  57. this.getAreaList()
  58. },
  59. methods: {
  60. messageTips (title, res) {
  61. if (res.code == 200) {
  62. this.$message.success(title + '成功')
  63. this.branchStatus = false
  64. this.getList()
  65. } else {
  66. this.$message.error(res.msg)
  67. }
  68. },
  69. getList () {
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss" scoped>
  75. ::v-deep .el-date-editor.el-input {
  76. width: 100% !important;
  77. }
  78. ::v-deep .el-select {
  79. width: 98% !important;
  80. }
  81. </style>