| | |
| | | |
| | | <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> |
| | |
| | | methods: { |
| | | onRowClick(index) { |
| | | this.selectedIndexs = [index]; // 单选 |
| | | // 手动触发 selectionChange 以同步复选框 |
| | | this.selectionChange({ detail: { index } }); |
| | | }, |
| | | checkForUpdate() { |
| | | this.$post({ |
| | |
| | | |
| | | <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; |
| | | } |
| | |
| | | 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; |
| | |
| | | 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 { |
| | |
| | | overflow-wrap: break-word; |
| | | } |
| | | |
| | | // 放大弹窗内表格字体(表头和内容) |
| | | .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) { |
| | | .right-side { |