This commit is contained in:
@@ -1,8 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<!-- <span class="v-label v-label--active theme--light">
|
|
||||||
Wiki
|
|
||||||
</span> -->
|
|
||||||
<template v-if="readOnly">
|
<template v-if="readOnly">
|
||||||
<div>
|
<div>
|
||||||
<v-btn depressed tile @click="switchView()">
|
<v-btn depressed tile @click="switchView()">
|
||||||
@@ -11,10 +8,27 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div>
|
<span class="v-label v-label--active theme--light">
|
||||||
<v-btn depressed tile @click="switchView()">
|
Wiki
|
||||||
Wiki<v-icon right>{{ switchViewIcon() }}</v-icon></v-btn
|
</span>
|
||||||
>
|
<div class="mt-2">
|
||||||
|
<v-btn-toggle v-model="currentView">
|
||||||
|
<v-btn color="white" value="0">
|
||||||
|
<v-icon>fa-eye-slash</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
|
||||||
|
<v-btn color="white" value="2">
|
||||||
|
<v-icon>fa-eye</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
|
||||||
|
<v-btn color="white" value="1">
|
||||||
|
<v-icon>fa-columns</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
|
||||||
|
<v-btn color="white" value="3">
|
||||||
|
<v-icon>fa-edit</v-icon>
|
||||||
|
</v-btn>
|
||||||
|
</v-btn-toggle>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -66,9 +80,10 @@ const WIKI_VIEW = 2;
|
|||||||
const DESIGN_VIEW = 3;
|
const DESIGN_VIEW = 3;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
created() {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
currentView: HIDDEN_VIEW
|
currentView: 0
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
|
|||||||
@@ -47,6 +47,18 @@ import reportSelectorControl from "./components/report-selector-control.vue";
|
|||||||
import reportViewerControl from "./components/report-viewer-control.vue";
|
import reportViewerControl from "./components/report-viewer-control.vue";
|
||||||
import wikiControl from "./components/wiki-control.vue";
|
import wikiControl from "./components/wiki-control.vue";
|
||||||
|
|
||||||
|
//**************************************************************
|
||||||
|
//**************************************************************
|
||||||
|
//**************************************************************
|
||||||
|
//DEVELOPMENT MODE
|
||||||
|
//THIS SHOULD BE FALSE IN RELEASE
|
||||||
|
//************************************************************
|
||||||
|
const DEV_MODE = true;
|
||||||
|
//************************************************************
|
||||||
|
//**************************************************************
|
||||||
|
//**************************************************************
|
||||||
|
//**************************************************************
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////
|
||||||
// LIBS AND GLOBAL ITEMS
|
// LIBS AND GLOBAL ITEMS
|
||||||
// NOTE: I'm putting them on Window deliberately to be globally available
|
// NOTE: I'm putting them on Window deliberately to be globally available
|
||||||
@@ -82,18 +94,6 @@ window.$gz = {
|
|||||||
// ERROR HANDLING
|
// ERROR HANDLING
|
||||||
//
|
//
|
||||||
|
|
||||||
//**************************************************************
|
|
||||||
//**************************************************************
|
|
||||||
//**************************************************************
|
|
||||||
//DEVELOPMENT MODE
|
|
||||||
//THIS SHOULD BE FALSE IN RELEASE
|
|
||||||
//************************************************************
|
|
||||||
const DEV_MODE = true;
|
|
||||||
//************************************************************
|
|
||||||
//**************************************************************
|
|
||||||
//**************************************************************
|
|
||||||
//**************************************************************
|
|
||||||
|
|
||||||
Vue.config.errorHandler = errorHandler.handleVueError;
|
Vue.config.errorHandler = errorHandler.handleVueError;
|
||||||
window.onerror = errorHandler.handleGeneralError;
|
window.onerror = errorHandler.handleGeneralError;
|
||||||
//warnings, only occur by default in debug mode not production
|
//warnings, only occur by default in debug mode not production
|
||||||
|
|||||||
@@ -207,7 +207,7 @@
|
|||||||
<v-col cols="12">
|
<v-col cols="12">
|
||||||
<gz-wiki
|
<gz-wiki
|
||||||
v-model="obj.wikiContent"
|
v-model="obj.wikiContent"
|
||||||
:readOnly="formstate.readOnly"
|
:readOnly="formState.readOnly"
|
||||||
:parentVM="this"
|
:parentVM="this"
|
||||||
></gz-wiki
|
></gz-wiki
|
||||||
></v-col>
|
></v-col>
|
||||||
|
|||||||
Reference in New Issue
Block a user