customer docs

This commit is contained in:
2022-03-31 22:35:14 +00:00
parent ec185874fd
commit 4cd82e0214
4 changed files with 24 additions and 5 deletions

View File

@@ -272,9 +272,9 @@ export default {
navItems() { navItems() {
return this.$store.state.navItems; return this.$store.state.navItems;
}, },
helpUrl() { // helpUrl() {
return window.$gz.api.helpUrl(); // return window.$gz.api.helpUrl();
}, // },
titleDisplay() { titleDisplay() {
if (this.appBar.title == null || this.appBar.title == "") { if (this.appBar.title == null || this.appBar.title == "") {
return null; return null;

View File

@@ -295,6 +295,16 @@ export default {
} }
return window.location.protocol + "//" + window.location.host + "/docs/"; return window.location.protocol + "//" + window.location.host + "/docs/";
}, },
helpUrlCustomer() {
if (
window.$gz.dev &&
window.location.hostname == "localhost" &&
window.location.port == "8080"
) {
return "http://localhost:7575/cust/";
}
return window.location.protocol + "//" + window.location.host + "/cust/";
},
///////////////////////////// /////////////////////////////
// Just the server itself // Just the server itself
// used by profiler etc // used by profiler etc

View File

@@ -314,8 +314,17 @@ export default {
if (!item.disabled && item.owner == "app") { if (!item.disabled && item.owner == "app") {
switch (item.key) { switch (item.key) {
case "help": case "help":
window.open(window.$gz.api.helpUrl() + item.data, "_blank"); if (item.data.includes("~customer~")) {
window.open(
window.$gz.api.helpUrlCustomer() +
item.data.replace("~customer~", ""),
"_blank"
);
} else {
window.open(window.$gz.api.helpUrl() + item.data, "_blank");
}
break; break;
case "search": case "search":
vm.$router.push({ vm.$router.push({
name: "home-search", name: "home-search",

View File

@@ -74,7 +74,7 @@ function generateMenu(vm) {
isMain: true, isMain: true,
icon: "$ayiConciergeBell", icon: "$ayiConciergeBell",
title: "CustomerServiceRequestList", title: "CustomerServiceRequestList",
helpUrl: "customer-csr", helpUrl: "~customer~customer-csr",
hideSearch: true, hideSearch: true,
menuItems: [], menuItems: [],
formData: { formData: {