This commit is contained in:
@@ -361,6 +361,16 @@ export default {
|
|||||||
//so, to be more efficient for now will just send the ID's until I see a need for other shit
|
//so, to be more efficient for now will just send the ID's until I see a need for other shit
|
||||||
this.$emit("update:selected", window.$gz._.map(this.selected, "id"));
|
this.$emit("update:selected", window.$gz._.map(this.selected, "id"));
|
||||||
},
|
},
|
||||||
|
editListView() {
|
||||||
|
// path: "/ay-data-list-view/:listViewId/:dataListKey",
|
||||||
|
this.$router.push({
|
||||||
|
name: "ay-data-list-view",
|
||||||
|
params: {
|
||||||
|
listViewId: this.currentListViewId,
|
||||||
|
dataListKey: this.dataListKey
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
btnClick(key, i) {
|
btnClick(key, i) {
|
||||||
//translate key to actual object type from header data
|
//translate key to actual object type from header data
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ export default new Router({
|
|||||||
import(/* webpackChunkName: "ay" */ "./views/ay-customize.vue")
|
import(/* webpackChunkName: "ay" */ "./views/ay-customize.vue")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/ay-data-list-view/:listviewid/:dataListKey",
|
path: "/ay-data-list-view/:listViewId/:dataListKey",
|
||||||
name: "ay-data-list-view",
|
name: "ay-data-list-view",
|
||||||
component: () =>
|
component: () =>
|
||||||
import(/* webpackChunkName: "ay" */ "./views/ay-data-list-view.vue")
|
import(/* webpackChunkName: "ay" */ "./views/ay-data-list-view.vue")
|
||||||
|
|||||||
@@ -114,9 +114,10 @@ export default {
|
|||||||
|
|
||||||
initForm(vm)
|
initForm(vm)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
// path: "/ay-data-list-view/:listViewId/:dataListKey",
|
||||||
vm.formState.ready = true;
|
vm.formState.ready = true;
|
||||||
vm.dataListKey = this.$route.params.dataListKey;
|
vm.dataListKey = this.$route.params.dataListKey;
|
||||||
vm.recordid = this.$route.params.recordid;
|
vm.listViewId = this.$route.params.listViewId;
|
||||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||||
//NOTE: this would normally be in getDataFromAPI but this form doesn't really need that function so doing it here
|
//NOTE: this would normally be in getDataFromAPI but this form doesn't really need that function so doing it here
|
||||||
//modify the menu as necessary
|
//modify the menu as necessary
|
||||||
@@ -141,7 +142,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
obj: [],
|
obj: [],
|
||||||
recordid: null,
|
listViewId: null,
|
||||||
dataListKey: null,
|
dataListKey: null,
|
||||||
concurrencyToken: undefined,
|
concurrencyToken: undefined,
|
||||||
formCustomTemplateKey: this.$route.params.formCustomTemplateKey,
|
formCustomTemplateKey: this.$route.params.formCustomTemplateKey,
|
||||||
|
|||||||
@@ -24,15 +24,7 @@ export default {
|
|||||||
icon: "vial",
|
icon: "vial",
|
||||||
title: window.$gz.locale.get("WidgetList"),
|
title: window.$gz.locale.get("WidgetList"),
|
||||||
helpUrl: "form-ay-data-list-view",
|
helpUrl: "form-ay-data-list-view",
|
||||||
menuItems: [
|
menuItems: []
|
||||||
{
|
|
||||||
title: window.$gz.locale.get("DataListView"),
|
|
||||||
icon: "filter",
|
|
||||||
surface: true,
|
|
||||||
key: FORM_KEY + ":listview",
|
|
||||||
vm: this
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -66,16 +58,6 @@ function clickHandler(menuItem) {
|
|||||||
var m = window.$gz.menu.parseMenuItem(menuItem);
|
var m = window.$gz.menu.parseMenuItem(menuItem);
|
||||||
if (m.owner == FORM_KEY && !m.disabled) {
|
if (m.owner == FORM_KEY && !m.disabled) {
|
||||||
switch (m.key) {
|
switch (m.key) {
|
||||||
case "listview":
|
|
||||||
m.vm.$router.push({
|
|
||||||
name: "ay-data-list-view",
|
|
||||||
params: {
|
|
||||||
recordid: m.vm.currentListViewId,
|
|
||||||
dataListKey: m.vm.dataListKey
|
|
||||||
}
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
window.$gz.eventBus.$emit(
|
window.$gz.eventBus.$emit(
|
||||||
"notify-warning",
|
"notify-warning",
|
||||||
|
|||||||
Reference in New Issue
Block a user