From 55769e906ddeb3a7eeaeb22aad8f24e3e2b7c29c Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Thu, 6 Mar 2025 11:41:17 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E5=A2=9E=E5=8A=A0=E6=8E=92=E5=BA=8F=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dictionary/template/file/fileForm.vue | 11 +++++++++++ src/views/dictionary/template/file/index.vue | 6 ++++++ 2 files changed, 17 insertions(+) diff --git a/src/views/dictionary/template/file/fileForm.vue b/src/views/dictionary/template/file/fileForm.vue index 95086846..c2fa4370 100644 --- a/src/views/dictionary/template/file/fileForm.vue +++ b/src/views/dictionary/template/file/fileForm.vue @@ -56,6 +56,16 @@ + + + + Date: Thu, 6 Mar 2025 13:13:43 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E8=BF=BD=E6=BA=AF=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E5=8F=AF=E6=9F=A5=E7=9C=8B=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/user/components/Retrospect.vue | 138 +++++++++++++++--- 1 file changed, 121 insertions(+), 17 deletions(-) diff --git a/src/views/system/user/components/Retrospect.vue b/src/views/system/user/components/Retrospect.vue index 8c6cfa73..8fc1d69e 100644 --- a/src/views/system/user/components/Retrospect.vue +++ b/src/views/system/user/components/Retrospect.vue @@ -160,25 +160,34 @@ show-overflow-tooltip > + + + + diff --git a/src/views/trials/trials-panel/trial-summary/trial-document/components/fileRecord/index.vue b/src/views/trials/trials-panel/trial-summary/trial-document/components/fileRecord/index.vue index 06d18c9a..2da2a846 100644 --- a/src/views/trials/trials-panel/trial-summary/trial-document/components/fileRecord/index.vue +++ b/src/views/trials/trials-panel/trial-summary/trial-document/components/fileRecord/index.vue @@ -3,7 +3,7 @@
{{ TITLE }}
- + @@ -47,7 +46,6 @@ +
{ + this.defaultSelect() + }) } } catch (err) { this.loading = false console.log(err) } }, + defaultSelect() { + if (!this.menu || this.menu.length <= 0) return false + if (this.menuId) { + let Id = this.menuId + let f = this.menu.some((item) => { + let flag = false + if (item.TrialFileTypeList && item.TrialFileTypeList.length > 0) { + flag = item.TrialFileTypeList.some((data) => { + if (data.Id === Id) { + this.$emit('update:menuId', null) + this.$nextTick(() => { + this.handleSelect(data, item.ArchiveTypeEnum) + }) + } + return data.Id === Id + }) + } + return flag + }) + if (!f) { + this.$emit('update:menuId', null) + this.$nextTick(() => { + this.defaultSelect() + }) + } + } else { + this.menu.some((item) => { + if (item.TrialFileTypeList && item.TrialFileTypeList.length > 0) { + this.handleSelect(item.TrialFileTypeList[0], item.ArchiveTypeEnum) + } + return item.TrialFileTypeList && item.TrialFileTypeList.length > 0 + }) + } + }, // 修改菜单启用 async changeIsEnble(val, item) { try { @@ -242,7 +279,7 @@ export default { }, // 选中 handleSelect(data, ArchiveTypeEnum) { - this.$emit('update:Id', data.Id) + this.$emit('update:menuId', data.Id) this.$emit('update:SubIdentificationEnum', data.SubIdentificationEnum) this.$emit('update:ArchiveTypeEnum', ArchiveTypeEnum) this.$emit('update:rowData', data) diff --git a/src/views/trials/trials-panel/trial-summary/trial-document/components/report_doc/index.vue b/src/views/trials/trials-panel/trial-summary/trial-document/components/report_doc/index.vue index 8a428c52..1456f37c 100644 --- a/src/views/trials/trials-panel/trial-summary/trial-document/components/report_doc/index.vue +++ b/src/views/trials/trials-panel/trial-summary/trial-document/components/report_doc/index.vue @@ -3,7 +3,7 @@
{{ TITLE }}
- + @@ -52,7 +52,6 @@ @@ -60,7 +59,6 @@ +