<template>
	<uni-list >
		<uni-list-item title="名称" :rightText="target.riskPointTitle"></uni-list-item>
		<uni-list-item title="等级" :rightText="target.riskPointLevel|level"></uni-list-item>
		<uni-list-item title="类别" :rightText="target.riskPointCatTitle"></uni-list-item>	
		<uni-list-item title="部门" :rightText="target.groupName"></uni-list-item>
		<uni-list-item title="描述" :note="target.riskPointDesc"></uni-list-item>	
	</uni-list>	
</template>

<script>
	export default {
		name:"targetListRisk",
		props:{
			target:{
				type:Object,
				default:()=>{
					return{
						riskPointTitle: "",
						riskPointLevel: "",
						groupName: "",
						riskPointCatTitle: "",
						accountName: "",
						riskPointDesc: ""	  						
					}
				}
			}
		},
		filters: {
			level(val) {
				const strs = [
				  '默认',
				  '重大',
				  '较大',
				  '一般',
				  '较小'
				]
			  return strs[val]
			}
		},		
		data() {
			return {
				items:[]
			};
		}
	}
</script>

<style>

</style>