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