This commit is contained in:
@@ -111,6 +111,7 @@ export default {
|
||||
"Save",
|
||||
"Delete",
|
||||
"OK",
|
||||
"Open",
|
||||
"Print",
|
||||
"Report",
|
||||
"WikiPage",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user