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();