This commit is contained in:
2022-02-25 00:41:54 +00:00
parent 2d4a7f1f9e
commit 69c44a5387

View File

@@ -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();
}
}
}
};