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