Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcarfixers_angular
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
16
Issues
16
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
Tobin
dcarfixers_angular
Commits
c891dd4d
You need to sign in or sign up before continuing.
Commit
c891dd4d
authored
Apr 10, 2019
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dc
parent
2def1342
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
dashboard.component.html
src/app/home/dashboard/dashboard.component.html
+4
-4
dashboard.component.ts
src/app/home/dashboard/dashboard.component.ts
+14
-4
No files found.
src/app/home/dashboard/dashboard.component.html
View file @
c891dd4d
...
...
@@ -335,12 +335,12 @@
<td>
{{i+1}}
</td>
<td>
{{bookData.scheduled_date+' '+bookData.scheduled_time}}
</td>
<td>
{{bookData.car_name}}
</td>
<td>
{{bookData.
first_name+' '+bookD
ata.last_name}}
</td>
<td>
{{bookData.
mechanic_data.first_name+' '+bookData.mechanic_d
ata.last_name}}
</td>
<td
class=
"service-align-center"
>
{{bookData.cost}}
</td>
<td
[
ngSwitch
]="
bookData
.
status
"
>
<p
*
ngSwitchCase=
"
1"
class=
"success_status"
>
Success
</p>
<p
*
ngSwitchCase=
"
0"
class=
"pending_status"
>
Pending
</p>
<p
*
ngSwitchCase=
"
3
"
class=
"canceled_status"
>
Canceled
</p>
<p
*
ngSwitchCase=
"
3"
class=
"success_status"
>
Completed
</p>
<p
*
ngSwitchCase=
"
4"
class=
"canceled_status"
>
Canceled
</p>
<p
*
ngSwitchCase=
"
5
"
class=
"canceled_status"
>
Canceled
</p>
</td>
</tr>
</tbody>
...
...
src/app/home/dashboard/dashboard.component.ts
View file @
c891dd4d
...
...
@@ -205,20 +205,30 @@ export class DashboardComponent implements OnInit {
this
.
loader
=
true
;
this
.
webService
.
post_data
(
'getCustBookDetails'
,
{
'customer_id'
:
this
.
loginDetails
.
customer_id
}).
subscribe
(
response
=>
{
if
(
response
.
status
==
'1'
&&
response
.
bookData
!=
'undefined'
&&
response
.
bookData
!=
undefined
&&
response
.
bookData
!=
'null'
&&
response
.
bookData
!=
null
)
{
this
.
bookingDetail
s
=
response
.
bookData
;
let
booking
s
=
response
.
bookData
;
let
successBooking
:
any
[]
=
new
Array
();
let
bookingDetails
:
any
[]
=
new
Array
();
this
.
bookingDetails
.
forEach
(
function
(
booking
)
{
if
(
booking
.
status
==
1
){
successBooking
.
push
(
booking
);
bookings
.
forEach
(
function
(
book
)
{
if
(
book
.
status
==
0
||
book
.
status
==
1
||
book
.
status
==
6
){
successBooking
.
push
(
book
);
}
else
{
bookingDetails
.
push
(
book
);
}
});
if
(
successBooking
.
length
>
0
){
this
.
successBookDtls
=
successBooking
;
}
else
{
this
.
successBookDtls
=
false
;
}
if
(
bookingDetails
.
length
>
0
){
this
.
bookingDetails
=
bookingDetails
;
}
else
{
this
.
bookingDetails
=
false
;
}
}
this
.
loader
=
false
;
});
...
...
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