This commit is contained in:
2021-10-05 23:00:29 +00:00
parent 5e3fe7ceb1
commit 2de16f8fca

View File

@@ -97,10 +97,6 @@
>
<template v-slot:event="{ event, eventSummary }">
<div class="v-event-draggable">
<!-- <v-icon small :color="event.textColor" class="mr-1">{{
iconForEvent(event.type)
}}</v-icon> -->
<span
:class="event.textColor + '--text'"
v-html="eventSummary()"
@@ -134,13 +130,14 @@
@click="newItem($ay.ayt().WorkOrderItemScheduledUser)"
><v-icon large left>$ayiTools</v-icon
>{{ $ay.t("WorkOrder") }}</v-btn
> </v-col
><v-col cols="12">
>
</v-col>
<!-- <v-col cols="12">
<v-btn x-large block @click="newItem($ay.ayt().Reminder)"
><v-icon large left>$ayiStickyNote</v-icon
>{{ $ay.t("Reminder") }}</v-btn
>
</v-col>
</v-col> -->
</v-card-text>
<v-card-actions>
<v-btn text @click="cancelAddNew" color="primary">{{
@@ -419,19 +416,27 @@ export default {
);
switch (atype) {
case this.$ay.ayt().WorkOrderItemScheduledUser:
this.$router.push({
name: "workorder-edit",
params: {
recordid: 0,
add: {
type: atype,
start: addStart,
end: addEnd,
userId: this.$store.state.userId,
name: this.$store.state.userName
}
{
let userId = null;
let userName = null;
if (newEvent.fullcat) {
userId = newEvent.fullcat.id;
userName = newEvent.fullcat.name;
}
});
this.$router.push({
name: "workorder-edit",
params: {
recordid: 0,
add: {
type: atype,
start: addStart,
end: addEnd,
userId: userId,
name: userName
}
}
});
}
break;
case this.$ay.ayt().Reminder:
this.$router.push({
@@ -587,6 +592,7 @@ export default {
if (!this.dragEvent && !this.extendEvent) {
return;
}
const mouse = this.toTime(tms);
if (this.dragEvent && this.dragTime !== null) {
//# DRAGGING PATH
@@ -652,7 +658,9 @@ export default {
timed: true,
type: 0,
id: 0,
editable: true
editable: true,
fullcat: tms.category,
category: tms.category.name
};
this.events.push(this.extendEvent);
}