This commit is contained in:
2020-04-11 00:12:54 +00:00
parent ce50347938
commit 8281bf4912
3 changed files with 36 additions and 29 deletions

View File

@@ -50,11 +50,20 @@ CURRENT TODOs
@@@@@@@@@@@ ROADMAP STAGE 2:
todo: RECORD HISTORY
- implement in stubbed out separate page
- Record history could be displayed on a timeline: https://vuetifyjs.com/en/components/timelines
- 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: RECORD HISTORY (HAS OUTSTANDING ITEMS)
- finish up current large User log view
- title weird
- Not using subtitle now but that might make the most sense for the name or something
- Like to see an option to view individual history as a button or open the record as another button
- maybe instead of the icon being enlarged etc, just move the open and history to an v-card-actions section in the v-card as is supposed to be
- Current view works for User view, make a dedicated Object view
- Make alternate template for small screen for both views, right now it's only suitable for above small (medium?) view
- could easily feed a report with slight modifications...hmm.
- make a todo entry in the report section below to include the ability of feeding reports from local data in addition to off the server
- Does it benefit from caching? (not really thinking so as this is a different animal than search but something to ponder a bit)
todo: Translate all ayatypes not translated
"data": [
@@ -146,11 +155,10 @@ todo: ADDITIONAL EDIT FORM BUTTONS FUNCTIONALITY STUBBED OUT OR MADE INTO TODO'S
- Check what is in RAVEN STAGE 1 cases on RockFish and make TODOs for them here
- implement and componentize
todo: WIKI
- Implement in stubbed out existing separate page
todo: WIKI
todo: ATTACHMENTS
- Implement in existing stubbed out separate page

View File

@@ -111,6 +111,7 @@ export default {
"Save",
"Delete",
"OK",
"Open",
"Print",
"Report",
"WikiPage",

View File

@@ -12,24 +12,25 @@
>
<v-card>
<v-card-title
><v-icon
color="primary"
large
v-if="canOpen(i.objectType)"
@click="openItem(i)"
class="mr-4"
>{{ getIconForObjectType(i.objectType) }}</v-icon
><v-icon v-else class="mr-4">{{
><v-icon class="mr-4">{{
getIconForObjectType(i.objectType)
}}</v-icon
><span class="mr-4">{{ getNameForType(i.objectType) }}</span
><span>{{ i.name }}</span></v-card-title
><span class="mr-4"></span><span>{{ i.name }}</span></v-card-title
>
<v-card-subtitle>{{
getNameForType(i.objectType)
}}</v-card-subtitle>
<v-card-text>
{{ i }}
{{ i.date }} {{ getEventName(i.event) }}
{{ i.textra }}
<div>{{ i.date }} - {{ getEventName(i.event) }}</div>
<div v-if="i.textra">{{ i.textra }}</div>
</v-card-text>
<v-card-actions>
<v-btn text>{{ $ay.t("History") }}</v-btn>
<v-btn v-if="canOpen(i.objectType)" text @click="openItem(i)">{{
$ay.t("Open")
}}</v-btn>
</v-card-actions>
</v-card>
</v-timeline-item>
</v-timeline>
@@ -79,12 +80,10 @@ export default {
},
methods: {
openItem(item) {
if (item.canopen) {
window.$gz.eventBus.$emit("openobject", {
type: item.objectType,
id: item.objectId
});
}
window.$gz.eventBus.$emit("openobject", {
type: item.objectType,
id: item.objectId
});
},
canOpen(otype) {
return this.ayaTypes[otype].canopen;
@@ -178,9 +177,8 @@ export default {
languageName,
hour12
);
//for (let i = 0; i < vm.eventTypes.length; i) {
temp[i].index = i; //TODO: PAGING
//}
}
vm.obj = temp; //TODO: PAGING