mark-score-list.vue 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <template>
  2. <el-drawer append-to-body title="点评记录" :visible.sync="show" size="400px" direction="ltr"
  3. style="backdrop-filter: blur(4px);">
  4. <u-cell-group v-for="(item,index) in list" :key="index">
  5. <u-cell class="ui-hover" clickable :title="item.student.student_name">
  6. <view slot="icon" class="ui-mr10">
  7. <image :src="item.stuSchool.student_photo" style="width: 40px;height: 40px;border-radius: 20px;">
  8. </image>
  9. </view>
  10. <!-- <view slot="title" class="ui-flex-row ui-flex-align-center">
  11. <u-tag plain size="mini" text="优秀发言"></u-tag>
  12. <text>李杰</text>
  13. </view> -->
  14. <text slot="label" class="txt-muted">{{item.created_at}} </text>
  15. <el-tag v-if="item.studentTab.type_text == '好评'" slot="value"
  16. plain>{{item.studentTab.tab_name}}{{item.score}}</el-tag>
  17. <el-tag slot="value" v-else plain type="danger">{{item.studentTab.tab_name}}{{item.score}}</el-tag>
  18. <!-- <u-badge slot="value" value="+1" plain size="mini" type="success"></u-badge> -->
  19. </u-cell>
  20. </u-cell-group>
  21. <view @click="addTab" class="text-center ui-m ui-p" style="width: 100%;cursor: pointer;">
  22. 加载更多
  23. </view>
  24. </el-drawer>
  25. </template>
  26. <script>
  27. export default {
  28. props: {
  29. list: {
  30. type: Array,
  31. default: () => []
  32. }
  33. },
  34. data() {
  35. return {
  36. show: false,
  37. }
  38. },
  39. mounted() {
  40. },
  41. methods: {
  42. open() {
  43. this.show = true
  44. },
  45. addTab() {
  46. this.$emit('add')
  47. }
  48. },
  49. }
  50. </script>
  51. <style>
  52. </style>