From 207e5aeb0cc3da90a61cf4b23cd1420c1fc1a36f Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Mon, 24 Nov 2025 21:30:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E5=AD=98=E8=BF=9B=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/console/data/NewRegulatory.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/web/regulatory-management-util/src/views/console/data/NewRegulatory.vue b/code/web/regulatory-management-util/src/views/console/data/NewRegulatory.vue index 3918924..f3c9d17 100644 --- a/code/web/regulatory-management-util/src/views/console/data/NewRegulatory.vue +++ b/code/web/regulatory-management-util/src/views/console/data/NewRegulatory.vue @@ -59,6 +59,7 @@ Copyright © CPIC All rights reserved width="100%" stripe border="true" :head-cell-style="headerCellStyle" + :row-class-name="tableRowClassName" empty-text="请上传文件" :data="ui.newRegulatory.regulatory_files" > @@ -168,6 +169,12 @@ export default { const onDeleteUploadedFile = ( rowId: any ): void => { console.log( `点击的rowid:${rowId}` ); + ElMessage.info( `选取的行号${rowId}` ); + }; + + const tableRowClassName = ( row: any, rowIndex: any ): void => + { + row.rowIndex = rowIndex; }; /** @@ -231,11 +238,12 @@ export default { } }; - return { + return { ui, headerCellStyle, cellStyle, onUploadSuccess, + tableRowClassName, showUploadFileDialog, onDeleteUploadedFile, };