You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.7 KiB

1 year ago
<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,
type:"requestState"
1 year ago
},{
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.updateTime,
1 year ago
type:"dateTime"
},{
title: '最后更新者用户名',
content: this.dataContent.updater
1 year ago
},
{
title: '并发乐观锁',
content: this.dataContent.concurrencyStamp
}];
},
immediate: true,
deep: true
}
},
mounted() {},
props: {
dataContent: {
type: Object,
default: {}
}
},
methods: {}
}
</script>
<style>
</style>