From 06385f75c92f8628efe4c6764e3652348c6d6007 Mon Sep 17 00:00:00 2001 From: licp <lichunping@guanfang.com.cn> Date: 星期二, 26 三月 2024 13:56:11 +0800 Subject: [PATCH] 修改表格bug --- src/components/tool/value-table.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue index 065c628..fbd1c28 100644 --- a/src/components/tool/value-table.vue +++ b/src/components/tool/value-table.vue @@ -78,7 +78,9 @@ tooltip-effect="dark" border @selection-change="selectChange" @select="select" v-loading="loading" @sort-change="sortChange" @row-click="rowClick" :show-summary="data.countFleid!=undefined && data.countFleid.length > 0" - :summary-method="getSummaries" :row-class-name="tableRowClassName"> + :summary-method="getSummaries" :row-class-name="tableRowClassName" + :row-key="record=>record.id" :current-row-key="data.currentId" + highlight-current-row> <el-table-column type="selection" width="65" v-if="data.showSelect" :key="Math.random()"> </el-table-column> <el-table-column type="index" align="center" label="搴忓彿" width="70" v-if="data.isIndex" :key="Math.random()"> @@ -319,7 +321,8 @@ type: 'text' }], type: [], - uploadStr: "" + uploadStr: "", + currentId:'',//褰撳墠楂樹寒鐨処D }, tableHead: [], tableData: [], -- Gitblit v1.9.3