From 6520c41caafb72b5b39e25ae91443e34a1fc5b33 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Sun, 3 Jul 2022 20:24:55 +0800 Subject: [PATCH] fix --- resources/js/WTD/wtd.vue | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/resources/js/WTD/wtd.vue b/resources/js/WTD/wtd.vue index af66348..bf18397 100644 --- a/resources/js/WTD/wtd.vue +++ b/resources/js/WTD/wtd.vue @@ -14,9 +14,9 @@
Mula - + Hingga - +
@@ -41,7 +41,14 @@ export default { mula: null, hingga: null, loadbakilelong: null, - bakilelong:[] + bakilelong:[], + config: { + wrap: false, // set wrap to true only when using 'input-group' + // altFormat: 'M j, Y', + // altInput: true, + dateFormat: 'Y-m-d', + maxDate: 'today' + }, } }, methods: { @@ -61,6 +68,16 @@ export default { }).then(response => { this.bakilelong = response.data; this.loadbakilelong = 'success'; + + if(this.bakilelong.length <= 0) + { + this.loadbakilelong = null; + this.$swal( + 'Amaran', + 'Baki lelong tiada dalam senarai', + 'error' + ) + } }); await this.$refs.senaraibaki.associate();