This commit is contained in:
@@ -56,6 +56,8 @@ todo: RECORD HISTORY
|
||||
- Defaults to showing most recent stuff first in order to satisfy most common requirement of who last edited
|
||||
- Probably going to need a server route but let the UI drive it (timeline view requirements maybe?)
|
||||
|
||||
todo: do I have too many containers in my UI, like some unnecessary ones in the views where the parent already has a container?
|
||||
|
||||
todo: ADDITIONAL EDIT FORM BUTTONS FUNCTIONALITY STUBBED OUT OR MADE INTO TODO'S
|
||||
- Check what is in v7 that I missed on edit forms, make TODOs for them here
|
||||
- Check what is in RAVEN STAGE 1 cases on RockFish and make TODOs for them here
|
||||
|
||||
@@ -35,10 +35,10 @@ const scrollBehavior = function(to, from, savedPosition) {
|
||||
}
|
||||
|
||||
// eslint-disable-next-line
|
||||
return new Promise((resolve) => {
|
||||
return new Promise(resolve => {
|
||||
// check if any matched route config has meta that requires scrolling to top
|
||||
// eslint-disable-next-line
|
||||
if (to.matched.some((m) => m.meta.scrollToTop)) {
|
||||
if (to.matched.some(m => m.meta.scrollToTop)) {
|
||||
// coords will be used if no selector is provided,
|
||||
// or if the selector didn't match any element.
|
||||
position.x = 0;
|
||||
@@ -449,7 +449,7 @@ export default new Router({
|
||||
import(/* webpackChunkName: "ay-common" */ "./views/ay-review.vue")
|
||||
},
|
||||
{
|
||||
path: "/history/:ayatype/:recordid",
|
||||
path: "/history/:ayatype/:recordid/:useractions?",
|
||||
name: "ay-history",
|
||||
component: () =>
|
||||
import(/* webpackChunkName: "ay-common" */ "./views/ay-history.vue")
|
||||
|
||||
@@ -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