提交 0ae09813 编写于 作者: tony001's avatar tony001

Revert "修复表格新建行传入表格数据指向变化导致的值规则校验异常问题"

This reverts commit 74cb038a.
上级 74cb038a
...@@ -2313,7 +2313,9 @@ ${gridColumn.getName()} ...@@ -2313,7 +2313,9 @@ ${gridColumn.getName()}
const data = response.data; const data = response.data;
this.createDefault(data); this.createDefault(data);
data.rowDataState = "create"; data.rowDataState = "create";
this.items.splice(0,1,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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册