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

部门组件 传的是部门id不能用于sys_org_code范围筛选 #5139

Closed
Feng-Xg opened this issue Jul 11, 2023 · 5 comments
Closed

部门组件 传的是部门id不能用于sys_org_code范围筛选 #5139

Feng-Xg opened this issue Jul 11, 2023 · 5 comments

Comments

@Feng-Xg
Copy link

Feng-Xg commented Jul 11, 2023

版本号:

3.5.2

前端版本:vue3版?还是 vue2版?

VUE3

问题描述:

表单开发,控件选择‘部门选择’,查询选中部门,送到后端的值是部门id,而非org_code。数据表中sys_org_code字段存储的是org_code。无法进行匹配得到有效数据。

截图&代码:

image
image

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

  • 未按格式要求发帖,会被直接删掉;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
@Feng-Xg
Copy link
Author

Feng-Xg commented Jul 12, 2023

image 允许自定义 https://help.jeecg.com/online/form/component1.html#4-%E7%94%A8%E6%88%B7%E9%80%89%E6%8B%A9--%E9%83%A8%E9%97%A8%E9%80%89%E6%8B%A9

这儿只是配置的数据字典参数,问题是在查询的部门选择组件那儿,表单定义不能更改传给后端org_code。看后端代码,给组件value传的也是id,这儿需要调整。
image
image

@zhangdaiscott
Copy link
Member

自定义配置code了,但是查询的控件传递的是ID,是这个意思吗?

@zhangdaiscott zhangdaiscott reopened this Jul 12, 2023
@Feng-Xg
Copy link
Author

Feng-Xg commented Jul 13, 2023

自定义配置code了,但是查询的控件传递的是ID,是这个意思吗?

是的,需要更改给前端传的key值为orgCode就可以了。页面属性扩展的只针对查询列表字典值生效

@tygithub1
Copy link

已修改

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