1. 管理页

  • 工作台

    {http}://{ip}:{port}/{lczServer}/lczMatrix/index.html?扩展参数#/{targetVolume}/{auth}

  • 管理中心

    {http}://{ip}:{port}/{lczServer}/lczMatrix/index.html?扩展参数#/widgetManage/{targetVolume}/{auth}

  • 部件超市

    {http}://{ip}:{port}/{lczServer}/lczMatrix/index.html?扩展参数#/widgetMarket/{auth}

2. 设计页

{http}://{ip}:{port}/{lczServer}/lczMatrix/index.html?扩展参数#/deisgn/{fileName}/{targetVolume}/{auth}/{panelId?}/{screenId?}

3. 预览页

  • 大屏

    {http}://{ip}:{port}/{lczServer}/lczMatrix/index.html?扩展参数#/preview/{fileName}/{targetVolume}/{authId}/{fileAlias?}/{variables?}

  • 部件

    {http}://{ip}:{port}/{lczServer}/lczMatrix/index.html?扩展参数#/panel/{fileName}/{targetVolume}/{authId}/{screenId}/{panelPageType?}/{fileAlias?}/{variables?}

4. 发布页 (>=v685)

{http}://{ip}:{port}/{lczServer}/lczMatrix/index.html?扩展参数#/publish/{releaseId}

5. 链接大屏

  • fileKey版

    {http}://{ip}:{port}/{lczServer}/lczMatrix/index.html?扩展参数#/publish/link/{fileKey}/p/{authId}/{fileAlias}/{variables?}

    注:(fileKey需要encodeURIComponent, p为占位符,固定死的)

  • fileName版

    {http}://{ip}:{port}/{lczServer}/lczMatrix/index.html?扩展参数#/publish/link/{fileName}/{targetVolume}/{authId}/{fileAlias}/{variables?}

  • v加密版

    {http}://{ip}:{port}/{lczServer}/lczMatrix/index.html?t=xxxx&v=xxxxx&fileKey=xxxxx&privilege_type=xxxx#/publish/link

    • t: 随机4位UUID
    • v:authId=xxxx&fileAlias=xxxx&validateVariants=xxxx&variants=xxxx
    • fileKey: 由fileName和targetVolume生成的文件key
    • privilege_type:继承的话取父模板的privilege_type,自定义的话取当前链接对象里的privilege_type,当前没有的话默认是default

6. 基础参数

参数 类型 说明
fileName string 文件名称
targetVolume string 应用名称
fileAlias string 超链接传递的标题名称 (base64编码字符串)
variables string 超链接传递的大屏变量 (base64编码字符串对象)
panelId string 面板ID
screenId string 场景ID,也可以理解为面板的状态ID
panelPageType string “panel” or “widget” (主要用来区分是部件还是动态面板的)
auth string 内部菜单权限相关,base64编码的字符串对象

7. 扩展参数

7.1 认证参数

参数 类型 说明 备注
authId string 认证ID(优先级大于内部访问的auth)
validateVariants string 传入第三方认证的认证类型
privilege_type string 传入第三方认证的认证类型
v string 第三方认证加密参数
加密前:v=参数1=xx&参数2=xx
加密后: v=JgHygpx8a38Coml0Yvv12OM9X3cTeW..
1. 仅支持超链接大屏和发布页
2. 版本 >= v6.8.9

7.2 前端参数

参数 类型 说明 备注
variants string 大屏变量
格式:变量1=xx;变量2={xx};变量n=xx
注:xx使用’{}’时,代表xx是js表达式,简单示例如下
// 例如:对发布页的大屏变量(变量1和变量2)赋值
const variants = encodeURIComponent('变量1=2019;变量2=1')
let url = 'http://x.x.x.x:2222/HappyServer/lczMatrix/index.html#/publish/360e3788fe7c456186a3'
url = url.replace(/index.html/, match => match + '?variants=' + variants)

console.log(url)
// 最终输出 http://x.x.x.x:2222/HappyServer/lczMatrix/index.html?variants=%E5%B9%B4%E4%BB%BD%3D2019%3B%E6%9C%88%E4%BB%BD%3D1#/publish/360e3788fe7c456186a3

注意:无论是认证参数v里的variants或直接用variants对大屏变量进行赋值,由于涉及中文字符或乱码等问题,都需要对variants的值进行encodeURIComponent()编码

作者:wa222  创建时间:2023-08-08 10:39
最后编辑:wa222  更新时间:2025-02-07 17:25