Compare commits

..

No commits in common. "b92dca04c05116b6dfbfe8b6c511db9d352c7881" and "1fc7ba0ce0793b7ded0d10fa4c11eec18a12fd18" have entirely different histories.

9 changed files with 17 additions and 26 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 917 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 917 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 917 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 833 B

View File

@ -12,7 +12,6 @@ class ItemBtn extends StatelessWidget {
return SizedBox(
height:25.r,
child: ElevatedButton(
style: ButtonStyle(
overlayColor:WidgetStateProperty.all(
const Color(0xFFE8E8E8)),
@ -27,9 +26,7 @@ class ItemBtn extends StatelessWidget {
)),
padding: WidgetStateProperty.all(
EdgeInsets.zero,
),
elevation: WidgetStateProperty.all(0),
),
)),
onPressed: () {
clickFunction!();
},

View File

@ -18,7 +18,6 @@ class _PersonnelDataOverviewState extends State<PersonnelDataOverview> {
List<String> noAnswerCounts = [];
List<String> rankings = [];
Map<String, List<dynamic>> mapData = {};
final scrollController = ScrollController();
@override
void initState() {
@ -65,14 +64,12 @@ class _PersonnelDataOverviewState extends State<PersonnelDataOverview> {
Scrollbar(
thickness: 8.w,
thumbVisibility: true,
// trackVisibility: true,
trackVisibility: true,
radius: Radius.circular(10.r),
controller: scrollController, //使
controller: ScrollController(), //使
child: SingleChildScrollView(
controller: scrollController,
scrollDirection: Axis.horizontal,
// primary: true,
// physics: const BouncingScrollPhysics(),
primary: true,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [

View File

@ -25,7 +25,7 @@ class _QuickDataCheckBottomState extends State<QuickDataCheckBottom> {
@override
void initState() {
super.initState();
showList.value = [...widget.jobData!];
showList.value = widget.jobData!;
for (var e in widget.jobData!) {
if (e.priorityAnnotate!) {
followList.add(e);
@ -47,21 +47,18 @@ class _QuickDataCheckBottomState extends State<QuickDataCheckBottom> {
children: [
InkWell(
onTap: () {
sortType.value = !sortType.value;
sortLevel.value = false;
if (widget.jobData == null) return;
showList.value = [...widget.jobData!];
if (!sortType.value) {
showList.sort((a, b) {
return b.state.compareTo(a.state);
});
} else {
showList.sort((a, b) {
return a.state.compareTo(b.state);
});
} else {
showList.sort((a, b) {
return b.state.compareTo(a.state);
});
}
sortType.value = !sortType.value;
sortLevel.value = false;
},
child: Obx(() {
return Row(
@ -97,16 +94,16 @@ class _QuickDataCheckBottomState extends State<QuickDataCheckBottom> {
if (widget.jobData!.isEmpty) return;
if (!sortLevel.value) {
showList.value = followList.value;
sortType.value = false;
} else {
showList.value = [...widget.jobData!];
showList.sort((a, b) {
return b.state.compareTo(a.state);
widget.jobData!.sort((a, b) {
int num1 = a.state;
int num2 = b.state;
return num2.compareTo(num1);
});
sortType.value = true;
showList.value = widget.jobData!;
}
sortLevel.value = !sortLevel.value;
sortType.value = false;
},
child: Obx(() {
return Row(