提交 8510248e 编写于 作者: ibizdev's avatar ibizdev

ShineKOT 发布系统代码 [后台服务,演示应用]

上级 6798f9e8
...@@ -115,12 +115,7 @@ ...@@ -115,12 +115,7 @@
<app-preset-text name="field_text_dynamic" :index="slotProps.data.index" :value="layoutData[`field_text_dynamic_${slotProps.data.index}`]" :layoutModelDetails="layoutModelDetails"/> <app-preset-text name="field_text_dynamic" :index="slotProps.data.index" :value="layoutData[`field_text_dynamic_${slotProps.data.index}`]" :layoutModelDetails="layoutModelDetails"/>
</template> </template>
<template #field_textbox> <template #field_textbox>
<app-panel-field <app-panel-field name="field_textbox" :index="slotProps.data.index" :data="layoutData" :value="layoutData[`field_textbox_${slotProps.data.index}`]"> </app-panel-field>
name="field_textbox"
:index="slotProps.data.index"
:data="layoutData"
:value="layoutData[`field_textbox_${slotProps.data.index}`]">
</app-panel-field>
</template> </template>
</app-standard-container> </app-standard-container>
</template> </template>
......
...@@ -8,9 +8,6 @@ ...@@ -8,9 +8,6 @@
<app-scroll-container name="container_scroll1" :layoutModelDetails="layoutModelDetails"> <app-scroll-container name="container_scroll1" :layoutModelDetails="layoutModelDetails">
<template #container_scroll_main1> <template #container_scroll_main1>
<app-scroll-container name="container_scroll_main1" :layoutModelDetails="layoutModelDetails"> <app-scroll-container name="container_scroll_main1" :layoutModelDetails="layoutModelDetails">
<template #nav_pos1>
<app-nav-pos name="nav_pos1" :layoutModelDetails="layoutModelDetails" :navData="layoutModelDetails['nav_pos1'].navData"/>
</template>
<template #form> <template #form>
<app-ctrl-pos name="form" :layoutModelDetails="layoutModelDetails"> <app-ctrl-pos name="form" :layoutModelDetails="layoutModelDetails">
<view_form <view_form
...@@ -38,6 +35,9 @@ ...@@ -38,6 +35,9 @@
</view_form> </view_form>
</app-ctrl-pos> </app-ctrl-pos>
</template> </template>
<template #nav_pos1>
<app-nav-pos name="nav_pos1" :layoutModelDetails="layoutModelDetails" :navData="layoutModelDetails['nav_pos1'].navData"/>
</template>
</app-scroll-container> </app-scroll-container>
</template> </template>
<template #container_scroll_header1> <template #container_scroll_header1>
...@@ -404,9 +404,9 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue { ...@@ -404,9 +404,9 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
* @memberof IBIZOrderSEditView3_layoutBase * @memberof IBIZOrderSEditView3_layoutBase
*/ */
public layoutItems:any = { public layoutItems:any = {
nav_pos1:{ name: 'nav_pos1', type: 'VIEWLAYOUT', caption: '导航区占位', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'FULL', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , viewType: 'DEEDITVIEW3', predefinedType: 'NAV_POS', contentType: '', contentStyle: '', rawContent: '', htmlContent: '', },
form:{ name: 'form', type: 'VIEWLAYOUT', caption: '表单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'FULL', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this }, form:{ name: 'form', type: 'VIEWLAYOUT', caption: '表单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'FULL', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this },
container_scroll_main1:{ name: 'container_scroll_main1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll1', panel: this , details:['nav_pos1','form'] , dataRegionType: 'INHERIT' }, nav_pos1:{ name: 'nav_pos1', type: 'VIEWLAYOUT', caption: '导航区占位', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'FULL', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , viewType: 'DEEDITVIEW3', predefinedType: 'NAV_POS', contentType: '', contentStyle: '', rawContent: '', htmlContent: '', },
container_scroll_main1:{ name: 'container_scroll_main1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll1', panel: this , details:['form','nav_pos1'] , dataRegionType: 'INHERIT' },
drtab:{ name: 'drtab', type: 'VIEWLAYOUT', caption: 'DRTAB部件', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:50, heightMode:'PX', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header1', panel: this }, drtab:{ name: 'drtab', type: 'VIEWLAYOUT', caption: 'DRTAB部件', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:50, heightMode:'PX', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header1', panel: this },
container_scroll_header1:{ name: 'container_scroll_header1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'NORTH', layoutHeight:50, heightMode:'PX', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll1', panel: this , details:['drtab'] , dataRegionType: 'INHERIT' }, container_scroll_header1:{ name: 'container_scroll_header1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'NORTH', layoutHeight:50, heightMode:'PX', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll1', panel: this , details:['drtab'] , dataRegionType: 'INHERIT' },
container_scroll1:{ name: 'container_scroll1', type: 'VIEWLAYOUT', caption: '滚动条容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main2', panel: this , details:['container_scroll_main1','container_scroll_header1'] , dataRegionType: 'INHERIT' }, container_scroll1:{ name: 'container_scroll1', type: 'VIEWLAYOUT', caption: '滚动条容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main2', panel: this , details:['container_scroll_main1','container_scroll_header1'] , dataRegionType: 'INHERIT' },
......
...@@ -24,6 +24,9 @@ ...@@ -24,6 +24,9 @@
</view_drtab> </view_drtab>
</app-ctrl-pos> </app-ctrl-pos>
</template> </template>
<template #nav_pos1>
<app-nav-pos name="nav_pos1" :layoutModelDetails="layoutModelDetails" :navData="layoutModelDetails['nav_pos1'].navData"/>
</template>
</app-scroll-container> </app-scroll-container>
</template> </template>
<template #container_scroll_header2> <template #container_scroll_header2>
...@@ -55,13 +58,6 @@ ...@@ -55,13 +58,6 @@
</view_form> </view_form>
</app-ctrl-pos> </app-ctrl-pos>
</template> </template>
</app-scroll-container>
</template>
<template #container_scroll_bottom1>
<app-scroll-container name="container_scroll_bottom1" :layoutModelDetails="layoutModelDetails">
<template #nav_pos1>
<app-nav-pos name="nav_pos1" :layoutModelDetails="layoutModelDetails" :navData="layoutModelDetails['nav_pos1'].navData"/>
</template>
</app-scroll-container> </app-scroll-container>
</template> </template>
</app-scroll-container> </app-scroll-container>
...@@ -410,13 +406,12 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue { ...@@ -410,13 +406,12 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
* @memberof IBIZOrderSEditView4_layoutBase * @memberof IBIZOrderSEditView4_layoutBase
*/ */
public layoutItems:any = { public layoutItems:any = {
drtab:{ name: 'drtab', type: 'VIEWLAYOUT', caption: 'DRTAB部件', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main2', panel: this }, drtab:{ name: 'drtab', type: 'VIEWLAYOUT', caption: 'DRTAB部件', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:50, heightMode:'PX', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main2', panel: this },
container_scroll_main2:{ name: 'container_scroll_main2', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:50, heightMode:'PX', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll2', panel: this , details:['drtab'] , dataRegionType: 'INHERIT' }, nav_pos1:{ name: 'nav_pos1', type: 'VIEWLAYOUT', caption: '导航区占位', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'FULL', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main2', panel: this , viewType: 'DEEDITVIEW4', predefinedType: 'NAV_POS', contentType: '', contentStyle: '', rawContent: '', htmlContent: '', },
container_scroll_main2:{ name: 'container_scroll_main2', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll2', panel: this , details:['drtab','nav_pos1'] , dataRegionType: 'INHERIT' },
form:{ name: 'form', type: 'VIEWLAYOUT', caption: '表单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header2', panel: this }, form:{ name: 'form', type: 'VIEWLAYOUT', caption: '表单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header2', panel: this },
container_scroll_header2:{ name: 'container_scroll_header2', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'NORTH', layoutHeight:80, heightMode:'FULL', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll2', panel: this , details:['form'] , dataRegionType: 'INHERIT' }, container_scroll_header2:{ name: 'container_scroll_header2', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'NORTH', layoutHeight:50, heightMode:'PERCENTAGE', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll2', panel: this , details:['form'] , dataRegionType: 'INHERIT' },
nav_pos1:{ name: 'nav_pos1', type: 'VIEWLAYOUT', caption: '导航区占位', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_bottom1', panel: this , viewType: 'DEEDITVIEW4', predefinedType: 'NAV_POS', contentType: '', contentStyle: '', rawContent: '', htmlContent: '', }, container_scroll2:{ name: 'container_scroll2', type: 'VIEWLAYOUT', caption: '滚动条容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , details:['container_scroll_main2','container_scroll_header2'] , dataRegionType: 'INHERIT' },
container_scroll_bottom1:{ name: 'container_scroll_bottom1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'SOUTH', layoutHeight:80, heightMode:'FULL', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll2', panel: this , details:['nav_pos1'] , dataRegionType: 'INHERIT' },
container_scroll2:{ name: 'container_scroll2', type: 'VIEWLAYOUT', caption: '滚动条容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , details:['container_scroll_main2','container_scroll_header2','container_scroll_bottom1'] , dataRegionType: 'INHERIT' },
container_scroll_main1:{ name: 'container_scroll_main1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll1', panel: this , details:['container_scroll2'] , dataRegionType: 'INHERIT' }, container_scroll_main1:{ name: 'container_scroll_main1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll1', panel: this , details:['container_scroll2'] , dataRegionType: 'INHERIT' },
view_pagecaption:{ name: 'view_pagecaption', type: 'VIEWLAYOUT', caption: '页面标题', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'LEFT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', dataItemName:'', }, view_pagecaption:{ name: 'view_pagecaption', type: 'VIEWLAYOUT', caption: '页面标题', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'LEFT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', dataItemName:'', },
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['view_pagecaption'] , dataRegionType: 'INHERIT' }, container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['view_pagecaption'] , dataRegionType: 'INHERIT' },
......
...@@ -21,20 +21,16 @@ ...@@ -21,20 +21,16 @@
<app-preset-switch name="field_switch" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_switch" @valueChange="handleValueChange"/> <app-preset-switch name="field_switch" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_switch" @valueChange="handleValueChange"/>
</template> </template>
<template #field_textbox> <template #field_textbox>
<app-panel-field <app-panel-field name="field_textbox" :data="layoutData" :value="layoutData.field_textbox"> </app-panel-field>
name="field_textbox"
:data="layoutData"
:value="layoutData.field_textbox">
</app-panel-field>
</template> </template>
<template #field_textbox1> <template #field_textbox1>
<app-panel-field <app-panel-field name="field_textbox1" :data="layoutData" :value="layoutData.field_textbox1"> <dropdown-list :value="layoutData.field_textbox1" :data="layoutData" :context="context" :viewparams="viewparams" :formState="viewState" :disabled="layoutModelDetails.field_textbox1.disabled" :localContext={} :localParam={} placeholder='请选择...' @change="(value) => handleValueChange({ name: 'field_textbox1', value})"> </dropdown-list> </app-panel-field>
name="field_textbox1" </template>
<template #field_textbox2>
:data="layoutData" <app-panel-field name="field_textbox2" :data="layoutData" :value="layoutData.field_textbox2"> <input-box type="number" :precision="2" :value="layoutData.field_textbox2" :disabled="layoutModelDetails.field_textbox2.disabled" @change="(value) => handleValueChange({ name: 'field_textbox2', value})"> </input-box> </app-panel-field>
:value="layoutData.field_textbox1"> </template>
</app-panel-field> <template #field_textbox3>
<app-panel-field name="field_textbox3" :data="layoutData" :value="layoutData.field_textbox3"> </app-panel-field>
</template> </template>
<template #field_qrcode> <template #field_qrcode>
<app-preset-qrcode name="field_qrcode" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_qrcode" /> <app-preset-qrcode name="field_qrcode" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_qrcode" />
...@@ -300,6 +296,8 @@ export default class AppIndexViewBase extends Vue { ...@@ -300,6 +296,8 @@ export default class AppIndexViewBase extends Vue {
field_switch:{ name: 'field_switch', type: 'VIEWLAYOUT', caption: '开关', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'FIELD_SWITCH', dataItemName:'', }, field_switch:{ name: 'field_switch', type: 'VIEWLAYOUT', caption: '开关', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'FIELD_SWITCH', dataItemName:'', },
field_textbox:{ name: 'field_textbox', type: 'VIEWLAYOUT', caption: '文本框', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'FIELD_TEXTBOX', dataItemName:'', }, field_textbox:{ name: 'field_textbox', type: 'VIEWLAYOUT', caption: '文本框', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'FIELD_TEXTBOX', dataItemName:'', },
field_textbox1:{ name: 'field_textbox1', type: 'VIEWLAYOUT', caption: '文本框', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'FIELD_TEXTBOX', dataItemName:'', }, field_textbox1:{ name: 'field_textbox1', type: 'VIEWLAYOUT', caption: '文本框', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'FIELD_TEXTBOX', dataItemName:'', },
field_textbox2:{ name: 'field_textbox2', type: 'VIEWLAYOUT', caption: '文本框', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'FIELD_TEXTBOX', dataItemName:'', },
field_textbox3:{ name: 'field_textbox3', type: 'VIEWLAYOUT', caption: '文本框', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'FIELD_TEXTBOX', dataItemName:'', },
field_qrcode:{ name: 'field_qrcode', type: 'VIEWLAYOUT', caption: '二维码', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'FIELD_QRCODE', dataItemName:'', }, field_qrcode:{ name: 'field_qrcode', type: 'VIEWLAYOUT', caption: '二维码', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: 'FIELD_QRCODE', dataItemName:'', },
button_link1:{ name: 'button_link1', type: 'VIEWLAYOUT', caption: '页面链接', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DEFAULT', iconAlign: '', renderMode: 'LINK', }, button_link1:{ name: 'button_link1', type: 'VIEWLAYOUT', caption: '页面链接', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DEFAULT', iconAlign: '', renderMode: 'LINK', },
button_openview:{ name: 'button_openview', type: 'VIEWLAYOUT', caption: '打开页面', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DEFAULT', iconAlign: '', renderMode: '', }, button_openview:{ name: 'button_openview', type: 'VIEWLAYOUT', caption: '打开页面', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DEFAULT', iconAlign: '', renderMode: '', },
...@@ -312,7 +310,7 @@ export default class AppIndexViewBase extends Vue { ...@@ -312,7 +310,7 @@ export default class AppIndexViewBase extends Vue {
button_calluilogic9:{ name: 'button_calluilogic9', type: 'VIEWLAYOUT', caption: '同步数据按钮', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'INVERSE', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'INVERSE', iconAlign: '', predefinedType: 'DATA_SYNCHRONIZE', renderMode: '', }, button_calluilogic9:{ name: 'button_calluilogic9', type: 'VIEWLAYOUT', caption: '同步数据按钮', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'INVERSE', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'INVERSE', iconAlign: '', predefinedType: 'DATA_SYNCHRONIZE', renderMode: '', },
button_calluilogic10:{ name: 'button_calluilogic10', type: 'VIEWLAYOUT', caption: '自定义按钮', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DANGER', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DANGER', iconAlign: '', renderMode: '', }, button_calluilogic10:{ name: 'button_calluilogic10', type: 'VIEWLAYOUT', caption: '自定义按钮', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DANGER', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DANGER', iconAlign: '', renderMode: '', },
open_yuque:{ name: 'open_yuque', type: 'VIEWLAYOUT', caption: '语雀文档', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DEFAULT', iconAlign: '', renderMode: '', }, open_yuque:{ name: 'open_yuque', type: 'VIEWLAYOUT', caption: '语雀文档', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DEFAULT', iconAlign: '', renderMode: '', },
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'column',vAlign:''}, panel: this , details:['app_apptitle','view_pagecaption','static_label1','static_text1','field_text_dynamic','field_switch','field_textbox','field_textbox1','field_qrcode','button_link1','button_openview','button_calluilogic1','button_calluilogic2','button_calluilogic3','button_calluilogic5','button_calluilogic6','button_calluilogic8','button_calluilogic9','button_calluilogic10','open_yuque'] , dataRegionType: 'INHERIT' } container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'column',vAlign:''}, panel: this , details:['app_apptitle','view_pagecaption','static_label1','static_text1','field_text_dynamic','field_switch','field_textbox','field_textbox1','field_textbox2','field_textbox3','field_qrcode','button_link1','button_openview','button_calluilogic1','button_calluilogic2','button_calluilogic3','button_calluilogic5','button_calluilogic6','button_calluilogic8','button_calluilogic9','button_calluilogic10','open_yuque'] , dataRegionType: 'INHERIT' }
}; };
/** /**
......
...@@ -30,14 +30,19 @@ export default class GridLoadUILogicBase { ...@@ -30,14 +30,19 @@ export default class GridLoadUILogicBase {
*/ */
protected logicParams: any[] = [ protected logicParams: any[] = [
{ {
name: '应用上下文', name: '当前表格',
codeName: 'context', codeName: 'grid',
navContextParam: true, ctrlParam: true,
}, },
{ {
name: '路由会话变量', name: '额外参数',
codeName: 'routerParam', codeName: 'otherParam',
routeViewSessionParam: true, entityParam: true,
},
{
name: '当前搜索表单',
codeName: 'searchForm',
ctrlParam: true,
}, },
{ {
name: '当前视图参数', name: '当前视图参数',
...@@ -45,9 +50,14 @@ export default class GridLoadUILogicBase { ...@@ -45,9 +50,14 @@ export default class GridLoadUILogicBase {
viewNavDataParam: true, viewNavDataParam: true,
}, },
{ {
name: '额外参数', name: '当前视图',
codeName: 'otherParam', codeName: 'view',
entityParam: true, activeViewParam: true,
},
{
name: '路由会话变量',
codeName: 'routerParam',
routeViewSessionParam: true,
}, },
{ {
name: '当前系统名称', name: '当前系统名称',
...@@ -60,19 +70,9 @@ export default class GridLoadUILogicBase { ...@@ -60,19 +70,9 @@ export default class GridLoadUILogicBase {
entityParam: true, entityParam: true,
}, },
{ {
name: '当前搜索表单', name: '应用上下文',
codeName: 'searchForm', codeName: 'context',
ctrlParam: true, navContextParam: true,
},
{
name: '当前视图',
codeName: 'view',
activeViewParam: true,
},
{
name: '当前表格',
codeName: 'grid',
ctrlParam: true,
}, },
]; ];
...@@ -129,129 +129,145 @@ export default class GridLoadUILogicBase { ...@@ -129,129 +129,145 @@ export default class GridLoadUILogicBase {
} }
/** /**
* 搜索表单loadDraft * 消息弹窗
* *
* @param {UIActionContext} actionContext 界面逻辑上下文 * @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase * @memberof GridLoadUILogicBase
*/ */
protected async execute_viewctrlinvoke1_node(actionContext: UIActionContext) { protected async execute_msgbox1_node(actionContext: UIActionContext) {
const invokeCtrl = 'searchForm'; return new Promise<void>((resolve: any) => {
const invokeMethod = 'loadDraft'; const msgBoxParam: any = actionContext.getParam('');
const invokeParam = 'viewParam'; const data = msgBoxParam ? msgBoxParam.getReal() : {};
if (!invokeCtrl || !invokeMethod) { const options = {
throw new Error(`界面对象或者调用方法缺失`); type: 'INFO',
} title: data && data.title ? data.title : '触发',
const invokeUICtrl = actionContext.getParam(invokeCtrl).getReal(); content: data && data.message ? data.message : '我被触发啦',
if (invokeUICtrl[invokeMethod] && invokeUICtrl[invokeMethod] instanceof Function) { buttonType: 'ok',
try { showMode: 'center',
const result = await invokeUICtrl[invokeMethod](); showClose: false,
if (invokeParam) { mask: true,
actionContext.getParam(invokeParam).bind(result); maskClosable: true
};
const subject: Subject<any> | null = AppMessageBox.getInstance().open(options);
if (subject) {
const handleResponse = (result: any) => {
if (msgBoxParam) {
msgBoxParam.bind(result);
}
actionContext.bindLastReturnParam(result);
return true;
} }
actionContext.bindLastReturnParam(result); const subscription = subject.subscribe((result: any) => {
} catch (error:any) { resolve(handleResponse(result));
throw new Error(`${invokeCtrl}界面对象调用${invokeMethod}方法发生异常`); subscription!.unsubscribe();
subject.complete();
});
} else {
resolve(true);
} }
} else { });
throw new Error(`${invokeCtrl}界面对象不存在${invokeMethod}方法`); console.log('已完成执行 消息弹窗 节点');
} await this.execute_debugparam1_node(actionContext);
console.log('已完成执行 搜索表单loadDraft 节点');
await this.execute_viewctrlinvoke2_node(actionContext);
} }
/** /**
* 准备参数 * 实体行为
* *
* @param {UIActionContext} actionContext 界面逻辑上下文 * @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase * @memberof GridLoadUILogicBase
*/ */
protected async execute_preparejsparam1_node(actionContext: UIActionContext) { protected async execute_deaction1_node(actionContext: UIActionContext) {
try { const dstParam = actionContext.getParam('otherParam');
// 目标数据 if (!Object.is(dstParam.logicParamType, UILogicParamType.entityListParam) && !Object.is(dstParam.logicParamType, UILogicParamType.entityParam)) {
const dstParam_1: any = actionContext.getParam('otherParam'); throw new Error(`实体行为操作参数只能为数据对象变量类型或者数据对象列表类型`);
// 无值类型
// 直接值
const result_1 = '12';
dstParam_1.set('book', result_1);
} catch (error: any) {
throw new Error(`逻辑节点 准备参数 ${error && error.message ? error.message : '发生未知错误!'}`);
} }
console.log('已完成执行 准备参数 节点'); const retParam = actionContext.getParam('Default');
await this.execute_deaction1_node(actionContext);
}
/**
* 实体处理逻辑
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected async execute_delogic1_node(actionContext: UIActionContext) {
const dstParam = actionContext.getParam('viewParam');
const retParam = actionContext.getParam('viewParam');
if (dstParam) { if (dstParam) {
try { try {
const deLogic: InitDataLogic = new InitDataLogic({ context: actionContext.context, data: dstParam.getReal() ? dstParam.getReal() : {} }); const service: any = await window.entityServiceRegister.getService('ibizbook');
const result = await deLogic.onExecute(actionContext.context, dstParam.getReal() ? dstParam.getReal() : {}, false); const getTempContext = (data: any) => {
if (result) { const tempContext = Util.deepCopy(actionContext.context);
if(retParam){ if (data) {
retParam.bind(result); Object.assign(tempContext, data);
}
return tempContext;
}
// 数据对象变量类型
if (Object.is(dstParam.logicParamType, UILogicParamType.entityParam)) {
const tempContext = getTempContext(dstParam.getReal());
const res = await service['Get'](tempContext, dstParam.getReal() ? dstParam.getReal() : {});
if (res && res.status === 200 && res.data) {
if (retParam) {
retParam.bind(res.data);
}
actionContext.bindLastReturnParam(res.data);
} else {
throw new Error(`执行实体行为失败`);
} }
actionContext.bindLastReturnParam(result);
} else { } else {
throw new Error(`调用实体处理逻辑异常`); // 数据对象列表类型
if (dstParam.getReal() && (dstParam.getReal().length > 0)) {
if (dstParam.getReal().length > 20) {
throw new Error(`操作数据量超过20条,建议使用后台处理逻辑`);
}
let promises: any[] = [];
dstParam.getReal().forEach((item: any) => {
const tempContext = getTempContext(item);
promises.push(service['Get'](tempContext, item ? item : {}));
})
const resArray = await Promise.all(promises);
if (resArray && resArray.length > 0) {
const resultArray: any[] = [];
resArray.forEach((res: any) => {
if (res && res.status === 200 && res.data) {
resultArray.push(res.data);
}
})
if (retParam) {
retParam.bind(resultArray);
}
actionContext.bindLastReturnParam(resultArray);
} else {
throw new Error(`执行实体行为失败`);
}
} else {
if (retParam) {
retParam.bind([]);
}
actionContext.bindLastReturnParam([]);
}
} }
} catch (error: any) { } catch (error: any) {
throw new Error(`调用实体处理逻辑异常${error && error.message ? error.message : ''}`); throw new Error(`${error.message ? error.message : error.data && error.data.message ? error.data.message : '执行实体行为失败'}`);
} }
} else { } else {
throw new Error(`操作参数缺失!`); throw new Error(`操作参数缺失!`);
} }
console.log('已完成执行 实体处理逻辑 节点'); console.log('已完成执行 实体行为 节点');
await this.execute_msgbox1_node(actionContext); await this.execute_end1_node(actionContext);
await this.execute_preparejsparam1_node(actionContext);
} }
/** /**
* 调试逻辑参数 * 视图部件事件触发
* *
* @param {UIActionContext} actionContext 界面逻辑上下文 * @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase * @memberof GridLoadUILogicBase
*/ */
protected async execute_debugparam1_node(actionContext: UIActionContext) { protected async execute_viewctrlfireevent1_node(actionContext: UIActionContext) {
// TODO 等待补充 // TODO 等待补充
console.log('已完成执行 调试逻辑参数 节点'); console.log('已完成执行 视图部件事件触发 节点');
} }
/** /**
* 表格加载 * 调试逻辑参数
* *
* @param {UIActionContext} actionContext 界面逻辑上下文 * @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase * @memberof GridLoadUILogicBase
*/ */
protected async execute_viewctrlinvoke2_node(actionContext: UIActionContext) { protected async execute_debugparam1_node(actionContext: UIActionContext) {
const invokeCtrl = 'grid'; // TODO 等待补充
const invokeMethod = 'load'; console.log('已完成执行 调试逻辑参数 节点');
const invokeParam = 'viewParam'; await this.execute_viewctrlfireevent1_node(actionContext);
if (!invokeCtrl || !invokeMethod) {
throw new Error(`界面对象或者调用方法缺失`);
}
const invokeUICtrl = actionContext.getParam(invokeCtrl).getReal();
if (invokeUICtrl[invokeMethod] && invokeUICtrl[invokeMethod] instanceof Function) {
try {
const result = await invokeUICtrl[invokeMethod]();
if (invokeParam) {
actionContext.getParam(invokeParam).bind(result);
}
actionContext.bindLastReturnParam(result);
} catch (error:any) {
throw new Error(`${invokeCtrl}界面对象调用${invokeMethod}方法发生异常`);
}
} else {
throw new Error(`${invokeCtrl}界面对象不存在${invokeMethod}方法`);
}
console.log('已完成执行 表格加载 节点');
await this.execute_preparejsparam2_node(actionContext);
} }
/** /**
...@@ -281,6 +297,59 @@ export default class GridLoadUILogicBase { ...@@ -281,6 +297,59 @@ export default class GridLoadUILogicBase {
await this.execute_bindparam2_node(actionContext); await this.execute_bindparam2_node(actionContext);
} }
/**
* 准备参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected async execute_preparejsparam2_node(actionContext: UIActionContext) {
try {
// 目标数据
const dstParam_1: any = actionContext.getParam('context');
// 无值类型
// 直接值
const result_1 = '12';
dstParam_1.set('ibizbook', result_1);
} catch (error: any) {
throw new Error(`逻辑节点 准备参数 ${error && error.message ? error.message : '发生未知错误!'}`);
}
console.log('已完成执行 准备参数 节点');
await this.execute_delogic1_node(actionContext);
}
/**
* 实体处理逻辑
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected async execute_delogic1_node(actionContext: UIActionContext) {
const dstParam = actionContext.getParam('viewParam');
const retParam = actionContext.getParam('viewParam');
if (dstParam) {
try {
const deLogic: InitDataLogic = new InitDataLogic({ context: actionContext.context, data: dstParam.getReal() ? dstParam.getReal() : {} });
const result = await deLogic.onExecute(actionContext.context, dstParam.getReal() ? dstParam.getReal() : {}, false);
if (result) {
if(retParam){
retParam.bind(result);
}
actionContext.bindLastReturnParam(result);
} else {
throw new Error(`调用实体处理逻辑异常`);
}
} catch (error: any) {
throw new Error(`调用实体处理逻辑异常${error && error.message ? error.message : ''}`);
}
} else {
throw new Error(`操作参数缺失!`);
}
console.log('已完成执行 实体处理逻辑 节点');
await this.execute_msgbox1_node(actionContext);
await this.execute_preparejsparam1_node(actionContext);
}
/** /**
* 绑定表格 * 绑定表格
* *
...@@ -309,80 +378,34 @@ export default class GridLoadUILogicBase { ...@@ -309,80 +378,34 @@ export default class GridLoadUILogicBase {
} }
/** /**
* 实体行为 * 表格加载
* *
* @param {UIActionContext} actionContext 界面逻辑上下文 * @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase * @memberof GridLoadUILogicBase
*/ */
protected async execute_deaction1_node(actionContext: UIActionContext) { protected async execute_viewctrlinvoke2_node(actionContext: UIActionContext) {
const dstParam = actionContext.getParam('otherParam'); const invokeCtrl = 'grid';
if (!Object.is(dstParam.logicParamType, UILogicParamType.entityListParam) && !Object.is(dstParam.logicParamType, UILogicParamType.entityParam)) { const invokeMethod = 'load';
throw new Error(`实体行为操作参数只能为数据对象变量类型或者数据对象列表类型`); const invokeParam = 'viewParam';
if (!invokeCtrl || !invokeMethod) {
throw new Error(`界面对象或者调用方法缺失`);
} }
const retParam = actionContext.getParam('Default'); const invokeUICtrl = actionContext.getParam(invokeCtrl).getReal();
if (dstParam) { if (invokeUICtrl[invokeMethod] && invokeUICtrl[invokeMethod] instanceof Function) {
try { try {
const service: any = await window.entityServiceRegister.getService('ibizbook'); const result = await invokeUICtrl[invokeMethod]();
const getTempContext = (data: any) => { if (invokeParam) {
const tempContext = Util.deepCopy(actionContext.context); actionContext.getParam(invokeParam).bind(result);
if (data) {
Object.assign(tempContext, data);
}
return tempContext;
}
// 数据对象变量类型
if (Object.is(dstParam.logicParamType, UILogicParamType.entityParam)) {
const tempContext = getTempContext(dstParam.getReal());
const res = await service['Get'](tempContext, dstParam.getReal() ? dstParam.getReal() : {});
if (res && res.status === 200 && res.data) {
if (retParam) {
retParam.bind(res.data);
}
actionContext.bindLastReturnParam(res.data);
} else {
throw new Error(`执行实体行为失败`);
}
} else {
// 数据对象列表类型
if (dstParam.getReal() && (dstParam.getReal().length > 0)) {
if (dstParam.getReal().length > 20) {
throw new Error(`操作数据量超过20条,建议使用后台处理逻辑`);
}
let promises: any[] = [];
dstParam.getReal().forEach((item: any) => {
const tempContext = getTempContext(item);
promises.push(service['Get'](tempContext, item ? item : {}));
})
const resArray = await Promise.all(promises);
if (resArray && resArray.length > 0) {
const resultArray: any[] = [];
resArray.forEach((res: any) => {
if (res && res.status === 200 && res.data) {
resultArray.push(res.data);
}
})
if (retParam) {
retParam.bind(resultArray);
}
actionContext.bindLastReturnParam(resultArray);
} else {
throw new Error(`执行实体行为失败`);
}
} else {
if (retParam) {
retParam.bind([]);
}
actionContext.bindLastReturnParam([]);
}
} }
} catch (error: any) { actionContext.bindLastReturnParam(result);
throw new Error(`${error.message ? error.message : error.data && error.data.message ? error.data.message : '执行实体行为失败'}`); } catch (error:any) {
throw new Error(`${invokeCtrl}界面对象调用${invokeMethod}方法发生异常`);
} }
} else { } else {
throw new Error(`操作参数缺失!`); throw new Error(`${invokeCtrl}界面对象不存在${invokeMethod}方法`);
} }
console.log('已完成执行 实体行为 节点'); console.log('已完成执行 表格加载 节点');
await this.execute_end1_node(actionContext); await this.execute_preparejsparam2_node(actionContext);
} }
/** /**
...@@ -412,67 +435,56 @@ export default class GridLoadUILogicBase { ...@@ -412,67 +435,56 @@ export default class GridLoadUILogicBase {
console.log('已完成执行 结束 节点'); console.log('已完成执行 结束 节点');
} }
/**
* 搜索表单loadDraft
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected async execute_viewctrlinvoke1_node(actionContext: UIActionContext) {
const invokeCtrl = 'searchForm';
const invokeMethod = 'loadDraft';
const invokeParam = 'viewParam';
if (!invokeCtrl || !invokeMethod) {
throw new Error(`界面对象或者调用方法缺失`);
}
const invokeUICtrl = actionContext.getParam(invokeCtrl).getReal();
if (invokeUICtrl[invokeMethod] && invokeUICtrl[invokeMethod] instanceof Function) {
try {
const result = await invokeUICtrl[invokeMethod]();
if (invokeParam) {
actionContext.getParam(invokeParam).bind(result);
}
actionContext.bindLastReturnParam(result);
} catch (error:any) {
throw new Error(`${invokeCtrl}界面对象调用${invokeMethod}方法发生异常`);
}
} else {
throw new Error(`${invokeCtrl}界面对象不存在${invokeMethod}方法`);
}
console.log('已完成执行 搜索表单loadDraft 节点');
await this.execute_viewctrlinvoke2_node(actionContext);
}
/** /**
* 准备参数 * 准备参数
* *
* @param {UIActionContext} actionContext 界面逻辑上下文 * @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase * @memberof GridLoadUILogicBase
*/ */
protected async execute_preparejsparam2_node(actionContext: UIActionContext) { protected async execute_preparejsparam1_node(actionContext: UIActionContext) {
try { try {
// 目标数据 // 目标数据
const dstParam_1: any = actionContext.getParam('context'); const dstParam_1: any = actionContext.getParam('otherParam');
// 无值类型 // 无值类型
// 直接值 // 直接值
const result_1 = '12'; const result_1 = '12';
dstParam_1.set('ibizbook', result_1); dstParam_1.set('book', result_1);
} catch (error: any) { } catch (error: any) {
throw new Error(`逻辑节点 准备参数 ${error && error.message ? error.message : '发生未知错误!'}`); throw new Error(`逻辑节点 准备参数 ${error && error.message ? error.message : '发生未知错误!'}`);
} }
console.log('已完成执行 准备参数 节点'); console.log('已完成执行 准备参数 节点');
await this.execute_delogic1_node(actionContext); await this.execute_deaction1_node(actionContext);
}
/**
* 消息弹窗
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected async execute_msgbox1_node(actionContext: UIActionContext) {
return new Promise<void>((resolve: any) => {
const msgBoxParam: any = actionContext.getParam('');
const data = msgBoxParam ? msgBoxParam.getReal() : {};
const options = {
type: 'INFO',
title: data && data.title ? data.title : '触发',
content: data && data.message ? data.message : '我被触发啦',
buttonType: 'ok',
showMode: 'center',
showClose: false,
mask: true,
maskClosable: true
};
const subject: Subject<any> | null = AppMessageBox.getInstance().open(options);
if (subject) {
const handleResponse = (result: any) => {
if (msgBoxParam) {
msgBoxParam.bind(result);
}
actionContext.bindLastReturnParam(result);
return true;
}
const subscription = subject.subscribe((result: any) => {
resolve(handleResponse(result));
subscription!.unsubscribe();
subject.complete();
});
} else {
resolve(true);
}
});
console.log('已完成执行 消息弹窗 节点');
await this.execute_debugparam1_node(actionContext);
} }
......
...@@ -657,7 +657,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -657,7 +657,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}, isReset: boolean = false): void { public load(opt: any = {}, isReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return; return;
} }
const arg: any = {...opt}; const arg: any = {...opt};
...@@ -736,7 +736,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -736,7 +736,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/ */
public async remove(datas: any[]): Promise<any> { public async remove(datas: any[]): Promise<any> {
if(!this.removeAction){ if(!this.removeAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
return; return;
} }
let _datas:any[] = []; let _datas:any[] = [];
...@@ -845,7 +845,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -845,7 +845,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
try { try {
if(Object.is(item.rowDataState, 'create')){ if(Object.is(item.rowDataState, 'create')){
if(!this.createAction){ if(!this.createAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.createAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator); let response = await this.service.add(this.createAction, JSON.parse(JSON.stringify(this.context)),item, this.showBusyIndicator);
...@@ -853,7 +853,7 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -853,7 +853,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
} }
}else if(Object.is(item.rowDataState, 'update')){ }else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){ if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr4DataView' + (this.$t('app.list.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKTestCLDataView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){ if(item.ibizbook){
......
...@@ -69,11 +69,6 @@ export default class Usr4Model { ...@@ -69,11 +69,6 @@ export default class Usr4Model {
prop: 'n_ibizbookname_like', prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM' dataType: 'QUERYPARAM'
}, },
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{ {
......
...@@ -2076,53 +2076,139 @@ ...@@ -2076,53 +2076,139 @@
} ], } ],
"parallelOutput" : true "parallelOutput" : true
}, { }, {
"codeName" : "VIEWCTRLINVOKE1", "buttonsType" : "OK",
"getInvokeCtrl" : { "codeName" : "MSGBOX1",
"logicNodeType" : "MSGBOX",
"message" : "我被触发啦",
"msgBoxType" : "INFO",
"name" : "消息弹窗",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "DEBUGPARAM1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "MSGBOX1"
}
} ],
"showMode" : "CENTER",
"title" : "触发"
}, {
"codeName" : "DEACTION1",
"getDstPSAppDEAction" : {
"modelref" : true, "modelref" : true,
"id" : "searchForm" "id" : "Get"
}, },
"invokeMethod" : "loadDraft", "getDstPSAppDataEntity" : {
"getInvokeParam" : { "modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "otherParam"
},
"logicNodeType" : "DEACTION",
"name" : "实体行为",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "END1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "DEACTION1"
}
} ],
"getRetPSDEUILogicParam" : {
"modelref" : true,
"id" : "Default"
}
}, {
"codeName" : "VIEWCTRLFIREEVENT1",
"eventName" : "load",
"getEventParam" : {
"modelref" : true, "modelref" : true,
"id" : "viewParam" "id" : "viewParam"
}, },
"logicNodeType" : "VIEWCTRLINVOKE", "getFireCtrl" : {
"name" : "搜索表单loadDraft", "modelref" : true,
"id" : "grid"
},
"logicNodeType" : "VIEWCTRLFIREEVENT",
"name" : "视图部件事件触发"
}, {
"codeName" : "DEBUGPARAM1",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "context"
},
"logicNodeType" : "DEBUGPARAM",
"name" : "调试逻辑参数",
"getPSDEUILogicLinks" : [ { "getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : { "getDstPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "VIEWCTRLINVOKE2" "id" : "VIEWCTRLFIREEVENT1"
}, },
"linkMode" : 0, "linkMode" : 0,
"name" : "连接名称", "name" : "连接名称",
"getSrcPSDEUILogicNode" : { "getSrcPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "VIEWCTRLINVOKE1" "id" : "DEBUGPARAM1"
} }
} ] } ]
}, { }, {
"codeName" : "PREPAREJSPARAM1", "codeName" : "BINDPARAM1",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "searchForm"
},
"logicNodeType" : "BINDPARAM",
"name" : "绑定搜索表单",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM2"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
}
} ],
"srcFieldName" : "searchform",
"getSrcPSDEUILogicParam" : {
"modelref" : true,
"id" : "view"
}
}, {
"codeName" : "PREPAREJSPARAM2",
"logicNodeType" : "PREPAREJSPARAM", "logicNodeType" : "PREPAREJSPARAM",
"name" : "准备参数", "name" : "准备参数",
"getPSDEUILogicLinks" : [ { "getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : { "getDstPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "DEACTION1" "id" : "DELOGIC1"
}, },
"linkMode" : 0, "linkMode" : 0,
"name" : "连接名称", "name" : "连接名称",
"getSrcPSDEUILogicNode" : { "getSrcPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "PREPAREJSPARAM1" "id" : "PREPAREJSPARAM2"
} }
} ], } ],
"getPSDEUILogicNodeParams" : [ { "getPSDEUILogicNodeParams" : [ {
"dstFieldName" : "book", "dstFieldName" : "ibizbook",
"getDstPSDEUILogicParam" : { "getDstPSDEUILogicParam" : {
"modelref" : true, "modelref" : true,
"id" : "otherParam" "id" : "context"
}, },
"name" : "直接值[12] ==> otherParam[book]", "name" : "直接值[12] ==> context[ibizbook]",
"paramAction" : "SETPARAMVALUE", "paramAction" : "SETPARAMVALUE",
"srcValue" : "12", "srcValue" : "12",
"srcValueType" : "SRCVALUE" "srcValueType" : "SRCVALUE"
...@@ -2166,64 +2252,6 @@ ...@@ -2166,64 +2252,6 @@
"id" : "DELOGIC1" "id" : "DELOGIC1"
} }
} ] } ]
}, {
"codeName" : "DEBUGPARAM1",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "context"
},
"logicNodeType" : "DEBUGPARAM",
"name" : "调试逻辑参数"
}, {
"codeName" : "VIEWCTRLINVOKE2",
"getInvokeCtrl" : {
"modelref" : true,
"id" : "grid"
},
"invokeMethod" : "load",
"getInvokeParam" : {
"modelref" : true,
"id" : "viewParam"
},
"logicNodeType" : "VIEWCTRLINVOKE",
"name" : "表格加载",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "PREPAREJSPARAM2"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE2"
}
} ]
}, {
"codeName" : "BINDPARAM1",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "searchForm"
},
"logicNodeType" : "BINDPARAM",
"name" : "绑定搜索表单",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM2"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
}
} ],
"srcFieldName" : "searchform",
"getSrcPSDEUILogicParam" : {
"modelref" : true,
"id" : "view"
}
}, { }, {
"codeName" : "BINDPARAM2", "codeName" : "BINDPARAM2",
"getDstPSDEUILogicParam" : { "getDstPSDEUILogicParam" : {
...@@ -2250,37 +2278,30 @@ ...@@ -2250,37 +2278,30 @@
"id" : "view" "id" : "view"
} }
}, { }, {
"codeName" : "DEACTION1", "codeName" : "VIEWCTRLINVOKE2",
"getDstPSAppDEAction" : { "getInvokeCtrl" : {
"modelref" : true,
"id" : "Get"
},
"getDstPSAppDataEntity" : {
"modelref" : true, "modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json" "id" : "grid"
}, },
"getDstPSDEUILogicParam" : { "invokeMethod" : "load",
"getInvokeParam" : {
"modelref" : true, "modelref" : true,
"id" : "otherParam" "id" : "viewParam"
}, },
"logicNodeType" : "DEACTION", "logicNodeType" : "VIEWCTRLINVOKE",
"name" : "实体行为", "name" : "表格加载",
"getPSDEUILogicLinks" : [ { "getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : { "getDstPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "END1" "id" : "PREPAREJSPARAM2"
}, },
"linkMode" : 0, "linkMode" : 0,
"name" : "连接名称", "name" : "连接名称",
"getSrcPSDEUILogicNode" : { "getSrcPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "DEACTION1" "id" : "VIEWCTRLINVOKE2"
} }
} ], } ]
"getRetPSDEUILogicParam" : {
"modelref" : true,
"id" : "Default"
}
}, { }, {
"codeName" : "END1", "codeName" : "END1",
"logicNodeType" : "END", "logicNodeType" : "END",
...@@ -2291,75 +2312,89 @@ ...@@ -2291,75 +2312,89 @@
}, },
"returnType" : "LOGICPARAM" "returnType" : "LOGICPARAM"
}, { }, {
"codeName" : "PREPAREJSPARAM2", "codeName" : "VIEWCTRLINVOKE1",
"logicNodeType" : "PREPAREJSPARAM", "getInvokeCtrl" : {
"name" : "准备参数", "modelref" : true,
"id" : "searchForm"
},
"invokeMethod" : "loadDraft",
"getInvokeParam" : {
"modelref" : true,
"id" : "viewParam"
},
"logicNodeType" : "VIEWCTRLINVOKE",
"name" : "搜索表单loadDraft",
"getPSDEUILogicLinks" : [ { "getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : { "getDstPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "DELOGIC1" "id" : "VIEWCTRLINVOKE2"
}, },
"linkMode" : 0, "linkMode" : 0,
"name" : "连接名称", "name" : "连接名称",
"getSrcPSDEUILogicNode" : { "getSrcPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "PREPAREJSPARAM2" "id" : "VIEWCTRLINVOKE1"
} }
} ],
"getPSDEUILogicNodeParams" : [ {
"dstFieldName" : "ibizbook",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "context"
},
"name" : "直接值[12] ==> context[ibizbook]",
"paramAction" : "SETPARAMVALUE",
"srcValue" : "12",
"srcValueType" : "SRCVALUE"
} ] } ]
}, { }, {
"buttonsType" : "OK", "codeName" : "PREPAREJSPARAM1",
"codeName" : "MSGBOX1", "logicNodeType" : "PREPAREJSPARAM",
"logicNodeType" : "MSGBOX", "name" : "准备参数",
"message" : "我被触发啦",
"msgBoxType" : "INFO",
"name" : "消息弹窗",
"getPSDEUILogicLinks" : [ { "getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : { "getDstPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "DEBUGPARAM1" "id" : "DEACTION1"
}, },
"linkMode" : 0, "linkMode" : 0,
"name" : "连接名称", "name" : "连接名称",
"getSrcPSDEUILogicNode" : { "getSrcPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "MSGBOX1" "id" : "PREPAREJSPARAM1"
} }
} ], } ],
"showMode" : "CENTER", "getPSDEUILogicNodeParams" : [ {
"title" : "触发" "dstFieldName" : "book",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "otherParam"
},
"name" : "直接值[12] ==> otherParam[book]",
"paramAction" : "SETPARAMVALUE",
"srcValue" : "12",
"srcValueType" : "SRCVALUE"
} ]
} ], } ],
"getPSDEUILogicParams" : [ { "getPSDEUILogicParams" : [ {
"codeName" : "context", "codeName" : "grid",
"logicName" : "应用上下文", "logicName" : "当前表格",
"name" : "应用上下文", "name" : "当前表格",
"navContextParam" : true "ctrlParam" : true
}, { }, {
"codeName" : "routerParam", "codeName" : "otherParam",
"logicName" : "路由会话变量", "logicName" : "额外参数",
"name" : "路由会话变量", "name" : "额外参数",
"paramFieldName" : "testParam", "entityParam" : true
"routeViewSessionParam" : true }, {
"codeName" : "searchForm",
"logicName" : "当前搜索表单",
"name" : "当前搜索表单",
"ctrlParam" : true
}, { }, {
"codeName" : "viewParam", "codeName" : "viewParam",
"logicName" : "当前视图参数", "logicName" : "当前视图参数",
"name" : "当前视图参数", "name" : "当前视图参数",
"viewNavDataParam" : true "viewNavDataParam" : true
}, { }, {
"codeName" : "otherParam", "codeName" : "view",
"logicName" : "额外参数", "logicName" : "当前视图",
"name" : "额外参数", "name" : "当前视图",
"entityParam" : true "activeViewParam" : true
}, {
"codeName" : "routerParam",
"logicName" : "路由会话变量",
"name" : "路由会话变量",
"paramFieldName" : "testParam",
"routeViewSessionParam" : true
}, { }, {
"codeName" : "systemName", "codeName" : "systemName",
"logicName" : "当前系统名称", "logicName" : "当前系统名称",
...@@ -2371,20 +2406,10 @@ ...@@ -2371,20 +2406,10 @@
"default" : true, "default" : true,
"entityParam" : true "entityParam" : true
}, { }, {
"codeName" : "searchForm", "codeName" : "context",
"logicName" : "当前搜索表单", "logicName" : "应用上下文",
"name" : "当前搜索表单", "name" : "应用上下文",
"ctrlParam" : true "navContextParam" : true
}, {
"codeName" : "view",
"logicName" : "当前视图",
"name" : "当前视图",
"activeViewParam" : true
}, {
"codeName" : "grid",
"logicName" : "当前表格",
"name" : "当前表格",
"ctrlParam" : true
} ], } ],
"getStartPSDEUILogicNode" : { "getStartPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
......
...@@ -1293,32 +1293,32 @@ ...@@ -1293,32 +1293,32 @@
"layoutPos" : "CENTER" "layoutPos" : "CENTER"
}, },
"getPSPanelItems" : [ { "getPSPanelItems" : [ {
"caption" : "导航区占位", "caption" : "表单",
"itemStyle" : "DEFAULT", "itemStyle" : "DEFAULT",
"itemType" : "RAWITEM", "itemType" : "CTRLPOS",
"name" : "nav_pos1", "name" : "form",
"getPSLayoutPos" : { "getPSLayoutPos" : {
"heightMode" : "FULL", "heightMode" : "FULL",
"layout" : "BORDER", "layout" : "BORDER",
"layoutPos" : "CENTER", "layoutPos" : "CENTER",
"widthMode" : "FULL" "widthMode" : "FULL"
}, },
"getPSRawItem" : {
"name" : "nav_pos1",
"predefinedType" : "NAV_POS"
},
"showCaption" : true "showCaption" : true
}, { }, {
"caption" : "表单", "caption" : "导航区占位",
"itemStyle" : "DEFAULT", "itemStyle" : "DEFAULT",
"itemType" : "CTRLPOS", "itemType" : "RAWITEM",
"name" : "form", "name" : "nav_pos1",
"getPSLayoutPos" : { "getPSLayoutPos" : {
"heightMode" : "FULL", "heightMode" : "FULL",
"layout" : "BORDER", "layout" : "BORDER",
"layoutPos" : "CENTER", "layoutPos" : "CENTER",
"widthMode" : "FULL" "widthMode" : "FULL"
}, },
"getPSRawItem" : {
"name" : "nav_pos1",
"predefinedType" : "NAV_POS"
},
"showCaption" : true "showCaption" : true
} ], } ],
"showCaption" : true "showCaption" : true
......
...@@ -1280,7 +1280,6 @@ ...@@ -1280,7 +1280,6 @@
}, },
"getPSPanelItems" : [ { "getPSPanelItems" : [ {
"caption" : "面板容器", "caption" : "面板容器",
"contentHeight" : 50.0,
"itemStyle" : "DEFAULT", "itemStyle" : "DEFAULT",
"itemType" : "CONTAINER", "itemType" : "CONTAINER",
"name" : "container_scroll_main2", "name" : "container_scroll_main2",
...@@ -1288,80 +1287,65 @@ ...@@ -1288,80 +1287,65 @@
"layout" : "BORDER" "layout" : "BORDER"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"height" : 50,
"heightMode" : "PX",
"layout" : "BORDER", "layout" : "BORDER",
"layoutPos" : "CENTER" "layoutPos" : "CENTER"
}, },
"getPSPanelItems" : [ { "getPSPanelItems" : [ {
"caption" : "DRTAB部件", "caption" : "DRTAB部件",
"contentHeight" : 50.0,
"itemStyle" : "DEFAULT", "itemStyle" : "DEFAULT",
"itemType" : "CTRLPOS", "itemType" : "CTRLPOS",
"name" : "drtab", "name" : "drtab",
"getPSLayoutPos" : { "getPSLayoutPos" : {
"height" : 50,
"heightMode" : "PX",
"layout" : "BORDER", "layout" : "BORDER",
"layoutPos" : "CENTER" "layoutPos" : "CENTER"
}, },
"showCaption" : true "showCaption" : true
} ], }, {
"showCaption" : true "caption" : "导航区占位",
}, {
"caption" : "面板容器",
"contentHeight" : 80.0,
"height" : 80.0,
"itemStyle" : "DEFAULT",
"itemType" : "CONTAINER",
"name" : "container_scroll_header2",
"getPSLayout" : {
"layout" : "BORDER"
},
"getPSLayoutPos" : {
"height" : 80,
"heightMode" : "FULL",
"layout" : "BORDER",
"layoutPos" : "NORTH"
},
"getPSPanelItems" : [ {
"caption" : "表单",
"itemStyle" : "DEFAULT", "itemStyle" : "DEFAULT",
"itemType" : "CTRLPOS", "itemType" : "RAWITEM",
"name" : "form", "name" : "nav_pos1",
"getPSLayoutPos" : { "getPSLayoutPos" : {
"heightMode" : "FULL",
"layout" : "BORDER", "layout" : "BORDER",
"layoutPos" : "CENTER" "layoutPos" : "CENTER",
"widthMode" : "FULL"
},
"getPSRawItem" : {
"name" : "nav_pos1",
"predefinedType" : "NAV_POS"
}, },
"showCaption" : true "showCaption" : true
} ], } ],
"showCaption" : true "showCaption" : true
}, { }, {
"caption" : "面板容器", "caption" : "面板容器",
"contentHeight" : 80.0, "contentHeight" : 50.0,
"height" : 80.0, "height" : 50.0,
"itemStyle" : "DEFAULT", "itemStyle" : "DEFAULT",
"itemType" : "CONTAINER", "itemType" : "CONTAINER",
"name" : "container_scroll_bottom1", "name" : "container_scroll_header2",
"getPSLayout" : { "getPSLayout" : {
"layout" : "BORDER" "layout" : "BORDER"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"height" : 80, "height" : 50,
"heightMode" : "FULL", "heightMode" : "PERCENTAGE",
"layout" : "BORDER", "layout" : "BORDER",
"layoutPos" : "SOUTH" "layoutPos" : "NORTH"
}, },
"getPSPanelItems" : [ { "getPSPanelItems" : [ {
"caption" : "导航区占位", "caption" : "表单",
"itemStyle" : "DEFAULT", "itemStyle" : "DEFAULT",
"itemType" : "RAWITEM", "itemType" : "CTRLPOS",
"name" : "nav_pos1", "name" : "form",
"getPSLayoutPos" : { "getPSLayoutPos" : {
"layout" : "BORDER", "layout" : "BORDER",
"layoutPos" : "CENTER" "layoutPos" : "CENTER"
}, },
"getPSRawItem" : {
"name" : "nav_pos1",
"predefinedType" : "NAV_POS"
},
"showCaption" : true "showCaption" : true
} ], } ],
"showCaption" : true "showCaption" : true
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
"id" : "field_textbox" "id" : "field_textbox"
}, { }, {
"id" : "field_textbox1" "id" : "field_textbox1"
}, {
"id" : "field_textbox2"
}, {
"id" : "field_textbox3"
}, { }, {
"id" : "field_qrcode" "id" : "field_qrcode"
} ], } ],
...@@ -352,6 +356,38 @@ ...@@ -352,6 +356,38 @@
}, },
"hidden" : false, "hidden" : false,
"showCaption" : false "showCaption" : false
}, {
"caption" : "文本框",
"itemStyle" : "DEFAULT",
"itemType" : "FIELD",
"name" : "field_textbox2",
"getPSEditor" : {
"editorType" : "NUMBER",
"name" : "field_textbox2",
"predefinedType" : "FIELD_TEXTBOX"
},
"getPSLayoutPos" : {
"grow" : -1,
"layout" : "FLEX"
},
"hidden" : false,
"showCaption" : false
}, {
"caption" : "文本框",
"itemStyle" : "DEFAULT",
"itemType" : "FIELD",
"name" : "field_textbox3",
"getPSEditor" : {
"editorType" : "PASSWORD",
"name" : "field_textbox3",
"predefinedType" : "FIELD_TEXTBOX"
},
"getPSLayoutPos" : {
"grow" : -1,
"layout" : "FLEX"
},
"hidden" : false,
"showCaption" : false
}, { }, {
"caption" : "二维码", "caption" : "二维码",
"itemStyle" : "DEFAULT", "itemStyle" : "DEFAULT",
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 --> <!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-351-7"> <changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-354-7">
<createTable tableName="T_IBIZBOOK"> <createTable tableName="T_IBIZBOOK">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)"> <column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column> </column>
...@@ -340,7 +340,7 @@ ...@@ -340,7 +340,7 @@
<!--输出实体[IBIZORDER]数据结构 --> <!--输出实体[IBIZORDER]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-503-14"> <changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-509-14">
<createTable tableName="T_IBIZORDER"> <createTable tableName="T_IBIZORDER">
<column name="TP" remarks="" type="TEXT(1048576)"> <column name="TP" remarks="" type="TEXT(1048576)">
</column> </column>
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
</createView> </createView>
</changeSet> </changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步--> <!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-503-8" runOnChange="true"> <changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-509-8" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZORDER"> <createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZORDER">
<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1 LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID ]]> <![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1 LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID ]]>
</createView> </createView>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册