提交 1bffee00 编写于 作者: Mosher's avatar Mosher

表格行编辑新建行追加在第一行

上级 345aecf0
...@@ -1977,7 +1977,9 @@ import { Environment } from '@/environments/environment'; ...@@ -1977,7 +1977,9 @@ import { Environment } from '@/environments/environment';
const data = response.data; const data = response.data;
this.createDefault(data); this.createDefault(data);
data.rowDataState = "create"; data.rowDataState = "create";
_this.items.push(data); let tempItems: any[] = [];
tempItems.push(data);
_this.items = tempItems.concat(_this.items);
_this.gridItemsModel.push(_this.getGridRowModel()); _this.gridItemsModel.push(_this.getGridRowModel());
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status === 401) { if (response && response.status === 401) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册