Vue.component('follow-list', { template: '', data: function() { return { followUpList:[], curPage:1 } }, props:["followUpData"], methods: { viewDetail: function(list) { if(list.status == 1){ top.layer.open({ type: 2, maxmin: true, title:"随访详情", area: ['800px', '600px'], shadeClose: false, content: '../../followup/html/lay_followUp_detail.html?id='+list.id }); }else{ top.toastr.warning("请在手机上完成随访才能查看详情") } } }, watch:{ followUpData:function(val){ this.followUpList=this.followUpData; } }, mounted: function() { var divH = $("#tab-iframe",parent.document).height() - 75; $(".followup-list").slimScroll({ height: divH,color: '#666'}); } })