| | |
| | | </el-form-item> |
| | | <el-form-item label="设备:"> |
| | | <el-select v-model="currentOtherForm.deviceIds" :disabled="state != 1" multiple filterable clearable |
| | | size="small" placeholder="请选择设备" style="width: 360px" |
| | | class="device-select" size="small" placeholder="请选择设备" |
| | | style="width: 360px !important; min-width: 360px; flex: 0 0 360px" |
| | | @change="(m) => subOtherForm(m, 'deviceIds')"> |
| | | <el-option v-for="device in orderDeviceOptions" :key="device.id" :label="device.label" :value="device.id" /> |
| | | </el-select> |
| | |
| | | temperature: form.temperature == null ? null : form.temperature, |
| | | detectionTime: form.detectionTime || null, |
| | | detectionPlace: form.detectionPlace || null, |
| | | deviceIds: Array.isArray(form.deviceIds) ? [...form.deviceIds] : [], |
| | | }); |
| | | })); |
| | | } catch (error) { |
| | |
| | | flex: none; |
| | | } |
| | | |
| | | /* 设备下拉固定宽度,禁止被行内布局压缩,否则选中内容不可见 */ |
| | | .template-panel:deep(.device-select) { |
| | | display: inline-block !important; |
| | | width: 360px !important; |
| | | min-width: 360px; |
| | | flex: 0 0 360px; |
| | | } |
| | | |
| | | .template-panel__unit { |
| | | margin-left: 4px; |
| | | color: var(--lims-text-2); |