From f42a0b530ba197c35fd8d69b0df60b3e89974017 Mon Sep 17 00:00:00 2001 From: insistence <3055204202@qq.com> Date: Tue, 18 Feb 2025 17:59:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=94=9F=E6=88=90=E6=A0=91=E8=A1=A8=E5=8A=9F=E8=83=BD=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module_generator/templates/vue/index-tree.vue.jinja2 | 6 +++--- .../module_generator/templates/vue/v3/index-tree.vue.jinja2 | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ruoyi-fastapi-backend/module_generator/templates/vue/index-tree.vue.jinja2 b/ruoyi-fastapi-backend/module_generator/templates/vue/index-tree.vue.jinja2 index 3297279..fa9be70 100644 --- a/ruoyi-fastapi-backend/module_generator/templates/vue/index-tree.vue.jinja2 +++ b/ruoyi-fastapi-backend/module_generator/templates/vue/index-tree.vue.jinja2 @@ -214,7 +214,7 @@ v-for="dict in dict.type.{{ dictType }}" :key="dict.value" :label="dict.value"> - {{ dict.label }} + {% raw %}{{{% endraw %} dict.label {% raw %}}}{% endraw %} @@ -235,7 +235,7 @@ {% else %} :label="dict.value" {% endif %}> - {{ dict.label }} + {% raw %}{{{% endraw %} dict.label {% raw %}}}{% endraw %} @@ -476,7 +476,7 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - this.$modal.confirm('是否确认删除{{ functionName }}编号为"' + row.{{ pkColumn.python_field }}s + '"的数据项?').then(function() { + this.$modal.confirm('是否确认删除{{ functionName }}编号为"' + row.{{ pkColumn.python_field }} + '"的数据项?').then(function() { return del{{ BusinessName }}(row.{{ pkColumn.python_field }}); }).then(() => { this.getList(); diff --git a/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index-tree.vue.jinja2 b/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index-tree.vue.jinja2 index 1488ea0..433c162 100644 --- a/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index-tree.vue.jinja2 +++ b/ruoyi-fastapi-backend/module_generator/templates/vue/v3/index-tree.vue.jinja2 @@ -196,7 +196,7 @@ v-for="dict in {{ dictType }}" :key="dict.value" :label="dict.value"> - {{ dict.label }} + {% raw %}{{{% endraw %} dict.label {% raw %}}}{% endraw %} @@ -217,7 +217,7 @@ {% else %} :label="dict.value" {% endif %}> - {{ dict.label }} + {% raw %}{{{% endraw %} dict.label {% raw %}}}{% endraw %} @@ -442,7 +442,7 @@ function submitForm() { /** 删除按钮操作 */ function handleDelete(row) { - proxy.$modal.confirm('是否确认删除{{ functionName }}编号为"' + row.{{ pkColumn.python_field }}s + '"的数据项?').then(function() { + proxy.$modal.confirm('是否确认删除{{ functionName }}编号为"' + row.{{ pkColumn.python_field }} + '"的数据项?').then(function() { return del{{ BusinessName }}(row.{{ pkColumn.python_field }}); }).then(() => { getList();