From 55fb24dc2886371ed51c21150e6b91dd428f2850 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期一, 02 九月 2024 14:57:22 +0800 Subject: [PATCH] 用户管理接口更新 --- src/components/tool/value-table.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/components/tool/value-table.vue b/src/components/tool/value-table.vue index 200cd41..1892627 100644 --- a/src/components/tool/value-table.vue +++ b/src/components/tool/value-table.vue @@ -116,7 +116,7 @@ <el-table ref="eltable" :data="tableData" style="width: 100%;" height="100%" 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" :row-key="record=>record.id" + :summary-method="getSummaries" :row-class-name="tableRowClassName" :row-key="record=>record[rowKey]" :current-row-key="data.currentId" :highlight-current-row="data.highlight===undefined||data.highlight" :span-method="spanMethod" :key="specialKey"> <el-table-column type="selection" :width="selectionWidth" v-if="data.showSelect" :key="Math.random()"> @@ -359,6 +359,12 @@ tableRowClassName: { type: Function }, + rowKey: { + type: String, + default: ()=>{ + return 'id' + } + }, url: { type: String, default: () => null -- Gitblit v1.9.3