Vue.component('follow-list', { template: '', data: function() { return { followUpList:[], curPage:1 } }, props:["followUpData"], methods: { viewDetail: function(list) { // if(list.status == 1){ if(list.followupClass =="5" || list.followupClass =="6" ||list.followupClass =="7" ||list.followupClass =="8" ||list.followupClass =="9"){ window.location.href = "../index.html?id="+list.id+"&type="+list.followupClass+"&isEdit=0" }else{ window.open('../../followup/html/lay_followUp_detail.html?id='+list.id) // top.layer.open({ // type: 2, // maxmin: true, // title:"随访详情", // area: ['1000px', '650px'], // shadeClose: false, // content: '../../followup/html/lay_followUp_detail.html?id='+list.id, // end: function () { // location.reload(); // } // }); } // }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'}); } })