提交 fa853eb4 编写于 作者: WodahsOrez's avatar WodahsOrez

update: 修复formpage的detailmodel

上级 3e6d924a
{{#each items as | formDetail |}}
{{formDetail.codeName}}: { {{formDetail.codeName}}: {
caption: '{{formDetail.caption}}', caption: '{{formDetail.caption}}',
name: '{{formDetail.name}}', name: '{{formDetail.name}}',
...@@ -82,6 +81,7 @@ ...@@ -82,6 +81,7 @@
{{/if}} {{/if}}
}, },
{{#if formDetail.psDEFormDetails}} {{#if formDetail.psDEFormDetails}}
{{>(lookup 'FORMDETAILSMODEL') items=formDetail.psDEFormDetails}} {{#each formDetail.psDEFormDetails as | tempDetail |}}
{{/if}} {{>(lookup 'FORMDETAILSMODEL') formDetail=tempDetail}}
{{/each}} {{/each}}
{{/if}}
\ No newline at end of file
...@@ -63,7 +63,7 @@ export const ctrlState = { ...@@ -63,7 +63,7 @@ export const ctrlState = {
enableAutoSave: {{ctrl.enableAutoSave}}, enableAutoSave: {{ctrl.enableAutoSave}},
detailsModel: { detailsModel: {
{{#each ctrl.psDEFormPages as | FormPage | }} {{#each ctrl.psDEFormPages as | FormPage | }}
{{>(lookup 'FORMDETAILSMODEL') items=FormPage.psDEFormDetails}} {{>(lookup 'FORMDETAILSMODEL') formDetail=FormPage}}
{{/each}} {{/each}}
}, },
actionModel: { actionModel: {
......
...@@ -59,7 +59,7 @@ export const ctrlState = { ...@@ -59,7 +59,7 @@ export const ctrlState = {
historyItems: [], historyItems: [],
detailsModel: { detailsModel: {
{{#each ctrl.psDEFormPages as | FormPage | }} {{#each ctrl.psDEFormPages as | FormPage | }}
{{>(lookup 'FORMDETAILSMODEL') items=FormPage.psDEFormDetails}} {{>(lookup 'FORMDETAILSMODEL') formDetail=FormPage}}
{{/each}} {{/each}}
}, },
rules: { rules: {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册