diff --git a/src/views/component/dialog.vue b/src/views/component/dialog.vue index d06cfdf..c40e792 100644 --- a/src/views/component/dialog.vue +++ b/src/views/component/dialog.vue @@ -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), diff --git a/src/views/component/table.vue b/src/views/component/table.vue index 27b4648..0b481cd 100644 --- a/src/views/component/table.vue +++ b/src/views/component/table.vue @@ -5,7 +5,7 @@
@@ -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) => {