|
@ -1,4 +1,4 @@
|
|
|
Vue.component('follow-list', {
|
|
|
Vue.component('reserved-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>
|
|
@ -10,37 +10,36 @@ Vue.component('follow-list', {
|
|
|
</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: "",
|
|
|
toBeReservedList: "",
|
|
|
curPage:1
|
|
|
}
|
|
|
},
|
|
|
props:["toBeReservedData"],
|
|
|
props:["reserveData"],
|
|
|
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'
|
|
|
type: 2,
|
|
|
maxmin: true,
|
|
|
area: ['1000px', '650px'],
|
|
|
shadeClose: false,
|
|
|
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;
|
|
|
reserveData:function(){
|
|
|
this.toBeReservedList = this.reserveData;
|
|
|
}
|
|
|
},
|
|
|
mounted: function() {
|
|
|
this.$emit('init-data', this.curPage);
|
|
|
var divH = $("#tab-iframe",parent.document).height() - 75;
|
|
|
$(".consultation-list").slimScroll({ height: divH,color: '#666'});
|
|
|
}
|
|
|
})
|