This commit is contained in:
2022-02-26 01:00:45 +00:00
parent 58a636e24c
commit 64d43d8706
5 changed files with 104 additions and 114 deletions

View File

@@ -49,7 +49,7 @@
<v-card-text style="height: 500px;">
{{ settings }}
<v-select
v-model="localSettings.dateRange"
v-model="localSettings.timeSpan"
:items="selectLists.dateFilterTokens"
item-text="name"
item-value="id"
@@ -57,7 +57,7 @@
></v-select>
<v-select
v-model="localSettings.unit"
v-model="localSettings.interval"
:items="selectLists.units"
item-text="name"
item-value="id"
@@ -126,7 +126,7 @@ export default {
{
type: "time",
time: {
unit: this.settings.unit
unit: this.settings.interval
},
gridLines: {
drawOnChartArea: false
@@ -181,8 +181,8 @@ export default {
updateSettings: function() {
//copy settings from local to
this.settings.customTitle = this.localSettings.customTitle;
this.settings.dateRange = this.localSettings.dateRange;
this.settings.unit = this.localSettings.unit;
this.settings.timeSpan = this.localSettings.timeSpan;
this.settings.interval = this.localSettings.interval;
this.settings.color = this.localSettings.color;
this.$emit("dash-change");
@@ -235,8 +235,8 @@ ORDER BY timeframe ASC
// let tt = {
// KPIName: "WorkOrderItemLaborQuantitySummary",
// criteria: {
// dateRange: this.settings.dateRange,
// unit: this.settings.unit
// timeSpan: this.settings.timeSpan,
// interval: this.settings.interval
// },
// clientTimeStamp: window.$gz.locale.clientLocalZoneTimeStamp()
// };
@@ -247,8 +247,8 @@ ORDER BY timeframe ASC
const res = await window.$gz.api.post("kpi", {
KPIName: "WorkOrderItemLaborQuantitySummary",
criteria: {
dateRange: this.settings.dateRange,
unit: this.settings.unit
timeSpan: this.settings.timeSpan,
interval: this.settings.interval
},
clientTimeStamp: window.$gz.locale.clientLocalZoneTimeStamp()
});
@@ -411,7 +411,7 @@ function populateSelectionLists(vm) {
);
}
/*
var crit=(string)options.Criteria["dateRange"];
var crit=(string)options.Criteria["timeSpan"];
*/
</script>