Commit 0f43868352de0b1df2b33372679f733477b3442f
1 parent
fa21d280
Exists in
master
no message
Showing
2 changed files
with
10 additions
and
6 deletions
Show diff stats
src/app/dashboard/dashboard.component.ts
| @@ -11,16 +11,18 @@ import { CommonService } from '../services/common/common.service'; | @@ -11,16 +11,18 @@ import { CommonService } from '../services/common/common.service'; | ||
| 11 | export class DashboardComponent implements OnInit { | 11 | export class DashboardComponent implements OnInit { |
| 12 | 12 | ||
| 13 | resultData: any; | 13 | resultData: any; |
| 14 | + | ||
| 14 | 15 | ||
| 15 | - // DaysColor : [{ | ||
| 16 | - // "DayRed": '0','1','2','3','4','5','6','7' | ||
| 17 | - // }, | 16 | + // DaysColor: any[] = [ |
| 18 | // { | 17 | // { |
| 19 | - // "DayYellow": '8','9','10','11','12','13','14','15', | 18 | + // "DayRed": '0','1','2','3','4','5','6','7' |
| 20 | // }, | 19 | // }, |
| 21 | // { | 20 | // { |
| 22 | - // "DayGreen": "Main Server", | 21 | + // "DayYellow": '8','9','10','11','12','13','14','15', |
| 23 | // } | 22 | // } |
| 23 | + // { | ||
| 24 | + // "DayGreen": 16, | ||
| 25 | + // // } | ||
| 24 | // ]; | 26 | // ]; |
| 25 | 27 | ||
| 26 | constructor( | 28 | constructor( |
| @@ -36,6 +38,8 @@ export class DashboardComponent implements OnInit { | @@ -36,6 +38,8 @@ export class DashboardComponent implements OnInit { | ||
| 36 | "params": ["vtiger_crmentity"] | 38 | "params": ["vtiger_crmentity"] |
| 37 | } | 39 | } |
| 38 | 40 | ||
| 41 | + | ||
| 42 | + | ||
| 39 | try { | 43 | try { |
| 40 | let response = await this._apiService.post('dynamic', data); | 44 | let response = await this._apiService.post('dynamic', data); |
| 41 | if (response !== null) { | 45 | if (response !== null) { |
src/index.html
| @@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
| 3 | <head> | 3 | <head> |
| 4 | <meta charset="utf-8"> | 4 | <meta charset="utf-8"> |
| 5 | <title>TestApi</title> | 5 | <title>TestApi</title> |
| 6 | - <base href="/"> | 6 | + <base href="/home/smartzone-home/dist/test-api/"> |
| 7 | <!-- แก้ base href จากเดิมเป็น ="/" --> | 7 | <!-- แก้ base href จากเดิมเป็น ="/" --> |
| 8 | 8 | ||
| 9 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 9 | <meta name="viewport" content="width=device-width, initial-scale=1"> |