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

update:表格编辑列启用条件

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