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

update: 更新

上级 63e0ab96
<IbizAutoComplete <IbizAutoComplete
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
:data="state.data" :data="state.data"
{{#if item.valueItemName}} {{#if item.valueItemName}}
valueItem="{{item.valueItemName}}" valueItem="{{item.valueItemName}}"
...@@ -39,4 +38,12 @@ ...@@ -39,4 +38,12 @@
{{#eq item.psEditor.editorType "AC_FS_NOBUTTON"}} {{#eq item.psEditor.editorType "AC_FS_NOBUTTON"}}
:showButton="false" :showButton="false"
{{/eq}} {{/eq}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizCheckboxList <IbizCheckboxList
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
:data="state.data" :data="state.data"
{{#if item.psEditor.disabled}} {{#if item.psEditor.disabled}}
:disabled="{{item.psEditor.disabled}}" :disabled="{{item.psEditor.disabled}}"
...@@ -21,4 +20,12 @@ ...@@ -21,4 +20,12 @@
{{/if}} {{/if}}
:contextProp="state.context" :contextProp="state.context"
:viewParamsProp="state.viewParams" :viewParamsProp="state.viewParams"
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizCheckbox <IbizCheckbox
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
{{#if item.psEditor.disabled}} {{#if item.psEditor.disabled}}
:disabled="{{item.psEditor.disabled}}" :disabled="{{item.psEditor.disabled}}"
{{/if}} {{/if}}
{{#if item.psEditor.isReadOnly}} {{#if item.psEditor.isReadOnly}}
:readonly="{{item.psEditor.isReadOnly}}" :readonly="{{item.psEditor.isReadOnly}}"
{{/if}} {{/if}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizDataPickerView <IbizDataPickerView
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
:data="state.data" :data="state.data"
{{#if item.valueItemName}} {{#if item.valueItemName}}
valueItem="{{item.valueItemName}}" valueItem="{{item.valueItemName}}"
...@@ -25,4 +24,12 @@ ...@@ -25,4 +24,12 @@
{{#if item.psEditor.pickUpData}} {{#if item.psEditor.pickUpData}}
pickUpData="{{item.psEditor.pickUpData}}" pickUpData="{{item.psEditor.pickUpData}}"
{{/if}} {{/if}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
\ No newline at end of file :value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
\ No newline at end of file
<IbizDataPicker <IbizDataPicker
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
:data="state.data" :data="state.data"
{{#if item.valueItemName}} {{#if item.valueItemName}}
valueItem="{{item.valueItemName}}" valueItem="{{item.valueItemName}}"
...@@ -48,4 +47,12 @@ ...@@ -48,4 +47,12 @@
{{#if (or (eq item.psEditor.editorType "ADDRESSPICKUP") (eq item.psEditor.editorType "ADDRESSPICKUP_AC"))}} {{#if (or (eq item.psEditor.editorType "ADDRESSPICKUP") (eq item.psEditor.editorType "ADDRESSPICKUP_AC"))}}
:multiple="true" :multiple="true"
{{/if}} {{/if}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
\ No newline at end of file :value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
\ No newline at end of file
<IbizDatePicker <IbizDatePicker
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
{{#if item.psEditor.placeHolder}} {{#if item.psEditor.placeHolder}}
placeholder="{{item.psEditor.placeHolder}}" placeholder="{{item.psEditor.placeHolder}}"
{{/if}} {{/if}}
...@@ -46,4 +45,12 @@ ...@@ -46,4 +45,12 @@
dateFormat="YYYY-MM-DD HH:mm" dateFormat="YYYY-MM-DD HH:mm"
dateType="dateTime" dateType="dateTime"
{{/eq}} {{/eq}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizDropdownList <IbizDropdownList
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
:data="state.data" :data="state.data"
{{#if item.psEditor.codeList}} {{#if item.psEditor.codeList}}
codeListTag="{{item.psEditor.codeList.codeListTag}}" codeListTag="{{item.psEditor.codeList.codeListTag}}"
...@@ -27,4 +26,12 @@ ...@@ -27,4 +26,12 @@
{{/eq}} {{/eq}}
:contextProp="state.context" :contextProp="state.context"
:viewParamsProp="state.viewParams" :viewParamsProp="state.viewParams"
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizInputIp <IbizInputIp
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
{{#if item.psEditor.disabled}} {{#if item.psEditor.disabled}}
:disabled="{{item.psEditor.disabled}}" :disabled="{{item.psEditor.disabled}}"
{{/if}} {{/if}}
{{#if item.psEditor.readOnly}} {{#if item.psEditor.readOnly}}
:readonly="{{item.psEditor.readOnly}}" :readonly="{{item.psEditor.readOnly}}"
{{/if}} {{/if}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizInput <IbizInput
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
{{#if item.psEditor.placeHolder}} {{#if item.psEditor.placeHolder}}
placeholder="{{item.psEditor.placeHolder}}" placeholder="{{item.psEditor.placeHolder}}"
{{/if}} {{/if}}
...@@ -37,5 +36,13 @@ ...@@ -37,5 +36,13 @@
{{#eq item.psEditor.editorType "TEXTAREA"}} {{#eq item.psEditor.editorType "TEXTAREA"}}
type="textarea" type="textarea"
{{/eq}} {{/eq}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizRadioGroup <IbizRadioGroup
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
:data="state.data" :data="state.data"
{{#if item.psEditor.codeList}} {{#if item.psEditor.codeList}}
codeListTag="{{item.psEditor.codeList.codeListTag}}" codeListTag="{{item.psEditor.codeList.codeListTag}}"
...@@ -21,4 +20,12 @@ ...@@ -21,4 +20,12 @@
{{/if}} {{/if}}
:contextProp="state.context" :contextProp="state.context"
:viewParamsProp="state.viewParams" :viewParamsProp="state.viewParams"
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
\ No newline at end of file :value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
\ No newline at end of file
<IbizRating <IbizRating
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
{{#if item.psEditor.disabled}} {{#if item.psEditor.disabled}}
:disabled="{{item.psEditor.disabled}}" :disabled="{{item.psEditor.disabled}}"
{{/if}} {{/if}}
...@@ -13,4 +12,12 @@ ...@@ -13,4 +12,12 @@
{{#if item.psEditor.editorParams.allowHalf}} {{#if item.psEditor.editorParams.allowHalf}}
:allowHalf="{{item.psEditor.editorParams.allowHalf}}" :allowHalf="{{item.psEditor.editorParams.allowHalf}}"
{{/if}} {{/if}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizRaw <IbizRaw
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
:date="state.data" :date="state.data"
{{#if item.psEditor.editorParams.contentType}} {{#if item.psEditor.editorParams.contentType}}
:contentType="{{item.psEditor.editorParams.contentType}}" :contentType="{{item.psEditor.editorParams.contentType}}"
...@@ -13,4 +12,12 @@ ...@@ -13,4 +12,12 @@
{{/if}} {{/if}}
:contextProp="state.context" :contextProp="state.context"
:viewParamsProp="state.viewParams" :viewParamsProp="state.viewParams"
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizSlider <IbizSlider
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
:date="state.data" :date="state.data"
{{#if item.psEditor.disabled}} {{#if item.psEditor.disabled}}
:disabled="{{item.psEditor.disabled}}" :disabled="{{item.psEditor.disabled}}"
...@@ -17,4 +16,12 @@ ...@@ -17,4 +16,12 @@
{{#if item.psEditor.editorParams.max}} {{#if item.psEditor.editorParams.max}}
:max="{{item.psEditor.editorParams.max}}" :max="{{item.psEditor.editorParams.max}}"
{{/if}} {{/if}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizSpan <IbizSpan
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
{{#if item.psEditor.codeList}} {{#if item.psEditor.codeList}}
codeListTag="{{item.psEditor.codeList.codeListTag}}" codeListTag="{{item.psEditor.codeList.codeListTag}}"
codeListType="{{item.psEditor.codeList.codeListType}}" codeListType="{{item.psEditor.codeList.codeListType}}"
...@@ -23,5 +22,12 @@ ...@@ -23,5 +22,12 @@
{{#if item.psEditor.psNavigateParams}} {{#if item.psEditor.psNavigateParams}}
localParam="{{item.psEditor.psNavigateParams}}" localParam="{{item.psEditor.psNavigateParams}}"
{{/if}} {{/if}}
{{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
{{/if}}
/>
:contextProp="state.context" :contextProp="state.context"
:viewParamsProp="state.viewParams"/> :viewParamsProp="state.viewParams"/>
<IbizStepper <IbizStepper
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
{{#if item.psEditor.disabled}} {{#if item.psEditor.disabled}}
:disabled="{{item.psEditor.disabled}}" :disabled="{{item.psEditor.disabled}}"
{{/if}} {{/if}}
...@@ -19,4 +18,12 @@ ...@@ -19,4 +18,12 @@
{{#if item.psEditor.editorParams.max}} {{#if item.psEditor.editorParams.max}}
:max="{{item.psEditor.editorParams.max}}" :max="{{item.psEditor.editorParams.max}}"
{{/if}} {{/if}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizSwitch <IbizSwitch
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
{{#if item.psEditor.disabled}} {{#if item.psEditor.disabled}}
:disabled="{{item.psEditor.disabled}}" :disabled="{{item.psEditor.disabled}}"
{{/if}} {{/if}}
...@@ -10,4 +9,12 @@ ...@@ -10,4 +9,12 @@
{{#if item.psEditor.editorParams.size}} {{#if item.psEditor.editorParams.size}}
size="{{item.psEditor.editorParams.size}}" size="{{item.psEditor.editorParams.size}}"
{{/if}} {{/if}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
<IbizUpload <IbizUpload
name="{{item.codeName}}" name="{{item.codeName}}"
:value="state.data.{{item.psEditor.name}}"
{{#if item.psEditor.editorParams.method}} {{#if item.psEditor.editorParams.method}}
method="{{item.psEditor.editorParams.method}}" method="{{item.psEditor.editorParams.method}}"
{{/if}} {{/if}}
...@@ -30,4 +29,12 @@ ...@@ -30,4 +29,12 @@
accept='image/*' accept='image/*'
listType="picture-card" listType="picture-card"
{{/eq}} {{/eq}}
@editorEvent="handleEditorEvent"/> {{#if (or (eq ctrlType 'form') (eq ctrlType 'panel'))}}
:value="state.data.{{item.psEditor.name}}"
@editorEvent="handleEditorEvent"
{{/if}}
{{#if ctrlType 'grid'}}
:value="record.{{item.psEditor.name}}"
@editorEvent="($event) => handleEditorEvent(index,$event)"
{{/if}}
/>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<a-col :span="24"> <a-col :span="24">
<IbizFormItem name="{{item.codeName}}" label="{{item.caption}}"> <IbizFormItem name="{{item.codeName}}" label="{{item.caption}}">
{{#if item.psEditor}} {{#if item.psEditor}}
{{>(lookup . 'item.psEditor.editorType') item=item controlType="form"}} {{>(lookup . 'item.psEditor.editorType') item=item ctrlType="form"}}
{{/if}} {{/if}}
</IbizFormItem> </IbizFormItem>
</a-col> </a-col>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册