education-list.js 983 B

12345678910111213141516171819202122232425262728293031323334353637
  1. Vue.component('follow-list', {
  2. template: `<ul class="consultation-list">
  3. <li class="consultation-list-item" @click="viewDetail(1)" v-for="(list,index) in eduList">
  4. <p class="follow-up-doctor"><span class="start-time pull-right">发送时间:{{list.fsrq}}</span>随访医生:{{list.doctor}}</p>
  5. <div class="follow-user-info leave-word-container">
  6. <span class="follow-status" :data-status="list.status" desc="1进行2结束"></span>
  7. <p class="leave-word">医生留言:{{list.ysly}}</p>
  8. </div>
  9. </li>
  10. </ul>`,
  11. data: function() {
  12. return {
  13. eduList: "",
  14. curPage:1
  15. }
  16. },
  17. props:["eduData"],
  18. methods: {
  19. viewDetail: function(id) {
  20. top.layer.open({
  21. type: 2,
  22. maxmin: true,
  23. area: ['600px', '360px'],
  24. shadeClose: true,
  25. content: 'ddd'
  26. });
  27. }
  28. },
  29. watch:{
  30. consultaData:function(val){
  31. this.eduList=this.eduData;
  32. }
  33. },
  34. mounted: function() {
  35. this.$emit('init-data', this.curPage);
  36. }
  37. })