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

update:表格编辑列启用条件 --u2

上级 424c94b8
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
:data="state.data" :data="state.data"
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
:data="state.data" :data="state.data"
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -13,12 +13,12 @@ ...@@ -13,12 +13,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -13,12 +13,12 @@ ...@@ -13,12 +13,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -9,12 +9,12 @@ ...@@ -9,12 +9,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -23,12 +23,12 @@ ...@@ -23,12 +23,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
:date="state.data" :date="state.data"
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
:date="state.data" :date="state.data"
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
...@@ -18,12 +18,12 @@ ...@@ -18,12 +18,12 @@
{{/if}} {{/if}}
{{#if (eq ctrlType 'form')}} {{#if (eq ctrlType 'form')}}
:disabled="state.detailsModel.{{item.codeName}}.disabled" :disabled="state.detailsModel.{{item.codeName}}.disabled"
{{else}} {{else if (eq ctrlType 'grid')}}
{{#if (eq item.enableCond 0)}} {{#if (eq item.enableCond 0)}}
:disabled="true" :disabled="true"
{{else if(eq item.enableCond 1)}} {{else if (eq item.enableCond 1)}}
:disabled="!Object.is(record.srfuf,0)" :disabled="!Object.is(record.srfuf,0)"
{{else if(eq item.enableCond 2)}} {{else if (eq item.enableCond 2)}}
:disabled="!Object.is(record.srfuf,1)" :disabled="!Object.is(record.srfuf,1)"
{{/if}} {{/if}}
{{/if}} {{/if}}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册