This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<UnderConstruction />
|
||||
<div>WHAT IS THIS FOR?</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import UnderConstruction from "../components/underconstruction.vue";
|
||||
|
||||
//NOTE: I don't recall what this is suppo;sed to be fore, there is already a general History view for viewing object history timelines (event log)
|
||||
export default {
|
||||
components: {
|
||||
UnderConstruction
|
||||
//UnderConstruction
|
||||
},
|
||||
beforeCreate() {
|
||||
window.$gz.eventBus.$emit("menu-change", {
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
<template>
|
||||
<v-row row v-if="this.formState.ready">
|
||||
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||
History here
|
||||
<v-col rows="12">
|
||||
<v-timeline>
|
||||
<v-timeline-item>timeline item</v-timeline-item>
|
||||
<v-timeline-item class="text-right">timeline item</v-timeline-item>
|
||||
<v-timeline-item>timeline item</v-timeline-item>
|
||||
</v-timeline>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
@@ -15,7 +21,6 @@ const API_BASE_URL = "EventLog/";
|
||||
export default {
|
||||
created() {
|
||||
let vm = this;
|
||||
|
||||
initForm(vm)
|
||||
.then(() => {
|
||||
vm.formState.ready = true;
|
||||
@@ -31,6 +36,11 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
//path: "/history/:ayatype/:recordid/:useractions?"
|
||||
ayaType: null,
|
||||
recordId: 0,
|
||||
allUserActions: false,
|
||||
obj: {},
|
||||
formState: {
|
||||
ready: false,
|
||||
loading: true,
|
||||
@@ -41,12 +51,10 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
getDataFromApi(recordId) {
|
||||
getDataFromApi() {
|
||||
let vm = this;
|
||||
vm.formState.loading = true;
|
||||
if (!recordId) {
|
||||
throw FORM_KEY + "::getDataFromApi -> Missing recordID!";
|
||||
}
|
||||
//TODO: URL
|
||||
let url = API_BASE_URL + recordId;
|
||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
||||
window.$gz.api
|
||||
@@ -93,10 +101,6 @@ export default {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
*/
|
||||
|
||||
/////////////////////////////
|
||||
//
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user