This commit is contained in:
2021-01-05 01:05:57 +00:00
parent 37d9a3e9bc
commit 3c3264a123
4 changed files with 17 additions and 32 deletions

View File

@@ -267,7 +267,7 @@
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
const FORM_KEY = "unitmodel-edit";
const FORM_KEY = "unit-model-edit";
const API_BASE_URL = "unit-model/";
const FORM_CUSTOM_TEMPLATE_KEY = "UnitModel"; //<-- Should always be CoreBizObject AyaType name here where possible
@@ -518,7 +518,7 @@ export default {
//NOTE: will not cause a page re-render, almost nothing does unless forced with a KEY property or using router.GO()
this.$router.push({
name: "unitmodel-edit",
name: "unit-model-edit",
params: {
recordid: res.data.id,
obj: res.data // Pass data object to new form
@@ -609,7 +609,7 @@ export default {
} else {
//Navigate to new record
this.$router.push({
name: "unitmodel-edit",
name: "unit-model-edit",
params: {
recordid: res.data.id,
obj: res.data // Pass data object to new form
@@ -647,7 +647,7 @@ async function clickHandler(menuItem) {
break;
case "new":
m.vm.$router.push({
name: "unitmodel-edit",
name: "unit-model-edit",
params: { recordid: 0, new: true }
});
break;

View File

@@ -64,7 +64,7 @@ async function clickHandler(menuItem) {
switch (m.key) {
case "new":
m.vm.$router.push({
name: "unitmodel-edit",
name: "unit-model-edit",
params: { recordid: 0 }
});
break;