场景说明

A系统中的天舟云详情页被集成到B系统中的天舟云详情页

B系统中如何集成

<LCPDetailTemplate
        {...{
          ref: formRef as any,
           // A系统天舟云应用id
          appId: 'appId',
           //  A系统天舟云租户id
          tenantId: 'tenantId',
           //  A系统天舟云表单分类id
          classId: 'classId',
           // A系统天舟云表单实利id
          pageId: record?.id || 'pageId',
           // 传入渲染元配置
          metaConfig: {
             // 传入上下文数据:登陆人账号信息、登陆人组织信息
            contextData: {
              ...(expendOrg || {}),
            },
             // 传入劫持的请求实例信息
            axios: {
              headers: {
                common: {
                     // A系统天舟云应用id
                  'x-app-id': 'appId',
                     //  A系统天舟云租户id
                  'x-tenant-id': 'tenantId',
                },
              },
            } as any,
             // 传入A系统请求转发前缀配置
             serverApiConfig: {
                lcpHub: {
                    // 填写集成到B系统工程中定义的转发A系统地址前缀
                    url: '/apis/common/proxy/lcpHub'
                } as AxiosRequestConfig,
                // lcpCore, lcpAnnex, lcpApp, lcpData
             }
          },
        }}
      />
作者:袁子涵  创建时间:2025-01-10 10:11
最后编辑:袁子涵  更新时间:2025-05-12 18:04