Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dynacmic-myhr
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
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
angular
dynacmic-myhr
Commits
b583750a
Commit
b583750a
authored
Jul 23, 2024
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style widjet
parent
3dc52f00
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
438 additions
and
4 deletions
+438
-4
layout-widjet-setting.component.ts
.../layout-widjet-setting/layout-widjet-setting.component.ts
+1
-1
layout-widjet.component.html
src/app/layout-widjet/layout-widjet.component.html
+3
-2
widjet.service.ts
src/app/services/widjet.service.ts
+433
-0
index.html
src/index.html
+1
-1
No files found.
src/app/layout-widjet-setting/layout-widjet-setting.component.ts
View file @
b583750a
...
...
@@ -33,7 +33,7 @@ export class LayoutWidjetSettingComponent implements OnInit {
saveLayout
()
{
let
body
=
{
appId
:
0
,
appId
:
this
.
widgetListConfig
.
length
+
1
,
appName
:
this
.
appName
,
widjet
:
this
.
widgetListConfig
}
...
...
src/app/layout-widjet/layout-widjet.component.html
View file @
b583750a
<div
class=
"row"
>
<app-services
[
id
]="
item
.
id
"
*
ngFor=
"let item of widgetList"
class=
"col-{{item.width}} p-1"
></app-services>
<div
class=
"row"
style=
"background-color:transparent;"
>
<app-services
[
id
]="
item
.
id
"
*
ngFor=
"let item of widgetList"
class=
"col-{{item.width}}"
style=
"margin-top: 5px;"
></app-services>
</div>
src/app/services/widjet.service.ts
View file @
b583750a
...
...
@@ -318,6 +318,439 @@ export class WidjetService {
"tag"
:
""
}
]
},
{
"appId"
:
7
,
"appName"
:
"test"
,
"widjet"
:
[
{
"id"
:
0
,
"title"
:
"11111"
,
"description"
:
"111"
,
"dataModel"
:
{
"xAxis"
:
{
"type"
:
"category"
,
"data"
:
[
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
,
"Sun"
]
},
"yAxis"
:
{
"type"
:
"value"
},
"series"
:
[
{
"data"
:
[
820
,
932
,
901
,
934
,
1290
,
1330
,
1320
],
"type"
:
"line"
}
]
},
"dataSoure"
:
"sss"
,
"api"
:
""
,
"width"
:
6
,
"heigth"
:
""
,
"tag"
:
""
},
{
"id"
:
1
,
"title"
:
"222"
,
"description"
:
"222"
,
"dataModel"
:
{
"legend"
:
{},
"tooltip"
:
{},
"dataset"
:
{
"source"
:
[
[
"product"
,
"2012"
,
"2013"
,
"2014"
,
"2015"
,
"2016"
,
"2017"
],
[
"Milk Tea"
,
86.5
,
92.1
,
85.7
,
83.1
,
73.4
,
55.1
],
[
"Matcha Latte"
,
41.1
,
30.4
,
65.1
,
53.3
,
83.8
,
98.7
],
[
"Cheese Cocoa"
,
24.1
,
67.2
,
79.5
,
86.4
,
65.2
,
82.5
],
[
"Walnut Brownie"
,
55.2
,
67.1
,
69.2
,
72.4
,
53.9
,
39.1
]
]
},
"series"
:
[
{
"type"
:
"pie"
,
"radius"
:
"20%"
,
"center"
:
[
"25%"
,
"30%"
]
},
{
"type"
:
"pie"
,
"radius"
:
"20%"
,
"center"
:
[
"75%"
,
"30%"
],
"encode"
:
{
"itemName"
:
"product"
,
"value"
:
"2013"
}
},
{
"type"
:
"pie"
,
"radius"
:
"20%"
,
"center"
:
[
"25%"
,
"75%"
],
"encode"
:
{
"itemName"
:
"product"
,
"value"
:
"2014"
}
},
{
"type"
:
"pie"
,
"radius"
:
"20%"
,
"center"
:
[
"75%"
,
"75%"
],
"encode"
:
{
"itemName"
:
"product"
,
"value"
:
"2015"
}
}
]
},
"dataSoure"
:
"sss"
,
"api"
:
""
,
"width"
:
6
,
"heigth"
:
""
,
"tag"
:
""
},
{
"id"
:
3
,
"title"
:
"4444"
,
"description"
:
"4444"
,
"dataModel"
:
{
"legend"
:
{},
"tooltip"
:
{},
"dataset"
:
{
"dimensions"
:
[
"product"
,
"2015"
,
"2016"
,
"2017"
],
"source"
:
[
{
"2015"
:
43.3
,
"2016"
:
85.8
,
"2017"
:
93.7
,
"product"
:
"Matcha Latte"
},
{
"2015"
:
83.1
,
"2016"
:
73.4
,
"2017"
:
55.1
,
"product"
:
"Milk Tea"
},
{
"2015"
:
86.4
,
"2016"
:
65.2
,
"2017"
:
82.5
,
"product"
:
"Cheese Cocoa"
},
{
"2015"
:
72.4
,
"2016"
:
53.9
,
"2017"
:
39.1
,
"product"
:
"Walnut Brownie"
}
]
},
"xAxis"
:
{
"type"
:
"category"
},
"yAxis"
:
{},
"series"
:
[
{
"type"
:
"bar"
},
{
"type"
:
"bar"
},
{
"type"
:
"bar"
}
]
},
"dataSoure"
:
"2312"
,
"api"
:
"https://hrplus.myhr.co.th/hr/taapi/leave/statistic?yearId=2024"
,
"width"
:
3
,
"heigth"
:
""
,
"tag"
:
""
},
{
"id"
:
3
,
"title"
:
"4444"
,
"description"
:
"4444"
,
"dataModel"
:
"4444"
,
"dataSoure"
:
"2312"
,
"api"
:
"https://hrplus.myhr.co.th/hr/taapi/leave/statistic?yearId=2024"
,
"width"
:
3
,
"heigth"
:
""
,
"tag"
:
""
},
{
"id"
:
0
,
"title"
:
"11111"
,
"description"
:
"111"
,
"dataModel"
:
{
"xAxis"
:
{
"type"
:
"category"
,
"data"
:
[
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
,
"Sun"
]
},
"yAxis"
:
{
"type"
:
"value"
},
"series"
:
[
{
"data"
:
[
820
,
932
,
901
,
934
,
1290
,
1330
,
1320
],
"type"
:
"line"
}
]
},
"dataSoure"
:
"sss"
,
"api"
:
""
,
"width"
:
6
,
"heigth"
:
""
,
"tag"
:
""
},
{
"id"
:
0
,
"title"
:
"11111"
,
"description"
:
"111"
,
"dataModel"
:
{
"xAxis"
:
{
"type"
:
"category"
,
"data"
:
[
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
,
"Sun"
]
},
"yAxis"
:
{
"type"
:
"value"
},
"series"
:
[
{
"data"
:
[
820
,
932
,
901
,
934
,
1290
,
1330
,
1320
],
"type"
:
"line"
}
]
},
"dataSoure"
:
"sss"
,
"api"
:
""
,
"width"
:
6
,
"heigth"
:
""
,
"tag"
:
""
},
{
"id"
:
0
,
"title"
:
"11111"
,
"description"
:
"111"
,
"dataModel"
:
{
"xAxis"
:
{
"type"
:
"category"
,
"data"
:
[
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
,
"Sun"
]
},
"yAxis"
:
{
"type"
:
"value"
},
"series"
:
[
{
"data"
:
[
820
,
932
,
901
,
934
,
1290
,
1330
,
1320
],
"type"
:
"line"
}
]
},
"dataSoure"
:
"sss"
,
"api"
:
""
,
"width"
:
6
,
"heigth"
:
""
,
"tag"
:
""
},{
"id"
:
0
,
"title"
:
"11111"
,
"description"
:
"111"
,
"dataModel"
:
{
"xAxis"
:
{
"type"
:
"category"
,
"data"
:
[
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
,
"Sun"
]
},
"yAxis"
:
{
"type"
:
"value"
},
"series"
:
[
{
"data"
:
[
820
,
932
,
901
,
934
,
1290
,
1330
,
1320
],
"type"
:
"line"
}
]
},
"dataSoure"
:
"sss"
,
"api"
:
""
,
"width"
:
6
,
"heigth"
:
""
,
"tag"
:
""
},
{
"id"
:
0
,
"title"
:
"11111"
,
"description"
:
"111"
,
"dataModel"
:
{
"xAxis"
:
{
"type"
:
"category"
,
"data"
:
[
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
,
"Sun"
]
},
"yAxis"
:
{
"type"
:
"value"
},
"series"
:
[
{
"data"
:
[
820
,
932
,
901
,
934
,
1290
,
1330
,
1320
],
"type"
:
"line"
}
]
},
"dataSoure"
:
"sss"
,
"api"
:
""
,
"width"
:
6
,
"heigth"
:
""
,
"tag"
:
""
}
]
}];
widjetList
:
Service
[]
=
[{
...
...
src/index.html
View file @
b583750a
...
...
@@ -7,7 +7,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
rel=
"icon"
type=
"image/x-icon"
href=
"favicon.ico"
>
</head>
<body>
<body
style=
"background-color: transparent;"
>
<app-root></app-root>
</body>
</html>
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