更新
This commit is contained in:
@@ -84,7 +84,10 @@ class _ApplyRepairPageState extends State<ApplyRepairPage> {
|
||||
}
|
||||
if (bodyDeviceController.deviceList.isNotEmpty) {
|
||||
repairController.deviceListId = bodyDeviceController.deviceList
|
||||
.map((e) => e['_id'] as String)
|
||||
.map((e) => (e['_id']) as String)
|
||||
.toList();
|
||||
repairController.deviceListIdLabel = bodyDeviceController.deviceList
|
||||
.map((e) => (e['code']??e['mac']) as String)
|
||||
.toList();
|
||||
}
|
||||
return LayoutBuilder(
|
||||
@@ -157,14 +160,20 @@ class _ApplyRepairPageState extends State<ApplyRepairPage> {
|
||||
EdgeInsetsDirectional.fromSTEB(30.rpx, 29.rpx, 30.rpx, 0),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.max,
|
||||
children: [
|
||||
Obx(() {
|
||||
var devicetype = deviceTypeController
|
||||
.deviceTypeList.value
|
||||
.where((device) => device['type'] == 1)
|
||||
.toList();
|
||||
return SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal, // 横向滚动
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.start,
|
||||
mainAxisSize: MainAxisSize.min, // 设置为 min,避免撑满父组件宽度
|
||||
children: deviceTypeController.deviceTypeList.value
|
||||
children: devicetype
|
||||
.map(
|
||||
(deviceType) => CustomCard(
|
||||
borderRadius:
|
||||
|
||||
Reference in New Issue
Block a user