| | |
| | | /* border: 1px solid #ccc;*/ |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | /* 新增局部样式 */ |
| | | .temperature-input .van-field__control, |
| | | .flow-input .van-field__control { |
| | | font-size: 0.16rem !important; |
| | | color: blue !important; |
| | | } |
| | | |
| | | </style> |
| | | </asp:Content> |
| | |
| | | <van-cell-group> |
| | | <!-- 表头 --> |
| | | <van-cell> |
| | | <div class="grid-header"> |
| | | <div class="grid-header" style="display: flex; align-items: center; justify-content: center;"> |
| | | <div v-for="(header, index) in [headers[0], ...headers.slice(1)]" |
| | | :key="index" |
| | | :style="index === 0 ? 'width: 100px' : 'flex: 1'"> |
| | | :style="`${index === 0 ? 'flex: 2' : 'flex: 2'}; display: flex; align-items: center; justify-content: center;`"> |
| | | {{ header }} |
| | | </div> |
| | | </div> |
| | |
| | | <div v-for="(row, rowIndex) in tableTbData" :key="rowIndex"> |
| | | <div class="grid-row"> |
| | | <!-- 水温列 --> |
| | | <div style="width: 100px">{{ row.temperature }}</div> |
| | | <div style="flex: 2; text-align: center; display: flex; align-items: center; justify-content: center;">{{ row.temperature }}</div> |
| | | <!-- 实际温度列 --> |
| | | <div style="width: 100px"> |
| | | <div style="flex: 2"> |
| | | <van-field |
| | | class="temperature-input" |
| | | style="font-size: 0.16rem !important; color: blue !important;" |
| | | v-model="formTbData.temperatureData[row.temperature].temp" |
| | | placeholder="输入温度值" |
| | | type="number" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <!-- 动态列 --> |
| | | <div v-for="(header, colIndex) in headers.slice(2)" |
| | | :key="colIndex" |
| | | style="flex: 1"> |
| | | style="flex: 2"> |
| | | <van-field |
| | | class="flow-input" |
| | | style="font-size: 0.16rem !important; color: blue !important;" |
| | | v-model="formTbData.temperatureData[row.temperature][header]" |
| | | :placeholder="`输入${header}值`" |
| | | type="number" |