This commit is contained in:
@@ -3,20 +3,17 @@
|
||||
<v-select
|
||||
v-model="selected"
|
||||
:items="reports"
|
||||
menu-props="auto"
|
||||
hide-details
|
||||
single-line
|
||||
prepend-icon="fa-print"
|
||||
></v-select>
|
||||
</DialogCard>
|
||||
</template>
|
||||
<script>
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/* Xeslint-disable */
|
||||
/* eslint-disable */
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//TODO: add property to accept list of reports available to user
|
||||
//todo: emit event on selection of report or try this.$emit('submit', inputs)
|
||||
//and call by using const result = await this.$dialog.showAndWait(MyDialog, params)
|
||||
export default {
|
||||
// overlay: 'default',
|
||||
// asyncData () {
|
||||
@@ -39,22 +36,25 @@ export default {
|
||||
actions() {
|
||||
// debugger;
|
||||
return {
|
||||
ok: {
|
||||
flat: true,
|
||||
text: this.oktext
|
||||
},
|
||||
cancel: {
|
||||
flat: true,
|
||||
text: this.canceltext,
|
||||
key: "false",
|
||||
handle: () => {
|
||||
return undefined;
|
||||
// debugger;
|
||||
return 0;
|
||||
}
|
||||
},
|
||||
ok: {
|
||||
flat: true,
|
||||
text: this.oktext
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleClick() {
|
||||
handleClick(res) {
|
||||
// debugger;
|
||||
this.$emit("submit", this.selected);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user