Compare commits
No commits in common. "1a6f376e76415f29263cc4bb3e6ca391045280f8" and "6bed1fdb37d47bb98d8b5279922e736ed439df7a" have entirely different histories.
1a6f376e76
...
6bed1fdb37
|
|
@ -185,9 +185,6 @@ class Students extends Object {
|
|||
@JsonKey(name: 'useTime')
|
||||
int? useTime;
|
||||
|
||||
@JsonKey(name: 'ttlSec')
|
||||
String? ttlSec;
|
||||
|
||||
Students(this.studentId,this.studentName,this.state,this.priorityAnnotate,this.kgtStu,this.kgtOkCount,this.kgtAnswerCount,this.zgtStu,this.zgtAnswerCount,this.zgtOkCount,this.allOk,this.kgtErrorCount,this.zgtErrorCount,this.zgtUnrated,this.allNotDone,this.queDtls,this.okRate,this.noAnswerCount,this.useTime,this.isAllCorrect);
|
||||
|
||||
factory Students.fromJson(Map<String, dynamic> srcJson) => _$StudentsFromJson(srcJson);
|
||||
|
|
@ -230,9 +227,6 @@ class Dtls extends Object {
|
|||
@JsonKey(name: 'useTime')
|
||||
int useTime;
|
||||
|
||||
@JsonKey(name: 'lastAnswerTime')
|
||||
String? lastAnswerTime;
|
||||
|
||||
@JsonKey(name: 'annotatePicture')
|
||||
String? annotatePicture;
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class UpdateAppEvent {
|
|||
version: version, // 版本号
|
||||
title: json["title"] ?? "发现新版本", // title
|
||||
description: newDescription, //说明
|
||||
link: json["downloadPath"]??'', // 链接地址
|
||||
link: json["downloadPath"], // 链接地址
|
||||
upgrade: upgrade,
|
||||
deviceInfo: deviceInfo,
|
||||
appName: appName,
|
||||
|
|
|
|||
|
|
@ -152,24 +152,6 @@ class Utils {
|
|||
int okCount = stu.queDtls!.where((w) => w.state == 3).length;
|
||||
int ttlCount = stu.queDtls!.length;
|
||||
stu.okRate = Utils.calcRate(okCount, ttlCount);
|
||||
|
||||
var stuDtls = data.dtls.where((w) => w.studentId == stu.studentId);
|
||||
var secList = [];
|
||||
for(var sec in stuDtls){
|
||||
if(sec.useTime >= 1){
|
||||
var date = DateTime.parse(sec.lastAnswerTime!);
|
||||
var lastSec =(date.difference(DateTime(1970)).inSeconds).floor();
|
||||
|
||||
secList.add(lastSec);
|
||||
secList.add(lastSec - sec.useTime);
|
||||
}
|
||||
}
|
||||
secList.sort();
|
||||
var maxSec = secList.isNotEmpty?secList.last:0;
|
||||
var minSec = secList.isNotEmpty?secList.first:0;
|
||||
var secTime = secList.isNotEmpty?maxSec-minSec:0;
|
||||
stu.ttlSec = second2HMS(secTime);
|
||||
|
||||
}
|
||||
|
||||
data.students.sort((a, b) {
|
||||
|
|
|
|||
|
|
@ -232,7 +232,7 @@ class _QuickDataCheckBottomState extends State<QuickDataCheckBottom> {
|
|||
return SizedBox(
|
||||
height: showList.value.length > 5 ? 350.r : showList.value.length * 50.r + 40.r,
|
||||
child: QuickStudentDataTable(
|
||||
headList: ['学生姓名', '总用时','客观题', '主观题', '客观题状态', '主观题状态', '未批阅'],
|
||||
headList: ['学生姓名', '客观题', '主观题', '客观题状态', '主观题状态', '未批阅'],
|
||||
bodyList: showList.value,
|
||||
jobId: widget.jobId,
|
||||
fixedRows: 1,
|
||||
|
|
|
|||
|
|
@ -72,12 +72,6 @@ class _QuickStudentDataTableState extends State<QuickStudentDataTable> {
|
|||
),
|
||||
),
|
||||
)),
|
||||
DataCell(Center(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 5.r),
|
||||
child: Text(item.ttlSec.toString(), style: TextStyle(fontSize: 10.sp, color: const Color(0xFF525252), overflow: TextOverflow.ellipsis)),
|
||||
),
|
||||
)),
|
||||
DataCell(Center(
|
||||
child: Padding(
|
||||
padding: EdgeInsets.symmetric(horizontal: 5.r),
|
||||
|
|
@ -209,7 +203,7 @@ class _QuickStudentDataTableState extends State<QuickStudentDataTable> {
|
|||
// onSelectAll: (val) => setState(() => selectAll(val)),
|
||||
columns: List.generate(widget.headList.length, (index) {
|
||||
var item = widget.headList[index];
|
||||
return index == 2
|
||||
return index == 1
|
||||
? DataColumn2(
|
||||
label: Row(mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [
|
||||
Text(item, style: TextStyle(fontSize: 10.sp, color: Color(0xFF505767))),
|
||||
|
|
@ -218,7 +212,7 @@ class _QuickStudentDataTableState extends State<QuickStudentDataTable> {
|
|||
// size: ColumnSize.S,
|
||||
fixedWidth: (MediaQuery.of(context).size.width - 20.r - 28.r) / widget.headList.length,
|
||||
)
|
||||
: index == 3
|
||||
: index == 2
|
||||
? DataColumn2(
|
||||
label: Row(mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [
|
||||
Text(item, style: TextStyle(fontSize: 10.sp, color: Color(0xFF505767))),
|
||||
|
|
|
|||
Loading…
Reference in New Issue