This commit is contained in:
2020-02-17 23:02:27 +00:00
parent 4b3bc936ce
commit 21dd50daf4
2 changed files with 9 additions and 8 deletions

View File

@@ -3,17 +3,14 @@
<v-card> <v-card>
<v-card-title> <v-card-title>
<v-select <v-select
:items="[ :items="pickLists.listViews"
{ name: 'one', id: 1 },
{ name: 'two', id: 2 }
]"
item-text="name" item-text="name"
item-value="id" item-value="id"
:label="lt('DataListView')" :label="lt('DataListView')"
> >
</v-select> </v-select>
<v-spacer></v-spacer <v-spacer></v-spacer
><v-btn> ><v-btn @click="editListView">
<v-icon>fa-filter</v-icon> <v-icon>fa-filter</v-icon>
</v-btn> </v-btn>
</v-card-title> </v-card-title>
@@ -295,6 +292,10 @@ export default {
return { return {
loading: true, loading: true,
dataTablePagingOptions: {}, dataTablePagingOptions: {},
listViewId: 0,
pickLists: {
listViews: []
},
headers: [], headers: [],
serverColumns: [], serverColumns: [],
totalRecords: 0, totalRecords: 0,
@@ -366,7 +367,7 @@ export default {
this.$router.push({ this.$router.push({
name: "ay-data-list-view", name: "ay-data-list-view",
params: { params: {
listViewId: this.currentListViewId, listViewId: this.listViewId,
dataListKey: this.dataListKey dataListKey: this.dataListKey
} }
}); });

View File

@@ -22,7 +22,7 @@
{{ tempTemplate }} {{ tempTemplate }}
</div> </div>
<v-divider></v-divider> --> <v-divider></v-divider> -->
key:{{ dataListKey }}, id: {{ recordid }} key:{{ dataListKey }}, id: {{ listViewId }}
<v-row v-if="this.formState.ready"> <v-row v-if="this.formState.ready">
<v-col> <v-col>
<v-form ref="form"> <v-form ref="form">
@@ -43,7 +43,7 @@
<v-row> <v-row>
<v-col cols="12" sm="6" lg="4" xl="3"> <v-col cols="12" sm="6" lg="4" xl="3">
<v-select <v-select
v-model="recordid" v-model="listViewId"
:items="pickLists.availableDataListViews" :items="pickLists.availableDataListViews"
item-text="name" item-text="name"
item-value="id" item-value="id"