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,6 +170,7 @@ | ||
| 170 | await this.#[[$modal]]#.confirm('是否确认删除?') | 170 | await this.#[[$modal]]#.confirm('是否确认删除?') |
| 171 | try { | 171 | try { |
| 172 | await ${simpleClassName}Api.delete${subSimpleClassName}List(this.checkedIds); | 172 | await ${simpleClassName}Api.delete${subSimpleClassName}List(this.checkedIds); |
| 173 | + this.checkedIds = []; | ||
| 173 | await this.getList(); | 174 | await this.getList(); |
| 174 | this.#[[$modal]]#.msgSuccess("删除成功"); | 175 | this.#[[$modal]]#.msgSuccess("删除成功"); |
| 175 | } catch {} | 176 | } catch {} |
yudao-module-infra/src/main/resources/codegen/vue/views/index.vue.vm
| @@ -338,6 +338,7 @@ export default { | @@ -338,6 +338,7 @@ export default { | ||
| 338 | await this.#[[$modal]]#.confirm('是否确认删除?') | 338 | await this.#[[$modal]]#.confirm('是否确认删除?') |
| 339 | try { | 339 | try { |
| 340 | await ${simpleClassName}Api.delete${simpleClassName}List(this.checkedIds); | 340 | await ${simpleClassName}Api.delete${simpleClassName}List(this.checkedIds); |
| 341 | + this.checkedIds = []; | ||
| 341 | await this.getList(); | 342 | await this.getList(); |
| 342 | this.#[[$modal]]#.msgSuccess("删除成功"); | 343 | this.#[[$modal]]#.msgSuccess("删除成功"); |
| 343 | } catch {} | 344 | } catch {} |