This commit is contained in:
2020-05-13 22:53:52 +00:00
parent 8c5d2f1e1d
commit a21d2ead6a
5 changed files with 10 additions and 10 deletions

View File

@@ -57,7 +57,7 @@ export default {
} }
}, },
fetch(enumKey) { fetch(enumKey) {
return window.$gz.api.get("EnumList/List/" + enumKey).then(res => { return window.$gz.api.get("enum-list/list/" + enumKey).then(res => {
if (res.error) { if (res.error) {
throw res.error; throw res.error;
} }

View File

@@ -348,7 +348,7 @@ export default {
props: { props: {
apiBaseUrl: { apiBaseUrl: {
type: String, type: String,
default: "DataList" default: "data-list"
}, },
formKey: String, formKey: String,
dataListKey: String, dataListKey: String,

View File

@@ -1160,9 +1160,9 @@ function populateSelectionLists(vm) {
//////////////////// ////////////////////
// //
function populateFieldDefinitions(vm) { function populateFieldDefinitions(vm) {
//http://localhost:7575/api/v8/DataList/ListFields?DataListKey=TestWidgetDataList //http://localhost:7575/api/v8/data-list/listfields?DataListKey=TestWidgetDataList
return window.$gz.api return window.$gz.api
.get("DataList/ListFields?DataListKey=" + vm.dataListKey) .get("data-list/listfields?DataListKey=" + vm.dataListKey)
.then(res => { .then(res => {
if (res.error) { if (res.error) {
throw res.error; throw res.error;

View File

@@ -108,7 +108,7 @@
//////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
const FORM_KEY = "ay-history"; const FORM_KEY = "ay-history";
const API_BASE_URL = "EventLog/"; const API_BASE_URL = "event-log/";
const DEFAULT_EVENTS_PAGE_SIZE = 200; const DEFAULT_EVENTS_PAGE_SIZE = 200;
export default { export default {
created() { created() {
@@ -253,15 +253,15 @@ export default {
let url = null; let url = null;
vm.page += 1; vm.page += 1;
//path: "/history/:ayatype/:recordid/:userlog?" //path: "/history/:ayatype/:recordid/:userlog?"
///EventLog/UserLog?UserId=2&Offset=2&Limit=2 ///event-log/UserLog?UserId=2&Offset=2&Limit=2
///EventLog/ObjectLog?AyType=2&AyId=2&Offset=2&Limit=2 ///event-log/ObjectLog?AyType=2&AyId=2&Offset=2&Limit=2
if (vm.$route.params.userlog) { if (vm.$route.params.userlog) {
url = API_BASE_URL + "UserLog?UserId=" + vm.$route.params.recordid; url = API_BASE_URL + "userlog?UserId=" + vm.$route.params.recordid;
} else { } else {
url = url =
API_BASE_URL + API_BASE_URL +
"ObjectLog?AyType=" + "objectlog?AyType=" +
vm.$route.params.ayatype + vm.$route.params.ayatype +
"&AyId=" + "&AyId=" +
vm.$route.params.recordid; vm.$route.params.recordid;

View File

@@ -389,7 +389,7 @@ function fetchTranslatedText(vm) {
// //
// //
function populateSelectionLists(vm) { function populateSelectionLists(vm) {
return window.$gz.api.get("EnumList/List/Core").then(res => { return window.$gz.api.get("enum-list/list/Core").then(res => {
if (res.error) { if (res.error) {
window.$gz.errorHandler.handleFormError(res.error, vm); window.$gz.errorHandler.handleFormError(res.error, vm);
} else { } else {