From cb8bc506a738f270f570819cc5730dcfe129b63c Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 11 Mar 2025 13:53:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=BC=B9=E6=A1=86=E6=96=87=E4=BB=B6=E6=95=B0?= =?UTF-8?q?=E9=87=8F=E6=B2=A1=E6=9C=89=E9=99=90=E5=88=B6=E6=97=B62?= =?UTF-8?q?=E6=89=8D=E6=98=BE=E7=A4=BA=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=A4=B9=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trial-document/components/uploadFiles.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/trials/trials-panel/trial-summary/trial-document/components/uploadFiles.vue b/src/views/trials/trials-panel/trial-summary/trial-document/components/uploadFiles.vue index 1c294582..088538f3 100644 --- a/src/views/trials/trials-panel/trial-summary/trial-document/components/uploadFiles.vue +++ b/src/views/trials/trials-panel/trial-summary/trial-document/components/uploadFiles.vue @@ -14,6 +14,7 @@ class="upload" style="margin-right: 10px" :disabled="limitLength" + v-if="!limitLength" >
{{ $t('trials:trialDocument:button:selectFolder') }} From 21dab27e0b0bddbec4b6dc0f6785041c98fda5eb Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 11 Mar 2025 14:11:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 38 ++++++++++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 05c5a7ed..564f906f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -62,12 +62,14 @@ v-adaptive="{ bottomOffset: 50 }" height="100" style="width: 100%" + @sort-change="handleSortByColumn" > @@ -79,7 +81,11 @@ - + - + - + - +
@@ -195,6 +213,18 @@ export default { // }, // }, methods: { + // 排序 + handleSortByColumn(column) { + if (column.order === 'ascending') { + this.tableData.sort((a, b) => + a[column.prop].localeCompare(b[column.prop]) + ) + } else { + this.tableData.sort((a, b) => + b[column.prop].localeCompare(a[column.prop]) + ) + } + }, handleStateChange() { this.tableData.forEach((item) => { item.State = this.State