toBeReserved-list.js 1.0 KB

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 toBeReservedList">
  4. <p class="follow-up-doctor"><span class="start-time pull-right">开始时间:{{list.createTime}}</span>随访医生:{{list.doctorName}}</p>
  5. <div class="follow-user-info">
  6. <p>科室/医院:{{list.followupTypeName}}{{list.followupClassName?"/"+list.followupClassName:""}}</p>
  7. <p class="completion-time">预约时间:{{list.followupPlanDate}}</p>
  8. </div>
  9. </li>
  10. </ul>`,
  11. data: function() {
  12. return {
  13. toBeReservedList: "",
  14. curPage:1
  15. }
  16. },
  17. props:["toBeReservedData"],
  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. followUpData:function(val){
  31. this.toBeReservedList=this.toBeReservedData;
  32. }
  33. },
  34. mounted: function() {
  35. this.$emit('init-data', this.curPage);
  36. }
  37. })