endEdit($('#dg'));
let rows = $('#dg').datagrid("getChanges");
if (rows.length != 0) {
let errInfo = "";
rows.forEach(row => {
errInfo += $('#dg').datagrid("getRowIndex", row) + 1 + "、";
})
if (errInfo != "") {
$.messager.alert("提示", "第【" + errInfo.substring(0, errInfo.length - 1) + "】行");
}
}