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