提交 c065ff2c 编写于 作者: RedPig97's avatar RedPig97

update:表格编辑列启用条件

上级 7c5dadbf
...@@ -5,9 +5,17 @@ ...@@ -5,9 +5,17 @@
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
:data="state.data" :data="state.data"
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.valueItemName}} {{#if item.valueItemName}}
valueItem="{{item.valueItemName}}" valueItem="{{item.valueItemName}}"
{{/if}} {{/if}}
......
...@@ -5,9 +5,17 @@ ...@@ -5,9 +5,17 @@
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
:data="state.data" :data="state.data"
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -4,9 +4,17 @@ ...@@ -4,9 +4,17 @@
{{else}} {{else}}
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -4,9 +4,17 @@ ...@@ -4,9 +4,17 @@
{{else}} {{else}}
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -11,9 +11,17 @@ ...@@ -11,9 +11,17 @@
{{#if item.psEditor.placeHolder}} {{#if item.psEditor.placeHolder}}
placeholder="{{item.psEditor.placeHolder}}" placeholder="{{item.psEditor.placeHolder}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.psNavigateContexts}} {{#if item.psEditor.psNavigateContexts}}
:localContext="{{> @macro/front-end/common/navparam.hbs appNavParams=item.psEditor.psNavigateContexts}}" :localContext="{{> @macro/front-end/common/navparam.hbs appNavParams=item.psEditor.psNavigateContexts}}"
{{/if}} {{/if}}
......
...@@ -11,9 +11,17 @@ ...@@ -11,9 +11,17 @@
{{#if item.psEditor.placeHolder}} {{#if item.psEditor.placeHolder}}
placeholder="{{item.psEditor.placeHolder}}" placeholder="{{item.psEditor.placeHolder}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.psNavigateContexts}} {{#if item.psEditor.psNavigateContexts}}
:localContext="{{> @macro/front-end/common/navparam.hbs appNavParams=item.psEditor.psNavigateContexts}}" :localContext="{{> @macro/front-end/common/navparam.hbs appNavParams=item.psEditor.psNavigateContexts}}"
{{/if}} {{/if}}
......
...@@ -7,9 +7,17 @@ ...@@ -7,9 +7,17 @@
{{#if item.psEditor.placeHolder}} {{#if item.psEditor.placeHolder}}
placeholder="{{item.psEditor.placeHolder}}" placeholder="{{item.psEditor.placeHolder}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -14,9 +14,17 @@ ...@@ -14,9 +14,17 @@
{{#if item.psEditor.placeHolder}} {{#if item.psEditor.placeHolder}}
placeholder="{{item.psEditor.placeHolder}}" placeholder="{{item.psEditor.placeHolder}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.editorParams.multiple}} {{#if item.psEditor.editorParams.multiple}}
:multiple="{{item.psEditor.editorParams.multiple}}" :multiple="{{item.psEditor.editorParams.multiple}}"
{{/if}} {{/if}}
......
...@@ -4,9 +4,17 @@ ...@@ -4,9 +4,17 @@
{{else}} {{else}}
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -4,9 +4,17 @@ ...@@ -4,9 +4,17 @@
{{else}} {{else}}
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.placeHolder}} {{#if item.psEditor.placeHolder}}
placeholder="{{item.psEditor.placeHolder}}" placeholder="{{item.psEditor.placeHolder}}"
{{/if}} {{/if}}
......
...@@ -21,9 +21,17 @@ ...@@ -21,9 +21,17 @@
{{#if item.psEditor.editorParams.multiple}} {{#if item.psEditor.editorParams.multiple}}
:multiple="{{item.psEditor.editorParams.multiple}}" :multiple="{{item.psEditor.editorParams.multiple}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -10,9 +10,17 @@ ...@@ -10,9 +10,17 @@
codeListType="{{item.psEditor.psAppCodeList.codeListType}}" codeListType="{{item.psEditor.psAppCodeList.codeListType}}"
{{#if item.psEditor.psAppCodeList.valueSeparator}}valueSeparator="{{item.psEditor.psAppCodeList.valueSeparator}}"{{/if}} {{#if item.psEditor.psAppCodeList.valueSeparator}}valueSeparator="{{item.psEditor.psAppCodeList.valueSeparator}}"{{/if}}
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -4,9 +4,17 @@ ...@@ -4,9 +4,17 @@
{{else}} {{else}}
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -5,9 +5,17 @@ ...@@ -5,9 +5,17 @@
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
:date="state.data" :date="state.data"
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.editorParams.contentType}} {{#if item.psEditor.editorParams.contentType}}
contentType="{{item.psEditor.editorParams.contentType}}" contentType="{{item.psEditor.editorParams.contentType}}"
{{else}} {{else}}
......
...@@ -4,9 +4,17 @@ ...@@ -4,9 +4,17 @@
{{else}} {{else}}
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -5,9 +5,17 @@ ...@@ -5,9 +5,17 @@
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
:date="state.data" :date="state.data"
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -4,9 +4,17 @@ ...@@ -4,9 +4,17 @@
{{else}} {{else}}
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.psAppCodeList}} {{#if item.psEditor.psAppCodeList}}
codeListTag="{{item.psEditor.psAppCodeList.codeListTag}}" codeListTag="{{item.psEditor.psAppCodeList.codeListTag}}"
codeListType="{{item.psEditor.psAppCodeList.codeListType}}" codeListType="{{item.psEditor.psAppCodeList.codeListType}}"
......
...@@ -4,9 +4,17 @@ ...@@ -4,9 +4,17 @@
{{else}} {{else}}
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -4,9 +4,17 @@ ...@@ -4,9 +4,17 @@
{{else}} {{else}}
name="{{item.codeName}}" name="{{item.codeName}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
...@@ -16,9 +16,17 @@ ...@@ -16,9 +16,17 @@
{{#if item.psEditor.editorParams.tooltip}} {{#if item.psEditor.editorParams.tooltip}}
tooltip="{{item.psEditor.editorParams.tooltip}}" tooltip="{{item.psEditor.editorParams.tooltip}}"
{{/if}} {{/if}}
{{#eq ctrlType 'form'}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{/eq}} {{else}}
{{#if (eq item.enableCond 0)}}
:disabled="true"
{{else if(eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)"
{{/if}}
{{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册