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

添加代码生成页面插入,编辑,列表,查询,必填列的全选按钮 #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TAYOTOoO
Copy link

在工作实际开发中发现,公司数据库表字段长达100+,每次进行代码生成时会出现取消勾选不需要的列操作,费事费力,所以添加一键选中/不选中功能。
主要修改为在editTable.vue中添加按钮进行控制选择状态,修改数据库文件ry_20240629.sql,中gen_table_column表is_insert,is_edit,is_list,is_query列的结构从char改变为tinyint,亲测不会对其功能造成影响,已运行的项目可以使用
ALTER TABLE gen_table_column MODIFY COLUMN is_insert TINYINT(1), MODIFY COLUMN is_edit TINYINT(1), MODIFY COLUMN is_list TINYINT(1), MODIFY COLUMN is_query TINYINT(1);
更新数据表字段
e95ba2e4_12304221

点击按钮后(全选)
2154d0c5_12304221
再次点击按钮后
53c9aa53_12304221

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

Successfully merging this pull request may close these issues.

1 participant