快乐的昕的电脑
2025-10-14 b07b8cf446b40799e62bb9531b724d05e3d232b0
pages/index.vue
@@ -183,7 +183,7 @@
               <table>
                  <view class="section card">
                     <uni-table ref="table" type="radio" border stripe emptyText="暂无更多数据"
                     <uni-table ref="table" type="selection" border stripe emptyText="暂无更多数据"
                              @selection-change="selectionChange">
                        <uni-tr>
                           <uni-th align="center" class="th" style="color: #FFFFFF">工序</uni-th>
@@ -568,12 +568,8 @@
            return `${year}-${month}-${day}`; // 返回格式化后的字符串
         },
         selectionChange(e) {
                // 只保留最后一个选中的工单
                if (Array.isArray(e.detail.index)) {
                    this.selectedIndexs = [e.detail.index[e.detail.index.length - 1]];
                } else {
                    this.selectedIndexs = [e.detail.index];
                }
                // 单选直接赋值
                this.selectedIndexs = [e.detail.index];
         },
         selectedItems() {