Vue.component('follow-list', {
template: `
`,
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);
}
})