From b72aa7b268e13b36c08ad1be6f0480476691cf88 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 17 Feb 2022 13:16:26 +0800 Subject: [PATCH] =?UTF-8?q?v3.8.0=20=E6=96=B0=E5=A2=9E=E9=80=9A=E7=94=A8?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E7=AE=80=E5=8C=96=E6=A8=A1=E6=80=81/?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/codegen/vue/views/index.vue.vm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/yudao-module-tool/yudao-module-tool-impl/src/main/resources/codegen/vue/views/index.vue.vm b/yudao-module-tool/yudao-module-tool-impl/src/main/resources/codegen/vue/views/index.vue.vm index 67f975c9b..494fe3bf4 100644 --- a/yudao-module-tool/yudao-module-tool-impl/src/main/resources/codegen/vue/views/index.vue.vm +++ b/yudao-module-tool/yudao-module-tool-impl/src/main/resources/codegen/vue/views/index.vue.vm @@ -347,7 +347,7 @@ export default { // 修改的提交 if (this.form.${primaryColumn.javaField} != null) { update${simpleClassName}(this.form).then(response => { - this.$modal.msgSuccess("修改成功"); + this.#[[$modal]]#.msgSuccess("修改成功"); this.open = false; this.getList(); }); @@ -355,7 +355,7 @@ export default { } // 添加的提交 create${simpleClassName}(this.form).then(response => { - this.$modal.msgSuccess("新增成功"); + this.#[[$modal]]#.msgSuccess("新增成功"); this.open = false; this.getList(); }); @@ -364,11 +364,11 @@ export default { /** 删除按钮操作 */ handleDelete(row) { const ${primaryColumn.javaField} = row.${primaryColumn.javaField}; - this.$model.confirm('是否确认删除${table.classComment}编号为"' + ${primaryColumn.javaField} + '"的数据项?').then(function() { + this.#[[$modal]]#.confirm('是否确认删除${table.classComment}编号为"' + ${primaryColumn.javaField} + '"的数据项?').then(function() { return delete${simpleClassName}(${primaryColumn.javaField}); }).then(() => { this.getList(); - this.$modal.msgSuccess("删除成功"); + this.#[[$modal]]#.msgSuccess("删除成功"); }).catch(() => {}); }, /** 导出按钮操作 */ @@ -386,7 +386,7 @@ export default { #end #end // 执行导出 - this.$model.confirm('是否确认导出所有${table.classComment}数据项?').then(() => { + this.#[[$modal]]#.confirm('是否确认导出所有${table.classComment}数据项?').then(() => { this.exportLoading = true; return export${simpleClassName}Excel(params); }).then(response => {