This commit is contained in:
21
ayanova/src/views/ay-report.vue
Normal file
21
ayanova/src/views/ay-report.vue
Normal 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>
|
||||
@@ -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 }
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user