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