From 4c788d60cc5dc854184abd30fb6334da170135fc Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 10 Apr 2024 13:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hirVisit/components/edit-study-list.vue | 24 ++++++- .../trials/trials-panel/hirVisit/index.vue | 6 ++ .../reading/reading-tracking/index.vue | 5 +- .../study/components/edit-visit.vue | 21 +++++++ .../trials-panel/study/components/list.vue | 62 ++++++++++++++++--- src/views/trials/trials-panel/study/index.vue | 6 +- 6 files changed, 111 insertions(+), 13 deletions(-) diff --git a/src/views/trials/trials-panel/hirVisit/components/edit-study-list.vue b/src/views/trials/trials-panel/hirVisit/components/edit-study-list.vue index 8327fe4..1cefd4b 100644 --- a/src/views/trials/trials-panel/hirVisit/components/edit-study-list.vue +++ b/src/views/trials/trials-panel/hirVisit/components/edit-study-list.vue @@ -103,7 +103,7 @@ - + @@ -140,13 +140,15 @@ @@ -155,6 +157,7 @@ prop="PatientIdStr" :label="$t('trials:uploadDicomList:table:pId')" show-overflow-tooltip + sortable="custom" > { return { EarliestStudyTime: null, LatestStudyTime: null, + Asc: false, + SortField: "StudyTime", + PatientIdStr: null, }; }; export default { @@ -298,6 +309,14 @@ export default { this.bottomLoading = false; } }, + // 排序 + handleSortByColumn(sort) { + this.searchData.SortField = sort.prop; + if (sort.order === "ascending") this.searchData.Asc = true; + if (sort.order === "descending") this.searchData.Asc = false; + if (!sort.order) this.searchData.SortField = null; + this.getBottomList(); + }, // 修改检查与访视绑定关系 async setRelation(item, isAdd = true) { try { @@ -361,6 +380,7 @@ export default { reset() { this.searchData = defaultSearchData(); this.dateValue = []; + this.$refs.bottomList.clearSort(); }, // 可选检查表格选择 handleSelectChange() {}, diff --git a/src/views/trials/trials-panel/hirVisit/index.vue b/src/views/trials/trials-panel/hirVisit/index.vue index 4b061f9..04846dc 100644 --- a/src/views/trials/trials-panel/hirVisit/index.vue +++ b/src/views/trials/trials-panel/hirVisit/index.vue @@ -87,6 +87,7 @@