Set selected to option in SelectBatch and SelectCawangan comp

This commit is contained in:
root
2023-01-31 15:22:43 +08:00
parent 641eb08f94
commit 690c423d1c
2 changed files with 4 additions and 4 deletions
@@ -7,7 +7,7 @@
<div v-else>
<label>Pilih Batch Lelong</label>
<select class="custom-select" @change="pilihBatchLelong($event)">
<option selected disabled>Batch Lelong</option>
<option selected>Batch Lelong</option>
<option v-for="val in listLelong" :key="val" v-bind:value="val.id">{{ val.id }}</option>
</select>
<div class="mt-3">
@@ -45,4 +45,4 @@ function pilihBatchLelong(e) {
onMounted(() => {
getListLelong();
})
</script>
</script>
@@ -8,7 +8,7 @@
<div v-else>
<label>Pilih Cawangan</label>
<select class="custom-select" @change="pilihCawangan($event)">
<option selected disabled>Cawangan</option>
<option selected>Cawangan</option>
<option v-for="val in listCawangan" :key="val" v-bind:value="val.caw_id">{{ val.caw_name }}</option>
</select>
<div class="mt-3 row justify-content-center">
@@ -57,4 +57,4 @@ function pilihCawangan(e) {
onMounted(() => {
getListCawangan();
})
</script>
</script>