This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
:show-context-button="true"
|
:show-context-button="true"
|
||||||
:update-frequency="600000"
|
:update-frequency="600000"
|
||||||
v-bind="[$props, $attrs]"
|
v-bind="[$props, $attrs]"
|
||||||
@dash-refresh="loadData"
|
@dash-refresh="getDataFromApi()"
|
||||||
@dash-context="showContext()"
|
@dash-context="showContext()"
|
||||||
v-on="$listeners"
|
v-on="$listeners"
|
||||||
>
|
>
|
||||||
@@ -136,19 +136,22 @@ ORDER BY timeframe ASC
|
|||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
// try {
|
try {
|
||||||
// this.errorMessage = null;
|
this.errorMessage = null;
|
||||||
// const res = await window.$gz.api.post("schedule/personal", {
|
const res = await window.$gz.api.post("kpi", {
|
||||||
// view: 1
|
name: "WorkOrderItemLaborQuantitySummary",
|
||||||
// });
|
|
||||||
// if (res.error) {
|
criteria: JSON.stringify({ test: 12, blah: "blahbittyblahblahblah" }),
|
||||||
// this.errorMessage = res.error;
|
clientTimeStamp: window.$gz.locale.clientLocalZoneTimeStamp()
|
||||||
// } else {
|
});
|
||||||
// //for later
|
if (res.error) {
|
||||||
// }
|
this.errorMessage = res.error;
|
||||||
// } catch (error) {
|
} else {
|
||||||
// this.errorMessage = error.toString();
|
console.log(res);
|
||||||
// }
|
}
|
||||||
|
} catch (error) {
|
||||||
|
this.errorMessage = error.toString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user