From c22f9262f5895022c0db50bb5b6b9b8ec1c2897f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Fri, 11 Dec 2020 21:30:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=95=86=E5=93=81=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=97=B6=E6=9D=A1=E7=A0=81=E5=81=B6=E5=B0=94=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E4=BF=AE=E6=94=B9=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erp_web/pages/materials/material.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/erp_web/pages/materials/material.html b/erp_web/pages/materials/material.html index 8942673a..c4f288da 100644 --- a/erp_web/pages/materials/material.html +++ b/erp_web/pages/materials/material.html @@ -1076,6 +1076,11 @@ $("#materialExtendData").datagrid('loadData',res.data); if(type === "add") { $("#materialDlg #append").click(); //新增行 + } else if(type === "edit") { + if(res.data.rows.length>0){ + editIndex = 0; + $('#materialExtendData').datagrid('selectRow', 0).datagrid('beginEdit', 0); + } } } },