Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在工作实际开发中发现,公司数据库表字段长达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);
更新数据表字段
点击按钮后(全选)


再次点击按钮后