<template> <view class=""> <comListItem :dataList="dataList"></comListItem> </view> </template> <script> import comListItem from '@/mycomponents/common/comListItem.vue'; export default { components: { comListItem }, data() { return { dataList:[] } }, watch:{ dataContent: { handler(newName, oldName) { this.dataList=[{ title: '部门', content: this.dataContent.departmentCode }, { title: '状态', content: this.dataContent.status },{ title: '自动提交', content: this.dataContent.autoCommit, type:"boolean" },{ title: '自动通过', content: this.dataContent.autoAgree, type:"boolean" },{ title: '自动执行', content: this.dataContent.autoExecute, type:"boolean" },{ title: '直接生成记录', content: this.dataContent.directCreateRecord, type:"boolean" },{ title: '申请时间', content: this.dataContent.requestTime, type:"dateTime" },{ title: '截止时间', content: this.dataContent.dueTime, type:"dateTime" },{ title: '最后更新时间', content: this.dataContent.lastModificationTime, type:"dateTime" },{ title: '最后更新者Id', content: this.dataContent.lastModiferName }, { title: '并发乐观锁', content: this.dataContent.concurrencyStamp }]; }, immediate: true, deep: true } }, mounted() {}, props: { dataContent: { type: Object, default: {} } }, methods: {} } </script> <style> </style>