<template>
	<uni-list >
		<uni-list-item title="姓名" :rightText="target.doctorName"></uni-list-item>
		<uni-list-item title="所属部门" :rightText="target.groupName"></uni-list-item>
		<uni-list-item title="岗位" :rightText="target.positionName"></uni-list-item>	
		<uni-list-item title="职称" :rightText="target.doctorProfessionalId|doctorProfessionalIdFilter"></uni-list-item>
		<uni-list-item title="个人履历" :note="target.doctorResume"></uni-list-item>	
		<uni-list-item title="描述" :note="target.doctorDesc"></uni-list-item>	
	</uni-list>	
</template>

<script>
	export default {
		name:"targetListDoctor",
		props:{
			target:{
				type:Object,
				default:()=>{
					return{
						checklistNum:"",
						doctorCode: "",
						doctorDesc: "",
						doctorId: "",
						doctorName: "",
						doctorProfessionalId:"",
						doctorResume: "",
						groupId: "",
						groupName: "",
						ocId: "",
						positionId: "",
						positionName: ""							
					}
				}
			}
		},
		filters: {
			doctorProfessionalIdFilter(val) {
			  const professionalMap = ['主任医师', '副主任医师', '主治医师', '医师', '医士']
			  return professionalMap[val]
			}
		},		
		data() {
			return {
				items:[]
			};
		}
	}
</script>

<style>

</style>