From 54688ce7c7e89fb0727dea099cc7df80a679c8cf Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期一, 05 七月 2021 18:17:49 +0800 Subject: [PATCH] update 优化批量插入执行器 增加主键类型枚举对应生成策略 --- ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm index d43c2ce..de04567 100644 --- a/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm +++ b/ruoyi-generator/src/main/resources/vm/vue/index-tree.vue.vm @@ -300,8 +300,8 @@ }, data() { return { - //鎸夐挳loading - buttonLoading: false, + // 鎸夐挳loading + buttonLoading: false, // 閬僵灞� loading: true, // 鏄剧ず鎼滅储鏉′欢 @@ -510,17 +510,19 @@ #end if (this.form.${pkColumn.javaField} != null) { update${BusinessName}(this.form).then(response => { - this.buttonLoading = false; this.msgSuccess("淇敼鎴愬姛"); this.open = false; this.getList(); + }).finally(() => { + this.buttonLoading = false; }); } else { add${BusinessName}(this.form).then(response => { - this.buttonLoading = false; this.msgSuccess("鏂板鎴愬姛"); this.open = false; this.getList(); + }).finally(() => { + this.buttonLoading = false; }); } } -- Gitblit v1.9.3