From cbc43d78e8ed7a2ef786328b0f652569714ed586 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期五, 13 九月 2024 15:54:12 +0800 Subject: [PATCH] el-table 选择事件调整 --- src/views/ecg/doctor/components/DevInstallPanel.vue | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/ecg/doctor/components/DevInstallPanel.vue b/src/views/ecg/doctor/components/DevInstallPanel.vue index dcbf78c..c62a129 100644 --- a/src/views/ecg/doctor/components/DevInstallPanel.vue +++ b/src/views/ecg/doctor/components/DevInstallPanel.vue @@ -30,7 +30,7 @@ <!-- 鍖荤敓鎷嗘満鍒楄〃 --> <ContentWrap> - <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true" @current-change="onCurChange" > + <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true" @row-click="onRowClick" > <el-table-column label="id" align="center" prop="id" /> <el-table-column label="--" align="center" prop="cancelled" > <template #default="scope"> @@ -235,7 +235,7 @@ } } -const onCurChange = (cur) => { +const onRowClick = (cur) => { if (cur !== null) getSelectedRent( cur.rentId ) } -- Gitblit v1.9.3