This commit is contained in:
2020-04-07 00:14:49 +00:00
parent 36ac5dca80
commit 0e6e30b382

View File

@@ -3,7 +3,7 @@
<!-- :max-width="options.width" --> <!-- :max-width="options.width" -->
<v-dialog <v-dialog
scrollable scrollable
max-width="400px" max-width="600px"
v-model="isVisible" v-model="isVisible"
@keydown.esc="cancel" @keydown.esc="cancel"
:data-cy="!!$ay.dev ? 'reportselector' : false" :data-cy="!!$ay.dev ? 'reportselector' : false"
@@ -13,35 +13,18 @@
<span> {{ $ay.t("Report") }} </span> <span> {{ $ay.t("Report") }} </span>
</v-card-title> </v-card-title>
<v-card-text> <v-card-text style="height: 500px;">
<v-card-text style="height: 300px;"> <v-radio-group v-model="selectedReport" column>
<v-radio-group v-model="selectedTeportId" column> <template v-for="item in reportList">
<v-radio label="Bahamas, The" value="bahamas"></v-radio> <v-radio
<v-radio label="Bahrain" value="bahrain"></v-radio> :label="item.name"
<v-radio label="Bangladesh" value="bangladesh"></v-radio> :value="item"
<v-radio label="Barbados" value="barbados"></v-radio> :key="item.id"
<v-radio label="Belarus" value="belarus"></v-radio> color="accent"
<v-radio label="Belgium" value="belgium"></v-radio> class="mt-1"
<v-radio label="Belize" value="belize"></v-radio> ></v-radio>
<v-radio label="Benin" value="benin"></v-radio> </template>
<v-radio label="Bhutan" value="bhutan"></v-radio> </v-radio-group>
<v-radio label="Bolivia" value="bolivia"></v-radio>
<v-radio label="Bosnia and Herzegovina" value="bosnia"></v-radio>
<v-radio label="Botswana" value="botswana"></v-radio>
<v-radio label="Brazil" value="brazil"></v-radio>
<v-radio label="Brunei" value="brunei"></v-radio>
<v-radio label="Bulgaria" value="bulgaria"></v-radio>
<v-radio label="Burkina Faso" value="burkina"></v-radio>
<v-radio label="Burma" value="burma"></v-radio>
<v-radio label="Burundi" value="burundi"></v-radio>
</v-radio-group>
</v-card-text>
<!-- <v-select
:items="reportList"
v-model="selectedTeportId"
item-text="name"
item-value="id"
></v-select> -->
</v-card-text> </v-card-text>
<!-- <v-divider></v-divider> v-bind:class="options.type" --> <!-- <v-divider></v-divider> v-bind:class="options.type" -->
@@ -78,7 +61,7 @@ export default {
zIndex: 200 zIndex: 200
}, },
reportList: [], reportList: [],
selectedReportId: null selectedReport: null
}), }),
props: { props: {
ayaType: { ayaType: {
@@ -107,7 +90,7 @@ export default {
}); });
}, },
ok() { ok() {
this.resolve(this.selectedReportId); this.resolve(this.selectedReport);
this.isVisible = false; this.isVisible = false;
}, },
cancel() { cancel() {