Compare commits
No commits in common. "b92dca04c05116b6dfbfe8b6c511db9d352c7881" and "1fc7ba0ce0793b7ded0d10fa4c11eec18a12fd18" have entirely different histories.
b92dca04c0
...
1fc7ba0ce0
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 917 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 917 B |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 917 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 833 B |
|
|
@ -12,7 +12,6 @@ class ItemBtn extends StatelessWidget {
|
||||||
return SizedBox(
|
return SizedBox(
|
||||||
height:25.r,
|
height:25.r,
|
||||||
child: ElevatedButton(
|
child: ElevatedButton(
|
||||||
|
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
overlayColor:WidgetStateProperty.all(
|
overlayColor:WidgetStateProperty.all(
|
||||||
const Color(0xFFE8E8E8)),
|
const Color(0xFFE8E8E8)),
|
||||||
|
|
@ -27,9 +26,7 @@ class ItemBtn extends StatelessWidget {
|
||||||
)),
|
)),
|
||||||
padding: WidgetStateProperty.all(
|
padding: WidgetStateProperty.all(
|
||||||
EdgeInsets.zero,
|
EdgeInsets.zero,
|
||||||
),
|
)),
|
||||||
elevation: WidgetStateProperty.all(0),
|
|
||||||
),
|
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
clickFunction!();
|
clickFunction!();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ class _PersonnelDataOverviewState extends State<PersonnelDataOverview> {
|
||||||
List<String> noAnswerCounts = [];
|
List<String> noAnswerCounts = [];
|
||||||
List<String> rankings = [];
|
List<String> rankings = [];
|
||||||
Map<String, List<dynamic>> mapData = {};
|
Map<String, List<dynamic>> mapData = {};
|
||||||
final scrollController = ScrollController();
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
|
|
@ -65,14 +64,12 @@ class _PersonnelDataOverviewState extends State<PersonnelDataOverview> {
|
||||||
Scrollbar(
|
Scrollbar(
|
||||||
thickness: 8.w,
|
thickness: 8.w,
|
||||||
thumbVisibility: true,
|
thumbVisibility: true,
|
||||||
// trackVisibility: true,
|
trackVisibility: true,
|
||||||
radius: Radius.circular(10.r),
|
radius: Radius.circular(10.r),
|
||||||
controller: scrollController, //滑动条使用的控制器
|
controller: ScrollController(), //滑动条使用的控制器
|
||||||
child: SingleChildScrollView(
|
child: SingleChildScrollView(
|
||||||
controller: scrollController,
|
|
||||||
scrollDirection: Axis.horizontal,
|
scrollDirection: Axis.horizontal,
|
||||||
// primary: true,
|
primary: true,
|
||||||
// physics: const BouncingScrollPhysics(),
|
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ class _QuickDataCheckBottomState extends State<QuickDataCheckBottom> {
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
showList.value = [...widget.jobData!];
|
showList.value = widget.jobData!;
|
||||||
for (var e in widget.jobData!) {
|
for (var e in widget.jobData!) {
|
||||||
if (e.priorityAnnotate!) {
|
if (e.priorityAnnotate!) {
|
||||||
followList.add(e);
|
followList.add(e);
|
||||||
|
|
@ -47,21 +47,18 @@ class _QuickDataCheckBottomState extends State<QuickDataCheckBottom> {
|
||||||
children: [
|
children: [
|
||||||
InkWell(
|
InkWell(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
sortType.value = !sortType.value;
|
||||||
|
sortLevel.value = false;
|
||||||
if (widget.jobData == null) return;
|
if (widget.jobData == null) return;
|
||||||
showList.value = [...widget.jobData!];
|
|
||||||
if (!sortType.value) {
|
if (!sortType.value) {
|
||||||
showList.sort((a, b) {
|
|
||||||
return b.state.compareTo(a.state);
|
|
||||||
});
|
|
||||||
|
|
||||||
} else {
|
|
||||||
showList.sort((a, b) {
|
showList.sort((a, b) {
|
||||||
return a.state.compareTo(b.state);
|
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(() {
|
child: Obx(() {
|
||||||
return Row(
|
return Row(
|
||||||
|
|
@ -97,16 +94,16 @@ class _QuickDataCheckBottomState extends State<QuickDataCheckBottom> {
|
||||||
if (widget.jobData!.isEmpty) return;
|
if (widget.jobData!.isEmpty) return;
|
||||||
if (!sortLevel.value) {
|
if (!sortLevel.value) {
|
||||||
showList.value = followList.value;
|
showList.value = followList.value;
|
||||||
sortType.value = false;
|
|
||||||
} else {
|
} else {
|
||||||
showList.value = [...widget.jobData!];
|
widget.jobData!.sort((a, b) {
|
||||||
showList.sort((a, b) {
|
int num1 = a.state;
|
||||||
return b.state.compareTo(a.state);
|
int num2 = b.state;
|
||||||
|
return num2.compareTo(num1);
|
||||||
});
|
});
|
||||||
|
showList.value = widget.jobData!;
|
||||||
sortType.value = true;
|
|
||||||
}
|
}
|
||||||
sortLevel.value = !sortLevel.value;
|
sortLevel.value = !sortLevel.value;
|
||||||
|
sortType.value = false;
|
||||||
},
|
},
|
||||||
child: Obx(() {
|
child: Obx(() {
|
||||||
return Row(
|
return Row(
|
||||||
|
|
|
||||||