This commit is contained in:
2021-04-27 21:28:21 +00:00
parent f7d1488e23
commit 3255f7d0d1

View File

@@ -6,7 +6,7 @@
<template v-if="hasState"> <template v-if="hasState">
<div> <div>
<v-btn icon class="ml-n1 mr-2"> <v-btn icon class="ml-n1 mr-2" @click="openDialog = true">
<v-icon>{{ openIcon() }}</v-icon> <v-icon>{{ openIcon() }}</v-icon>
</v-btn> </v-btn>
@@ -21,6 +21,44 @@
</div> </div>
</template> </template>
<v-row justify="center">
<v-dialog v-model="openDialog" max-width="600px">
<v-card>
<v-card-title>
<span class="headline">title</span>
</v-card-title>
<v-card-text>
card text
<!-- <v-select
v-model="moveType"
:items="selectLists.objectTypes"
item-text="name"
item-value="id"
:label="$ay.t('AyaType')"
></v-select>
<gz-pick-list
v-if="moveType != 0"
:aya-type="moveType"
:show-edit-icon="false"
:include-inactive="true"
v-model="moveId"
label="Id"
></gz-pick-list> -->
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
<v-btn color="blue darken-1" text @click="openDialog = false">{{
$ay.t("Cancel")
}}</v-btn>
<v-btn color="blue darken-1" text @click="save()">{{
$ay.t("OK")
}}</v-btn>
</v-card-actions>
</v-card>
</v-dialog>
</v-row>
<!-- <template v-if="canAdd"> <!-- <template v-if="canAdd">
<div> <div>
<v-autocomplete <v-autocomplete
@@ -84,7 +122,8 @@
export default { export default {
data() { data() {
return { return {
selectedStatus: null selectedStatus: null,
openDialog: false
}; };
}, },
@@ -139,6 +178,10 @@ export default {
} }
return "$ayiHistory"; return "$ayiHistory";
}, },
save() {
console.log("STUB: doSAVE clicked");
this.openDialog = false;
},
fieldValueChanged(ref) { fieldValueChanged(ref) {
if (!this.pvm.formState.loading && !this.pvm.formState.readonly) { if (!this.pvm.formState.loading && !this.pvm.formState.readonly) {
window.$gz.form.fieldValueChanged(this.pvm, ref); window.$gz.form.fieldValueChanged(this.pvm, ref);