From 67dab49710549c5fb1bd3b4754d1174287b0b0c3 Mon Sep 17 00:00:00 2001 From: muyao <3202302816@qq.com> Date: Sat, 15 Feb 2025 17:00:13 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=85=95=E7=91=B6]=20=E3=80=90=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E3=80=91=20Body=20Parameter=E5=A4=B4=E9=83=A8?= =?UTF-8?q?=E6=8F=92=E5=85=A5=E6=96=B0=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/doc/EditDocStandard/index.vue | 2 +- front/src/views/doc/EditTable/index.vue | 3 ++- front/src/views/doc/RootArrayTable/index.vue | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/front/src/views/doc/EditDocStandard/index.vue b/front/src/views/doc/EditDocStandard/index.vue index ae6c8ef8..697c3d75 100644 --- a/front/src/views/doc/EditDocStandard/index.vue +++ b/front/src/views/doc/EditDocStandard/index.vue @@ -451,7 +451,7 @@ export default { this.pmsNextOrderIndex(rows).then(order => { item.orderIndex = order }) - rows.push(item) + rows.unshift(item)//改为头部插入 }, onResponseParamAdd: function() { this.onParamAdd(this.docInfo.responseParams) diff --git a/front/src/views/doc/EditTable/index.vue b/front/src/views/doc/EditTable/index.vue index dfb3cdb6..79473de6 100644 --- a/front/src/views/doc/EditTable/index.vue +++ b/front/src/views/doc/EditTable/index.vue @@ -240,7 +240,8 @@ export default { const children = row.children || [] let child = this.getParamNewRow() child.parentId = row.id - children.push(child) + // children.push(child) + children.unshift(child) row.children = children }, onParamRemove(row) { diff --git a/front/src/views/doc/RootArrayTable/index.vue b/front/src/views/doc/RootArrayTable/index.vue index 17ed92e7..db26f0ba 100644 --- a/front/src/views/doc/RootArrayTable/index.vue +++ b/front/src/views/doc/RootArrayTable/index.vue @@ -269,7 +269,7 @@ export default { const children = row.children || [] const child = this.getParamNewRow() child.parentId = row.id - children.push(child) + children.unshift(child) row.children = children }, onParamRemove(row) { -- Gitee