Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nisum-scorecard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Venkaiah Naidu Singamchetty
nisum-scorecard
Commits
0aa10f37
Commit
0aa10f37
authored
Mar 25, 2024
by
Ramadevi Guduri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable view button
parent
efa06946
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
42 deletions
+4
-42
index.jsx
src/pages/reportexport/index.jsx
+4
-42
No files found.
src/pages/reportexport/index.jsx
View file @
0aa10f37
...
@@ -47,6 +47,7 @@ function Exporttable() {
...
@@ -47,6 +47,7 @@ function Exporttable() {
};
};
const
handleView
=
(
e
)
=>
{
const
handleView
=
(
e
)
=>
{
if
(
selectedEmployee
&&
fromDate
&&
toDate
)
{
e
.
preventDefault
();
e
.
preventDefault
();
let
data
=
{
let
data
=
{
empId
:
Number
(
selectedEmployee
),
empId
:
Number
(
selectedEmployee
),
...
@@ -54,6 +55,7 @@ function Exporttable() {
...
@@ -54,6 +55,7 @@ function Exporttable() {
toDate
:
toDate
,
toDate
:
toDate
,
};
};
dispatch
(
fetchReportesActivitiesData
(
data
));
dispatch
(
fetchReportesActivitiesData
(
data
));
}
};
};
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -159,8 +161,8 @@ function Exporttable() {
...
@@ -159,8 +161,8 @@ function Exporttable() {
</
div
>
</
div
>
<
div
className=
"flex"
>
<
div
className=
"flex"
>
<
button
<
button
className=
"px-8 py-2 ml-5 w-[100px] h-[40px] bg-blue-500 text-white font-semibold rounded-md"
className=
{
`px-8 py-2 ml-5 w-[100px] h-[40px] bg-blue-500 text-white font-semibold rounded-md ${selectedEmployee && fromDate && toDate ? "bg-blue-500" : "bg-gray-500" }`
}
onClick=
{
(
e
)
=>
handleView
(
e
)
}
onClick=
{
(
e
)
=>
handleView
(
e
)
}
>
>
View
View
</
button
>
</
button
>
...
@@ -194,46 +196,6 @@ function Exporttable() {
...
@@ -194,46 +196,6 @@ function Exporttable() {
</div>
</div>
</div>
</div>
</div>
</div>
<div className="p-4">
<table className="w-full text-sm text-left rtl:text-right text-gray-500 bg-transparent justify-center border-separate border-spacing-y-2">
<thead className="text-xs text-gray-700 uppercase bg-gray-50">
<tr className="mb-2">
<th className="border-2 p-2 border-[#B7B7B7] text-start font-medium bg-[#D9D9D9] w-4/12">
ACTIVITY NAME
</th>
<th className="border-2 p-2 border-[#B7B7B7] text-start font-medium bg-[#D9D9D9] w-4/12 ">
DATE
</th>
<th className="border-2 p-2 border-[#B7B7B7] text-start font-medium bg-[#D9D9D9] w-4/12 " >
SCORE
</th>
<th className="border-2 p-2 border-[#B7B7B7] text-start font-medium bg-[#D9D9D9] w-4/12 " >
COMMENTS
</th>
</tr>
</thead>
<tbody>
{activitiesData.map((activitie)=>
<tr className="bg-white hover:bg-gray-300 ">
<td className="px-6 py-2 " >{activitie.aName}</td>
<td className="px-6 py-2 " >{convertUTCToLocal(activitie.recorded_date)}</td>
<td className="px-6 py-2 " >{activitie.score}</td>
<td className="px-6 py-2 " >{activitie.comments}</td>
</tr>
)}
</tbody>
</table>
</div>
</div>
} */
}
} */
}
</
div
>
</
div
>
</
div
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment