|
@@ -83,9 +83,15 @@ return ( |
|
|
status: "All", |
|
|
status: "All", |
|
|
lowerLimit: 0.9 |
|
|
lowerLimit: 0.9 |
|
|
} |
|
|
} |
|
|
if (query.team.length > 0 && query.team.toLocaleLowerCase() !== "all") { |
|
|
|
|
|
index = teamCombo.findIndex(team => team === query.team) |
|
|
|
|
|
postData.teamId = team[index].id |
|
|
|
|
|
|
|
|
if (query.team.length > 0 && query.team.toLocaleLowerCase() !== "all") { |
|
|
|
|
|
// index = teamCombo.findIndex(team => team === query.team) |
|
|
|
|
|
// console.log(index) |
|
|
|
|
|
// console.log(teamCombo) |
|
|
|
|
|
// console.log(team) |
|
|
|
|
|
// console.log(team.find(team => query.team === `${team.code} - Team ${team.staffName}`)?.id) |
|
|
|
|
|
const teamId = team.find(team => query.team === `${team.code} - Team ${team.staffName}`)?.id |
|
|
|
|
|
// postData.teamId = team.sort()[index].id |
|
|
|
|
|
postData.teamId = teamId |
|
|
} |
|
|
} |
|
|
if (Boolean(query.lowerLimit)) { |
|
|
if (Boolean(query.lowerLimit)) { |
|
|
postData.lowerLimit = query.lowerLimit/100 |
|
|
postData.lowerLimit = query.lowerLimit/100 |
|
|