Quellcode durchsuchen

fix: 子表单查询

linweizeng vor 3 Jahren
Ursprung
Commit
f3c4b8d6de

+ 2 - 0
src/business/platform/form/formrender/dynamic-form/dynamic-form-table.vue

@@ -288,6 +288,7 @@ export default {
     tableType =  this.field.field_options.mode || 'inner'
     /* 由于内容遍历卡顿问题,需再建个中间对象进行渲染.*/
     return {
+      editFromType: 'add', //列表编辑弹出框类型
       npmDialogFormVisible: false, // 弹窗
       defId: '', // 编辑dialog需要使用
       currentPage:1,
@@ -616,6 +617,7 @@ export default {
       this.actionPosition = button.position || 'toolbar'
       // 前置事件
       this.beforeScript(button, index, (result) => {
+        this.editFromType = button.key
         if (!result) {
           return
         }