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

[Bug]前后端分离React版本,表单中下拉列表、复选列表数据引用另外一张表的字段时,初始值不正确 #19

Closed
liaoyongxiong opened this issue Apr 30, 2019 · 1 comment
Labels
question Further information is requested

Comments

@liaoyongxiong
Copy link

1、环境
数据库:PostgreSQL
前后端分离React版本
github上拉的WTM代码,执行里面的WalkingTec.Mvvm.ApiDemo项目
2、执行步骤
1)对Major、Student、School模型依次生成专业管理、学生管理、学校管理的CRUD前后端代码;
2)增加一条学校信息:北京大学,如下图
屏幕快照 2019-04-30 10 35 46

3)增加一条学生信息:张三
屏幕快照 2019-04-30 10 44 52

4)问题:进入专业管理,新增专业,表单中所属学校下拉列表、学生复选框没有显示2)、3)步增加的学校、学生,如下图
屏幕快照 2019-04-30 10 36 08

5)退出前后台程序重新启动运行前后台后,进入专业管理,新增专业,表单中所属学校下拉列表、学生复选框正常显示了之前添加的学生,但是学校还是显示不出来,如下图:

屏幕快照 2019-04-30 11 05 15

@liaoyongxiong liaoyongxiong changed the title [Bug]前后端分离React版本,表单中下拉列表、复选列表数据引用另外一张表的字段时,初始终值不正确 [Bug]前后端分离React版本,表单中下拉列表、复选列表数据引用另外一张表的字段时,初始值不正确 Apr 30, 2019
@liuliang-wt
Copy link
Collaborator

@liaoyongxiong

  1. 新生成的后台代码需要重新启动后台才能生效
  2. apidemo中的program.cs里定义了学校需要数据权限,所以你这里显示不出来已经添加的数据。你可以在系统管理中的数据权限页面给学校分配数据权限

@liuliang-wt liuliang-wt added the question Further information is requested label Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants