const { loadCmp, useCompModal } = configs.utils;
// 获取资源组件
const Logs = loadCmp({ sourceName: '资源名称' , exposesKey: '资源导出名称' });
useCompModal(Logs, {
  // 弹窗配置,跟随antd-modal
  title: '查看日志',
  onOk: () => {
      return true;
  },
  width: '70%',
  bodyStyle: { minHeight: 500, height: 500, padding: 0 },
  didMount: (ref) => {
    console.log('configs', configs, ref)
    const { id } = configs.data.extraData.record;
    ref?.showViewLogs({
      billIds: id
    });
  }
}, {
  // 组件入参
  prodLine: 'SD'
});
作者:黄允桢  创建时间:2022-10-24 16:29
最后编辑:黄允桢  更新时间:2024-12-11 10:09