From ed7d2502d199d706ada94441d452c0f8819abddc Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Tue, 10 Sep 2024 10:59:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E6=B8=B2=E6=9F=93=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trial-summary/audit-record/index.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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