diff --git a/src/views/dictionary/checkConfig/index.vue b/src/views/dictionary/checkConfig/index.vue index d519e021..b102741a 100644 --- a/src/views/dictionary/checkConfig/index.vue +++ b/src/views/dictionary/checkConfig/index.vue @@ -243,16 +243,7 @@ - 字符串 - 数组(类似QC问题审核) - 对话 - 外链 - 弹框列表 - 表格 - 路由 - 图片 - 图片数组 - OSS + {{item.label}} @@ -671,11 +662,15 @@
- - + + 完全拷贝 - + 拷贝 新建 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 60a20c7f..45121eca 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 @@ -843,6 +843,36 @@ export default { } return } + if (v.DataType === 'FileSize') { + if (obj[v.Code]) { + obj[v.Code] = obj[v.Code].filter(s => s && s.trim()) + if (row.OptType === 'Add' || row.OptType === 'Init') { + item = { + key: v.Code, + Enum: this.$i18n.locale === 'zh' ? v.ValueCN : v.Value, + newValue: parseInt(obj[v.Code] ) >= 0 ? `${(obj[v.Code] / 1024 / 1024).toFixed(3)}MB` : '--', + oldValue: '' + } + } else if (row.OptType === 'Delete') { + item = { + key: v.Code, + Enum: this.$i18n.locale === 'zh' ? v.ValueCN : v.Value, + oldValue: parseInt(obj[v.Code] ) >= 0 ? `${(obj[v.Code] / 1024 / 1024).toFixed(3)}MB` : '--', + newValue: '--' + } + } else { + item = { + key: v.Code, + Enum: this.$i18n.locale === 'zh' ? v.ValueCN : v.Value, + newValue: parseInt(obj[v.Code] ) >= 0 ? `${(obj[v.Code] / 1024 / 1024).toFixed(3)}MB` : '--', + oldValue: parseInt(upObj[v.Code] ) >= 0 ? `${(upObj[v.Code] / 1024 / 1024).toFixed(3)}MB` : '--', + } + } + item.DataType = v.DataType + this[auditData].push(item) + } + return + } if (v.DataType === 'ImageList') { // if (obj[v.Code] && obj[v.Code].length > 0) {