flx:修改排序bug
This commit is contained in:
parent
79c6a59308
commit
e34ae2467a
@ -309,15 +309,11 @@ const queryAttendanceOfEachCompany = async (showLoading: boolean) => {
|
|||||||
showLoading
|
showLoading
|
||||||
);
|
);
|
||||||
if (res.result) {
|
if (res.result) {
|
||||||
projectCompanyWorkTotalList.value = res.result.projectCompanyWorkTotalList;
|
projectCompanyWorkTotalList.value = res.result.projectCompanyWorkTotalList
|
||||||
xData.value = projectCompanyWorkTotalList.value
|
|
||||||
.filter((item: any) => item.attendancePersonNum > 0)
|
.filter((item: any) => item.attendancePersonNum > 0)
|
||||||
.sort((a: any, b: any) => b.attendancePersonNum - a.attendancePersonNum)
|
.sort((a: any, b: any) => b.attendancePersonNum - a.attendancePersonNum);
|
||||||
.map((item: any) => item.enterpriseName.substring(0, 4));
|
xData.value = projectCompanyWorkTotalList.value.map((item: any) => item.enterpriseName.substring(0, 4));
|
||||||
yData.value = projectCompanyWorkTotalList.value
|
yData.value = projectCompanyWorkTotalList.value.map((item: any) => item.attendancePersonNum);
|
||||||
.filter((item: any) => item.attendancePersonNum > 0)
|
|
||||||
.sort((a: any, b: any) => b.attendancePersonNum - a.attendancePersonNum)
|
|
||||||
.map((item: any) => item.attendancePersonNum);
|
|
||||||
if (projectCompanyWorkTotalList.value.length > 0) {
|
if (projectCompanyWorkTotalList.value.length > 0) {
|
||||||
isFlag.value = true;
|
isFlag.value = true;
|
||||||
drawBar();
|
drawBar();
|
||||||
|
|||||||
@ -608,7 +608,7 @@ function drawEchart2() {
|
|||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
getEnterpriseStatusFn();
|
getEnterpriseStatusFn();
|
||||||
// getMemberJobStatusFn();
|
// getMemberJobStatusFn();
|
||||||
getPersonList();
|
// getPersonList();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user