Explorar el Código

fix(history):修复桌次和手牌号显示问题

- 将桌次显示从 tableId 改为索引加1- 将手牌号显示从 handNumber 改为索引加1
- 注释掉旧的桌次卡片渲染逻辑
fugui001 hace 2 meses
padre
commit
1a11d95440
Se han modificado 1 ficheros con 12 adiciones y 2 borrados
  1. 12 2
      src/views/system/business/history/index.vue

+ 12 - 2
src/views/system/business/history/index.vue

@@ -43,7 +43,7 @@
       <div class="section-title">桌次:</div>
       <el-scrollbar>
         <div class="card-container">
-          <div
+<!--          <div
             v-for="(table, index) in tableData.slice(0, showMore ? tableData.length : 20)"
             :key="index"
             class="table-card"
@@ -51,6 +51,16 @@
             @click="handleTableClick(table)"
           >
             {{ table.tableId }}
+          </div>-->
+          <!-- 修改后 -->
+          <div
+            v-for="(table, index) in tableData.slice(0, showMore ? tableData.length : 20)"
+            :key="index"
+            class="table-card"
+            :class="{ 'selected': selectedTableId === table.tableId }"
+            @click="handleTableClick(table)"
+          >
+            {{ index + 1 }}
           </div>
         </div>
         <div v-if="tableData.length > 20" class="more-button-container">
@@ -74,7 +84,7 @@
             :class="{ 'selected': selectedTableHandNumberId === table.handNumber }"
             @click="handleTableNumberClick(table)"
           >
-            {{ table.handNumber }}
+            {{ index + 1 }}
           </div>
         </div>
         <div v-if="tableNumberData.length > 20" class="more-button-container">