fic build
This commit is contained in:
parent
8107978a42
commit
5cdfaafe03
|
|
@ -128,7 +128,13 @@ const StaffEvaluation = () => {
|
||||||
DataPJParticipating[]
|
DataPJParticipating[]
|
||||||
>([])
|
>([])
|
||||||
const [dataSummaryTracking, setDataSummaryTracking] =
|
const [dataSummaryTracking, setDataSummaryTracking] =
|
||||||
useState<DataSummaryTracking>()
|
useState<DataSummaryTracking>({
|
||||||
|
on_time_morning: 0,
|
||||||
|
late_morning: 0,
|
||||||
|
on_time_afternoon: 0,
|
||||||
|
late_afternoon: 0,
|
||||||
|
value: [],
|
||||||
|
})
|
||||||
|
|
||||||
const form = useForm({
|
const form = useForm({
|
||||||
initialValues: {
|
initialValues: {
|
||||||
|
|
@ -433,7 +439,9 @@ const StaffEvaluation = () => {
|
||||||
projectSummary[projectName].total_time_spent += totalTimeSpent
|
projectSummary[projectName].total_time_spent += totalTimeSpent
|
||||||
})
|
})
|
||||||
|
|
||||||
return Object.values(projectSummary)
|
const returnValue: DataPJParticipating[] = Object.values(projectSummary)
|
||||||
|
|
||||||
|
return returnValue
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
@ -1051,10 +1059,10 @@ const StaffEvaluation = () => {
|
||||||
withLabelsLine
|
withLabelsLine
|
||||||
labelsPosition="outside"
|
labelsPosition="outside"
|
||||||
labelsType="value"
|
labelsType="value"
|
||||||
withLabels={dataSummaryTracking?.value?.length > 0}
|
withLabels={dataSummaryTracking.value.length > 0}
|
||||||
withTooltip
|
withTooltip
|
||||||
data={
|
data={
|
||||||
dataSummaryTracking?.value?.length > 0
|
dataSummaryTracking.value.length > 0
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
name: 'On time morning',
|
name: 'On time morning',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue