This commit is contained in:
2021-01-30 18:55:46 +00:00
parent 9bddbf0883
commit f0abfcbf6f
4 changed files with 14 additions and 16 deletions

View File

@@ -527,7 +527,7 @@ export default {
},
editListView() {
this.$router.push({
name: "ay-data-list-view",
name: "ay-data-list-column-view",
params: {
dataListKey: this.dataListKey,
formKey: this.formKey,

View File

@@ -94,11 +94,11 @@ export default new Router({
import(/* webpackChunkName: "ay-common" */ "./views/ay-customize.vue")
},
{
path: "/data-list-view/:dataListKey/:formKey/:listViewId",
name: "ay-data-list-view",
path: "/data-list-column-view/:dataListKey",
name: "ay-data-list-column-view",
component: () =>
import(
/* webpackChunkName: "ay-common" */ "./views/ay-data-list-view.vue"
/* webpackChunkName: "ay-common" */ "./views/ay-data-list-column-view.vue"
)
},

View File

@@ -412,8 +412,8 @@
/* Xeslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
const FORM_KEY = "ay-data-list-view";
const API_BASE_URL = "data-list-view/";
const FORM_KEY = "ay-data-list-column-view";
const API_BASE_URL = "data-list-column-view/";
let JUST_DELETED = false;
export default {
//unsaved changes are actually valid for this form so no need to warn
@@ -927,7 +927,7 @@ function generateMenu(vm) {
readOnly: vm.formState.readOnly,
icon: "$ayiFilter",
title: "DataListView",
helpUrl: "form-ay-data-list-view",
helpUrl: "form-ay-data-list-column-view",
formData: {
ayaType: window.$gz.type.FormCustom,
formCustomTemplateKey: undefined,
@@ -1282,9 +1282,7 @@ async function setEffectiveListView(vm) {
} else if (vm.listViewId == 0) {
//get default list view
//http://localhost:7575/api/v8/DataListView/default/TestWidgetDataList
let res = await window.$gz.api.get(
"data-list-view/default/" + vm.dataListKey
);
let res = await window.$gz.api.get(API_BASE_URL + vm.dataListKey);
if (res.error) {
// throw new Error(res.error);
@@ -1295,7 +1293,7 @@ async function setEffectiveListView(vm) {
}
} else {
//listview has an id value
let res = await window.$gz.api.get("data-list-view/" + vm.listViewId);
let res = await window.$gz.api.get(API_BASE_URL + vm.listViewId);
if (res.error) {
//throw new Error(res.error);
throw new Error(window.$gz.errorHandler.errorToString(res, vm));
@@ -1412,7 +1410,7 @@ function initDataObject(vm) {
// if (window.$gz.dev) {
// if (vm.obj.editView.length != vm.fieldDefinitions.length) {
// throw new Error(
// "ay-data-list-view::initDataObject - working array length not equal to total field definition length"
// "ay-data-list-column-view::initDataObject - working array length not equal to total field definition length"
// );
// }
// }
@@ -1503,7 +1501,7 @@ function getDisplayForFilter(
if (filterOperator == null || filterValue == null) {
// if (window.$gz.dev) {
// throw new Error(
// "ay-data-list-view::getDisplayForFilter Value filter missing one ore more of Operator, Value"
// "ay-data-list-column-view::getDisplayForFilter Value filter missing one ore more of Operator, Value"
// );
// }
return "";