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
|
- 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)
|
- 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
|
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: {
|
methods: {
|
||||||
openItem(item) {
|
openItem(item) {
|
||||||
window.$gz.eventBus.$emit("openobject", {
|
if (item.userId) {
|
||||||
type: item.objectType,
|
window.$gz.eventBus.$emit("openobject", {
|
||||||
id: item.objectId
|
type: window.$gz.type.User,
|
||||||
});
|
id: item.userId
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
window.$gz.eventBus.$emit("openobject", {
|
||||||
|
type: item.objectType,
|
||||||
|
id: item.objectId
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
openHistoryOfItem(item) {
|
openHistoryOfItem(item) {
|
||||||
this.$router.push({
|
if (item.userId) {
|
||||||
name: "ay-history",
|
//object log, so open is for user
|
||||||
params: { ayatype: item.objectType, recordid: item.objectId }
|
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) {
|
canViewUserHistory(objectlogitem) {
|
||||||
//For object log to decide if view history of user in item is allowed
|
//For object log to decide if view history of user in item is allowed
|
||||||
|
|||||||
Reference in New Issue
Block a user