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();