Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
myhr-portal
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
myhr-portal
Commits
52be4e8d
Commit
52be4e8d
authored
Jun 09, 2025
by
Nattana Chaiyamat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
แก้ปุ่มเพิ่ม ปุ่มลบหน้าdatasource table
parent
e0853513
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
datasource-table.component.html
...app/apps/datasource-table/datasource-table.component.html
+1
-1
datasource-table.component.ts
src/app/apps/datasource-table/datasource-table.component.ts
+4
-4
No files found.
src/app/apps/datasource-table/datasource-table.component.html
View file @
52be4e8d
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
</thead>
</thead>
<tbody
*
ngIf=
"!datasourceTableFilter().length"
>
<tbody
*
ngIf=
"!datasourceTableFilter().length"
>
<tr
style=
"background-color:#ebf2f6"
>
<tr
style=
"background-color:#ebf2f6"
>
<td
colspan=
"
7
"
class=
"text-center"
>
ไม่พบข้อมูล
</td>
<td
colspan=
"
9
"
class=
"text-center"
>
ไม่พบข้อมูล
</td>
</tr>
</tr>
</tbody>
</tbody>
<tbody
*
ngIf=
"datasourceTableFilter().length"
>
<tbody
*
ngIf=
"datasourceTableFilter().length"
>
...
...
src/app/apps/datasource-table/datasource-table.component.ts
View file @
52be4e8d
...
@@ -47,10 +47,10 @@ export class DatasourceTableComponent implements OnInit {
...
@@ -47,10 +47,10 @@ export class DatasourceTableComponent implements OnInit {
modalConfirmRef
.
result
.
then
(
result
=>
{
modalConfirmRef
.
result
.
then
(
result
=>
{
this
.
datasourceTable
.
loading
=
true
this
.
datasourceTable
.
loading
=
true
this
.
datasourseTableService
.
post
(
this
.
datasourceTable
.
select
).
subscribe
(
response
=>
{
this
.
datasourseTableService
.
post
(
this
.
datasourceTable
.
select
).
subscribe
(
response
=>
{
this
.
openAlertModal
(
response
.
message
)
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
getList
()
this
.
getList
()
}
else
{
}
else
{
this
.
openAlertModal
(
response
.
message
)
this
.
datasourceTable
.
loading
=
false
this
.
datasourceTable
.
loading
=
false
}
}
},
error
=>
{
},
error
=>
{
...
@@ -64,14 +64,14 @@ export class DatasourceTableComponent implements OnInit {
...
@@ -64,14 +64,14 @@ export class DatasourceTableComponent implements OnInit {
centered
:
true
,
centered
:
true
,
backdrop
:
'static'
,
backdrop
:
'static'
,
})
})
modalConfirmRef
.
componentInstance
.
message
=
'คุณต้องการ
บันทึก
ข้อมูลหรือไม่'
modalConfirmRef
.
componentInstance
.
message
=
'คุณต้องการ
ลบ
ข้อมูลหรือไม่'
modalConfirmRef
.
result
.
then
(
result
=>
{
modalConfirmRef
.
result
.
then
(
result
=>
{
this
.
datasourceTable
.
loading
=
true
this
.
datasourceTable
.
loading
=
true
this
.
datasourseTableService
.
post
(
this
.
datasourceTable
.
select
).
subscribe
(
response
=>
{
this
.
datasourseTableService
.
delete
(
this
.
datasourceTable
.
select
).
subscribe
(
response
=>
{
this
.
openAlertModal
(
response
.
message
)
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
getList
()
this
.
getList
()
}
else
{
}
else
{
this
.
openAlertModal
(
response
.
message
)
this
.
datasourceTable
.
loading
=
false
this
.
datasourceTable
.
loading
=
false
}
}
},
error
=>
{
},
error
=>
{
...
...
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