|
|
@ -6,7 +6,7 @@ |
|
|
|
</div> |
|
|
|
<div class="list"> |
|
|
|
<el-steps direction="vertical" class="mt-16px" :space="90"> |
|
|
|
<el-step v-for="(item, index) in data.changeRecordList" :key="index"> |
|
|
|
<el-step v-for="(item, index) in changeRecordData.changeRecordList" :key="index"> |
|
|
|
<template #icon> |
|
|
|
<slot> |
|
|
|
<Icon color="#9e9e9e" |
|
|
@ -16,21 +16,24 @@ |
|
|
|
</template> |
|
|
|
<template #title> |
|
|
|
<slot> |
|
|
|
<span class="color-#9e9e9e font-size-16px time">{{ item.time }}</span> |
|
|
|
<span class="color-#9e9e9e font-size-16px time">{{ formatDate(item.createTime) }}</span> |
|
|
|
</slot> |
|
|
|
</template> |
|
|
|
<template #description> |
|
|
|
<slot> |
|
|
|
<div class="dic color-#303133" v-if="item.type == 1"> |
|
|
|
{{ item.name }} <span>创建了</span> 记录 |
|
|
|
{{ item.nickname }} {{ item.content }} |
|
|
|
<!-- {{ item.nickname }} <span>创建了</span> 记录 --> |
|
|
|
</div> |
|
|
|
<div class="dic color-#303133" v-else-if="item.type == 2"> |
|
|
|
{{ item.name }} <span>修改了</span> 状态 |
|
|
|
{{ item.nickname }} {{ item.content }} |
|
|
|
<!-- {{ item.nickname }} <span>修改了</span> 状态 --> |
|
|
|
</div> |
|
|
|
<div class="dic color-#303133" v-else-if="item.type == 3"> |
|
|
|
{{ item.name }} <span>添加了</span> 附件 |
|
|
|
{{ item.nickname }} {{ item.content }} |
|
|
|
<!-- <span>添加了</span> 附件 --> |
|
|
|
</div> |
|
|
|
<div class="tips" v-if="item.type == 2"> |
|
|
|
<!-- <div class="tips" v-if="item.type == 2"> |
|
|
|
<span class="color-#f56c6c" style="text-decoration:line-through">原值</span>><span |
|
|
|
class="color-#67c23a">新值</span> |
|
|
|
</div> |
|
|
@ -39,7 +42,7 @@ |
|
|
|
<Icon color="#70b6ff" icon="ep:document" size="20" style="display:bloc"/> |
|
|
|
<div class="file-text" type="primary">{{cur.name}}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
|
|
|
|
</slot> |
|
|
|
</template> |
|
|
@ -51,12 +54,13 @@ |
|
|
|
|
|
|
|
<script lang="ts" setup> |
|
|
|
import download from '@/utils/download' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
defineComponent({ |
|
|
|
name: 'ChangeRecord' |
|
|
|
}) |
|
|
|
// 接收父组件数据 |
|
|
|
const props = defineProps({ |
|
|
|
data: { |
|
|
|
changeRecordData: { |
|
|
|
type: Object, |
|
|
|
required: true |
|
|
|
} |
|
|
|