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
9f806d78
Commit
9f806d78
authored
Mar 29, 2024
by
Ramadevi Guduri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reports styles chage
parent
dc3a068f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
201 additions
and
19 deletions
+201
-19
package-lock.json
package-lock.json
+167
-0
index.jsx
src/pages/reportexport/index.jsx
+21
-19
styles.js
src/pages/reportexport/styles.js
+13
-0
No files found.
package-lock.json
View file @
9f806d78
This diff is collapsed.
Click to expand it.
src/pages/reportexport/index.jsx
View file @
9f806d78
...
...
@@ -9,6 +9,7 @@ import { base_url } from "../../utils/constants";
import
DownloadIcon
from
'../../assets/icons/downloadIcon'
;
import
jsPDF
from
'jspdf'
;
import
'jspdf-autotable'
;
import
{
styles
}
from
'./styles'
;
function
Exporttable
()
{
const
dispatch
=
useDispatch
();
...
...
@@ -185,30 +186,31 @@ function Exporttable() {
return
(
<
div
>
<
div
className=
{
` overflow-auto sm:rounded-lg p-4 bg-[#E9EDEE]`
}
>
<
div
className=
"text-blue-800 py-3 pl-2 text-center"
>
{
" "
}
G
enarate Report
<
div
className=
{
styles
.
genarateReportContainer
}
>
<
div
className=
{
styles
.
textBlueHeading
}
>
G
ENARATE REPORT
</
div
>
<
div
>
<
form
className=
" p-2 text-[12px]"
>
<
div
className=
"flex items-center justify-evenly "
>
<
div
className=
"flex items-center"
>
<
form
className=
{
styles
.
formContainer
}
>
<
div
className=
{
styles
.
flexContainer
}
>
<
div
className=
{
styles
.
flexItemsCenter
}
>
<
label
htmlFor=
"countries"
className=
"font-semibold"
>
S
elect Employee
:
{
" "
}
S
ELECT EMPLOYEE
:
{
" "
}
</
label
>
<
select
<
select
onChange=
{
(
e
)
=>
setSelectedEmployee
(
e
.
target
.
value
)
}
value=
{
selectedEmployee
}
className=
"bg-gray-50 ml-2 w-[200px] border border-gray-300 text-gray-900 text-sm rounded-sm focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700"
className=
{
styles
.
selectEmployeeDropdown
}
>
<
option
id=
""
value=
""
>
Select
</
option
>
{
reportees
&&
reportees
.
map
((
reportee
)
=>
(
<
option
<
option
className=
"text-pretty"
key=
{
reportee
.
empId
}
id=
{
reportee
.
empId
}
value=
{
reportee
.
empId
}
...
...
@@ -220,26 +222,26 @@ function Exporttable() {
</
div
>
<
div
className=
"flex items-center"
>
<
label
htmlFor=
"countries"
className=
"font-semibold"
>
S
elect Period
:
S
ELECT PERIOD
:
</
label
>
<
select
onChange=
{
handleDropdownChange
}
className=
"bg-gray-50 ml-2 w-[200px] border border-gray-300 text-gray-900 text-sm focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 "
className=
{
styles
.
selectEmployeeDropdown
&&
styles
.
selectDropdown
}
>
<
option
id=
""
value=
""
>
Select
</
option
>
<
option
id=
""
value=
"pastMonth"
>
Past 1
m
onths
Past 1
M
onths
</
option
>
<
option
id=
""
value=
"pastthreeMonth"
>
Past 3
m
onths
Past 3
M
onths
</
option
>
<
option
id=
""
value=
"pastsixMonth"
>
Past 6
m
onths
Past 6
M
onths
</
option
>
<
option
id=
""
value=
"pasttwelvemonth"
>
Past
y
ear
Past
Y
ear
</
option
>
</
select
>
</
div
>
...
...
@@ -247,7 +249,7 @@ function Exporttable() {
<
button
// disabled={!fromDate || !selectedEmployee || !toDate}
disabled=
{
disableBtn
(
'view'
)
}
className=
"px-8 py-2 ml-5 w-[100px] h-[40px] bg-blue-500 text-white font-semibold rounded-md disabled:bg-gray-400"
className=
{
styles
.
downloadButton
}
onClick=
{
(
e
)
=>
handleView
(
e
)
}
>
View
...
...
@@ -258,7 +260,7 @@ function Exporttable() {
//disabled={pdfLoading || !fromDate || !selectedEmployee || !toDate}
disabled=
{
disableBtn
()
}
type=
"button"
className=
"px-3 py-2 ml-5 min-w-[100px] disabled:bg-gray-400 h-[40px] bg-blue-500 font-semibold text-white rounded-md flex items-center justify-center"
className=
{
styles
.
downloadButton
}
>
<
DownloadIcon
/>
<
span
>
{
pdfLoading
?
"Downloading..."
:
"Download"
}
</
span
>
...
...
src/pages/reportexport/styles.js
0 → 100644
View file @
9f806d78
export
const
styles
=
{
genarateReportContainer
:
"overflow-auto sm:rounded-lg p-4 bg-[#E9EDEE] "
,
textBlueHeading
:
"text-blue-800 py-3 pl-2 text-center fond-bold text-2xl"
,
formContainer
:
"p-2 text-[12px] mb-10"
,
flexContainer
:
"flex items-center justify-evenly"
,
flexItemsCenter
:
"flex items-center"
,
selectEmployeeDropdown
:
"bg-gray-50 text-balance rounded-lg rounded-md ml-2 border border-gray-300 text-gray-900 text-sm focus:ring-blue-500 focus:border-blue-500 block p-2.5 "
,
selectDropdown
:
"bg-gray-50 text-balance rounded-lg ml-2 border border-gray-300 text-gray-900 text-sm focus:ring-blue-500 focus:border-blue-500 block p-2.5 w-[235px]"
,
downloadButton
:
"px-3 py-2 ml-5 min-w-[100px] disabled:bg-gray-400 h-[40px] bg-blue-500 font-semibold text-white rounded-md flex items-center justify-center"
,
Norecords
:
"text-center align-middle pt-14 pb-14 text-blue-500 font-bold"
,
};
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