<template>
	<view class="">
		<comListItem :dataList="dataList"></comListItem>
	</view>
</template>

<script setup lang="ts">
	import {
		ref,
		getCurrentInstance,
		watch
	} from 'vue'
	import comListItem from '@/mycomponents/common/comListItem.vue';
	const props = defineProps({
		dataContent: {
			type: Object,
			default: {}
		}
	})
	const dataList = ref([])
	//监视属性
	watch(
		() => props.dataContent,
		(val) => {
			dataList.value=[{
					title: '部门',
					content:val.departmentCode
				}, {
					title: '状态',
					content: val.status,
					type:"requestState"
				},{
					title: '自动提交',
					content:val.autoCommit,
					type:"boolean"
				},{
					title: '自动通过',
					content:val.autoAgree,
					type:"boolean"
				},{
					title: '自动执行',
					content: val.autoExecute,
					type:"boolean"
				},{
					title: '直接生成记录',
					content: val.directCreateRecord,
					type:"boolean"
				},{
					title: '申请时间',
					content: val.requestTime,
					type:"dateTime"
				},{
					title: '截止时间',
					content: val.dueTime,
					type:"dateTime"
				},{
					title: '最后更新时间',
					content: val.updateTime,
					type:"dateTime"
				},{
					title: '最后更新者用户名',
					content:val.updater
				},
				{
					title: '并发乐观锁',
					content: val.concurrencyStamp
				}];
		},{
			immediate: true,
			deep: true
		}
	)
</script>

<style>

</style>
