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
|
||||
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) {
|
||||
//translate key to actual object type from header data
|
||||
|
||||
@@ -401,7 +401,7 @@ export default new Router({
|
||||
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",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "ay" */ "./views/ay-data-list-view.vue")
|
||||
|
||||
@@ -114,9 +114,10 @@ export default {
|
||||
|
||||
initForm(vm)
|
||||
.then(() => {
|
||||
// path: "/ay-data-list-view/:listViewId/:dataListKey",
|
||||
vm.formState.ready = true;
|
||||
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);
|
||||
//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
|
||||
@@ -141,7 +142,7 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
obj: [],
|
||||
recordid: null,
|
||||
listViewId: null,
|
||||
dataListKey: null,
|
||||
concurrencyToken: undefined,
|
||||
formCustomTemplateKey: this.$route.params.formCustomTemplateKey,
|
||||
|
||||
@@ -24,15 +24,7 @@ export default {
|
||||
icon: "vial",
|
||||
title: window.$gz.locale.get("WidgetList"),
|
||||
helpUrl: "form-ay-data-list-view",
|
||||
menuItems: [
|
||||
{
|
||||
title: window.$gz.locale.get("DataListView"),
|
||||
icon: "filter",
|
||||
surface: true,
|
||||
key: FORM_KEY + ":listview",
|
||||
vm: this
|
||||
}
|
||||
]
|
||||
menuItems: []
|
||||
});
|
||||
},
|
||||
created() {
|
||||
@@ -66,16 +58,6 @@ function clickHandler(menuItem) {
|
||||
var m = window.$gz.menu.parseMenuItem(menuItem);
|
||||
if (m.owner == FORM_KEY && !m.disabled) {
|
||||
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:
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
|
||||
Reference in New Issue
Block a user