This commit is contained in:
魏少阳 2024-03-01 14:16:29 +08:00
commit b8c32103f7
5 changed files with 20 additions and 20 deletions

View File

@ -138,9 +138,9 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
setState(() {
state.effectiveDateTime.value = XSDateUtils.parseDateTime(
'${p.year}-${p.month!}-${p.day} ${p.hour!}:${p.minute!}',
'yyyy-mm-dd HH:mm');
'yyyy-MM-dd HH:mm');
state.selectEffectiveDate.value = XSDateUtils.formatDateTime(
state.effectiveDateTime.value, 'yyyy-mm-dd HH:mm');
state.effectiveDateTime.value, 'yyyy-MM-dd HH:mm');
});
});
}),
@ -154,9 +154,9 @@ class _AuthorizedAdminPageState extends State<AuthorizedAdminPage> {
setState(() {
state.failureDateTime.value = XSDateUtils.parseDateTime(
'${p.year}-${p.month!}-${p.day} ${p.hour!}:${p.minute!}',
'yyyy-mm-dd HH:mm');
'yyyy-MM-dd HH:mm');
state.selectFailureDate.value = XSDateUtils.formatDateTime(
state.failureDateTime.value, 'yyyy-mm-dd HH:mm');
state.failureDateTime.value, 'yyyy-MM-dd HH:mm');
});
});
}),

View File

@ -82,9 +82,9 @@ class _ElectronicKeyDetailChangeDateState
onConfirm: (p) {
state.effectiveDateTime = XSDateUtils.parseDateTime(
'${p.year}-${p.month!}-${p.day} ${p.hour!}:${p.minute!}',
'yyyy-mm-dd HH:mm');
'yyyy-MM-dd HH:mm');
state.selectEffectiveDate.value = XSDateUtils.formatDateTime(
state.effectiveDateTime, 'yyyy-mm-dd HH:mm');
state.effectiveDateTime, 'yyyy-MM-dd HH:mm');
});
})),
Obx(() => CommonItem(
@ -96,9 +96,9 @@ class _ElectronicKeyDetailChangeDateState
onConfirm: (p) {
state.failureDateTime = XSDateUtils.parseDateTime(
'${p.year}-${p.month!}-${p.day} ${p.hour!}:${p.minute!}',
'yyyy-mm-dd HH:mm');
'yyyy-MM-dd HH:mm');
state.selectFailureDate.value = XSDateUtils.formatDateTime(
state.failureDateTime, 'yyyy-mm-dd HH:mm');
state.failureDateTime, 'yyyy-MM-dd HH:mm');
});
})),
],

View File

@ -154,9 +154,9 @@ class _ElectronicKeyPeriodValidityPageState
onConfirm: (p) {
state.isHaveEffectiveDate.value = true;
state.effectiveDate.value = XSDateUtils.parseDateTime(
'${p.year}-${p.month!}-${p.day!}', 'yyyy-mm-dd');
'${p.year}-${p.month!}-${p.day!}', 'yyyy-MM-dd');
state.selectEffectiveDate.value = XSDateUtils.formatDateTime(
state.effectiveDate.value, 'yyyy-mm-dd');
state.effectiveDate.value, 'yyyy-MM-dd');
});
})),
Obx(() => CommonItem(
@ -168,9 +168,9 @@ class _ElectronicKeyPeriodValidityPageState
onConfirm: (p) {
state.isHaveFailureDate.value = true;
state.failureDate.value = XSDateUtils.parseDateTime(
'${p.year}-${p.month!}-${p.day!}', 'yyyy-mm-dd');
'${p.year}-${p.month!}-${p.day!}', 'yyyy-MM-dd');
state.selectFailureDate.value = XSDateUtils.formatDateTime(
state.failureDate.value, 'yyyy-mm-dd');
state.failureDate.value, 'yyyy-MM-dd');
});
})),
],

View File

@ -174,9 +174,9 @@ class _SendElectronicKeyPageState extends State<SendElectronicKeyPage> {
onConfirm: (p) {
state.effectiveDateTime.value = XSDateUtils.parseDateTime(
'${p.year}-${p.month!}-${p.day} ${p.hour!}:${p.minute!}',
'yyyy-mm-dd HH:mm');
'yyyy-MM-dd HH:mm');
state.selectEffectiveDate.value = XSDateUtils.formatDateTime(
state.effectiveDateTime.value, 'yyyy-mm-dd HH:mm');
state.effectiveDateTime.value, 'yyyy-MM-dd HH:mm');
});
}),
CommonItem(
@ -188,9 +188,9 @@ class _SendElectronicKeyPageState extends State<SendElectronicKeyPage> {
onConfirm: (p) {
state.failureDateTime.value = XSDateUtils.parseDateTime(
'${p.year}-${p.month!}-${p.day} ${p.hour!}:${p.minute!}',
'yyyy-mm-dd HH:mm');
'yyyy-MM-dd HH:mm');
state.selectFailureDate.value = XSDateUtils.formatDateTime(
state.failureDateTime.value, 'yyyy-mm-dd HH:mm');
state.failureDateTime.value, 'yyyy-MM-dd HH:mm');
});
}),
Container(height: 10.h),

View File

@ -331,9 +331,9 @@ class _AddAuthorizedAdministratorPageState
setState(() {
state.effectiveDate.value = XSDateUtils.parseDateTime(
'${p.year}-${p.month!}-${p.day} ${p.hour!}:${p.minute!}',
'yyyy-mm-dd HH:mm');
'yyyy-MM-dd HH:mm');
state.selectEffectiveDate.value = XSDateUtils.formatDateTime(
state.effectiveDate.value, 'yyyy-mm-dd HH:mm');
state.effectiveDate.value, 'yyyy-MM-dd HH:mm');
});
});
}),
@ -347,9 +347,9 @@ class _AddAuthorizedAdministratorPageState
setState(() {
state.failureDate.value = XSDateUtils.parseDateTime(
'${p.year}-${p.month!}-${p.day} ${p.hour!}:${p.minute!}',
'yyyy-mm-dd HH:mm');
'yyyy-MM-dd HH:mm');
state.selectFailureDate.value = XSDateUtils.formatDateTime(
state.failureDate.value, 'yyyy-mm-dd HH:mm');
state.failureDate.value, 'yyyy-MM-dd HH:mm');
});
});
}),