| | |
| | | console.log(url, "url"); |
| | | // let url = 'http://218.108.11.22:8093/sf/003'; |
| | | // let urlid = this.extractLastSegmentFromUrl(url); |
| | | console.log("棒棒2"); |
| | | |
| | | geturlinfo(url).then((res) => { |
| | | if (res.code == 200) { |
| | |
| | | margin: 12px 0; |
| | | padding: 0 4px; |
| | | } |
| | | // 修改 options-group 的样式 |
| | | .options-group { |
| | | ::v-deep .el-radio-group.options-group, |
| | | ::v-deep .el-checkbox-group.options-group { |
| | | display: grid; |
| | | grid-template-columns: repeat(2, 1fr); // 改为两列网格 |
| | | grid-template-columns: repeat(2, 1fr); |
| | | gap: 10px; |
| | | width: 100%; |
| | | } |
| | | // 针对多选的 checkbox-group 也应用同样的网格布局 |
| | | :deep(.el-checkbox-group) { |
| | | |
| | | // 同样处理多选的情况 |
| | | ::v-deep .el-checkbox-group { |
| | | display: grid; |
| | | grid-template-columns: repeat(2, 1fr); |
| | | gap: 10px; |
| | |
| | | white-space: normal; |
| | | line-height: 1.4; |
| | | } |
| | | // 在小屏幕上调整为单列 |
| | | @media (max-width: 300px) { |
| | | .options-group { |
| | | grid-template-columns: 1fr; // 超小屏幕恢复单列 |
| | | } |
| | | } |
| | | |
| | | .abnormal-indicator { |
| | | color: #f56c6c; |
| | | font-weight: bold; |