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 11d5e91..02cf6c7 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 @@ -25,22 +25,10 @@ - - - + + + @@ -50,30 +38,29 @@ - + - - + + - - + + - - + + @@ -82,20 +69,17 @@ - - + + - - + + - + @@ -103,26 +87,21 @@ - - + + - {{ $t('common:button:search') }} - {{ $t('common:button:reset') }} + {{ $t('common:button:search') + }} + {{ $t('common:button:reset') + }} - + - + - + - + {{ `${scope.row.TaskName}/${scope.row.BlindName}` }} - {{scope.row.TaskName}} + {{ scope.row.TaskName }} @@ -186,53 +147,28 @@ sortable="custom" /> --> - + - + - {{$fd('ModuleType', scope.row.ModuleTypeId, 'id')}} + {{ $fd('ModuleType', scope.row.ModuleTypeId, 'id') }} - + - {{$i18n.locale === 'zh' ? scope.row.DescriptionCN : scope.row.Description}} + {{ $i18n.locale === 'zh' ? scope.row.DescriptionCN : scope.row.Description }} - + - + @@ -246,13 +182,8 @@ - + - + - + - - - + + + - {{$t('trials:auditRecord:action:detail')}} + {{ $t('trials:auditRecord:action:detail') }} - + - {{$t('trials:auditRecord:title:historicalOperations')}} + {{ $t('trials:auditRecord:title:historicalOperations') }} - {{$t('trials:auditRecord:title:relationOperations')}} + {{ $t('trials:auditRecord:title:relationOperations') }} - - - + + + - + show-overflow-tooltip> - + - - {{$t('common:button:download')}} + + {{ $t('common:button:download') }} - - {{$t('trials:auditRecord:title:viewDetail')}} + + {{ $t('trials:auditRecord:title:viewDetail') }} - + - {{$t('trials:auditRecord:title:viewImage')}}{{scope.row.oldValue instanceof Array ? `(${scope.row.oldValue.length})` : ''}} - - - - - - + {{ $t('trials:auditRecord:title:viewImage') }}{{ scope.row.oldValue + instanceof Array ? `(${scope.row.oldValue.length})` : ''}} + + + + + + {{ scope.row.oldValue }} - + - + show-overflow-tooltip> - - {{$t('common:button:download')}} + + {{ $t('common:button:download') }} - - {{$t('trials:auditRecord:title:viewDetail')}} + + {{ $t('trials:auditRecord:title:viewDetail') }} - + - {{$t('trials:auditRecord:title:viewImage')}}{{scope.row.newValue instanceof Array ? `(${scope.row.newValue.length})` : ''}} - - - - - - - + {{ $t('trials:auditRecord:title:viewImage') }}{{ scope.row.newValue + instanceof Array ? `(${scope.row.newValue.length})` : ''}} + + + + + + + {{ scope.row.newValue }} - - + + - {{$t('trials:auditRecord:title:viewImage')}} - + {{ $t('trials:auditRecord:title:viewImage') }} + - {{scope.row[item.ColumnValue]}} + {{ scope.row[item.ColumnValue] }} - + - + - - {{$t('trials:auditRecord:title:viewImage')}} + + {{ $t('trials:auditRecord:title:viewImage') }} - + - {{scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]}} + {{ scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : + ite.ColumnValue]}} @@ -439,150 +341,92 @@ - {{$t('trials:auditRecord:title:signInfo')}} + {{ $t('trials:auditRecord:title:signInfo') }} - {{otherData[0].Value}} + {{ otherData[0].Value }} - {{$t('common:button:close')}} + {{ $t('common:button:close') }} - - - - - - - - - - - - - - - - {{ `${scope.row.TaskName}/${scope.row.BlindName}` }} - - {{scope.row.TaskName}} - - - - + + + + + + + + + + + + {{ `${scope.row.TaskName}/${scope.row.BlindName}` }} + + {{ scope.row.TaskName }} + + + + - - - - - - {{$i18n.locale === 'zh' ? scope.row.ModuleTypeNameCN : scope.row.ModuleTypeName}} - - - - - - {{$i18n.locale === 'zh' ? scope.row.DescriptionCN : scope.row.Description}} - - - - - - - - - - - {{ scope.row.SignText }} - - {{ $fd('YesOrNo', scope.row.IsSign) }} - - {{ $fd('YesOrNo', scope.row.IsSign) }} - - - - - + + + + + + {{ $i18n.locale === 'zh' ? scope.row.ModuleTypeNameCN : scope.row.ModuleTypeName }} + + + + + + {{ $i18n.locale === 'zh' ? scope.row.DescriptionCN : scope.row.Description }} + + + + + + + + + + + {{ scope.row.SignText }} + + {{ $fd('YesOrNo', scope.row.IsSign) }} + + {{ $fd('YesOrNo', scope.row.IsSign) }} + + + + + - + - + - - - - - - - {{$t('trials:auditRecord:action:detail')}} - - - - + + + + + + + {{ $t('trials:auditRecord:action:detail') }} + + + + - - - + + + - + show-overflow-tooltip> - + - - {{$t('common:button:download')}} + + {{ $t('common:button:download') }} - - {{$t('trials:auditRecord:title:viewDetail')}} + + {{ $t('trials:auditRecord:title:viewDetail') }} - + - {{$t('trials:auditRecord:title:viewImage')}}{{scope.row.oldValue instanceof Array ? `(${scope.row.oldValue.length})` : ''}} - - - - - + {{ $t('trials:auditRecord:title:viewImage') }}{{ scope.row.oldValue + instanceof Array ? `(${scope.row.oldValue.length})` : ''}} + + + + + {{ scope.row.oldValue }} @@ -688,11 +506,9 @@ - + show-overflow-tooltip> - - {{$t('common:button:download')}} + + {{ $t('common:button:download') }} - - {{$t('trials:auditRecord:title:viewDetail')}} + + {{ $t('trials:auditRecord:title:viewDetail') }} - + - {{$t('trials:auditRecord:title:viewImage')}}{{scope.row.newValue instanceof Array ? `(${scope.row.newValue.length})` : ''}} - - - - - - - + {{ $t('trials:auditRecord:title:viewImage') }}{{ scope.row.newValue + instanceof Array ? `(${scope.row.newValue.length})` : ''}} + + + + + + + {{ scope.row.newValue }} - - + + - + - - - {{$t('trials:auditRecord:title:viewImage')}} - - - {{scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : ite.ColumnValue]}} + + + {{ $t('trials:auditRecord:title:viewImage') }} + + + {{ scope.row[ite.ListName ? ite.ListName + ite.ColumnValue + index : + ite.ColumnValue]}} @@ -765,44 +580,47 @@ - + - {{$t('trials:auditRecord:title:viewImage')}} - - - {{scope.row[item.ColumnValue]}} + {{ $t('trials:auditRecord:title:viewImage') }} + + + {{ scope.row[item.ColumnValue] }} - {{$t('trials:auditRecord:title:signInfo')}} + {{ $t('trials:auditRecord:title:signInfo') }} - {{otherData[0].Value}} + {{ otherData[0].Value }} - {{$t('common:button:close')}} + {{ $t('common:button:close') }} - - + + - - - - - - - - - - + + + + + + + + + + @@ -843,7 +661,7 @@ const searchDataDefault = () => { OpByUserName: null, BatchId: null, TrialReadingCriterionId: null, - RoleName:null, + RoleName: null, TaskName: '', CreateUserName: '' } @@ -852,10 +670,10 @@ export default { components: { BaseContainer, Pagination, BaseModel }, dicts: ['OptType', 'ModuleType', 'ChildrenType'], data() { - + return { isViewer: true, - otherData:[], + otherData: [], model_cfg: { visible: false, showClose: true, width: '600px', title: '', appendToBody: true }, model_cfg2: { visible: false, showClose: true, width: '1000px', title: this.$t('trials:auditRecord:title:viewRelationOperations'), appendToBody: true },//'查看关联操作' model_cfg3: { visible: false, showClose: true, width: '600px', title: '', appendToBody: true }, @@ -897,8 +715,8 @@ export default { methods: { openImage(url, type) { console.log(url) - - this.$nextTick(()=>{ + + this.$nextTick(() => { if (url instanceof Array) { this.imagesList = url.map(v => this.OSSclientConfig.basePath + v) let refName = type ? `${url[0]}_${type}` : url[0] @@ -906,9 +724,9 @@ export default { } else { this.imagesList = [this.OSSclientConfig.basePath + url] let refName = type ? `${url}_${type}` : url - if(this.$refs[refName] instanceof Array){ + if (this.$refs[refName] instanceof Array) { this.$refs[refName][0].$viewer.show() - }else{ + } else { this.$refs[refName].$viewer.show() } } @@ -917,7 +735,7 @@ export default { getTrialCriterionList() { getTrialCriterionList(this.trialId, false).then(res => { this.trialCriterionList = res.Result - }).catch(() => {}) + }).catch(() => { }) }, handleSortChange(column) { if (column.order === 'ascending') { @@ -941,7 +759,7 @@ export default { }, getModuleTypeDescriptionList(v) { this.searchData.Description = null - getModuleTypeDescriptionList( v ).then(res => { + getModuleTypeDescriptionList(v).then(res => { this.DescriptionOptions = res.Result }) }, @@ -980,7 +798,7 @@ export default { this[auditData] = [] config.forEach(v => { v.Code = this.$i18n.locale === 'zh' ? v.Code : v.CodeEn ? v.CodeEn : v.Code - + var item if (!v.IsEnable) return if (v.IsShowByTrialConfig) { @@ -1043,7 +861,7 @@ export default { } item.DataType = v.DataType this[auditData].push(item) - // }) + // }) } return } @@ -1080,22 +898,22 @@ export default { } if (v.DataType === 'Router') { item = { - oldValue: v.UrlConfig.IsHaveParameters ? v.UrlConfig.RoutePath + '?' + + oldValue: v.UrlConfig.IsHaveParameters ? v.UrlConfig.RoutePath + '?' + v.UrlConfig.ParameterList.map((v) => { let a = obj[v.UrlParameterValueName] ? obj[v.UrlParameterValueName] : parentRow[v.UrlParameterValueName] if (v.UrlParameterValueName === 'token') { a = getToken() } return v.UrlParameterName + '=' + a + '&' - }).toString().replaceAll(',', '') + 'zh='+this.$i18n.locale : v.UrlConfig.RoutePath, - newValue: v.UrlConfig.IsHaveParameters ? v.UrlConfig.RoutePath + '?' + + }).toString().replaceAll(',', '') + 'zh=' + this.$i18n.locale : v.UrlConfig.RoutePath, + newValue: v.UrlConfig.IsHaveParameters ? v.UrlConfig.RoutePath + '?' + v.UrlConfig.ParameterList.map((v) => { let a = obj[v.UrlParameterValueName] ? obj[v.UrlParameterValueName] : parentRow[v.UrlParameterValueName] if (v.UrlParameterValueName === 'token') { a = getToken() } return v.UrlParameterName + '=' + a + '&' - }).toString().replaceAll(',', '') + 'zh='+this.$i18n.locale : v.UrlConfig.RoutePath + }).toString().replaceAll(',', '') + 'zh=' + this.$i18n.locale : v.UrlConfig.RoutePath } console.log(item) item.IsTableFiled = v.IsTableFiled @@ -1110,14 +928,14 @@ export default { var body = [] v.TableConfigList.forEach((j, i) => { if (j.IsFixedColumn) { - head.push({IsPicture: j.IsPicture, headName: this.$i18n.locale === 'zh' ? j.FixedColumnName : j.FixedColumnEnName, IsMerge: j.IsMerge, ColumnName: j.ColumnName, ColumnValue: j.ColumnValue, ListName: j.ListName, MergeColumnName: j.IsMerge ? this.$i18n.locale === 'zh' ? j.MergeColumnName : j.MergeColumnEnName : null, ChildrenList: []}) + head.push({ IsPicture: j.IsPicture, headName: this.$i18n.locale === 'zh' ? j.FixedColumnName : j.FixedColumnEnName, IsMerge: j.IsMerge, ColumnName: j.ColumnName, ColumnValue: j.ColumnValue, ListName: j.ListName, MergeColumnName: j.IsMerge ? this.$i18n.locale === 'zh' ? j.MergeColumnName : j.MergeColumnEnName : null, ChildrenList: [] }) } else { if (j.ListName) { obj[v.Code][0][j.ListName].forEach((x, o) => { - head.push({IsPicture: j.IsPicture, headName: x[this.$i18n.locale === 'zh' ? j.ColumnName : j.ColumnEnName ? j.ColumnEnName : j.ColumnName], IsMerge: j.IsMerge, ColumnName: j.ColumnName, ColumnValue: j.ColumnValue, ListName: j.ListName, MergeColumnName: j.IsMerge ? this.$i18n.locale === 'zh' ? j.MergeColumnName : j.MergeColumnEnName : null, ChildrenList: []}) + head.push({ IsPicture: j.IsPicture, headName: x[this.$i18n.locale === 'zh' ? j.ColumnName : j.ColumnEnName ? j.ColumnEnName : j.ColumnName], IsMerge: j.IsMerge, ColumnName: j.ColumnName, ColumnValue: j.ColumnValue, ListName: j.ListName, MergeColumnName: j.IsMerge ? this.$i18n.locale === 'zh' ? j.MergeColumnName : j.MergeColumnEnName : null, ChildrenList: [] }) }) } else { - head.push({IsPicture: j.IsPicture, headName: this.$i18n.locale === 'zh' ? j.ColumnName : j.ColumnEnName ? j.ColumnEnName : j.ColumnName, IsMerge: j.IsMerge, ColumnName: j.ColumnName, ColumnValue: j.ColumnValue, ListName: j.ListName, MergeColumnName: j.IsMerge ? this.$i18n.locale === 'zh' ? j.MergeColumnName : j.MergeColumnEnName : null, ChildrenList: []}) + head.push({ IsPicture: j.IsPicture, headName: this.$i18n.locale === 'zh' ? j.ColumnName : j.ColumnEnName ? j.ColumnEnName : j.ColumnName, IsMerge: j.IsMerge, ColumnName: j.ColumnName, ColumnValue: j.ColumnValue, ListName: j.ListName, MergeColumnName: j.IsMerge ? this.$i18n.locale === 'zh' ? j.MergeColumnName : j.MergeColumnEnName : null, ChildrenList: [] }) } } }) @@ -1223,7 +1041,7 @@ export default { item.Enum = this.$i18n.locale === 'zh' ? v.ValueCN : v.Value this[auditData].push(item) }) - console.log(this[auditData],this.tableListData,this.tableList) + console.log(this[auditData], this.tableListData, this.tableList) }, getJSON(row) { return new Promise(resolve => { @@ -1246,7 +1064,7 @@ export default { }) // 查看关联操作 - this.model_cfg2.title = `${this.$t('trials:auditRecord:title:viewRelationOperations')}--${this.$i18n.locale === 'en' ? this.currentRow.Description : this.currentRow.DescriptionCN}` + this.model_cfg2.title = `${n ? this.$t('trials:auditRecord:title:viewRelationOperations2') : this.$t('trials:auditRecord:title:viewRelationOperations')}--${this.$i18n.locale === 'en' ? this.currentRow.Description : this.currentRow.DescriptionCN}` this.loading = true getInspectionList(searchData).then((res) => { this.list2 = res.CurrentPageData @@ -1278,7 +1096,7 @@ export default { }) }, async lookDetails(row) { - this.currentRow = {...row} + this.currentRow = { ...row } this.OptType = row.OptType var Json = await this.getJSON(row) var JsonDetail = Json[0] ? JSON.parse(Json[0]) : null @@ -1328,4 +1146,3 @@ export default { } } -