This commit is contained in:
2022-06-23 00:47:29 +00:00
parent 59a899a571
commit bc4a1667cc

View File

@@ -28,14 +28,6 @@
@change="fieldValueChanged('active')"
></v-checkbox>
</v-col>
<v-col v-if="form().showMe(this, 'Attachments') && obj.id" cols="12">
<gz-attachments
:readonly="formState.readOnly"
:aya-type="ayaType"
:aya-id="obj.id"
></gz-attachments
></v-col>
</v-row>
</v-form>
</div>
@@ -167,7 +159,7 @@ export default {
try {
window.$gz.form.deleteAllErrorBoxErrors(vm);
const res = await window.$gz.api.get(
API_BASE_URL + "/by-dbid/" + recordId
API_BASE_URL + "by-dbid/" + recordId
);
if (res.error) {
if (res.error.code == "2010") {
@@ -253,7 +245,7 @@ export default {
JUST_DELETED = true;
this.$router.go(-1);
} else {
const url = API_BASE_URL + "/by-dbid/" + this.$route.params.recordid;
const url = API_BASE_URL + "by-dbid/" + this.$route.params.recordid;
window.$gz.form.deleteAllErrorBoxErrors(this);
const res = await window.$gz.api.remove(url);
if (res.error) {
@@ -309,13 +301,14 @@ function generateMenu(vm) {
const menuOptions = {
isMain: false,
readOnly: vm.formState.readOnly,
hideCoreBizStandardOptions: true,
hideSearch: true,
icon: "$ayiCampground",
title: "Integration",
helpUrl: "integrations",
formData: {
ayaType: window.$gz.type.Integration,
recordId: vm.$route.params.recordid,
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
recordName: vm.obj.name
},
menuItems: []
@@ -350,9 +343,9 @@ let JUST_DELETED = false;
/////////////////////////////////
//
//
async function initForm(vm) {
async function initForm() {
await fetchTranslatedText();
await window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY, vm);
// await window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY, vm);
}
//////////////////////////////////////////////////////////