新增打开为空白,哪有问题?


//初始化控件

useFun.controlInit('FormView', 'formView_80334', {

 formId: '2017043467465613314', //表单设计id

 formType: 'add', //表单类型 add | edit | view

 handleType: 'returnData', //处理类型 default | returnData

 showType: 'drawer', //弹窗类型 dialog | drawer

 showButton: true, //是否显示底部默认操作按钮

 dataOption: { //数据配置

   tableId: '2017043467465613314', //表单开发id

   dataId: '2017043467465613314' //数据id

 },

 defaultData: {}, //默认表单数据

 enhanceData: {}, //传递给表单js增强内部调用配置

 popOption: { //弹窗配置

   title: '批量新增', //标题

   width: '80%', //弹窗宽度

   fullscreen: false, //是否全屏

   footerBtnAlign: 'right', //底部按钮对齐方式

   footerBtn: [ //底部按钮配置

     {

       params: {}, //el-button 其他参数

       name: '测试按钮', //按钮名称

       display: true, //是否显示

       loading: true, //点击时是否有loading

       icon: '', //图标

       clickFun: (loading) => {

         //点击事件

         if (loading) loading() //关闭loading

       }

     }

   ],

   headerBtn: [], //顶部按钮配置(配置同上)

   dialogParams: {} //弹窗其他配置

 },

 beforeClose: async (type, done, formData, loading) => {

   // type:关闭类型  submit:提交后触发  close:直接关闭弹窗触发

   // done:关闭弹窗方法 formData:表单数据  loading:关闭loading方法

   if (type == 'submit') {

     await useFun.requestApi('post', '/jeelowcode/dbform-data/save/batch/2017043467465613314', {

       data: formData.batchData,

     })

     useFun.resetChange()

   }

   done()

 }

})

//控件调用

const { formView_80334 } = Vue.toRefs(rendControlData.value)

formView_80334.value.show = true //显示FormView

const controlData = formView_80334.value.params //FormView的配置

// componentRef.value.formView_80334 FormView的Ref控件引用

return {

 addbtn1() {

   formView_80334.value.show = true

 }


}

评论区

超级管理员 2026-01-30 13:43

演示复现 或者看一下控制台有没有报错或者提醒之类的

回复

扫码关注

添加客服
图片未加载,请刷新后再试
联系我们