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.
 
 
 
 

80 lines
1.6 KiB

<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.outTransaction
}, {
title: '入库事务类型',
content: this.dataContent.inTransaction
},{
title: '执行时间',
content: this.dataContent.executeTime,
type:"dateTime"
},{
title: '生效日期',
content: this.dataContent.activeDate,
type:"dateTime"
},{
title: '申请时间',
content: this.dataContent.requestTime,
type:"dateTime"
},{
title: '截止时间',
content: this.dataContent.dueTime,
type:"dateTime"
},{
title: '部门',
content: this.dataContent.departmentCode
},{
title: '岗位 : 数据库中没有该字段,设计中有',
content: this.dataContent.userPositionCode
},{
title: '是否可用',
content: this.dataContent.available
}];
},
immediate: true,
deep: true
}
},
mounted() {},
props: {
dataContent: {
type: Object,
default: {}
}
},
methods: {
avaliable(value) {
return value =="TRUE"?"可用":"不可用"
},
formatDate(val) {
return dateFormat(val)
}
}
}
</script>
<style>
</style>