Skip to content

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