75 lines
2.7 KiB
Dart
Executable File
75 lines
2.7 KiB
Dart
Executable File
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:star_lock/main/lockDetail/checkingIn/checkingInHolidays/checkingInDeletHolidays/checkingInDeletHolidays_state.dart';
|
|
|
|
import '../../../../../app_settings/app_colors.dart';
|
|
import '../../../../../tools/commonItem.dart';
|
|
import '../../../../../tools/dateTool.dart';
|
|
import '../../../../../tools/titleAppBar.dart';
|
|
import 'checkingInDeletHolidays_logic.dart';
|
|
|
|
class CheckingInDeletHolidaysPage extends StatefulWidget {
|
|
const CheckingInDeletHolidaysPage({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
State<CheckingInDeletHolidaysPage> createState() => _CheckingInDeletHolidaysPageState();
|
|
}
|
|
|
|
class _CheckingInDeletHolidaysPageState extends State<CheckingInDeletHolidaysPage> {
|
|
final CheckingInDeletHolidaysLogic logic = Get.put(CheckingInDeletHolidaysLogic());
|
|
final CheckingInDeletHolidaysState state = Get.find<CheckingInDeletHolidaysLogic>().state;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: AppColors.mainBackgroundColor,
|
|
appBar: TitleAppBar(
|
|
barTitle: '假日信息'.tr,
|
|
haveBack: true,
|
|
backgroundColor: AppColors.mainColor,
|
|
actionsList: <Widget>[
|
|
TextButton(
|
|
child: Text(
|
|
'删除'.tr,
|
|
style: TextStyle(color: Colors.white, fontSize: 24.sp),
|
|
),
|
|
onPressed: logic.deletStaffLoadData,
|
|
),
|
|
// GestureDetector(
|
|
// onTap: () async {
|
|
// logic.deletStaffLoadData();
|
|
// },
|
|
// child: Image.asset(
|
|
// 'images/icon_add_white.png',
|
|
// width: 36.w,
|
|
// height: 36.w,
|
|
// )),
|
|
// SizedBox(
|
|
// width: 30.w,
|
|
// ),
|
|
],),
|
|
body: Obx(() => Column(
|
|
children: <Widget>[
|
|
CommonItem(
|
|
leftTitel: '姓名'.tr,
|
|
rightTitle: state.listItem.value.vacationName,
|
|
isHaveLine: true),
|
|
CommonItem(
|
|
leftTitel: '开始日期'.tr,
|
|
rightTitle: DateTool().dateToYMDString(state.listItem.value.vacationStartDate.toString()),
|
|
isHaveLine: true),
|
|
CommonItem(
|
|
leftTitel: '结束日期'.tr,
|
|
rightTitle: DateTool().dateToYMDString(state.listItem.value.vacationEndDate.toString()),
|
|
isHaveLine: true),
|
|
CommonItem(
|
|
leftTitel: '补班日期'.tr,
|
|
rightTitle: (state.listItem.value.fillClassDate!.isNotEmpty) ? DateTool().dateToYMDString(state.listItem.value.fillClassDate.toString()) : '',
|
|
isHaveLine: true),
|
|
],
|
|
)));
|
|
}
|
|
}
|