提交 93eff442 编写于 作者: tony001's avatar tony001

修复表格行编辑可设置数据主键和清空仿真主键问题 --- fix6

上级 fad84a06
...@@ -122,7 +122,7 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi ...@@ -122,7 +122,7 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi
<#-- 手动修改数据主键的情况start --> <#-- 手动修改数据主键的情况start -->
<#if ctrl.getPSDEGridEditItems()??> <#if ctrl.getPSDEGridEditItems()??>
<#list ctrl.getPSDEGridEditItems() as editItem> <#list ctrl.getPSDEGridEditItems() as editItem>
<#if editItem.getPSAppDEField()?? && editItem.getPSAppDEField().isKeyField() && editItem.getCodeName != "srfkey"> <#if editItem.getPSAppDEField()?? && editItem.getPSAppDEField().isKeyField() && editItem.getCodeName() != "srfkey">
Object.assign(Data,{${editItem.getPSAppDEField().getCodeName()?lower_case}: data.${editItem.getName()}, srffrontuf: '1'}); Object.assign(Data,{${editItem.getPSAppDEField().getCodeName()?lower_case}: data.${editItem.getName()}, srffrontuf: '1'});
</#if> </#if>
</#list> </#list>
...@@ -332,7 +332,7 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi ...@@ -332,7 +332,7 @@ import ${srfclassname('${aggAppDataEntity.getCodeName()}')}Service from '@/servi
<#assign hasKeyField = ''/> <#assign hasKeyField = ''/>
<#if ctrl.getPSDEGridEditItems()??> <#if ctrl.getPSDEGridEditItems()??>
<#list ctrl.getPSDEGridEditItems() as editItem> <#list ctrl.getPSDEGridEditItems() as editItem>
<#if editItem.getPSAppDEField()?? && editItem.getPSAppDEField().isKeyField() && editItem.getCodeName != "srfkey"> <#if editItem.getPSAppDEField()?? && editItem.getPSAppDEField().isKeyField() && editItem.getCodeName() != "srfkey">
<#assign hasKeyField>${editItem.getName()}</#assign> <#assign hasKeyField>${editItem.getName()}</#assign>
</#if> </#if>
</#list> </#list>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册