รายการลาออก
This commit is contained in:
parent
045bd3aee6
commit
474a856eb0
11 changed files with 285 additions and 165 deletions
|
|
@ -134,7 +134,7 @@ async function getData() {
|
|||
|
||||
function onSubmit() {
|
||||
if (selected.value.length !== 0) {
|
||||
dialogConfirm($q, () => {
|
||||
dialogConfirm($q, async () => {
|
||||
if (props.keycloakUserId) {
|
||||
const body = selected.value.map((items: any, index: any) => ({
|
||||
seq: index,
|
||||
|
|
@ -146,7 +146,7 @@ function onSubmit() {
|
|||
keycloakId: items.keycloakId,
|
||||
}));
|
||||
showLoader();
|
||||
http
|
||||
await http
|
||||
.post(
|
||||
config.API.addResign(
|
||||
(props.profileType?.toLocaleLowerCase() as string) == "officer"
|
||||
|
|
@ -157,10 +157,10 @@ function onSubmit() {
|
|||
),
|
||||
body
|
||||
)
|
||||
.then((res) => {
|
||||
.then(async () => {
|
||||
await props.getData?.(pageId.value);
|
||||
closeDialog();
|
||||
success($q, "บันทึกสำเร็จ");
|
||||
props.getData?.(pageId.value);
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
|
|
@ -179,6 +179,7 @@ function closeDialog() {
|
|||
modal.value = false;
|
||||
rows.value = [];
|
||||
selected.value = [];
|
||||
keyword.value = "";
|
||||
}
|
||||
|
||||
watch(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue