更新
This commit is contained in:
@@ -42,17 +42,17 @@ class RepairStatusWidget extends GetView {
|
||||
MyUtils.formatDateTime(repairInfoController
|
||||
.model.repairProcessList[index].create_time!) ??
|
||||
'未知时间',
|
||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0,
|
||||
color: index ==
|
||||
repairInfoController
|
||||
.model.repairProcessList.length -
|
||||
1
|
||||
? Colors.white
|
||||
: Colors.white,
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0,
|
||||
color: index ==
|
||||
repairInfoController
|
||||
.model.repairProcessList.length -
|
||||
1
|
||||
? Colors.white
|
||||
: Colors.white,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -65,33 +65,27 @@ class RepairStatusWidget extends GetView {
|
||||
repairInfoController
|
||||
.model.repairProcessList[index].status ??
|
||||
'未知状态',
|
||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0,
|
||||
color: repairInfoController
|
||||
.model.repairProcessList[index].status ==
|
||||
RepairStatus.pending
|
||||
? AppColors().check_Color
|
||||
: repairInfoController
|
||||
.model
|
||||
.repairProcessList[index]
|
||||
.status ==
|
||||
RepairStatus.approved ||
|
||||
repairInfoController
|
||||
.model
|
||||
.repairProcessList[index]
|
||||
.status ==
|
||||
'维修中'
|
||||
? AppColors().repair_Color
|
||||
: repairInfoController
|
||||
.model
|
||||
.repairProcessList[index]
|
||||
.status ==
|
||||
RepairStatus.completed
|
||||
? AppColors().finish_Color
|
||||
: AppColors().unOp_Color, // 根据状态设置文字颜色
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
fontSize: 26.rpx,
|
||||
letterSpacing: 0,
|
||||
color: repairInfoController
|
||||
.model.repairProcessList[index].status ==
|
||||
RepairStatus.pending
|
||||
? AppColors().check_Color
|
||||
: repairInfoController.model.repairProcessList[index]
|
||||
.status ==
|
||||
RepairStatus.approved ||
|
||||
repairInfoController.model
|
||||
.repairProcessList[index].status ==
|
||||
'维修中'
|
||||
? AppColors().repair_Color
|
||||
: repairInfoController.model
|
||||
.repairProcessList[index].status ==
|
||||
RepairStatus.completed
|
||||
? AppColors().finish_Color
|
||||
: AppColors().unOp_Color, // 根据状态设置文字颜色
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -105,12 +99,12 @@ class RepairStatusWidget extends GetView {
|
||||
? '未备注'
|
||||
: repairInfoController
|
||||
.model.repairProcessList[index].desc!,
|
||||
style: FlutterFlowTheme.of(context).bodyMedium.override(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
fontSize: 20.rpx,
|
||||
letterSpacing: 0,
|
||||
),
|
||||
style: TextStyle(
|
||||
fontFamily: 'Readex Pro',
|
||||
color: Colors.white,
|
||||
fontSize: 20.rpx,
|
||||
letterSpacing: 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user