master
xy 3 years ago
parent 8d3e1ae1d4
commit 30679a5ec7

@ -60,7 +60,7 @@ export default {
},
},
this.$scopedSlots[i.field]
? this.$scopedSlots[i.field]({ fieldInfo: i, form: this.form })
? this.$scopedSlots[i.field]({ fieldInfo: i, form: this.form, file: this.file })
: [
h(
domMap.get(i.edit_input),

@ -5,7 +5,7 @@
<div ref="lxHeader">
<LxHeader
icon="md-apps"
:text="title || customForm.tableName"
:text="$route.meta.title"
style="margin-bottom: 10px; border: 0px; margin-top: 15px"
>
<div slot="content"></div>
@ -314,7 +314,6 @@ export default {
},
data() {
return {
title: "",
op,
select: {
table_name: "",
@ -401,7 +400,6 @@ export default {
}
const res = await show({ id: this.customForm.customFormId }, false);
this.title = res.name;
//
//
@ -455,33 +453,6 @@ export default {
});
this.form = fields;
console.log(111, this.form);
// if(res.fields && res.fields instanceof Array) {
// res.fields.forEach(i => {
// if (i.field) {
// if (
// (i.edit_input === "checkbox" || i.edit_input === "radio" || i.edit_input === "select") &&
// i.parameter_id
// ) {
// getparameter({ id: i.parameter_id }).then((res) => {
// i._paramters = res.detail ?? [];
// });
// }
// if (
// (i.edit_input === "checkbox" || i.edit_input === "radio" || i.edit_input === "select") &&
// i.link_table_name
// ) {
// index({
// page: 1,
// page_size: 999,
// table_name: i.link_table_name,
// }).then((res) => {
// i._paramters = res.data ?? [];
// });
// }
// }
// })
// }
// this.form = res.fields
this.table = this.form
?.filter((i) => i.list_show)
.map((i) => {

Loading…
Cancel
Save