稽查渲染问题修复
parent
4eba3b2cb3
commit
ed7d2502d1
|
@ -991,18 +991,18 @@ export default {
|
||||||
let uo = upObj[v.TableFiledName][i]
|
let uo = upObj[v.TableFiledName][i]
|
||||||
if (row.OptType === 'Add' || row.OptType === 'Init') {
|
if (row.OptType === 'Add' || row.OptType === 'Init') {
|
||||||
item = {
|
item = {
|
||||||
newValue: o[v.Code] ? (o[v.Code] ? o[v.Code] : '--') : '--',
|
newValue: o[v.Code] ? o[v.Code] : '--',
|
||||||
oldValue: ''
|
oldValue: ''
|
||||||
}
|
}
|
||||||
} else if (row.OptType === 'Delete') {
|
} else if (row.OptType === 'Delete') {
|
||||||
item = {
|
item = {
|
||||||
oldValue: o[v.Code] ? (o[v.Code] ? o[v.Code] : '--') : '--',
|
oldValue: o[v.Code] ? o[v.Code] : '--',
|
||||||
newValue: '--'
|
newValue: '--'
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
item = {
|
item = {
|
||||||
newValue: o[v.Code] ? (o[v.Code] ? o[v.Code] : '--') : '--',
|
newValue: o[v.Code] ? o[v.Code] : '--',
|
||||||
oldValue: uo ? uo[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] : '--') : '--'
|
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 = {
|
item = {
|
||||||
key: o[v.ChildDataLabel],
|
key: o[v.ChildDataLabel],
|
||||||
Enum: this.$i18n.locale === 'zh' ? o[v.ChildDataLabel] : o[v.ChildDataEnLabel] ? o[v.ChildDataEnLabel] : 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: ''
|
oldValue: ''
|
||||||
}
|
}
|
||||||
} else if (row.OptType === 'Delete') {
|
} else if (row.OptType === 'Delete') {
|
||||||
item = {
|
item = {
|
||||||
key: o[v.ChildDataLabel],
|
key: o[v.ChildDataLabel],
|
||||||
Enum: this.$i18n.locale === 'zh' ? o[v.ChildDataLabel] : o[v.ChildDataEnLabel] ? o[v.ChildDataEnLabel] : 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: '--'
|
newValue: '--'
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
item = {
|
item = {
|
||||||
key: o[v.ChildDataLabel],
|
key: o[v.ChildDataLabel],
|
||||||
Enum: this.$i18n.locale === 'zh' ? o[v.ChildDataLabel] : o[v.ChildDataEnLabel] ? o[v.ChildDataEnLabel] : 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: uo ? uo[v.ChildDataValue] : '--'
|
oldValue: uo ? uo[v.ChildDataValue] ? uo[v.ChildDataValue] : '--' : '--'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this[auditData].push(item)
|
this[auditData].push(item)
|
||||||
|
@ -1256,6 +1256,7 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
async lookDetails2(row) {
|
async lookDetails2(row) {
|
||||||
|
this.OptType = row.OptType
|
||||||
var Json = await this.getJSON(row)
|
var Json = await this.getJSON(row)
|
||||||
var JsonDetail = Json[0] ? JSON.parse(Json[0]) : null
|
var JsonDetail = Json[0] ? JSON.parse(Json[0]) : null
|
||||||
var ParentJson = Json[1] ? JSON.parse(Json[1]) : null
|
var ParentJson = Json[1] ? JSON.parse(Json[1]) : null
|
||||||
|
|
Loading…
Reference in New Issue