Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mySkill-x
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
mySkill-x
Commits
312ede78
Commit
312ede78
authored
Apr 16, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
กำหนดสิทธิการเข้าใช้งาน
parent
9c2b0637
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
63 additions
and
131 deletions
+63
-131
role-permission-config.component.html
...e-permission-config/role-permission-config.component.html
+12
-88
role-permission-config.component.ts
...ole-permission-config/role-permission-config.component.ts
+47
-40
datagrid-syncfution.component.html
...ts/datagrid-syncfution/datagrid-syncfution.component.html
+1
-1
datagrid-syncfution.component.ts
...ents/datagrid-syncfution/datagrid-syncfution.component.ts
+3
-2
No files found.
src/app/components/company-components/account-settings/role-permission-config/role-permission-config.component.html
View file @
312ede78
...
@@ -27,28 +27,11 @@
...
@@ -27,28 +27,11 @@
<ng-template
#
rolePermissionConfig
>
<ng-template
#
rolePermissionConfig
>
<div
class=
"w-full min-height-50px mb-10px justify-between items-center"
>
<div
class=
"w-full min-height-50px mb-10px justify-between items-center"
>
<div
class=
"flex justify-between"
>
<div
class=
"flex"
>
<div
class=
"flex items-center"
>
<input
type=
"checkbox"
class=
"ti-form-checkbox pointer-events-none"
id=
"hs-default-checkbox"
[(
ngModel
)]="
isDataListChecked
"
>
<label
for=
"hs-default-checkbox"
class=
"text-sm text-gray-500 mx-2 pointer-events-none"
>
{{numDataListChecked}} Selected
</label>
</div>
<div
class=
"mx-1 flex items-center"
>
<button
(
click
)="
isDataListCheckedAll =
!isDataListCheckedAll;dataListCheckAll()"
id=
'check-boxall'
class=
"focus:ring-2 focus:ring-primary rounded-sm flex item-center"
>
<i
class=
"fs-l transition-all duration-200"
[
ngClass
]="{'
ri-checkbox-multiple-line
text-gray-500
'
:
!
isDataListCheckedAll
,
'
ri-checkbox-multiple-fill
text-primary
'
:
isDataListCheckedAll
}"
></i>
</button>
<label
class=
"text-sm text-gray-500 ml-2"
for=
"check-boxall"
>
Select All
</label>
</div>
</div>
<div
class=
"flex justify-end"
>
<div
class=
"flex justify-end"
>
<div
class=
"px-1"
>
<div
class=
"px-1"
>
<div
class=
"relative shadow-md"
>
<div
class=
"relative shadow-md"
>
<input
type=
"text"
class=
"ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 "
<input
type=
"text"
class=
"ti-form-input ltr:pl-11 rtl:pr-11 focus:z-10 "
placeholder=
"Search by No. or Name"
[(
ngModel
)]="
search
"
(
ngModelChange
)="
searchChange
()
"
>
placeholder=
"Search by No. or Name"
[(
ngModel
)]="
search
"
>
<div
<div
class=
"absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4"
>
class=
"absolute inset-y-0 ltr:left-0 rtl:right-0 flex items-center pointer-events-none z-20 ltr:pl-4 rtl:pr-4"
>
<i
class=
"ri-search-line text-gray"
></i>
<i
class=
"ri-search-line text-gray"
></i>
...
@@ -70,76 +53,17 @@
...
@@ -70,76 +53,17 @@
Delete
Delete
</button>
</button>
</div>
</div>
<!-- <div class="px-1">
<button type="button" class="ti-btn ti-btn-soft-warning h-45px m-0 shadow-md">
<i class="ti ti-book fs-l"></i>
Help
</button>
</div> -->
</div>
</div>
</div>
</div>
</div>
<div
class=
"page px-rem"
>
<div
class=
"page px-rem"
>
<div
class=
"overflow-auto shadow-md rounded-t-md"
>
<app-datagrid-syncfution
[
searchSettings
]="
searchSettings
"
[
searchText
]="
search
"
<table
class=
"ti-custom-table ti-custom-table-head ti-custom-table-hover table-bordered"
>
[
dataSource
]="
configPermission
.
dataList
"
[
canChild
]="
true
"
[
columns
]="
columns
"
<thead>
[
selectedItems
]="
selectedItems
"
modalName=
"#role-permission-config-modal"
<tr>
(
sendSelectData
)="
currentModal=
'edit'
;
selectConfigPermission
($
event
)"
<ng-container
(
sendSelectedItems
)="
onSelectItemChange
($
event
)"
*
ngFor=
"let item of ['','ระดับ','รายละเอียด(ไทย)','รายละเอียด(อังกฤษ)','การจัดการ']; let f = first; let l = last; let i = index"
>
(
sendNextPage
)="
currentModal=
'updateMenu'
;
selectConfigPermission
($
event
);
setMenuPage=
true"
>
<th
scope=
"col"
</app-datagrid-syncfution>
class=
"relative px-10px py-10px bg-soft-secondary text-primary !text-center"
>
<span
class=
"font-size-12px font-weight-700"
>
{{ item }}
</span>
<div
class=
"absolute top-1/2 transform -translate-y-1/2 right-0"
*
ngIf=
"!l&&!f"
>
<i
class=
"ti ti-dots-vertical fs-l"
></i>
</div>
</th>
</ng-container>
</tr>
</thead>
<tbody
*
ngIf=
"configPermission.loading"
>
<tr>
<td
class=
"text-center"
colspan=
"100%"
>
<div
*
ngFor=
"let item of [1,2,3]"
class=
"ti-spinner w-8 h-8 text-secondary mx-1"
role=
"status"
aria-label=
"loading"
>
<span
class=
"sr-only"
>
Loading...
</span>
</div>
</td>
</tr>
</tbody>
<tbody
*
ngIf=
"!configPermission.loading&&!configPermissionListFilter().length"
>
<tr>
<td
class=
"text-center"
colspan=
"100%"
>
ไม่พบข้อมูล
</td>
</tr>
</tbody>
<tbody
*
ngIf=
"!configPermission.loading&&configPermissionListFilter().length"
>
<tr
*
ngFor=
"let item of configPermissionListFilter() | slice:((currentPage-1) * pageSize) : (((currentPage-1) * pageSize) + pageSize);let i = index"
>
<td
class=
"text-center"
>
<input
type=
"checkbox"
class=
"ti-form-checkbox cursor-pointer"
id=
"checkbox-{{item.data.userLevel}}"
[(
ngModel
)]="
item
.
check
"
(
ngModelChange
)="
dataListCheck
()"
>
</td>
<td
class=
"text-center"
>
<label
for=
"checkbox-{{item.data.userLevel}}"
>
{{item.data.userLevel}}
</label>
</td>
<td
class=
"text-center"
>
{{item.data.tdesc}}
</td>
<td
class=
"text-center"
>
{{item.data.edesc}}
</td>
<td
class=
"flex justify-center"
>
<i
class=
"ti ti-edit cursor-pointer i-gray fs-l px-1"
(
click
)="
currentModal=
'edit'
;
selectConfigPermission
(
item
.
data
)"
data-hs-overlay=
"#role-permission-config-modal"
></i>
<i
class=
"ti ti-menu-2 cursor-pointer i-gray fs-l px-1"
(
click
)="
currentModal =
'updateMenu'
;
selectConfigPermission
(
item
.
data
);
setMenuPage=
true"
></i>
</td>
</tr>
</tbody>
</table>
</div>
<app-pagination
[
totalItems
]="
configPermissionListFilter
().
length
"
[
pageSize
]="
pageSize
"
(
pageChange
)="
currentPage =
$event"
(
pageSizeChange
)="
pageSize =
$event;currentPage
=
1
"
></app-pagination>
</div>
</div>
<div
id=
"role-permission-config-modal"
class=
"hs-overlay hidden ti-modal"
>
<div
id=
"role-permission-config-modal"
class=
"hs-overlay hidden ti-modal"
>
...
@@ -249,10 +173,10 @@
...
@@ -249,10 +173,10 @@
ยืนยันการบันทึกข้อมูลหรือไม่!
ยืนยันการบันทึกข้อมูลหรือไม่!
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"currentModal == 'delete'"
>
<ng-container
*
ngIf=
"currentModal == 'delete'"
>
<ng-container
*
ngIf=
"num
DataListChecked
"
>
<ng-container
*
ngIf=
"num
SelectItem()
"
>
ยืนยันการลบข้อมูลหรือไม่
ยืนยันการลบข้อมูลหรือไม่
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"!num
DataListChecked
"
>
<ng-container
*
ngIf=
"!num
SelectItem()
"
>
เลือกข้อมูลที่ต้องการลบ
เลือกข้อมูลที่ต้องการลบ
</ng-container>
!
</ng-container>
!
</ng-container>
</ng-container>
...
@@ -278,7 +202,7 @@
...
@@ -278,7 +202,7 @@
</button>
</button>
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
<a
class=
"ti-btn ti-btn-danger"
href=
"javascript:void(0);"
data-hs-overlay=
"#role-permission-config-alert-modal"
data-hs-overlay=
"#role-permission-config-alert-modal"
(
click
)="
updateConfigPermission
('
delete
')"
*
ngIf=
"num
DataListChecked
"
>
(
click
)="
updateConfigPermission
('
delete
')"
*
ngIf=
"num
SelectItem()
"
>
ลบข้อมูล
ลบข้อมูล
</a>
</a>
</ng-container>
</ng-container>
...
@@ -296,7 +220,7 @@
...
@@ -296,7 +220,7 @@
<div
class=
"flex"
>
<div
class=
"flex"
>
<button
type=
"button"
<button
type=
"button"
class=
"ti-btn ti-btn-outline ti-btn-outline-light h-20px m-0 shadow-md text-blue-500"
class=
"ti-btn ti-btn-outline ti-btn-outline-light h-20px m-0 shadow-md text-blue-500"
(
click
)="
setMenuPage=
false;
currentPage=1;
search=''"
>
(
click
)="
setMenuPage=
false;search=''"
>
<i
class=
"ti ti-chevron-left"
></i>
<i
class=
"ti ti-chevron-left"
></i>
ย้อนกลับ
ย้อนกลับ
</button>
</button>
...
...
src/app/components/company-components/account-settings/role-permission-config/role-permission-config.component.ts
View file @
312ede78
import
{
ChangeDetectorRef
,
Component
}
from
'@angular/core'
;
import
{
ChangeDetectorRef
,
Component
}
from
'@angular/core'
;
import
{
ConfigService
}
from
'@ks89/angular-modal-gallery/lib/services/config.service'
;
import
{
ConfigService
}
from
'@ks89/angular-modal-gallery/lib/services/config.service'
;
import
{
ColumnModel
}
from
'@syncfusion/ej2-grids'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
ToastrService
}
from
'ngx-toastr'
;
import
{
ConfigPermissionModel
,
MenuBodyModel
,
MyConfigPermissionModel
,
MyMenuBodyModel
}
from
'src/app/shared/model/config-permission.model'
;
import
{
ConfigPermissionModel
,
MenuBodyModel
,
MyConfigPermissionModel
,
MyMenuBodyModel
}
from
'src/app/shared/model/config-permission.model'
;
import
{
ConfigPermissionService
}
from
'src/app/shared/services/config-permission.service'
;
import
{
ConfigPermissionService
}
from
'src/app/shared/services/config-permission.service'
;
...
@@ -11,21 +12,40 @@ import { NavService } from 'src/app/shared/services/navservice';
...
@@ -11,21 +12,40 @@ import { NavService } from 'src/app/shared/services/navservice';
})
})
export
class
RolePermissionConfigComponent
{
export
class
RolePermissionConfigComponent
{
pathTitle
=
[
'การจัดการข้อมูลองค์กร'
,
'กำหนดสิทธิการเข้าใช้งาน'
]
pathTitle
=
[
'การจัดการข้อมูลองค์กร'
,
'กำหนดสิทธิการเข้าใช้งาน'
]
pageSize
=
10
currentPage
=
1
page
=
Array
.
from
({
length
:
1
},
(
_
,
i
)
=>
i
+
1
);
search
=
""
search
=
""
numDataListChecked
=
0
isDataListChecked
=
false
isDataListCheckedAll
=
false
currentModal
:
'add'
|
'edit'
|
'delete'
|
'updateMenu'
=
"add"
currentModal
:
'add'
|
'edit'
|
'delete'
|
'updateMenu'
=
"add"
setMenuPage
=
false
setMenuPage
=
false
configPermission
:
{
loading
:
boolean
,
select
:
ConfigPermissionModel
,
dataList
:
{
check
:
boolean
,
data
:
ConfigPermissionModel
}
[]
}
=
{
loading
:
false
,
select
:
new
MyConfigPermissionModel
(),
dataList
:
[]
}
configPermission
:
{
loading
:
boolean
,
select
:
ConfigPermissionModel
,
dataList
:
ConfigPermissionModel
[]
}
=
{
loading
:
false
,
select
:
new
MyConfigPermissionModel
(),
dataList
:
[]
}
menuItems
:
MenuBodyModel
[]
=
[]
menuItems
:
MenuBodyModel
[]
=
[]
menuItemsShow
:
Map
<
string
,
boolean
>
=
new
Map
();
menuItemsShow
:
Map
<
string
,
boolean
>
=
new
Map
();
companyId
=
""
companyId
=
""
user_level
=
""
user_level
=
""
columns
:
ColumnModel
[]
=
[{
field
:
"userLevel"
,
headerText
:
"ระดับ"
,
type
:
"string"
,
isPrimaryKey
:
true
,
},
{
field
:
"tdesc"
,
headerText
:
"รายละเอียด (ไทย)"
,
type
:
"string"
},
{
field
:
"edesc"
,
headerText
:
"รายละเอียด (อังกฤษ)"
,
type
:
"string"
}]
searchSettings
=
{
fields
:
[
'userLevel'
,
'tdesc'
,
'edesc'
],
operator
:
'contains'
,
ignoreCase
:
false
}
selectedItems
:
{
key
:
string
,
count
:
number
,
data
:
Map
<
string
,
boolean
>
}
=
{
key
:
''
,
count
:
0
,
data
:
new
Map
<
string
,
boolean
>
()
};
constructor
(
private
toastr
:
ToastrService
,
constructor
(
private
toastr
:
ToastrService
,
private
cdr
:
ChangeDetectorRef
,
private
cdr
:
ChangeDetectorRef
,
private
navServices
:
NavService
,
private
navServices
:
NavService
,
...
@@ -52,11 +72,13 @@ export class RolePermissionConfigComponent {
...
@@ -52,11 +72,13 @@ export class RolePermissionConfigComponent {
this
.
configPermission
.
dataList
=
[]
this
.
configPermission
.
dataList
=
[]
this
.
configPermissionService
.
getList
().
subscribe
({
this
.
configPermissionService
.
getList
().
subscribe
({
next
:
response
=>
{
next
:
response
=>
{
this
.
configPermission
.
dataList
=
response
.
map
(
x
=>
({
check
:
false
,
data
:
new
MyConfigPermissionModel
(
x
)
}))
this
.
configPermission
.
dataList
=
response
.
map
(
x
=>
{
this
.
selectedItems
.
data
.
set
(
x
.
userLevel
,
false
)
return
new
MyConfigPermissionModel
(
x
)
})
this
.
selectedItems
.
key
=
'userLevel'
this
.
selectedItems
.
count
=
0
this
.
configPermission
.
loading
=
false
this
.
configPermission
.
loading
=
false
this
.
isDataListCheckedAll
=
false
this
.
dataListCheckAll
()
this
.
searchChange
()
if
(
this
.
currentModal
==
'updateMenu'
&&
(
this
.
configPermission
.
select
.
userLevel
==
this
.
user_level
))
{
if
(
this
.
currentModal
==
'updateMenu'
&&
(
this
.
configPermission
.
select
.
userLevel
==
this
.
user_level
))
{
window
.
location
.
reload
();
window
.
location
.
reload
();
}
}
...
@@ -68,14 +90,7 @@ export class RolePermissionConfigComponent {
...
@@ -68,14 +90,7 @@ export class RolePermissionConfigComponent {
})
})
}
}
configPermissionListFilter
()
{
return
this
.
configPermission
.
dataList
.
filter
(
x
=>
{
const
data
=
x
.
data
return
data
.
userLevel
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
||
data
.
tdesc
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
||
data
.
edesc
.
toLowerCase
().
includes
(
this
.
search
.
toLowerCase
())
})
}
selectConfigPermission
(
data
?:
ConfigPermissionModel
)
{
selectConfigPermission
(
data
?:
ConfigPermissionModel
)
{
this
.
configPermission
.
select
=
new
MyConfigPermissionModel
(
data
)
this
.
configPermission
.
select
=
new
MyConfigPermissionModel
(
data
)
const
menuBody
:
MenuBodyModel
[]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
configPermission
.
select
.
menuBody
))
const
menuBody
:
MenuBodyModel
[]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
configPermission
.
select
.
menuBody
))
...
@@ -104,24 +119,6 @@ export class RolePermissionConfigComponent {
...
@@ -104,24 +119,6 @@ export class RolePermissionConfigComponent {
this
.
cdr
.
detectChanges
()
this
.
cdr
.
detectChanges
()
}
}
searchChange
()
{
this
.
currentPage
=
1
this
.
page
=
Array
.
from
({
length
:
Math
.
ceil
(
this
.
configPermissionListFilter
().
length
/
10
)
},
(
_
,
i
)
=>
i
+
1
);
this
.
dataListCheck
()
}
dataListCheckAll
()
{
const
selectAll
=
this
.
isDataListCheckedAll
;
this
.
configPermissionListFilter
().
forEach
(
x
=>
x
.
check
=
selectAll
);
this
.
dataListCheck
();
}
dataListCheck
()
{
const
dataCheck
=
this
.
configPermissionListFilter
();
this
.
isDataListCheckedAll
=
dataCheck
.
length
?
dataCheck
.
every
(
x
=>
x
.
check
)
:
false
;
this
.
numDataListChecked
=
this
.
configPermission
.
dataList
.
filter
(
x
=>
x
.
check
).
length
;
this
.
isDataListChecked
=
Boolean
(
this
.
numDataListChecked
)
}
clearData
()
{
clearData
()
{
if
(
this
.
currentModal
==
'add'
)
{
if
(
this
.
currentModal
==
'add'
)
{
...
@@ -137,7 +134,8 @@ export class RolePermissionConfigComponent {
...
@@ -137,7 +134,8 @@ export class RolePermissionConfigComponent {
let
deleteBody
:
ConfigPermissionModel
[]
=
[]
let
deleteBody
:
ConfigPermissionModel
[]
=
[]
switch
(
this
.
currentModal
)
{
switch
(
this
.
currentModal
)
{
case
(
'delete'
):
{
case
(
'delete'
):
{
deleteBody
=
this
.
configPermission
.
dataList
.
filter
(
x
=>
x
.
check
).
map
(
x
=>
new
MyConfigPermissionModel
(
x
.
data
))
const
selectedKeys
=
Array
.
from
(
this
.
selectedItems
.
data
.
keys
());
deleteBody
=
this
.
configPermission
.
dataList
.
filter
(
x
=>
selectedKeys
.
includes
(
x
.
userLevel
)
&&
this
.
selectedItems
.
data
.
get
(
x
.
userLevel
)).
map
(
x
=>
new
MyConfigPermissionModel
(
x
))
break
;
break
;
}
}
default
:
{
default
:
{
...
@@ -183,8 +181,17 @@ export class RolePermissionConfigComponent {
...
@@ -183,8 +181,17 @@ export class RolePermissionConfigComponent {
})
})
}
}
checkPrimary
()
{
checkPrimary
()
{
return
this
.
configPermission
.
dataList
.
find
(
x
=>
x
.
data
.
userLevel
==
this
.
configPermission
.
select
.
userLevel
)
return
this
.
configPermission
.
dataList
.
find
(
x
=>
x
.
userLevel
==
this
.
configPermission
.
select
.
userLevel
)
}
numSelectItem
()
{
const
selectedKeys
=
Array
.
from
(
this
.
selectedItems
.
data
.
keys
());
const
num
=
this
.
configPermission
.
dataList
.
filter
(
x
=>
selectedKeys
.
includes
(
x
.
userLevel
)
&&
this
.
selectedItems
.
data
.
get
(
x
.
userLevel
)).
length
return
num
}
onSelectItemChange
(
arg
:
any
)
{
this
.
selectedItems
=
arg
}
}
}
}
src/app/components/datagrid-syncfution/datagrid-syncfution.component.html
View file @
312ede78
...
@@ -35,9 +35,9 @@
...
@@ -35,9 +35,9 @@
<span
class=
"font-size-12px font-weight-700 text-primary"
>
การจัดการ
</span>
<span
class=
"font-size-12px font-weight-700 text-primary"
>
การจัดการ
</span>
</ng-template>
</ng-template>
<ng-template
#
template
let-data
*
ngIf=
"actionSetting"
>
<ng-template
#
template
let-data
*
ngIf=
"actionSetting"
>
<i
class=
"ti ti-eye cursor-pointer i-gray fs-l px-1"
(
click
)="
onNextPage
(
data
)"
*
ngIf=
"canChild"
></i>
<i
class=
"ti ti-edit cursor-pointer i-gray fs-l px-1"
[
attr
.
data-hs-overlay
]="
modalName
"
*
ngIf=
"canEdit"
<i
class=
"ti ti-edit cursor-pointer i-gray fs-l px-1"
[
attr
.
data-hs-overlay
]="
modalName
"
*
ngIf=
"canEdit"
(
click
)="
onSelectData
(
data
)"
></i>
(
click
)="
onSelectData
(
data
)"
></i>
<i
class=
"ti ti-menu-2 cursor-pointer i-gray fs-l px-1"
(
click
)="
onNextPage
(
data
)"
*
ngIf=
"canChild"
></i>
</ng-template>
</ng-template>
</e-column>
</e-column>
</e-columns>
</e-columns>
...
...
src/app/components/datagrid-syncfution/datagrid-syncfution.component.ts
View file @
312ede78
...
@@ -101,6 +101,8 @@ export class DatagridSyncfutionComponent implements OnInit {
...
@@ -101,6 +101,8 @@ export class DatagridSyncfutionComponent implements OnInit {
selectedItemsAll
=
false
selectedItemsAll
=
false
@
Output
()
sendSelectedItems
=
new
EventEmitter
<
any
>
();
@
Output
()
sendSelectedItems
=
new
EventEmitter
<
any
>
();
@
Input
()
modalName
=
''
@
Input
()
modalName
=
''
@
Input
()
canChild
=
false
@
Output
()
sendNextPage
=
new
EventEmitter
<
any
>
();
@
Input
()
checkBoxSetting
=
true
@
Input
()
checkBoxSetting
=
true
@
Input
()
actionSetting
=
true
@
Input
()
actionSetting
=
true
...
@@ -124,7 +126,6 @@ export class DatagridSyncfutionComponent implements OnInit {
...
@@ -124,7 +126,6 @@ export class DatagridSyncfutionComponent implements OnInit {
@
Input
()
editSettings
?
=
{
allowEditing
:
true
,
mode
:
'Batch'
};
@
Input
()
editSettings
?
=
{
allowEditing
:
true
,
mode
:
'Batch'
};
@
Input
()
initialPage
?
=
{
pageSizes
:
true
,
pageSize
:
10
};
@
Input
()
initialPage
?
=
{
pageSizes
:
true
,
pageSize
:
10
};
@
Input
()
canDelete
=
true
@
Input
()
canDelete
=
true
@
Input
()
canChild
=
false
@
Input
()
canEdit
=
true
@
Input
()
canEdit
=
true
// ... เป็นต้น
// ... เป็นต้น
public
query
:
Query
=
new
Query
().
addParams
(
'dataCount'
,
'1000'
);
public
query
:
Query
=
new
Query
().
addParams
(
'dataCount'
,
'1000'
);
...
@@ -176,7 +177,7 @@ export class DatagridSyncfutionComponent implements OnInit {
...
@@ -176,7 +177,7 @@ export class DatagridSyncfutionComponent implements OnInit {
this
.
sendSelectData
.
emit
(
args
);
this
.
sendSelectData
.
emit
(
args
);
}
}
onNextPage
(
args
:
any
)
{
onNextPage
(
args
:
any
)
{
// console.log(args)
this
.
sendNextPage
.
emit
(
args
);
}
}
toolbarClick
(
args
:
any
):
void
{
toolbarClick
(
args
:
any
):
void
{
...
...
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