From 01bcfd83b9c682dba1cf50ea2c0400787eeafbcf Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Mon, 4 Jul 2022 10:47:15 +0800 Subject: [PATCH] fix --- resources/js/WTD/SenaraiBakiLelong.vue | 28 ++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/resources/js/WTD/SenaraiBakiLelong.vue b/resources/js/WTD/SenaraiBakiLelong.vue index 80b60c4..a991e64 100644 --- a/resources/js/WTD/SenaraiBakiLelong.vue +++ b/resources/js/WTD/SenaraiBakiLelong.vue @@ -2,9 +2,13 @@
+

JUMLAH = RM {{ this.totalbaki }}

+
+ +
@@ -16,7 +20,7 @@
- +
@@ -38,7 +42,7 @@
- +
@@ -73,6 +77,7 @@ export default { arraybakilelong: [], selectedNorujukan: [], allSelected: false, + boolblocksag: false } }, props: ['bakilelong'], @@ -133,24 +138,35 @@ export default { confirmButtonText: 'Yes' }).then((result) => { if (result.isConfirmed) { - + this.axios.post(ref.$hostname + '/admin/wtd/insert', { kodcaw: cawangan, norujukan: ref.selectedNorujukan }).then(response => { if (response.data === 'success') { - Swal.fire( - 'Nyah Padam!', - 'Berjaya dipadamkan!', + this.$swal( + 'Berjaya!', + 'Berjaya block senarai SAG!', 'success' ) + + this.boolblocksag = true; } }); } }) + }, + proseswtd: function () { + this.axios.post(ref.$hostname + '/admin/wtd/process', { + kodcaw: cawangan, + norujukan: ref.selectedNorujukan + + }).then(response => { + + }); } } }