提交 bcba3016 编写于 作者: Mosher's avatar Mosher

update:更新表格

上级 b200ec25
......@@ -33,7 +33,7 @@
{{/if}}
{{/eq}}
{{#if item.enableRowEdit}}
{{#each ctrl.psDEGridEditItems as | editColumn | }}
{{#each ctrl.psDEGridEditItems as | editColumn | }}
{{#if (eq editColumn.codeName item.codeName)}}
{{#if editColumn.resetItemName}}
resetItemName: "{{editColumn.resetItemName}}",
......@@ -41,8 +41,9 @@
{{#if editColumn.valueItemName}}
valueItemName: "{{editColumn.valueItemName}}",
{{/if}}
{{#each ctrl.psDEGridEditItemUpdates as | updateItem | }}
{{#if (eq updateItem.codeName editColumn.codeName)}}
{{!-- TODO编辑项模型存在问题 --}}
{{!-- {{#if editColumn.psDEGridEditItemUpdate}}
{{#with editColumn.psDEGridEditItemUpdate as | updateItem |}}
updateItem: {
name: "{{updateItem.name}}",
codeName: "{{updateItem.codeName}}",
......@@ -51,14 +52,14 @@
scriptCode: `{{updateItem.scriptCode}}`,
{{else}}
showBusyIndicator: {{updateItem.showBusyIndicator}},
appDEMethod: "{{updateItem.psAppDEMethod.id}}",
appDEMethod: "{{updateItem.psAppDEMethod.codeName}}",
updateDetails: [{{#each updateItem.psDEGEIUpdateDetails as | updateDetails | }}"{{updateDetails.name}}",{{/each}}],
{{/if}}
},
{{/with}}
{{/if}} --}}
{{/if}}
{{/each}}
{{/if}}
{{/each}}
{{/each}}
{{/if}}
},
{{/unless}}
......@@ -36,8 +36,8 @@ export const ctrlState = {
{
createDV: "{{editItem.createDV}}",
createDVT: "{{editItem.createDVT}}",
{{#if editItem.psAppDEField}}
property: "{{lowerCase editItem.psAppDEField.codeName}}",
{{#if editItem.dataItemName}}
property: "{{lowerCase editItem.dataItemName}}",
{{else}}
property: "{{lowerCase editItem.codeName}}",
{{/if}}
......@@ -152,8 +152,8 @@ export const ctrlState = {
{
updateDV: "{{editItem.updateDV}}",
updateDVT: "{{editItem.updateDVT}}",
{{#if editItem.psAppDEField}}
property: "{{lowerCase editItem.psAppDEField.codeName}}",
{{#if editItem.dataItemName}}
property: "{{lowerCase editItem.dataItemName}}",
{{else}}
property: "{{lowerCase editItem.codeName}}",
{{/if}}
......@@ -203,11 +203,11 @@ export const ctrlState = {
{{#eq editItem.codeName ruleItem.psDEGridEditItemName}}
{
validator: async (rule: any, value: any, callback: any, source: any) => {
if (!source || isEmpty(source['{{#if editItem.valueItemName}}{{editItem.valueItemName}}{{else}}{{ruleItem.psDEGridEditItemName}}{{/if}}'])) {
if (!source || isEmpty(source['{{#if editItem.valueItemName}}{{editItem.valueItemName}}{{else if editItem.dataItemName}}{{editItem.dataItemName}}{{else}}{{ruleItem.psDEGridEditItemName}}{{/if}}'])) {
return Promise.resolve();
}
const { isPast, infoMessage } = Verify.verifyDeRules(
'{{#if editItem.valueItemName}}{{editItem.valueItemName}}{{else}}{{ruleItem.psDEGridEditItemName}}{{/if}}',
'{{#if editItem.valueItemName}}{{editItem.valueItemName}}{{else if editItem.dataItemName}}{{editItem.dataItemName}}{{else}}{{ruleItem.psDEGridEditItemName}}{{/if}}',
source,
{{> @macro/front-end/common/derules.hbs item=ruleItem.psDEFValueRule.getPSDEFVRGroupCondition}}
);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册