This commit is contained in:
2020-08-27 19:30:06 +00:00
parent fad7d5c327
commit e316791841
6 changed files with 125 additions and 9 deletions

View File

@@ -520,6 +520,14 @@ export default new Router({
component: () =>
import(/* webpackChunkName: "ay-common" */ "./views/ay-report.vue")
},
{
path: "/report-edit/:reportid",
name: "ay-report-edit",
component: () =>
import(
/* webpackChunkName: "ay-report-edit" */ "./views/ay-report-edit.vue"
)
},
//TEST TEST TEST TEST TEST
{

View File

@@ -0,0 +1,61 @@
<template>
<MonacoEditor class="editor" v-model="code" language="javascript" />
<!-- <gz-report-viewer
:reportId="$route.params.recordid"
:ayaType="$route.params.ayatype"
/> -->
</template>
<script>
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* Xeslint-disable */
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////
import MonacoEditor from "vue-monaco";
const FORM_KEY = "ay-report-edit";
export default {
components: {
MonacoEditor
},
beforeCreate() {
window.$gz.eventBus.$emit("menu-change", {
isMain: false,
icon: "fa-drafting-compass",
title: "ReportDesignReport",
helpUrl: "form-ay-report-edit"
});
},
data() {
return {
search: "",
find: "",
replace: "",
replaceDialog: false,
editingActiveTranslation: false,
duplicating: false,
code: "const noop = () => {}",
obj: {},
formState: {
ready: false,
dirty: false,
valid: true,
readOnly: false,
loading: true,
errorBoxMessage: null,
appError: null,
serverError: {}
},
rights: window.$gz.role.defaultRightsObject(),
ayaType: window.$gz.type.Translation
};
}
};
</script>
<style>
.editor {
width: 600px;
height: 800px;
}
</style>