快乐的昕的电脑
2025-11-24 f9c16d3b9648b768c4afb8e23166694d37e8342d
pages/index.vue
@@ -192,7 +192,7 @@
                  <view class="section card">
                     <uni-table ref="table" type="selection" border stripe emptyText="暂无更多数据"
                              @selection-change="selectionChange">
                              class="large-selection-table" @selection-change="selectionChange">
                        <uni-tr>
                           <uni-th align="center" class="th" style="color: #FFFFFF; width: 100px;">工序</uni-th>
                           <uni-th align="center" class="th" style="color: #FFFFFF; width: 120px;">工单号</uni-th>
@@ -346,6 +346,8 @@
      methods: {
            onRowClick(index) {
                this.selectedIndexs = [index]; // 单选
                // 手动触发 selectionChange 以同步复选框
                this.selectionChange({ detail: { index } });
            },
         checkForUpdate() {
            this.$post({
@@ -752,6 +754,14 @@
<style lang="scss">
    :deep(.checkbox),
    :deep(.checkbox__inner) {
        padding: 10px !important;
        width: 44px !important;
        min-width: 44px !important;
        box-sizing: border-box;
    }
    .row-selected {
        background-color: #e0f3ff !important;
    }
@@ -994,16 +1004,15 @@
      align-items: center;
   }
   .popup {
      background-color: #fff;
      padding: 2vh;
      border: 1px solid #ccc;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      width: 90vw;
      height: 70vh;
      font-size: 1.6vw;
      /* Increased font size within popups */
   }
    .popup {
        background-color: #fff;
        padding: 2vh;
        border: 1px solid #ccc;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        width: 90vw;
        height: 85vh; /* 原70vh,调高 */
        font-size: 1.6vw;
    }
   .print-btn {
      float: left;
@@ -1035,6 +1044,17 @@
        display: block;
    }
/*    //v-deep .checkbox {
    //    padding: 10 10px;
    //    width: 26px;
    //    padding-left: 12px;
    //    display: table-cell;
    //    vertical-align: middle;
    //    color: #333;
    //    font-weight: 500;
    //    border-bottom: 1px #ebeef5 solid;
    //    font-size: 14px;
    //}*/
   @media screen and (max-width: 1920px) {
      .tab-item {
@@ -1059,28 +1079,13 @@
        overflow-wrap: break-word;
    }
/* 放大uni-table选择框列(兼容uni-table和原生table) */
.uni-table .uni-table-selection,
.uni-table .uni-table-selection th,
.uni-table .uni-table-selection td,
.uni-table .uni-table__selection-column,
.uni-table .uni-table__selection-column th,
.uni-table .uni-table__selection-column td {
    width: 60px !important;   /* 调大宽度,可根据需要调整 */
    min-width: 60px !important;
    max-width: 80px;
    text-align: center;
}
.uni-table .uni-table-selection .uni-checkbox-input,
.uni-table .uni-table__selection-column .uni-checkbox-input {
    width: 32px !important;   /* 放大复选框 */
    height: 32px !important;
    transform: scale(3);   /* 进一步放大 */
    margin: 0 auto;
    display: block;
}
    // 放大弹窗内表格字体(表头和内容)
    .popup .large-selection-table,
    .popup .large-selection-table .uni-th,
    .popup .large-selection-table .uni-td,
    .popup .large-selection-table input.form-input {
        font-size: 2.2vw !important; // 可根据实际需求调整
    }
   /* 针对1280x800的平板使用媒体查询进行适配 */
   @media screen and (min-width: 1280px) and (max-width: 1920px) {