This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-sheet color="white" elevation="4" height="300px" style="overflow: hidden;">
|
<!-- <v-sheet color="white" elevation="4" height="400px" style="overflow: scroll;"> -->
|
||||||
|
<v-sheet color="white" height="420px" style="overflow: auto;" elevation="4">
|
||||||
<slot name="dash-title">
|
<slot name="dash-title">
|
||||||
<v-toolbar flat dense>
|
<v-toolbar flat dense>
|
||||||
<template v-if="showMoreButton">
|
<template v-if="showMoreButton">
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<gz-chart-line
|
<gz-chart-line
|
||||||
:width="400"
|
:width="400"
|
||||||
:height="240"
|
:height="330"
|
||||||
:chart-data="chartData"
|
:chart-data="chartData"
|
||||||
:options="timeLineChartOptions"
|
:options="timeLineChartOptions"
|
||||||
/>
|
/>
|
||||||
@@ -46,6 +46,7 @@
|
|||||||
</v-card-title>
|
</v-card-title>
|
||||||
|
|
||||||
<v-card-text style="height: 500px;">
|
<v-card-text style="height: 500px;">
|
||||||
|
{{ settings }}
|
||||||
<v-select
|
<v-select
|
||||||
v-model="localSettings.dateRange"
|
v-model="localSettings.dateRange"
|
||||||
:items="selectLists.dateFilterTokens"
|
:items="selectLists.dateFilterTokens"
|
||||||
@@ -116,6 +117,9 @@ export default {
|
|||||||
xAxes: [
|
xAxes: [
|
||||||
{
|
{
|
||||||
type: "time",
|
type: "time",
|
||||||
|
time: {
|
||||||
|
unit: this.settings.unit
|
||||||
|
},
|
||||||
gridLines: {
|
gridLines: {
|
||||||
drawOnChartArea: false
|
drawOnChartArea: false
|
||||||
}
|
}
|
||||||
@@ -140,9 +144,9 @@ export default {
|
|||||||
return {
|
return {
|
||||||
datasets: [
|
datasets: [
|
||||||
{
|
{
|
||||||
label: this.$ay.t("BillableHours"),
|
label: this.$ay.t("WorkOrderItemLaborServiceRateQuantity"),
|
||||||
borderColor: Palette.color.soft_deep_blue,
|
borderColor: Palette.color.soft_deep_blue,
|
||||||
backgroundColor: Palette.color.soft_deep_blue,
|
//backgroundColor: Palette.color.soft_deep_blue,
|
||||||
fill: false,
|
fill: false,
|
||||||
radius: 0,
|
radius: 0,
|
||||||
hoverRadius: 10,
|
hoverRadius: 10,
|
||||||
@@ -239,7 +243,7 @@ ORDER BY timeframe ASC
|
|||||||
if (res.error) {
|
if (res.error) {
|
||||||
this.errorMessage = res.error;
|
this.errorMessage = res.error;
|
||||||
} else {
|
} else {
|
||||||
console.log(res);
|
// console.log(res);
|
||||||
this.obj = res.data;
|
this.obj = res.data;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -307,7 +311,8 @@ async function fetchTranslatedText() {
|
|||||||
"DateRangePreviousYearLastMonth",
|
"DateRangePreviousYearLastMonth",
|
||||||
"DateRangePreviousYearNextMonth",
|
"DateRangePreviousYearNextMonth",
|
||||||
"TimeSpanDays",
|
"TimeSpanDays",
|
||||||
"TimeSpanMonths"
|
"TimeSpanMonths",
|
||||||
|
"WorkOrderItemLaborServiceRateQuantity"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -321,10 +326,9 @@ function populateSelectionLists(vm) {
|
|||||||
{ name: vm.$ay.t("DateRangeToday"), id: "*today*" },
|
{ name: vm.$ay.t("DateRangeToday"), id: "*today*" },
|
||||||
{ name: vm.$ay.t("DateRangeLastWeek"), id: "*lastweek*" },
|
{ name: vm.$ay.t("DateRangeLastWeek"), id: "*lastweek*" },
|
||||||
{ name: vm.$ay.t("DateRangeThisWeek"), id: "*thisweek*" },
|
{ name: vm.$ay.t("DateRangeThisWeek"), id: "*thisweek*" },
|
||||||
{ name: vm.$ay.t("DateRangeNextWeek"), id: "*nextweek*" },
|
|
||||||
{ name: vm.$ay.t("DateRangeLastMonth"), id: "*lastmonth*" },
|
{ name: vm.$ay.t("DateRangeLastMonth"), id: "*lastmonth*" },
|
||||||
{ name: vm.$ay.t("DateRangeThisMonth"), id: "*thismonth*" },
|
{ name: vm.$ay.t("DateRangeThisMonth"), id: "*thismonth*" },
|
||||||
{ name: vm.$ay.t("DateRangeNextMonth"), id: "*nextmonth*" },
|
|
||||||
{ name: vm.$ay.t("DateRange14DayWindow"), id: "*14daywindow*" },
|
{ name: vm.$ay.t("DateRange14DayWindow"), id: "*14daywindow*" },
|
||||||
{ name: vm.$ay.t("DateRangePast"), id: "*past*" },
|
{ name: vm.$ay.t("DateRangePast"), id: "*past*" },
|
||||||
{ name: vm.$ay.t("DateRangeLastYear"), id: "*lastyear*" }, //prior year from jan to dec
|
{ name: vm.$ay.t("DateRangeLastYear"), id: "*lastyear*" }, //prior year from jan to dec
|
||||||
|
|||||||
@@ -10,31 +10,33 @@
|
|||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
<template slot="main">
|
<template slot="main">
|
||||||
<v-calendar
|
<v-sheet height="345">
|
||||||
ref="calendar"
|
<v-calendar
|
||||||
color="primary"
|
ref="calendar"
|
||||||
type="day"
|
color="primary"
|
||||||
hide-header
|
type="day"
|
||||||
:now="now"
|
hide-header
|
||||||
:interval-count="intervalCount"
|
:now="now"
|
||||||
:first-time="startAt"
|
:interval-count="intervalCount"
|
||||||
:events="events"
|
:first-time="startAt"
|
||||||
:event-color="getEventColor"
|
:events="events"
|
||||||
:locale="languageName"
|
:event-color="getEventColor"
|
||||||
@click:event="showEvent"
|
:locale="languageName"
|
||||||
>
|
@click:event="showEvent"
|
||||||
<template v-slot:event="{ event, eventSummary }">
|
>
|
||||||
<div>
|
<template v-slot:event="{ event, eventSummary }">
|
||||||
<!-- eslint-disable vue/no-v-html -->
|
<div>
|
||||||
<span
|
<!-- eslint-disable vue/no-v-html -->
|
||||||
:class="event.textColor + '--text'"
|
<span
|
||||||
v-html="eventSummary()"
|
:class="event.textColor + '--text'"
|
||||||
/><v-icon v-if="!event.editable" x-small :color="event.textColor">
|
v-html="eventSummary()"
|
||||||
$ayiLock</v-icon
|
/><v-icon v-if="!event.editable" x-small :color="event.textColor">
|
||||||
>
|
$ayiLock</v-icon
|
||||||
</div>
|
>
|
||||||
</template>
|
</div>
|
||||||
</v-calendar>
|
</template>
|
||||||
|
</v-calendar>
|
||||||
|
</v-sheet>
|
||||||
</template>
|
</template>
|
||||||
</gz-dash>
|
</gz-dash>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -9,31 +9,33 @@
|
|||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
<template slot="main">
|
<template slot="main">
|
||||||
<v-calendar
|
<v-sheet height="345">
|
||||||
ref="rvwcalendar"
|
<v-calendar
|
||||||
color="primary"
|
ref="rvwcalendar"
|
||||||
type="day"
|
color="primary"
|
||||||
hide-header
|
type="day"
|
||||||
:now="now"
|
hide-header
|
||||||
:interval-count="intervalCount"
|
:now="now"
|
||||||
:first-time="startAt"
|
:interval-count="intervalCount"
|
||||||
:events="events"
|
:first-time="startAt"
|
||||||
:event-color="getEventColor"
|
:events="events"
|
||||||
:locale="languageName"
|
:event-color="getEventColor"
|
||||||
@click:event="showEvent"
|
:locale="languageName"
|
||||||
>
|
@click:event="showEvent"
|
||||||
<template v-slot:event="{ event, eventSummary }">
|
>
|
||||||
<div>
|
<template v-slot:event="{ event, eventSummary }">
|
||||||
<!-- eslint-disable vue/no-v-html -->
|
<div>
|
||||||
<span
|
<!-- eslint-disable vue/no-v-html -->
|
||||||
:class="event.textColor + '--text'"
|
<span
|
||||||
v-html="eventSummary()"
|
:class="event.textColor + '--text'"
|
||||||
/><v-icon v-if="!event.editable" x-small :color="event.textColor">
|
v-html="eventSummary()"
|
||||||
$ayiLock</v-icon
|
/><v-icon v-if="!event.editable" x-small :color="event.textColor">
|
||||||
>
|
$ayiLock</v-icon
|
||||||
</div>
|
>
|
||||||
</template>
|
</div>
|
||||||
</v-calendar>
|
</template>
|
||||||
|
</v-calendar>
|
||||||
|
</v-sheet>
|
||||||
</template>
|
</template>
|
||||||
</gz-dash>
|
</gz-dash>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -10,31 +10,33 @@
|
|||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
<template slot="main">
|
<template slot="main">
|
||||||
<v-calendar
|
<v-sheet height="345">
|
||||||
ref="calendar"
|
<v-calendar
|
||||||
color="primary"
|
ref="calendar"
|
||||||
type="day"
|
color="primary"
|
||||||
hide-header
|
type="day"
|
||||||
:now="now"
|
hide-header
|
||||||
:interval-count="intervalCount"
|
:now="now"
|
||||||
:first-time="startAt"
|
:interval-count="intervalCount"
|
||||||
:events="events"
|
:first-time="startAt"
|
||||||
:event-color="getEventColor"
|
:events="events"
|
||||||
:locale="languageName"
|
:event-color="getEventColor"
|
||||||
@click:event="showEvent"
|
:locale="languageName"
|
||||||
>
|
@click:event="showEvent"
|
||||||
<template v-slot:event="{ event, eventSummary }">
|
>
|
||||||
<div>
|
<template v-slot:event="{ event, eventSummary }">
|
||||||
<!-- eslint-disable vue/no-v-html -->
|
<div>
|
||||||
<span
|
<!-- eslint-disable vue/no-v-html -->
|
||||||
:class="event.textColor + '--text'"
|
<span
|
||||||
v-html="eventSummary()"
|
:class="event.textColor + '--text'"
|
||||||
/><v-icon v-if="!event.editable" x-small :color="event.textColor">
|
v-html="eventSummary()"
|
||||||
$ayiLock</v-icon
|
/><v-icon v-if="!event.editable" x-small :color="event.textColor">
|
||||||
>
|
$ayiLock</v-icon
|
||||||
</div>
|
>
|
||||||
</template>
|
</div>
|
||||||
</v-calendar>
|
</template>
|
||||||
|
</v-calendar>
|
||||||
|
</v-sheet>
|
||||||
</template>
|
</template>
|
||||||
</gz-dash>
|
</gz-dash>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user