1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 20:39:48 +08:00

The History of changes does not show the detail (#537)

* The History of changes does not show the detail
show the historical detail

* minimal change

Co-authored-by: elsiosanchez <elsiosanches@gmial.com>
This commit is contained in:
Elsio Sanchez 2020-11-06 10:13:02 -04:00 committed by GitHub
parent b449899952
commit 5c6712ca54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 5 deletions

View File

@ -26,7 +26,7 @@
</div>
<el-collapse-transition>
<div v-show="(currentKey === key)">
<span v-for="(list, index) in listLogs.changeLogs" :key="index">
<span v-for="(list, index) in listLogs.changeLogsList" :key="index">
<p v-if="list.columnName === 'DocStatus'">
<b> {{ list.displayColumnName }} :</b>
<strike>
@ -70,7 +70,7 @@ export default {
],
data() {
return {
currentKey: 100,
currentKey: 0,
typeAction: 0
}
},

View File

@ -32,7 +32,7 @@ const persistence = {
}
},
actions: {
flushPersistenceQueue({ getters }, {
flushPersistenceQueue({ getters, dispatch }, {
containerUuid,
tableName,
recordUuid
@ -47,7 +47,14 @@ const persistence = {
recordUuid,
attributesList: attributes
})
.then(response => resolve(response))
.then(response => {
dispatch('listRecordLogs', {
tableName: response.tableName,
recordId: response.id,
recordUuid: response.uuid
})
resolve(response)
})
.catch(error => reject(error))
} else {
attributes = attributes.filter(itemAttribute => !isEmptyValue(itemAttribute.value))

View File

@ -27,7 +27,7 @@ export function convertChangeLog(changeLogToConvert) {
oldValue: changeLogToConvert.old_value,
newValue: changeLogToConvert.new_value,
oldDisplayValue: changeLogToConvert.old_display_value,
newDisplayValye: changeLogToConvert.new_display_value,
newDisplayValue: changeLogToConvert.new_display_value,
description: changeLogToConvert.description
}
}