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:
parent
b449899952
commit
5c6712ca54
@ -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
|
||||
}
|
||||
},
|
||||
|
@ -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))
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user