This commit is contained in:
@@ -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}]`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user