fix: 表格分页勾选

This commit is contained in:
weiwei committed 2025-08-12 19:01:19 +08:00
1 parent 1d5413b5e5
commit 5c7b2c7081
3 files changed
+5 -7

No files matched your search

@@ -17,11 +17,10 @@
:data="dataList"
v-loading="loading"
:row-key="(row:any) => row.id"
:reserve-selection="true"
@row-click="rowClick"
:row-style="{ cursor: 'pointer' }"
>
<el-table-column type="selection" width="40" fixed="left" align="center" />
<el-table-column type="selection" reserve-selection width="40" fixed="left" align="center" />
<el-table-column type="index" label="#" width="50" fixed="left" align="center" />
<el-table-column prop="name" label="食材名称" min-width="150px" align="center" show-overflow-tooltip />
<el-table-column prop="unit" label="单位" min-width="100px" align="center" show-overflow-tooltip />
@@ -17,8 +17,9 @@
<select-ctcg v-model="queryForm.categoryId" style="width: 200px" />
</el-form-item>
<el-form-item>
<el-button icon="search" type="primary" @click="getDataList" v-auth="'canteen_canteenSpu_view'"> 查询 </el-button>
<el-button icon="search" type="primary" @click="getDataList" v-auth="'canteen_canteenSpu_view'">查询</el-button>
<el-button icon="Refresh" @click="resetQuery" v-auth="'canteen_canteenSpu_view'">重置</el-button>
<el-button icon="Refresh" @click="tableRef.clearSelection()" v-auth="'canteen_canteenSpu_view'">取消所有勾选</el-button>
</el-form-item>
</el-form>
</el-row>
@@ -28,12 +29,11 @@
:data="dataList"
v-loading="loading"
:row-key="(row:any) => row.id"
:reserve-selection="true"
@selection-change=""
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle"
>
<el-table-column type="selection" width="40" />
<el-table-column reserve-selection type="selection" width="40" />
<el-table-column type="index" label="#" width="50" />
<el-table-column prop="name" label="菜品名称" width="120px" show-overflow-tooltip />
<el-table-column prop="categoryId" label="菜品分类" width="100px" show-overflow-tooltip>
@@ -79,7 +79,7 @@
<template #footer>
<div class="flex items-center w-1/3">
<div class="w-16 text-blue-600 text-base">商户:</div>
<div class="w-16 text-blue-600 text-base font-bold">商户:</div>
<select-mch v-model="merchantId" :apiParams="{ types: '1' }" />
</div>
<el-button @click="dialogVisible = false">取消</el-button>
@@ -23,7 +23,6 @@
:data="dataList"
v-loading="loading"
:row-key="(row:any) => row.id"
:reserve-selection="true"
@selection-change=""
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle"