提交 5e3ff3cf 编写于 作者: zhangpingchuan's avatar zhangpingchuan

zpc---修复数据选择数据上下文问题

上级 c7db2c0c
...@@ -6,6 +6,6 @@ ...@@ -6,6 +6,6 @@
renderItem={(item: any) => { renderItem={(item: any) => {
return (${item.itemRender.code}); return (${item.itemRender.code});
}}</#if></#assign> }}</#if></#assign>
<app-picker formState={this.formState} data={this.data} itemParam={<#if item.getItemParam()??>${item.getItemParam()}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' ${renderItem} valueitem='${item.getValueItemName()}' value={this.data.${item.name}} refviewname='${srffilepath2(pickupview.getCodeName())}' url={this.url} editortype="" <#if item.getRefPickupPSAppView()??><#assign pickupview=item.getRefPickupPSAppView()>pickupView={{ viewname: '${srffilepath2(pickupview.codeName)}'<#if (pickupview.getWidth() gt 0)>, width: ${pickupview.getWidth()?c}</#if><#if (pickupview.getHeight() gt 0)>, height: ${pickupview.getHeight()?c}</#if>, title: '${pickupview.title}'<#if pickupview.getOpenMode()??><#assign openMode=pickupview.getOpenMode()> ,<#if openMode !=''>placement:'${openMode}'<#else>placement:''</#if></#if> }}</#if> style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker> <app-picker formState={this.formState} data={this.data} itemParam={<#if item.getEditorParam('PARENTDATA','') != ''>{parentdata:${item.getEditorParam('PARENTDATA','')}}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' ${renderItem} valueitem='${item.getValueItemName()}' value={this.data.${item.name}} refviewname='${srffilepath2(pickupview.getCodeName())}' url={this.url} editortype="" <#if item.getRefPickupPSAppView()??><#assign pickupview=item.getRefPickupPSAppView()>pickupView={{ viewname: '${srffilepath2(pickupview.codeName)}'<#if (pickupview.getWidth() gt 0)>, width: ${pickupview.getWidth()?c}</#if><#if (pickupview.getHeight() gt 0)>, height: ${pickupview.getHeight()?c}</#if>, title: '${pickupview.title}'<#if pickupview.getOpenMode()??><#assign openMode=pickupview.getOpenMode()> ,<#if openMode !=''>placement:'${openMode}'<#else>placement:''</#if></#if> }}</#if> style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker>
</#if> </#if>
</#if> </#if>
\ No newline at end of file
<app-picker formState={this.formState} data={this.data} itemParam={<#if item.getItemParam()??>${item.getItemParam()}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' valueitem='${item.getValueItemName()}' value={this.data.${item.name}} url={this.url} editortype="dropdown" style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker> <app-picker formState={this.formState} data={this.data} itemParam={<#if item.getEditorParam('PARENTDATA','') != ''>{parentdata:${item.getEditorParam('PARENTDATA','')}}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' valueitem='${item.getValueItemName()}' value={this.data.${item.name}} url={this.url} editortype="dropdown" style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker>
\ No newline at end of file \ No newline at end of file
<#if item.getRefPickupPSAppView()??> <#if item.getRefPickupPSAppView()??>
<#assign pickupview = item.getRefPickupPSAppView()> <#assign pickupview = item.getRefPickupPSAppView()>
<app-embed-picker formState={this.formState} data={JSON.stringify(this.data)} ignorefieldvaluechange={this.ignorefieldvaluechange} value={this.data.${item.name}}<#if item.getPlaceHolder()??> placeholder='${item.getPlaceHolder()}'</#if><#if item.getPlaceHolder()??> emptyText="${srfjsstring('${item.getPlaceHolder()}')}"</#if> name="${item.name}" itemParam={<#if item.getItemParam()??>${item.getItemParam()}<#else>{}</#if>} valueItem='${item.getValueItemName()}' refviewname="${srffilepath2(pickupview.getCodeName())}"<#if item.getResetItemName()?? && (item.getResetItemName()?length gt 0)> refreshitems="${item.getResetItemName()}"</#if> on-formitemvaluechange={(arg: any) => this.onFormItemValueChange(arg)} style="${item.getEditorCssStyle()}"></app-embed-picker> <app-embed-picker formState={this.formState} data={JSON.stringify(this.data)} ignorefieldvaluechange={this.ignorefieldvaluechange} value={this.data.${item.name}}<#if item.getPlaceHolder()??> placeholder='${item.getPlaceHolder()}'</#if><#if item.getPlaceHolder()??> emptyText="${srfjsstring('${item.getPlaceHolder()}')}"</#if> name="${item.name}" itemParam={<#if item.getEditorParam('PARENTDATA','') != ''>{parentdata:${item.getEditorParam('PARENTDATA','')}}<#else>{}</#if>} valueItem='${item.getValueItemName()}' refviewname="${srffilepath2(pickupview.getCodeName())}"<#if item.getResetItemName()?? && (item.getResetItemName()?length gt 0)> refreshitems="${item.getResetItemName()}"</#if> on-formitemvaluechange={(arg: any) => this.onFormItemValueChange(arg)} style="${item.getEditorCssStyle()}"></app-embed-picker>
</#if> </#if>
\ No newline at end of file
...@@ -9,6 +9,6 @@ ...@@ -9,6 +9,6 @@
renderItem={(item: any) => { renderItem={(item: any) => {
return (${item.itemRender.code}); return (${item.itemRender.code});
}}</#if></#assign> }}</#if></#assign>
<app-picker formState={this.formState} data={this.data} itemParam={<#if item.getItemParam()??>${item.getItemParam()}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' valueitem='${item.getValueItemName()}' value={this.data.${item.name}} refviewname='${srffilepath2(pickupview.getCodeName())}' ${renderItem} url={this.url} editortype="" <#if item.getRefPickupPSAppView()??><#assign pickupview=item.getRefPickupPSAppView()>pickupView={{ viewname: '${srffilepath2(pickupview.codeName)}'<#if (pickupview.getWidth() gt 0)>, width: ${pickupview.getWidth()?c}</#if><#if (pickupview.getHeight() gt 0)>, height: ${pickupview.getHeight()?c}</#if>, title: '${pickupview.title}'<#if pickupview.getOpenMode()??><#assign openMode=pickupview.getOpenMode()> ,<#if openMode !=''>placement:'${openMode}'<#else>placement:''</#if></#if> }}</#if> ${linkview} style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker> <app-picker formState={this.formState} data={this.data} itemParam={<#if item.getEditorParam('PARENTDATA','') != ''>{parentdata:${item.getEditorParam('PARENTDATA','')}}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' valueitem='${item.getValueItemName()}' value={this.data.${item.name}} refviewname='${srffilepath2(pickupview.getCodeName())}' ${renderItem} url={this.url} editortype="" <#if item.getRefPickupPSAppView()??><#assign pickupview=item.getRefPickupPSAppView()>pickupView={{ viewname: '${srffilepath2(pickupview.codeName)}'<#if (pickupview.getWidth() gt 0)>, width: ${pickupview.getWidth()?c}</#if><#if (pickupview.getHeight() gt 0)>, height: ${pickupview.getHeight()?c}</#if>, title: '${pickupview.title}'<#if pickupview.getOpenMode()??><#assign openMode=pickupview.getOpenMode()> ,<#if openMode !=''>placement:'${openMode}'<#else>placement:''</#if></#if> }}</#if> ${linkview} style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker>
</#if> </#if>
</#if> </#if>
\ No newline at end of file
...@@ -4,6 +4,6 @@ ...@@ -4,6 +4,6 @@
<#assign linkview> <#assign linkview>
<#if item.getRefLinkPSAppView()??><#assign linkview=item.getRefLinkPSAppView()>linkview={{ viewname: '${linkview.codeName}', viewmodule: '${linkview.getPSAppModule().getCodeName()}', width: ${linkview.getWidth()?c}, height: ${linkview.getHeight()?c}, title: '${linkview.title}', placement: '${linkview.getOpenMode()}', isRedirectView: <#if linkview.isRedirectView()>true, url: <#assign link_de = linkview.getPSDataEntity()/>'/${app.getPKGCodeName()?lower_case}/${link_de.getPSSystemModule().codeName?lower_case}/${link_de.codeName?lower_case}/${linkview.getPSDEViewCodeName()?lower_case}/getmodel'<#else>false</#if> }}</#if> <#if item.getRefLinkPSAppView()??><#assign linkview=item.getRefLinkPSAppView()>linkview={{ viewname: '${linkview.codeName}', viewmodule: '${linkview.getPSAppModule().getCodeName()}', width: ${linkview.getWidth()?c}, height: ${linkview.getHeight()?c}, title: '${linkview.title}', placement: '${linkview.getOpenMode()}', isRedirectView: <#if linkview.isRedirectView()>true, url: <#assign link_de = linkview.getPSDataEntity()/>'/${app.getPKGCodeName()?lower_case}/${link_de.getPSSystemModule().codeName?lower_case}/${link_de.codeName?lower_case}/${linkview.getPSDEViewCodeName()?lower_case}/getmodel'<#else>false</#if> }}</#if>
</#assign> </#assign>
<app-picker formState={this.formState} data={this.data} itemParam={<#if item.getItemParam()??>${item.getItemParam()}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' valueitem='${item.getValueItemName()}' value={this.data.${item.name}} refviewname='${srffilepath2(pickupview.getCodeName())}' url={this.url} editortype="pickup-no-ac" <#if item.getRefPickupPSAppView()??><#assign pickupview=item.getRefPickupPSAppView()>pickupView={{ viewname: '${srffilepath2(pickupview.codeName)}'<#if (pickupview.getWidth() gt 0)>, width: ${pickupview.getWidth()?c}</#if><#if (pickupview.getHeight() gt 0)>, height: ${pickupview.getHeight()?c}</#if>, title: '${pickupview.title}' }}</#if> ${linkview} style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker> <app-picker formState={this.formState} data={this.data} itemParam={<#if item.getEditorParam('PARENTDATA','') != ''>{parentdata:${item.getEditorParam('PARENTDATA','')}}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' valueitem='${item.getValueItemName()}' value={this.data.${item.name}} refviewname='${srffilepath2(pickupview.getCodeName())}' url={this.url} editortype="pickup-no-ac" <#if item.getRefPickupPSAppView()??><#assign pickupview=item.getRefPickupPSAppView()>pickupView={{ viewname: '${srffilepath2(pickupview.codeName)}'<#if (pickupview.getWidth() gt 0)>, width: ${pickupview.getWidth()?c}</#if><#if (pickupview.getHeight() gt 0)>, height: ${pickupview.getHeight()?c}</#if>, title: '${pickupview.title}' }}</#if> ${linkview} style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker>
</#if> </#if>
</#if> </#if>
\ No newline at end of file
<#if item.getEditorParam("PICKUPVIEW",true)??> <#if item.getEditorParam("PICKUPVIEW",true)??>
<#if item.getRefPickupPSAppView()??> <#if item.getRefPickupPSAppView()??>
<#assign pickupview = item.getRefPickupPSAppView()> <#assign pickupview = item.getRefPickupPSAppView()>
<app-picker formState={this.formState} data={this.data} itemParam={<#if item.getItemParam()??>${item.getItemParam()}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' valueitem='${item.getValueItemName()}' value={this.data.${item.name}} refviewname='${srffilepath2(pickupview.getCodeName())}' url={this.url} editortype="pickup-no-ac" <#if item.getRefPickupPSAppView()??><#assign pickupview=item.getRefPickupPSAppView()>pickupView={{ viewname: '${srffilepath2(pickupview.codeName)}'<#if (pickupview.getWidth() gt 0)>, width: ${pickupview.getWidth()?c}</#if><#if (pickupview.getHeight() gt 0)>, height: ${pickupview.getHeight()?c}</#if>, title: '${pickupview.title}' }}</#if> style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker> <app-picker formState={this.formState} data={this.data} itemParam={<#if item.getEditorParam('PARENTDATA','') != ''>{parentdata:${item.getEditorParam('PARENTDATA','')}}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' valueitem='${item.getValueItemName()}' value={this.data.${item.name}} refviewname='${srffilepath2(pickupview.getCodeName())}' url={this.url} editortype="pickup-no-ac" <#if item.getRefPickupPSAppView()??><#assign pickupview=item.getRefPickupPSAppView()>pickupView={{ viewname: '${srffilepath2(pickupview.codeName)}'<#if (pickupview.getWidth() gt 0)>, width: ${pickupview.getWidth()?c}</#if><#if (pickupview.getHeight() gt 0)>, height: ${pickupview.getHeight()?c}</#if>, title: '${pickupview.title}' }}</#if> style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker>
</#if> </#if>
</#if> </#if>
\ No newline at end of file
<#assign linkview> <#assign linkview>
<#if item.getRefLinkPSAppView()??><#assign linkview=item.getRefLinkPSAppView()>linkview={{ viewname: '${linkview.codeName}', viewmodule: '${linkview.getPSAppModule().getCodeName()}', width: ${linkview.getWidth()?c}, height: ${linkview.getHeight()?c}, title: '${linkview.title}', placement: '${linkview.getOpenMode()}', isRedirectView: <#if linkview.isRedirectView()>true, url: <#assign link_de = linkview.getPSDataEntity()/>'/${app.getPKGCodeName()?lower_case}/${link_de.getPSSystemModule().codeName?lower_case}/${link_de.codeName?lower_case}/${linkview.getPSDEViewCodeName()?lower_case}/getmodel'<#else>false</#if> }}</#if> <#if item.getRefLinkPSAppView()??><#assign linkview=item.getRefLinkPSAppView()>linkview={{ viewname: '${linkview.codeName}', viewmodule: '${linkview.getPSAppModule().getCodeName()}', width: ${linkview.getWidth()?c}, height: ${linkview.getHeight()?c}, title: '${linkview.title}', placement: '${linkview.getOpenMode()}', isRedirectView: <#if linkview.isRedirectView()>true, url: <#assign link_de = linkview.getPSDataEntity()/>'/${app.getPKGCodeName()?lower_case}/${link_de.getPSSystemModule().codeName?lower_case}/${link_de.codeName?lower_case}/${linkview.getPSDEViewCodeName()?lower_case}/getmodel'<#else>false</#if> }}</#if>
</#assign> </#assign>
<app-picker formState={this.formState} data={this.data} itemParam={<#if item.getItemParam()??>${item.getItemParam()}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' valueitem='${item.getValueItemName()}' value={this.data.${item.name}} url={this.url} editortype="linkonly" ${linkview} style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker> <app-picker formState={this.formState} data={this.data} itemParam={<#if item.getEditorParam('PARENTDATA','') != ''>{parentdata:${item.getEditorParam('PARENTDATA','')}}<#else>{}</#if>} disabled={this.detailsModel.${item.name}.disabled} name='${item.name}' valueitem='${item.getValueItemName()}' value={this.data.${item.name}} url={this.url} editortype="linkonly" ${linkview} style="${item.getEditorCssStyle()}" on-formitemvaluechange={this.onFormItemValueChange}></app-picker>
\ No newline at end of file \ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册