This commit is contained in:
2020-02-18 00:00:45 +00:00
parent 74439f778f
commit ca4d8d71b7
2 changed files with 43 additions and 49 deletions

View File

@@ -42,14 +42,14 @@
</v-row>
<v-row>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-select
<!-- <v-select
v-model="listViewId"
:items="pickLists.availableDataListViews"
item-text="name"
item-value="id"
:label="lt('GridFilterName')"
@change="filterChanged()"
></v-select>
></v-select> -->
</v-col>
</v-row>
</v-form>
@@ -336,7 +336,8 @@ function generateMenu(vm) {
//
//
function initForm(vm) {
return populatePickLists(vm);
return Promise.resolve();
//return populatePickLists(vm);
//If need to call more then...:
// .then(() => {
// //Must use return here
@@ -344,22 +345,22 @@ function initForm(vm) {
// });
}
////////////////////
//
function populatePickLists(vm) {
//http://localhost:7575/api/v8/DataListView/PickList?ListKey=TestWidgetDataList
return window.$gz.api
.get("DataListView/PickList?ListKey=" + vm.$route.params.dataListKey)
.then(res => {
if (res.error != undefined) {
window.$gz.errorHandler.handleFormError(res.error, vm);
} else {
vm.pickLists.availableDataListViews = res.data;
window.$gz.form.addNoSelectionItem(vm.pickLists.availableDataListViews);
//vm.pickLists.availableDataListViews.unshift({ name: "-", id: 0 });
}
});
}
// ////////////////////
// //
// function populatePickLists(vm) {
// //http://localhost:7575/api/v8/DataListView/PickList?ListKey=TestWidgetDataList
// return window.$gz.api
// .get("DataListView/PickList?ListKey=" + vm.$route.params.dataListKey)
// .then(res => {
// if (res.error != undefined) {
// window.$gz.errorHandler.handleFormError(res.error, vm);
// } else {
// vm.pickLists.availableDataListViews = res.data;
// window.$gz.form.addNoSelectionItem(vm.pickLists.availableDataListViews);
// //vm.pickLists.availableDataListViews.unshift({ name: "-", id: 0 });
// }
// });
// }
////////////////////
//