Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下拉树数据源展示问题 #1775

Closed
dylvs opened this issue May 24, 2023 · 3 comments
Closed

下拉树数据源展示问题 #1775

dylvs opened this issue May 24, 2023 · 3 comments

Comments

@dylvs
Copy link

dylvs commented May 24, 2023

版本号:1.5.8
问题描述:下拉树数据源展示只有一个父子关系,呈现多组错乱显示效果。另外配置的数据字典在查询栏会显示英文名称

image

错误日志&截图:

image
image

重现步骤:

{'loadTree':'http:********/project/getDictTreeProj?dictCode=dict_proj'}
后台api接口返回的数据结构pid为空也会出现上述图片结果
[{"title":"华城荷坳发展有限公司","value":"2","pid":"0","id":"o_2"},{"title":"华城荷坳项目","value":"1","pid":"o_2","id":"p_1"}]

友情提示(为了提高issue处理效率):

  • 积木报表是一款免费报表产品,功能免费源码不开放;
  • 未按格式要求发帖,会被直接删掉;
  • 请针对问题提供报表设计SQL脚本或在官网制作报表示例并提供ID;
  • 针对不好重现的问题,请录制操作视频或详细的重现步骤;
@dylvs
Copy link
Author

dylvs commented May 24, 2023

api接口需要初始化加载时带入pid参数,并且初始化时只展示一级数据进行过滤。因为折叠标签点击一下就需要调一次后台方法。此处应该可以优化,一次性查出所有JSON数据之后再就不需要频繁与后台方法进行交互。

@dylvs dylvs closed this as completed May 24, 2023
@dylvs dylvs reopened this May 30, 2023
@lvdandan16
Copy link
Collaborator

归档

@BO-DI
Copy link

BO-DI commented Dec 9, 2024

api接口需要初始化加载时带入pid参数,并且初始化时只展示一级数据进行过滤。因为折叠标签点击一下就需要调一次后台方法。此处应该可以优化,一次性查出所有JSON数据之后再就不需要频繁与后台方法进行交互。

请问,查询下拉树的参数配置,数据集用的api,我用固定值可以,动态参数怎么传呢
image
我用#号没值,用$确实字符串的参数变量不生效。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants