This commit is contained in:
2021-06-09 00:00:57 +00:00
parent 64e4d63faa
commit fd64cb9b94
3 changed files with 42 additions and 4 deletions

View File

@@ -58,7 +58,9 @@ todo: workorders - need to set billing and service address from customers on mig
todo: notifications screen add delete all menu item that will just remove all the notifications present
Maybe a checkbox and delete selected and select all?? That way can also be a dual useful feature
also should delete *from* the client so that it deletes only what it has in view so user doesn't accidentally delete unseen yet to be delivered ones?
todo: notification new bell alert count add to title so shows in task bar when not in view?
like messenger "(1)" "(23)" etc
todo: notifications new count seems to be double getting on each iteration
todo: Seeding UI keep track of timing and later down the road when firmed up, provide estimate (average server will take):
2021-05-31 10:26:45.4801|INFO|Seeder|Small level sample data seeded in 27 seconds
@@ -373,8 +375,7 @@ todo: many biz objects are not using new PUT methodology
CURRENTLY DOING: workorder round two electric boogaloo
basics first then increasingly esoteric features
CURRENTLY DOING: notification duration display for testing workorder status age notification in app and in email
@@ -397,7 +398,9 @@ Testing:
status age, stuck in status
Test also as EMAIL notification as this is all also a test to find bugs in notification now rather than later
todo: notification of workorder not completed has lorem ipsum text from no apparent place (not in notification sent)
todo: in-app notification page should include duration for duration events in the display
will require adding duration to notifyevent
also, not sure about the placement of the title and event name, maybe need to be flipped?
todo: notify event list table needs to show status of workorder (all fields) ideally
otherwise if you have multiple wostatusage notifications they all appear the same

View File

@@ -174,6 +174,38 @@ export default {
hour12: hour12
});
},
///////////////////////////////////////////
// Turn a duration value into a display
//
durationLocalized(value) {
let theDays = 0;
let theHours = 0;
let theMinutes = 0;
let theSeconds = 0;
if (value == null) {
return "";
} else {
let work = vm.value.split(":");
//has days?
if (work[0].includes(".")) {
let dh = work[0].split(".");
theDays = Number(dh[0]);
theHours = Number(dh[1]);
} else {
theHours = Number(work[0]);
}
theMinutes = Number(work[1]);
//has milliseconds? (ignore them)
if (work[2].includes(".")) {
let dh = work[2].split(".");
theSeconds = Number(dh[0]);
} else {
theSeconds = Number(work[2]);
}
}
todo: finish this then move on to the UI part and jam this in
},
///////////////////////////////////////////////
// Convert a utc date to local time zone
// and return time portion only in iso 8601

View File

@@ -32,6 +32,9 @@
>{{ i.uiayatype }}</template
>
<div class="mt-4" v-if="i.message">{{ i.message }}</div>
<div class="mt-4" v-if="i.ageValue != '00:00:00'">
{{ i.ageValue }}
</div>
</v-card-text>
<v-card-actions>