Commit ccfc5e18cc08158e88aac4b7bfe9f21a346be51a
1 parent
60e5f2b5
fix: 【infra 基础设施】代码生成修复批量删除后 checkedIds 未重置的问题
Showing
2 changed files
with
2 additions
and
0 deletions
yudao-module-infra/src/main/resources/codegen/vue/views/components/list_sub_erp.vue.vm
| ... | ... | @@ -170,6 +170,7 @@ |
| 170 | 170 | await this.#[[$modal]]#.confirm('是否确认删除?') |
| 171 | 171 | try { |
| 172 | 172 | await ${simpleClassName}Api.delete${subSimpleClassName}List(this.checkedIds); |
| 173 | + this.checkedIds = []; | |
| 173 | 174 | await this.getList(); |
| 174 | 175 | this.#[[$modal]]#.msgSuccess("删除成功"); |
| 175 | 176 | } catch {} | ... | ... |
yudao-module-infra/src/main/resources/codegen/vue/views/index.vue.vm
| ... | ... | @@ -338,6 +338,7 @@ export default { |
| 338 | 338 | await this.#[[$modal]]#.confirm('是否确认删除?') |
| 339 | 339 | try { |
| 340 | 340 | await ${simpleClassName}Api.delete${simpleClassName}List(this.checkedIds); |
| 341 | + this.checkedIds = []; | |
| 341 | 342 | await this.getList(); |
| 342 | 343 | this.#[[$modal]]#.msgSuccess("删除成功"); |
| 343 | 344 | } catch {} | ... | ... |