This commit is contained in:
@@ -61,6 +61,10 @@ todo: RECORD HISTORY (HAS OUTSTANDING ITEMS)
|
||||
- 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: Start the update mail now after history is done
|
||||
|
||||
|
||||
todo: can page titles be improved so in task bar can see what is being worked with in that browser window
|
||||
|
||||
|
||||
|
||||
@@ -145,16 +145,31 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
openItem(item) {
|
||||
window.$gz.eventBus.$emit("openobject", {
|
||||
type: item.objectType,
|
||||
id: item.objectId
|
||||
});
|
||||
if (item.userId) {
|
||||
window.$gz.eventBus.$emit("openobject", {
|
||||
type: window.$gz.type.User,
|
||||
id: item.userId
|
||||
});
|
||||
} else {
|
||||
window.$gz.eventBus.$emit("openobject", {
|
||||
type: item.objectType,
|
||||
id: item.objectId
|
||||
});
|
||||
}
|
||||
},
|
||||
openHistoryOfItem(item) {
|
||||
this.$router.push({
|
||||
name: "ay-history",
|
||||
params: { ayatype: item.objectType, recordid: item.objectId }
|
||||
});
|
||||
if (item.userId) {
|
||||
//object log, so open is for user
|
||||
this.$router.push({
|
||||
name: "ay-history",
|
||||
params: { ayatype: window.$gz.type.User, recordid: item.userId }
|
||||
});
|
||||
} else {
|
||||
this.$router.push({
|
||||
name: "ay-history",
|
||||
params: { ayatype: item.objectType, recordid: item.objectId }
|
||||
});
|
||||
}
|
||||
},
|
||||
canViewUserHistory(objectlogitem) {
|
||||
//For object log to decide if view history of user in item is allowed
|
||||
|
||||
Reference in New Issue
Block a user