Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
portal-apps-manage
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
portal-apps-manage
Commits
63d44ef1
Commit
63d44ef1
authored
Sep 02, 2025
by
Ooh-Ao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "persis หน้าวิว"
This reverts commit
74e722aa
.
parent
74e722aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
dashboard-viewer.component.html
...l-manage/dashboard-viewer/dashboard-viewer.component.html
+1
-1
dashboard-viewer.component.ts
...tal-manage/dashboard-viewer/dashboard-viewer.component.ts
+1
-4
No files found.
src/app/portal-manage/dashboard-viewer/dashboard-viewer.component.html
View file @
63d44ef1
...
...
@@ -4,7 +4,7 @@
<div
*
ngIf=
"dashboardData"
class=
"dashboard-viewer-container p-4"
>
<h1
class=
"text-2xl font-bold mb-4 text-gray-800"
>
{{ dashboardData.thName }}
</h1>
<div
class=
"control-section"
>
<ejs-dashboardlayout
id=
'dashboard_viewer'
#
viewerLayout
[
cellSpacing
]="
cellSpacing
"
[
columns
]="
6
"
[
allowResizing
]="
false
"
[
allowDragging
]="
false
"
[
enablePersistence
]="
true
"
>
<ejs-dashboardlayout
id=
'dashboard_viewer'
#
viewerLayout
[
cellSpacing
]="
cellSpacing
"
[
columns
]="
6
"
[
allowResizing
]="
false
"
[
allowDragging
]="
false
"
>
<e-panels>
<e-panel
*
ngFor=
"let panel of panels"
[
row
]="
panel
.
row
"
[
col
]="
panel
.
col
"
[
sizeX
]="
panel
.
sizeX
"
[
sizeY
]="
panel
.
sizeY
"
[
id
]="
panel
.
id
"
>
<ng-template
#
header
>
...
...
src/app/portal-manage/dashboard-viewer/dashboard-viewer.component.ts
View file @
63d44ef1
import
{
Component
,
OnInit
,
Type
,
ChangeDetect
ionStrategy
,
ChangeDetect
orRef
}
from
'@angular/core'
;
import
{
Component
,
OnInit
,
Type
,
ChangeDetectorRef
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
ActivatedRoute
,
RouterModule
}
from
'@angular/router'
;
import
{
DashboardLayoutModule
,
PanelModel
}
from
'@syncfusion/ej2-angular-layouts'
;
...
...
@@ -55,7 +55,6 @@ export interface DashboardPanel extends PanelModel {
],
templateUrl
:
'./dashboard-viewer.component.html'
,
styleUrls
:
[
'./dashboard-viewer.component.scss'
],
changeDetection
:
ChangeDetectionStrategy
.
OnPush
})
export
class
DashboardViewerComponent
implements
OnInit
{
...
...
@@ -100,7 +99,6 @@ export class DashboardViewerComponent implements OnInit {
private
route
:
ActivatedRoute
,
private
dashboardDataService
:
DashboardDataService
,
private
dashboardStateService
:
DashboardStateService
,
private
cdr
:
ChangeDetectorRef
)
{
}
ngOnInit
():
void
{
...
...
@@ -137,7 +135,6 @@ export class DashboardViewerComponent implements OnInit {
if
(
dashboard
.
datasetId
)
{
this
.
dashboardStateService
.
selectDataset
(
dashboard
.
datasetId
);
}
this
.
cdr
.
markForCheck
();
// Manually trigger change detection
}
else
{
this
.
errorMessage
=
'Could not load the dashboard.'
;
}
...
...
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