This commit is contained in:
@@ -50,11 +50,20 @@ CURRENT TODOs
|
|||||||
@@@@@@@@@@@ ROADMAP STAGE 2:
|
@@@@@@@@@@@ ROADMAP STAGE 2:
|
||||||
|
|
||||||
|
|
||||||
todo: RECORD HISTORY
|
todo: RECORD HISTORY (HAS OUTSTANDING ITEMS)
|
||||||
- implement in stubbed out separate page
|
- finish up current large User log view
|
||||||
- Record history could be displayed on a timeline: https://vuetifyjs.com/en/components/timelines
|
- title weird
|
||||||
- Defaults to showing most recent stuff first in order to satisfy most common requirement of who last edited
|
- Not using subtitle now but that might make the most sense for the name or something
|
||||||
- Probably going to need a server route but let the UI drive it (timeline view requirements maybe?)
|
- 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
|
todo: Translate all ayatypes not translated
|
||||||
"data": [
|
"data": [
|
||||||
@@ -147,10 +156,9 @@ todo: ADDITIONAL EDIT FORM BUTTONS FUNCTIONALITY STUBBED OUT OR MADE INTO TODO'S
|
|||||||
- implement and componentize
|
- implement and componentize
|
||||||
|
|
||||||
todo: WIKI
|
todo: WIKI
|
||||||
- Implement in stubbed out existing separate page
|
|
||||||
|
|
||||||
todo: ATTACHMENTS
|
todo: ATTACHMENTS
|
||||||
- Implement in existing stubbed out separate page
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ export default {
|
|||||||
"Save",
|
"Save",
|
||||||
"Delete",
|
"Delete",
|
||||||
"OK",
|
"OK",
|
||||||
|
"Open",
|
||||||
"Print",
|
"Print",
|
||||||
"Report",
|
"Report",
|
||||||
"WikiPage",
|
"WikiPage",
|
||||||
|
|||||||
@@ -12,24 +12,25 @@
|
|||||||
>
|
>
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title
|
<v-card-title
|
||||||
><v-icon
|
><v-icon class="mr-4">{{
|
||||||
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">{{
|
|
||||||
getIconForObjectType(i.objectType)
|
getIconForObjectType(i.objectType)
|
||||||
}}</v-icon
|
}}</v-icon
|
||||||
><span class="mr-4">{{ getNameForType(i.objectType) }}</span
|
><span class="mr-4"></span><span>{{ i.name }}</span></v-card-title
|
||||||
><span>{{ i.name }}</span></v-card-title
|
|
||||||
>
|
>
|
||||||
|
<v-card-subtitle>{{
|
||||||
|
getNameForType(i.objectType)
|
||||||
|
}}</v-card-subtitle>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
{{ i }}
|
<div>{{ i.date }} - {{ getEventName(i.event) }}</div>
|
||||||
{{ i.date }} {{ getEventName(i.event) }}
|
<div v-if="i.textra">{{ i.textra }}</div>
|
||||||
{{ i.textra }}
|
|
||||||
</v-card-text>
|
</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-card>
|
||||||
</v-timeline-item>
|
</v-timeline-item>
|
||||||
</v-timeline>
|
</v-timeline>
|
||||||
@@ -79,12 +80,10 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openItem(item) {
|
openItem(item) {
|
||||||
if (item.canopen) {
|
window.$gz.eventBus.$emit("openobject", {
|
||||||
window.$gz.eventBus.$emit("openobject", {
|
type: item.objectType,
|
||||||
type: item.objectType,
|
id: item.objectId
|
||||||
id: item.objectId
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
canOpen(otype) {
|
canOpen(otype) {
|
||||||
return this.ayaTypes[otype].canopen;
|
return this.ayaTypes[otype].canopen;
|
||||||
@@ -178,9 +177,8 @@ export default {
|
|||||||
languageName,
|
languageName,
|
||||||
hour12
|
hour12
|
||||||
);
|
);
|
||||||
//for (let i = 0; i < vm.eventTypes.length; i) {
|
|
||||||
temp[i].index = i; //TODO: PAGING
|
temp[i].index = i; //TODO: PAGING
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
vm.obj = temp; //TODO: PAGING
|
vm.obj = temp; //TODO: PAGING
|
||||||
|
|||||||
Reference in New Issue
Block a user