1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-13 15:15:53 +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> </div>
<el-collapse-transition> <el-collapse-transition>
<div v-show="(currentKey === key)"> <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'"> <p v-if="list.columnName === 'DocStatus'">
<b> {{ list.displayColumnName }} :</b> <b> {{ list.displayColumnName }} :</b>
<strike> <strike>
@ -70,7 +70,7 @@ export default {
], ],
data() { data() {
return { return {
currentKey: 100, currentKey: 0,
typeAction: 0 typeAction: 0
} }
}, },

View File

@ -32,7 +32,7 @@ const persistence = {
} }
}, },
actions: { actions: {
flushPersistenceQueue({ getters }, { flushPersistenceQueue({ getters, dispatch }, {
containerUuid, containerUuid,
tableName, tableName,
recordUuid recordUuid
@ -47,7 +47,14 @@ const persistence = {
recordUuid, recordUuid,
attributesList: attributes 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)) .catch(error => reject(error))
} else { } else {
attributes = attributes.filter(itemAttribute => !isEmptyValue(itemAttribute.value)) attributes = attributes.filter(itemAttribute => !isEmptyValue(itemAttribute.value))

View File

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