Compare commits
No commits in common. "d62560184d4d3edf7542136446af6e82afa67773" and "a4dd67ddfa3d8a03a0b80729dd193a19e0f7b808" have entirely different histories.
d62560184d
...
a4dd67ddfa
|
|
@ -10,21 +10,21 @@ class ItemBtn extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
height:25.r,
|
||||
height:20.r,
|
||||
child: ElevatedButton(
|
||||
style: ButtonStyle(
|
||||
overlayColor:WidgetStateProperty.all(
|
||||
overlayColor:MaterialStateProperty.all(
|
||||
const Color(0xFF6888FD)),
|
||||
backgroundColor:
|
||||
WidgetStateProperty.all(
|
||||
MaterialStateProperty.all(
|
||||
const Color(0xFFF4F4F4)),
|
||||
// foregroundColor: MaterialStateProperty.all(Colors.red.shade200),//文字颜色
|
||||
shape: WidgetStateProperty.all(
|
||||
shape: MaterialStateProperty.all(
|
||||
RoundedRectangleBorder(
|
||||
borderRadius:
|
||||
BorderRadius.circular(22), //设置圆角
|
||||
)),
|
||||
padding: WidgetStateProperty.all(
|
||||
padding: MaterialStateProperty.all(
|
||||
EdgeInsets.zero,
|
||||
)),
|
||||
onPressed: () {
|
||||
|
|
|
|||
|
|
@ -55,12 +55,6 @@ class _AnswerTrajectoryPageState extends State<AnswerTrajectoryPage> {
|
|||
child: TabBar(
|
||||
dividerHeight: 0,
|
||||
tabAlignment: TabAlignment.start,
|
||||
indicator: const UnderlineTabIndicator(
|
||||
borderSide: BorderSide(
|
||||
color: const Color.fromRGBO(104, 136, 253, 1),
|
||||
),
|
||||
|
||||
),
|
||||
onTap: (int val) {
|
||||
state.tabIndex.value = val;
|
||||
// EasyLoading.show(status: 'loading...');
|
||||
|
|
|
|||
|
|
@ -257,7 +257,7 @@ class _ClassStudentPageState extends State<ClassStudentPage> {
|
|||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 5.r, left: 4.r),
|
||||
padding: EdgeInsets.only(top: 2.r, left: 4.r),
|
||||
child: Text(
|
||||
'优先批阅',
|
||||
style: TextStyle(fontSize: 10.sp, color: const Color(0xFF4CC793)),
|
||||
|
|
@ -291,7 +291,7 @@ class _ClassStudentPageState extends State<ClassStudentPage> {
|
|||
),
|
||||
),
|
||||
Padding(
|
||||
padding: EdgeInsets.only(top: 5.r, left: 4.r),
|
||||
padding: EdgeInsets.only(top: 2.r, left: 4.r),
|
||||
child: Text(
|
||||
'优先批阅',
|
||||
style: TextStyle(fontSize: 10.sp, color: const Color(0xFF8A9691)),
|
||||
|
|
|
|||
|
|
@ -22,13 +22,12 @@ class QuickDataCheckLogic extends GetxController with RequestToolMixin {
|
|||
|
||||
void getWorkData() async {
|
||||
HomeworkDetails data = await getClient().getHomeworkDetails(state.homeworkId.value, state.classId.value);
|
||||
EasyLoading.dismiss();
|
||||
state.dataCount = Utils.getHomeworkData(data);
|
||||
state.homeData = data;
|
||||
state.kgReport.value = data.questions.where((w) => w.questionType == 1).toList();
|
||||
state.zgReport.value = data.questions.where((w) => w.questionType == 2).toList();
|
||||
state.studentList.value = data.students;
|
||||
state.hasData.value = true;
|
||||
|
||||
EasyLoading.dismiss();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,10 +89,12 @@ class _QuickDataCheckPageState extends State<QuickDataCheckPage> {
|
|||
SizedBox(
|
||||
width: 6.r,
|
||||
),
|
||||
Text(
|
||||
'${EnumUtils.formatGrade(state.grade)}${state.className.value}',
|
||||
style: TextStyle(fontSize: 14.r, color: Colors.white),
|
||||
),
|
||||
Obx(() {
|
||||
return Text(
|
||||
'${EnumUtils.formatGrade(state.grade)}${state.className.value}',
|
||||
style: TextStyle(fontSize: 14.r, color: Colors.white),
|
||||
);
|
||||
})
|
||||
],
|
||||
),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ class _TaskListItemState extends State<TaskListItem> {
|
|||
children: [
|
||||
quickText('题量:', color: const Color.fromRGBO(130, 130, 130, 1), size: 11.sp),
|
||||
quickText(
|
||||
'${widget.jobTaskItem.questionCount! - widget.jobTaskItem.annotateCount!}',
|
||||
'10',
|
||||
color: const Color.fromRGBO(97, 97, 97, 1),
|
||||
size: 13.sp,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -10,29 +10,21 @@ import 'home_state.dart';
|
|||
class HomeLogic extends GetxController with RequestToolMixin, GetTickerProviderStateMixin {
|
||||
final HomeState state = HomeState();
|
||||
late final EasyRefreshController refreshController;
|
||||
WorkStudentParams params = WorkStudentParams(
|
||||
assessType: 0,
|
||||
);
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
super.onInit();
|
||||
refreshController = EasyRefreshController();
|
||||
params.pageSize = state.pageSize;
|
||||
|
||||
getList();
|
||||
}
|
||||
|
||||
void getList() async {
|
||||
params.pageNumber = state.pageNumber;
|
||||
WorkStudentParams params = WorkStudentParams(
|
||||
assessType: 0,
|
||||
);
|
||||
WorkStudent data = await getClient().getUnAnnotateList(params);
|
||||
state.totalCount = data.totalCount;
|
||||
state.readOver.value = data.items.length;
|
||||
if(params.pageNumber == 1){
|
||||
state.workList.value = data.items;
|
||||
}else{
|
||||
state.workList.addAll(data.items);
|
||||
}
|
||||
state.workList.value = data.items;
|
||||
refreshController.finishRefresh();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,4 @@ class HomeState {
|
|||
late RxInt readOver = 0.obs;
|
||||
late RxList<Items> workList = RxList();
|
||||
late int type = 1;
|
||||
late int pageSize = 10;
|
||||
late int pageNumber = 1;
|
||||
late int totalCount = 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,16 +53,6 @@ class _HomePageState extends State<HomePage>
|
|||
controller: logic.refreshController,
|
||||
header: MaterialHeader(),
|
||||
footer: TaurusFooter(),
|
||||
onRefresh: () async{
|
||||
state.pageNumber = 1;
|
||||
return logic.getList();
|
||||
},
|
||||
onLoad: () async{
|
||||
if(state.workList.length<state.totalCount){
|
||||
state.pageNumber ++;
|
||||
return logic.getList();
|
||||
}
|
||||
},
|
||||
child: Column(
|
||||
children: [
|
||||
/* Container(
|
||||
|
|
@ -219,7 +209,7 @@ class _HomePageState extends State<HomePage>
|
|||
130, 130, 130, 1),
|
||||
size: 11.sp),
|
||||
quickText(
|
||||
'${item.questionCount! - item.annotateCount!}',
|
||||
'10',
|
||||
color: const Color.fromRGBO(
|
||||
97, 97, 97, 1),
|
||||
size: 13.sp,
|
||||
|
|
|
|||
Loading…
Reference in New Issue