This commit is contained in:
2020-04-07 18:06:39 +00:00
parent 74476c3dec
commit 167357a0bd
4 changed files with 64 additions and 39 deletions

View File

@@ -0,0 +1,21 @@
<template>
<UnderConstruction />
</template>
<script>
import UnderConstruction from "../components/underconstruction.vue";
export default {
components: {
UnderConstruction
},
beforeCreate() {
window.$gz.eventBus.$emit("menu-change", {
isMain: true,
icon: "fa-file-alt",
title: this.$ay.t("Report"),
helpUrl: "form-ay-report"
});
}
};
</script>

View File

@@ -575,7 +575,12 @@ function clickHandler(menuItem) {
case "report":
if (m.id != null) {
//last report selected
alert("STUB: last report selected for " + m.id);
//alert("STUB: last report selected for " + m.id);
// /report/:ayatype/:recordid
m.vm.$router.push({
name: "ay-report",
params: { recordid: m.id, ayatype: window.$gz.type.Widget }
});
} else {
//finally, make a fake report viewer view to go to with choices set
m.vm.$refs.reportSelector.open().then(res => {
@@ -588,7 +593,10 @@ function clickHandler(menuItem) {
window.$gz.form.setLastReport(FORM_KEY, res);
//Now open the report viewer...
alert("STUB: view report " + res.name);
m.vm.$router.push({
name: "ay-report",
params: { recordid: res.id, ayatype: window.$gz.type.Widget }
});
});
}