TgHistoryRecord
# TgHistoryRecord 历史记录
# Attributes
属性名 | 说明 | 类型 | 是否必填 |
---|---|---|---|
historyParam.bizType | 当前的实体名称,结合后端添加的代码 | String | 必填 |
historyParam.bizField | 当前实体的主键字段名称,结合后端添加的代码 | String | 必填 |
historyParam.bizNo | 当前记录的主键对应的值,结合后端添加的代码 | String | 必填 |
historyParam.title | 标题 | String | |
historyParam.entityField | 当前字段 | 必填 |
# 示例代码
# 基本用法
historyParam的参数,是要配合后端的代码使用
<TgHistoryRecord :historyParam="{
bizType: 'AppGenEntity',
bizField:'id',
bizNo:page.data.entity.id,
entityField:'custCode'
}">
<p class="Record" v-if="page.data.historyRecordCount.custCode > 0">
{{ page.data.historyRecordCount && page.data.historyRecordCount.custCode }}
</p>
</TgHistoryRecord>
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# 添加标题
historyParam的参数,是要配合后端的代码使用
<TgHistoryRecord :historyParam="{
bizType: 'AppGenEntity',
bizField:'id',
title:'客户编码'
bizNo:page.data.entity.id,
entityField:'custCode'
}">
<p class="Record" v-if="page.data.historyRecordCount.custCode > 0">
{{ page.data.historyRecordCount && page.data.historyRecordCount.custCode }}
</p>
</TgHistoryRecord>
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
上次更新: 2024/7/18 14:52:05