Set selected to option in SelectBatch and SelectCawangan comp
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user