江西小程序管理端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
2.1 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="模板"></topNavbar>
  4. <view class="pad">
  5. <view class="card" v-for="(item,index) in list" :key="index">
  6. <view class="tit_row">
  7. <view class="tit">{{item.templateName}}</view>
  8. <view class="manage" @click="$goPage('/pages/recordEntry/operate/mySchedule/mouldEdit/mouldEdit?id='+item.id)">管理</view>
  9. </view>
  10. <view class="ul">
  11. <view class="li lab">
  12. <view class="text">时间段</view>
  13. <view class="text">最多人数</view>
  14. </view>
  15. <view class="li" v-for="(item2,index2) in item.detailVO" :key="index">
  16. <view class="text">{{ item2.startTime}} <text>-</text> {{item2.endTime}}</view>
  17. <view class="text">{{ item2.personCount }}</view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="btn_footer">
  23. <view class="btnBorder" @click="$goPage('/pages/recordEntry/operate/mySchedule/mouldEdit/mouldAdd' )">新增模版</view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import { scheduleTemplatePage } from '@/config/api.js'
  29. export default {
  30. data() {
  31. return {
  32. list: [],
  33. total: 20,
  34. params: {
  35. pageNo: 1,
  36. pageSize: 20
  37. }
  38. }
  39. },
  40. onLoad() {
  41. this.params.coachId = this.vuex_coachId
  42. this.scheduleTemplatePageFn()
  43. },
  44. methods: {
  45. async scheduleTemplatePageFn() {
  46. const {data: res} = await scheduleTemplatePage(this.params)
  47. this.params.pageNo ++
  48. this.list.push(...res.list)
  49. this.total = res.total
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. .card {
  56. padding: 0 28rpx;
  57. margin-bottom: 24rpx;
  58. .tit_row {
  59. display: flex;
  60. align-items: center;
  61. justify-content: space-between;
  62. border-bottom: 2rpx solid #E8E9EC;
  63. height: 96rpx;
  64. font-weight: 500;
  65. .manage {
  66. color: $themC;
  67. }
  68. }
  69. .ul {
  70. padding-bottom: 20rpx;
  71. .li {
  72. padding: 12rpx;
  73. display: flex;
  74. color: #333;
  75. &.lab {
  76. color: #ADADAD;
  77. }
  78. .text {
  79. flex: 1;
  80. text-align: center;
  81. }
  82. }
  83. }
  84. }
  85. .btn_footer {
  86. display: flex;
  87. justify-content: center;
  88. padding: 30rpx 0;
  89. .btnBorder {
  90. width: 396rpx;
  91. }
  92. }
  93. </style>