12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- Vue.component('follow-list', {
- template: `<ul class="consultation-list">
- <li class="consultation-list-item" @click="viewDetail(1)" v-for="(list,index) in toBeReservedList">
- <p class="follow-up-doctor"><span class="start-time pull-right">开始时间:{{list.czrq}}</span>随访医生:{{list.doctorName}}</p>
- <div class="follow-user-info">
- <p>科室/医院:{{list.deptName}}/{{list.orgName}}</p>
- <p class="completion-time">预约时间:{{list.startTime}}</p>
- </div>
- </li>
- </ul>`,
- data: function() {
- return {
- toBeReservedList: [{id:1,photo:'#',dname:'山东省地方',czrq:'2018-12-12 12:12:12',orgName:'xx医院',doctorName:'陈医生',deptName:'心理科室',startTime:'2018-12-12 12:12:12'}],
- // toBeReservedList: "",
- curPage:1
- }
- },
- props:["toBeReservedData"],
- methods: {
- viewDetail:function(){
- top.layer.open({
- type: 2,
- maxmin: true,
- area: ['1000px', '650px'],
- shadeClose: true,
- moveOut:true,
- btn:'返回',
- success: function(layero){
- layero.find('.layui-layer-btn').css({'text-align': 'center','border-top': '1px solid #ececec','padding-top': '7.5px'});
- layero.find('.layui-layer-btn').find('a').addClass("layui-btn").css({background: '#f96565',color: '#fff',width: '100px',border: 'none', height: '34px','line-height':'22px',padding: '6px 12px','font-size': '14px'});
- },
- content: '../html/lay_detail_reserved.html'
- });
- // top.layer.full(layerTop);
- }
-
- },
- watch:{
- followUpData:function(val){
- this.toBeReservedList=this.toBeReservedData;
- }
- },
- mounted: function() {
- this.$emit('init-data', this.curPage);
- }
- })
|