稽查渲染问题修复

uat_us
caiyiling 2024-09-10 10:59:02 +08:00
parent 4eba3b2cb3
commit ed7d2502d1
1 changed files with 9 additions and 8 deletions

View File

@ -991,18 +991,18 @@ export default {
let uo = upObj[v.TableFiledName][i]
if (row.OptType === 'Add' || row.OptType === 'Init') {
item = {
newValue: o[v.Code] ? (o[v.Code] ? o[v.Code] : '--') : '--',
newValue: o[v.Code] ? o[v.Code] : '--',
oldValue: ''
}
} else if (row.OptType === 'Delete') {
item = {
oldValue: o[v.Code] ? (o[v.Code] ? o[v.Code] : '--') : '--',
oldValue: o[v.Code] ? o[v.Code] : '--',
newValue: '--'
}
} else {
item = {
newValue: o[v.Code] ? (o[v.Code] ? o[v.Code] : '--') : '--',
oldValue: uo ? uo[v.Code] : '--'
newValue: o[v.Code] ? o[v.Code] : '--',
oldValue: uo ? uo[v.Code] ? uo[v.Code] : '--' : '--'
}
}
item.key = o ? ((o[v.Code] && o[v.Code] !== null && o[v.Code] !== '' || o[v.Code] !== 0) ? o[v.Code] : '--') : '--'
@ -1054,22 +1054,22 @@ export default {
item = {
key: o[v.ChildDataLabel],
Enum: this.$i18n.locale === 'zh' ? o[v.ChildDataLabel] : o[v.ChildDataEnLabel] ? o[v.ChildDataEnLabel] : o[v.ChildDataLabel],
newValue: o[v.ChildDataValue] ? (o[v.ChildDataValue] ? o[v.ChildDataValue] : '--') : '--',
newValue: o[v.ChildDataValue] ? o[v.ChildDataValue] : '--',
oldValue: ''
}
} else if (row.OptType === 'Delete') {
item = {
key: o[v.ChildDataLabel],
Enum: this.$i18n.locale === 'zh' ? o[v.ChildDataLabel] : o[v.ChildDataEnLabel] ? o[v.ChildDataEnLabel] : o[v.ChildDataLabel],
oldValue: o[v.ChildDataValue] ? (o[v.ChildDataValue] ? o[v.ChildDataValue] : '--') : '--',
oldValue: o[v.ChildDataValue] ? o[v.ChildDataValue] : '--',
newValue: '--'
}
} else {
item = {
key: o[v.ChildDataLabel],
Enum: this.$i18n.locale === 'zh' ? o[v.ChildDataLabel] : o[v.ChildDataEnLabel] ? o[v.ChildDataEnLabel] : o[v.ChildDataLabel],
newValue: o[v.ChildDataValue] ? (o[v.ChildDataValue] ? o[v.ChildDataValue] : '--') : '--',
oldValue: uo ? uo[v.ChildDataValue] : '--'
newValue: o[v.ChildDataValue] ? o[v.ChildDataValue] : '--',
oldValue: uo ? uo[v.ChildDataValue] ? uo[v.ChildDataValue] : '--' : '--'
}
}
this[auditData].push(item)
@ -1256,6 +1256,7 @@ export default {
})
},
async lookDetails2(row) {
this.OptType = row.OptType
var Json = await this.getJSON(row)
var JsonDetail = Json[0] ? JSON.parse(Json[0]) : null
var ParentJson = Json[1] ? JSON.parse(Json[1]) : null