From bfa23dc00722767cfeb9a6c3e0a59411da4b1a4d Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 13 May 2025 17:41:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trial-summary/audit-record/index.vue | 867 +++++++----------- 1 file changed, 342 insertions(+), 525 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 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') + }} - - + + - - - - - - - - - - + + + + + + + + + + @@ -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 { } } -