From a4e35a89bdd3026136743f911814288860092ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Thu, 20 Jul 2023 17:35:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=B7=BB=E5=8A=A0=E5=8F=B3?= =?UTF-8?q?=E4=BE=A7=E6=93=8D=E4=BD=9C=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/tablePagination/index.vue | 15 +++++++- Code/Fe/src/components/umyTable/index.vue | 37 +++++++++++++++++-- 2 files changed, 47 insertions(+), 5 deletions(-) diff --git a/Code/Fe/src/components/tablePagination/index.vue b/Code/Fe/src/components/tablePagination/index.vue index 05d4c0c..80178e1 100644 --- a/Code/Fe/src/components/tablePagination/index.vue +++ b/Code/Fe/src/components/tablePagination/index.vue @@ -53,6 +53,8 @@ @inlineDialog="inlineDialog" :buttonOperationList_left="buttonOperationList_left" @buttonOperationClick_left="buttonOperationClick_left" + :buttonOperationList_right="buttonOperationList_right" + @buttonOperationClick_right="buttonOperationClick_right" :tableBorder="true" :firstFixed="true" :cellStyle = "cellStyle" @@ -115,11 +117,16 @@ export default { return [] } }, - // 操作列按钮 + // 操作列按钮(左侧) buttonOperationList_left:{ type: Array, default: null, }, + // 操作列按钮(右侧) + buttonOperationList_right:{ + type: Function, + default: null, + }, // 列表数据 tableData: { type: Array, @@ -341,10 +348,14 @@ export default { sortChange (data) { this.$emit('sortChange', data) }, - //点击table操作列按钮 + //点击table操作列(左侧)按钮 buttonOperationClick_left(row, index, label) { this.$emit("buttonOperationClick_left", row, index, label); }, + //点击table操作列(右侧)按钮 + buttonOperationClick_right(row, item, index) { + this.$emit("buttonOperationClick_right", row, item, index); + }, // 全面筛选组件配置 // 全面筛选组件内部显示/隐藏更改触发,同步当前的showSearchOverall值 getShowSearchOverall(val){ diff --git a/Code/Fe/src/components/umyTable/index.vue b/Code/Fe/src/components/umyTable/index.vue index b9c9275..bd17d53 100644 --- a/Code/Fe/src/components/umyTable/index.vue +++ b/Code/Fe/src/components/umyTable/index.vue @@ -19,7 +19,7 @@ header-row-class-name="uTableHeader" > - + {{itemButton.label}} + + + + +