From 49b3b056e3ac8706681c5a85f28ced546097640f Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 11 Nov 2025 15:56:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E5=BF=83=E8=B0=83=E7=A0=94=E4=B8=8E?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E5=BD=B1=E5=83=8F=E6=89=8B=E5=86=8C=E7=9A=84?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/trials.js | 9 + .../SignatureTemplate/attachmentPreview.vue | 24 +- src/views/research/components/BaseInfo.vue | 133 ++++---- src/views/research/form.vue | 149 ++++---- .../site-research/components/ImageManual.vue | 202 +++++++++++ .../attachments/site-research/index.vue | 323 +++++------------- 6 files changed, 459 insertions(+), 381 deletions(-) create mode 100644 src/views/trials/trials-panel/attachments/site-research/components/ImageManual.vue diff --git a/src/api/trials.js b/src/api/trials.js index db4b751c..6bb5711e 100644 --- a/src/api/trials.js +++ b/src/api/trials.js @@ -4357,4 +4357,13 @@ export function setBatchRemoveReadingPlan(data) { method: 'post', data }) +} +// 更新项目额外json配置 +export function updateTrialExtralConfig(params, data) { + return request({ + url: `/TrialConfig/updateTrialExtralConfig`, + method: 'put', + params, + data + }) } \ No newline at end of file diff --git a/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue b/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue index e5a0915a..1eedf811 100644 --- a/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue +++ b/src/views/dictionary/attachment/components/SignatureTemplate/attachmentPreview.vue @@ -106,6 +106,16 @@ export default { isTrial: { type: Boolean, default: false + }, + isExternal: { + type: Boolean, + default: false + }, + ExternalList: { + type: Array, + default: () => { + return [] + } } }, data() { @@ -122,7 +132,8 @@ export default { rowData: {}, list: [], searchData: defaultSearchData(), - title: this.$t('dictionary:signature:fileList') + title: this.$t('dictionary:signature:fileList'), + loading: false } }, watch: { @@ -131,6 +142,16 @@ export default { this.getList() }, immediate: true, + }, + isExternal: { + handler() { + if (this.isExternal) { + this.list = this.ExternalList + this.rowData = this.list[0] || {} + this.title = this.$t('dictionary:signature:view') + } + }, + immediate: true } }, methods: { @@ -145,6 +166,7 @@ export default { }, async getList() { try { + if (this.isExternal) return if (!this.SystemDocumentId) return false this.loading = true if (!this.isTrial) { diff --git a/src/views/research/components/BaseInfo.vue b/src/views/research/components/BaseInfo.vue index e32538ba..9ef0402c 100644 --- a/src/views/research/components/BaseInfo.vue +++ b/src/views/research/components/BaseInfo.vue @@ -18,19 +18,10 @@ - - + + @@ -42,10 +33,7 @@ - + @@ -55,75 +43,71 @@ - - + + - - - {{ item.label }} + + + {{ + item.label }} - - + + - - - {{ item.label }} + + + {{ item.label }} - - {{ item.label }} + + {{ + item.label }} + + {{ $t('trials:researchForm:button:viewManual') }} + - + - + - + {{ $t('common:button:save') }} + + diff --git a/src/views/trials/trials-panel/attachments/site-research/index.vue b/src/views/trials/trials-panel/attachments/site-research/index.vue index cd45126a..9507c564 100644 --- a/src/views/trials/trials-panel/attachments/site-research/index.vue +++ b/src/views/trials/trials-panel/attachments/site-research/index.vue @@ -5,127 +5,62 @@ - - + + - + - - + + - + - - + + - - + + - + {{ $t('common:button:search') }} - + {{ $t('common:button:reset') }} - + {{ $t('trials:researchRecord:button:questionStaffs') }} - + {{ $t('trials:researchRecord:button:questionLink') }} @@ -133,61 +68,27 @@ - -
+ +
- + - + + + +