diff --git a/src/views/trials/trials-panel/trial-summary/audit-record/index.vue b/src/views/trials/trials-panel/trial-summary/audit-record/index.vue index f1e92f7c..8b622ae3 100644 --- a/src/views/trials/trials-panel/trial-summary/audit-record/index.vue +++ b/src/views/trials/trials-panel/trial-summary/audit-record/index.vue @@ -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