This commit is contained in:
@@ -62,7 +62,7 @@ DONE: ADD NEW WIDGET
|
||||
- ID 0 maybe
|
||||
DONE: New widget exposes issue with empty dates and the picker, it gives an error if the date is empty
|
||||
|
||||
### TODO: DUPLICATE
|
||||
DONE: DUPLICATE
|
||||
- Make it work, maybe server should do the duplicating and just return a record when user selects this, a duplicate route
|
||||
TODO: Reports - stub out
|
||||
- Stub out some fake reports in a drop down selection for testing, doesn't have to do anything but be present
|
||||
|
||||
28
ayanova/src/api/gzreport.js
Normal file
28
ayanova/src/api/gzreport.js
Normal file
@@ -0,0 +1,28 @@
|
||||
export default {
|
||||
/////////////////////////////////////////////////////////
|
||||
//
|
||||
// GET REPORT LIST FOR REPORT KEY SPECIFIED
|
||||
// available to current user logged in
|
||||
availableReports: function(reportKey) {
|
||||
//STUB: this will need to hit the server to get the info required
|
||||
return [
|
||||
{ name: "First test report " + reportKey, id: 1 },
|
||||
{ name: "Some other report " + reportKey, id: 2 },
|
||||
{ name: "Sample report " + reportKey, id: 3 },
|
||||
{ name: "Bob's personal report, it's a good one! " + reportKey, id: 4 },
|
||||
{ name: "Test report five " + reportKey, id: 5 },
|
||||
{ name: "Test report six " + reportKey, id: 6 },
|
||||
{ name: "Test report seven " + reportKey, id: 7 },
|
||||
{ name: "Test report eight " + reportKey, id: 8 },
|
||||
{ name: "Test report nine " + reportKey, id: 9 },
|
||||
{ name: "Test report ten " + reportKey, id: 10 },
|
||||
{ name: "Test report eleven " + reportKey, id: 11 },
|
||||
{ name: "Test report twelve " + reportKey, id: 12 },
|
||||
{ name: "Test report thirteen " + reportKey, id: 13 },
|
||||
{ name: "Test report fourteen " + reportKey, id: 14 },
|
||||
{ name: "Test report fifteen " + reportKey, id: 15 },
|
||||
{ name: "Test report sixteen " + reportKey, id: 16 },
|
||||
{ name: "Test report seventeen " + reportKey, id: 17 }
|
||||
];
|
||||
}
|
||||
};
|
||||
@@ -23,6 +23,7 @@ import gzdialog from "./api/gzdialog";
|
||||
import gzutil from "./api/gzutil";
|
||||
import locale from "./api/locale";
|
||||
import gzapi from "./api/gzapi";
|
||||
import gzreport from "./api/gzreport";
|
||||
import gzform from "./api/gzform";
|
||||
import roles from "./api/authorizationroles";
|
||||
import gztype from "./api/ayatype";
|
||||
@@ -44,6 +45,7 @@ Object.defineProperty(Vue.prototype, "$_", { value: lodash });
|
||||
Object.defineProperty(Vue.prototype, "$gzlocale", { value: locale });
|
||||
Object.defineProperty(Vue.prototype, "$gzapi", { value: gzapi });
|
||||
Object.defineProperty(Vue.prototype, "$gzform", { value: gzform });
|
||||
Object.defineProperty(Vue.prototype, "$gzreport", { value: gzreport });
|
||||
Object.defineProperty(Vue.prototype, "$gzHandleFormError", {
|
||||
value: errorHandler.handleFormError
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user