This commit is contained in:
2020-08-06 18:06:23 +00:00
parent 2c73d866bc
commit 66ec595b7d
2 changed files with 27 additions and 9 deletions

View File

@@ -95,10 +95,35 @@ export default {
});
break;
case ayatype.FormCustom:
//all we have is the id, but need the formkey to open it
(async () => {
try {
let res = await window.$gz.api.get(
"form-custom/form-key/" + tid.id
);
if (res.error) {
throw res.error;
}
if (res && res.data) {
vm.$router.push({
name: "ay-customize",
params: { formCustomTemplateKey: res.data }
});
return;
}
} catch (e) {
throw e;
}
})();
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",
"open-object-handler: unrecognized type [" + tid.type + "]"
`open-object-handler: unknown [${tid.type},${tid.id}]`
);
}
}