This commit is contained in:
@@ -55,8 +55,6 @@ todo: //NEW NOTIFICATION SUBSCRIPTION EVENT TYPE:
|
|||||||
BACKEND
|
BACKEND
|
||||||
|
|
||||||
|
|
||||||
todo: remove fetched date column from notification table? (doesn't appear to be used in current system)
|
|
||||||
although, would be useful for bolding new items maybe?
|
|
||||||
|
|
||||||
todo: BAckend server routes for App notification fetch and clear etc
|
todo: BAckend server routes for App notification fetch and clear etc
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<h1>New notification count: {{ newNotificationCount() }}</h1>
|
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||||
|
{{ obj }}
|
||||||
<v-list three-line>
|
<v-list three-line>
|
||||||
<v-list-item> </v-list-item>
|
<v-list-item> </v-list-item>
|
||||||
</v-list>
|
</v-list>
|
||||||
@@ -29,6 +30,17 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
obj: [],
|
||||||
|
formState: {
|
||||||
|
ready: false,
|
||||||
|
dirty: false,
|
||||||
|
valid: true,
|
||||||
|
readOnly: false,
|
||||||
|
loading: true,
|
||||||
|
errorBoxMessage: null,
|
||||||
|
appError: null,
|
||||||
|
serverError: {}
|
||||||
|
},
|
||||||
rights: window.$gz.role.defaultRightsObject()
|
rights: window.$gz.role.defaultRightsObject()
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -36,12 +48,10 @@ export default {
|
|||||||
async getDataFromApi() {
|
async getDataFromApi() {
|
||||||
let vm = this;
|
let vm = this;
|
||||||
|
|
||||||
|
|
||||||
let url = API_BASE_URL + recordId;
|
|
||||||
try {
|
try {
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
||||||
|
|
||||||
let res = await window.$gz.api.get(url);
|
let res = await window.$gz.api.get("notify/app-notifications");
|
||||||
|
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
//Not found?
|
//Not found?
|
||||||
@@ -154,4 +164,55 @@ function generateMenu(vm) {
|
|||||||
// });
|
// });
|
||||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||||
}
|
}
|
||||||
|
/////////////////////////////////
|
||||||
|
//
|
||||||
|
//
|
||||||
|
async function initForm(vm) {
|
||||||
|
//await fetchTranslatedText(vm);
|
||||||
|
//await populateSelectionLists(vm);
|
||||||
|
}
|
||||||
|
|
||||||
|
// //////////////////////////////////////////////////////////
|
||||||
|
// //
|
||||||
|
// // Ensures UI translated text is available
|
||||||
|
// //
|
||||||
|
// async function fetchTranslatedText(vm) {
|
||||||
|
// await window.$gz.translation.cacheTranslations([
|
||||||
|
// "Widget",
|
||||||
|
// "WidgetName",
|
||||||
|
// "WidgetSerial",
|
||||||
|
// "WidgetDollarAmount",
|
||||||
|
// "WidgetCount",
|
||||||
|
// "User",
|
||||||
|
// "UserType",
|
||||||
|
// "WidgetStartDate",
|
||||||
|
// "WidgetEndDate",
|
||||||
|
// "WidgetNotes",
|
||||||
|
// "WidgetCustom1",
|
||||||
|
// "WidgetCustom2",
|
||||||
|
// "WidgetCustom3",
|
||||||
|
// "WidgetCustom4",
|
||||||
|
// "WidgetCustom5",
|
||||||
|
// "WidgetCustom6",
|
||||||
|
// "WidgetCustom7",
|
||||||
|
// "WidgetCustom8",
|
||||||
|
// "WidgetCustom9",
|
||||||
|
// "WidgetCustom10",
|
||||||
|
// "WidgetCustom11",
|
||||||
|
// "WidgetCustom12",
|
||||||
|
// "WidgetCustom13",
|
||||||
|
// "WidgetCustom14",
|
||||||
|
// "WidgetCustom15",
|
||||||
|
// "WidgetCustom16"
|
||||||
|
// ]);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// //////////////////////
|
||||||
|
// //
|
||||||
|
// //
|
||||||
|
// async function populateSelectionLists(vm) {
|
||||||
|
// //ensure the pick lists required are pre-fetched
|
||||||
|
// await window.$gz.enums.fetchEnumList("usertype");
|
||||||
|
// vm.selectLists.usertypes = window.$gz.enums.getSelectionList("usertype");
|
||||||
|
// }
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -234,12 +234,12 @@ export default {
|
|||||||
userId: this.$store.state.userId,
|
userId: this.$store.state.userId,
|
||||||
ayaType: 0,
|
ayaType: 0,
|
||||||
eventType: 0,
|
eventType: 0,
|
||||||
advanceNotice: null,
|
advanceNotice: "00:00:00",
|
||||||
idValue: null,
|
idValue: 0,
|
||||||
decValue: null,
|
decValue: 0,
|
||||||
deliveryMethod: 0,
|
deliveryMethod: 0,
|
||||||
deliveryAddress: null,
|
deliveryAddress: null,
|
||||||
attachReportId: null,
|
attachReportId: 0,
|
||||||
inTags: []
|
inTags: []
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user