1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-11 22:08:05 +08:00
elsiosanchez 1a3d50424f
correcting container info chats errors (#322)
* add document action

* order processing structure

* add document action

* order processing structure

* correcting errors when Process Order

* correcting initial load error

* update document action before processing

* refres action document

* add Markdown of chat

* Solve all chat problems

* Duplicate Record Error

* Library of MArkDown

Co-authored-by: Yamel Senih <ysenih@erpya.com>
2020-02-13 18:21:03 -04:00

49 lines
1.8 KiB
Vue

<template>
<div>
<el-card
v-if="getIsChangeLog"
class="box-card"
>
<el-scrollbar wrap-class="scroll-window-log-change">
<el-timeline>
<el-timeline-item
v-for="(listLogs, key) in gettersListRecordLogs"
:key="key"
:timestamp="translateDate(listLogs.logDate)"
placement="top"
color="#008fd3"
>
<el-card shadow="hover" class="clearfix">
<div>
{{ listLogs.userName }}
<el-link type="primary" style="float: right;" @click="showkey(key)"> {{ $t('window.containerInfo.changeDetail') }} </el-link>
</div>
<el-collapse-transition>
<div v-show="(currentKey === key)">
<span v-for="(list, index) in listLogs.changeLogs" :key="index">
<p v-if="list.columnName === 'DocStatus'"><b> {{ list.displayColumnName }} :</b> <strike> <el-tag :type="tagStatus(list.oldValue)"> {{ list.oldDisplayValue }} </el-tag> </strike> <el-tag :type="tagStatus(list.newValue)"> {{ list.newDisplayValue }} </el-tag> </p>
<p v-else><b> {{ list.displayColumnName }} :</b> <strike> <el-link type="danger"> {{ list.oldDisplayValue }} </el-link> </strike> <el-link type="success"> {{ list.newDisplayValue }} </el-link> </p>
</span>
</div>
</el-collapse-transition>
</el-card>
</el-timeline-item>
</el-timeline>
</el-scrollbar>
</el-card>
</div>
</template>
<script>
import { MixinInfo } from '@/components/ADempiere/ContainerInfo/mixinInfo'
export default {
name: 'RecordLogs',
mixins: [MixinInfo]
}
</script>
<style>
.scroll-window-log-change {
max-height: 74vh !important;
}
</style>