diff --git a/front/src/views/doc/EditDocStandard/index.vue b/front/src/views/doc/EditDocStandard/index.vue index ae6c8ef889c1bb893ee7867739c1a3f2402ee33d..697c3d75b6b0565bf9d199bcb3ba550e20900c09 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 dfb3cdb693a02b8ae7a7b025b723d5b8bc6930a4..79473de60ae6a14247e237846d86d161b740bcb5 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 17ed92e7234c4eec7cf4f921471d05627ccea44a..db26f0ba90bf1e4bdd1c548910f77f13771a8f3e 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) {