From b1d32efa490478a1c34324231c6d6191fce51fc2 Mon Sep 17 00:00:00 2001 From: liujun Date: Sat, 23 Dec 2023 10:50:36 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=97=A0=E6=B3=95=E5=A4=9A?= =?UTF-8?q?=E9=80=89bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/xgf/flowApply/components/list.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/views/xgf/flowApply/components/list.vue b/src/views/xgf/flowApply/components/list.vue index 785481a..eb97626 100644 --- a/src/views/xgf/flowApply/components/list.vue +++ b/src/views/xgf/flowApply/components/list.vue @@ -30,11 +30,13 @@ ref="multipleTable" :data="varList" :header-cell-style="{'font-weight': 'bold','color': '#000'}" + :row-key="getRowKeys" tooltip-effect="dark" border fit - highlight-current-row> - + highlight-current-row + @selection-change="handleSelectionChange"> + @@ -108,7 +110,8 @@ export default { STATUS: '', add: false, // 新增按钮 del: false, // 删除按钮 - edit: false // 修改按钮 + edit: false, // 修改按钮 + multipleSelection: [] } }, created() { @@ -222,6 +225,12 @@ export default { }).catch((e) => { this.listLoading = false }) + }, + getRowKeys(row) { + return row.XGF_USER_ID + }, + handleSelectionChange(val) { + console.log(val) } } }