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

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

上级 6798f9e8
......@@ -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"/>
</template>
<template #field_textbox>
<app-panel-field
name="field_textbox"
:index="slotProps.data.index"
:data="layoutData"
:value="layoutData[`field_textbox_${slotProps.data.index}`]">
</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>
</template>
</app-standard-container>
</template>
......
......@@ -8,9 +8,6 @@
<app-scroll-container name="container_scroll1" :layoutModelDetails="layoutModelDetails">
<template #container_scroll_main1>
<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>
<app-ctrl-pos name="form" :layoutModelDetails="layoutModelDetails">
<view_form
......@@ -38,6 +35,9 @@
</view_form>
</app-ctrl-pos>
</template>
<template #nav_pos1>
<app-nav-pos name="nav_pos1" :layoutModelDetails="layoutModelDetails" :navData="layoutModelDetails['nav_pos1'].navData"/>
</template>
</app-scroll-container>
</template>
<template #container_scroll_header1>
......@@ -404,9 +404,9 @@ export default class IBIZOrderSEditView3_layoutBase extends Vue {
* @memberof IBIZOrderSEditView3_layoutBase
*/
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 },
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 },
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' },
......
......@@ -24,6 +24,9 @@
</view_drtab>
</app-ctrl-pos>
</template>
<template #nav_pos1>
<app-nav-pos name="nav_pos1" :layoutModelDetails="layoutModelDetails" :navData="layoutModelDetails['nav_pos1'].navData"/>
</template>
</app-scroll-container>
</template>
<template #container_scroll_header2>
......@@ -55,13 +58,6 @@
</view_form>
</app-ctrl-pos>
</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>
</template>
</app-scroll-container>
......@@ -410,13 +406,12 @@ export default class IBIZOrderSEditView4_layoutBase extends Vue {
* @memberof IBIZOrderSEditView4_layoutBase
*/
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 },
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' },
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 },
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 },
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' },
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_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_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' },
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_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:'', },
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 @@
<app-preset-switch name="field_switch" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_switch" @valueChange="handleValueChange"/>
</template>
<template #field_textbox>
<app-panel-field
name="field_textbox"
:data="layoutData"
:value="layoutData.field_textbox">
</app-panel-field>
<app-panel-field name="field_textbox" :data="layoutData" :value="layoutData.field_textbox"> </app-panel-field>
</template>
<template #field_textbox1>
<app-panel-field
name="field_textbox1"
:data="layoutData"
:value="layoutData.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>
</template>
<template #field_textbox2>
<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>
</template>
<template #field_textbox3>
<app-panel-field name="field_textbox3" :data="layoutData" :value="layoutData.field_textbox3"> </app-panel-field>
</template>
<template #field_qrcode>
<app-preset-qrcode name="field_qrcode" :layoutModelDetails="layoutModelDetails" :value="layoutData.field_qrcode" />
......@@ -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_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_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:'', },
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: '', },
......@@ -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_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: '', },
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 {
*/
protected logicParams: any[] = [
{
name: '应用上下文',
codeName: 'context',
navContextParam: true,
name: '当前表格',
codeName: 'grid',
ctrlParam: true,
},
{
name: '路由会话变量',
codeName: 'routerParam',
routeViewSessionParam: true,
name: '额外参数',
codeName: 'otherParam',
entityParam: true,
},
{
name: '当前搜索表单',
codeName: 'searchForm',
ctrlParam: true,
},
{
name: '当前视图参数',
......@@ -45,9 +50,14 @@ export default class GridLoadUILogicBase {
viewNavDataParam: true,
},
{
name: '额外参数',
codeName: 'otherParam',
entityParam: true,
name: '当前视图',
codeName: 'view',
activeViewParam: true,
},
{
name: '路由会话变量',
codeName: 'routerParam',
routeViewSessionParam: true,
},
{
name: '当前系统名称',
......@@ -60,19 +70,9 @@ export default class GridLoadUILogicBase {
entityParam: true,
},
{
name: '当前搜索表单',
codeName: 'searchForm',
ctrlParam: true,
},
{
name: '当前视图',
codeName: 'view',
activeViewParam: true,
},
{
name: '当前表格',
codeName: 'grid',
ctrlParam: true,
name: '应用上下文',
codeName: 'context',
navContextParam: true,
},
];
......@@ -129,129 +129,145 @@ export default class GridLoadUILogicBase {
}
/**
* 搜索表单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);
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;
}
actionContext.bindLastReturnParam(result);
} catch (error:any) {
throw new Error(`${invokeCtrl}界面对象调用${invokeMethod}方法发生异常`);
const subscription = subject.subscribe((result: any) => {
resolve(handleResponse(result));
subscription!.unsubscribe();
subject.complete();
});
} else {
resolve(true);
}
} else {
throw new Error(`${invokeCtrl}界面对象不存在${invokeMethod}方法`);
}
console.log('已完成执行 搜索表单loadDraft 节点');
await this.execute_viewctrlinvoke2_node(actionContext);
});
console.log('已完成执行 消息弹窗 节点');
await this.execute_debugparam1_node(actionContext);
}
/**
* 准备参数
* 实体行为
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected async execute_preparejsparam1_node(actionContext: UIActionContext) {
try {
// 目标数据
const dstParam_1: any = actionContext.getParam('otherParam');
// 无值类型
// 直接值
const result_1 = '12';
dstParam_1.set('book', result_1);
} catch (error: any) {
throw new Error(`逻辑节点 准备参数 ${error && error.message ? error.message : '发生未知错误!'}`);
protected async execute_deaction1_node(actionContext: UIActionContext) {
const dstParam = actionContext.getParam('otherParam');
if (!Object.is(dstParam.logicParamType, UILogicParamType.entityListParam) && !Object.is(dstParam.logicParamType, UILogicParamType.entityParam)) {
throw new Error(`实体行为操作参数只能为数据对象变量类型或者数据对象列表类型`);
}
console.log('已完成执行 准备参数 节点');
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');
const retParam = actionContext.getParam('Default');
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);
const service: any = await window.entityServiceRegister.getService('ibizbook');
const getTempContext = (data: any) => {
const tempContext = Util.deepCopy(actionContext.context);
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(`执行实体行为失败`);
}
actionContext.bindLastReturnParam(result);
} 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) {
throw new Error(`调用实体处理逻辑异常${error && error.message ? error.message : ''}`);
throw new Error(`${error.message ? error.message : error.data && error.data.message ? error.data.message : '执行实体行为失败'}`);
}
} else {
throw new Error(`操作参数缺失!`);
}
console.log('已完成执行 实体处理逻辑 节点');
await this.execute_msgbox1_node(actionContext);
await this.execute_preparejsparam1_node(actionContext);
console.log('已完成执行 实体行为 节点');
await this.execute_end1_node(actionContext);
}
/**
* 调试逻辑参数
* 视图部件事件触发
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected async execute_debugparam1_node(actionContext: UIActionContext) {
protected async execute_viewctrlfireevent1_node(actionContext: UIActionContext) {
// TODO 等待补充
console.log('已完成执行 调试逻辑参数 节点');
console.log('已完成执行 视图部件事件触发 节点');
}
/**
* 表格加载
* 调试逻辑参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected async execute_viewctrlinvoke2_node(actionContext: UIActionContext) {
const invokeCtrl = 'grid';
const invokeMethod = 'load';
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('已完成执行 表格加载 节点');
await this.execute_preparejsparam2_node(actionContext);
protected async execute_debugparam1_node(actionContext: UIActionContext) {
// TODO 等待补充
console.log('已完成执行 调试逻辑参数 节点');
await this.execute_viewctrlfireevent1_node(actionContext);
}
/**
......@@ -281,6 +297,59 @@ export default class GridLoadUILogicBase {
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 {
}
/**
* 实体行为
* 表格加载
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected async execute_deaction1_node(actionContext: UIActionContext) {
const dstParam = actionContext.getParam('otherParam');
if (!Object.is(dstParam.logicParamType, UILogicParamType.entityListParam) && !Object.is(dstParam.logicParamType, UILogicParamType.entityParam)) {
throw new Error(`实体行为操作参数只能为数据对象变量类型或者数据对象列表类型`);
protected async execute_viewctrlinvoke2_node(actionContext: UIActionContext) {
const invokeCtrl = 'grid';
const invokeMethod = 'load';
const invokeParam = 'viewParam';
if (!invokeCtrl || !invokeMethod) {
throw new Error(`界面对象或者调用方法缺失`);
}
const retParam = actionContext.getParam('Default');
if (dstParam) {
const invokeUICtrl = actionContext.getParam(invokeCtrl).getReal();
if (invokeUICtrl[invokeMethod] && invokeUICtrl[invokeMethod] instanceof Function) {
try {
const service: any = await window.entityServiceRegister.getService('ibizbook');
const getTempContext = (data: any) => {
const tempContext = Util.deepCopy(actionContext.context);
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([]);
}
const result = await invokeUICtrl[invokeMethod]();
if (invokeParam) {
actionContext.getParam(invokeParam).bind(result);
}
} catch (error: any) {
throw new Error(`${error.message ? error.message : error.data && error.data.message ? error.data.message : '执行实体行为失败'}`);
actionContext.bindLastReturnParam(result);
} catch (error:any) {
throw new Error(`${invokeCtrl}界面对象调用${invokeMethod}方法发生异常`);
}
} else {
throw new Error(`操作参数缺失!`);
throw new Error(`${invokeCtrl}界面对象不存在${invokeMethod}方法`);
}
console.log('已完成执行 实体行为 节点');
await this.execute_end1_node(actionContext);
console.log('已完成执行 表格加载 节点');
await this.execute_preparejsparam2_node(actionContext);
}
/**
......@@ -412,67 +435,56 @@ export default class GridLoadUILogicBase {
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 界面逻辑上下文
* @memberof GridLoadUILogicBase
*/
protected async execute_preparejsparam2_node(actionContext: UIActionContext) {
protected async execute_preparejsparam1_node(actionContext: UIActionContext) {
try {
// 目标数据
const dstParam_1: any = actionContext.getParam('context');
const dstParam_1: any = actionContext.getParam('otherParam');
// 无值类型
// 直接值
const result_1 = '12';
dstParam_1.set('ibizbook', result_1);
dstParam_1.set('book', 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_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);
await this.execute_deaction1_node(actionContext);
}
......
......@@ -657,7 +657,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public load(opt: any = {}, isReset: boolean = false): void {
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;
}
const arg: any = {...opt};
......@@ -736,7 +736,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/
public async remove(datas: any[]): Promise<any> {
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;
}
let _datas:any[] = [];
......@@ -845,7 +845,7 @@ export default class Usr4Base extends Vue implements ControlInterface {
try {
if(Object.is(item.rowDataState, 'create')){
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{
Object.assign(item,{viewparams:this.viewparams});
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 {
}
}else if(Object.is(item.rowDataState, 'update')){
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{
Object.assign(item,{viewparams:this.viewparams});
if(item.ibizbook){
......
......@@ -69,11 +69,6 @@ export default class Usr4Model {
prop: 'n_ibizbookname_like',
dataType: 'QUERYPARAM'
},
{
name: 'n_price_gtandeq',
prop: 'n_price_gtandeq',
dataType: 'QUERYPARAM'
},
{
......
......@@ -2076,53 +2076,139 @@
} ],
"parallelOutput" : true
}, {
"codeName" : "VIEWCTRLINVOKE1",
"getInvokeCtrl" : {
"buttonsType" : "OK",
"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,
"id" : "searchForm"
"id" : "Get"
},
"invokeMethod" : "loadDraft",
"getInvokeParam" : {
"getDstPSAppDataEntity" : {
"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,
"id" : "viewParam"
},
"logicNodeType" : "VIEWCTRLINVOKE",
"name" : "搜索表单loadDraft",
"getFireCtrl" : {
"modelref" : true,
"id" : "grid"
},
"logicNodeType" : "VIEWCTRLFIREEVENT",
"name" : "视图部件事件触发"
}, {
"codeName" : "DEBUGPARAM1",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "context"
},
"logicNodeType" : "DEBUGPARAM",
"name" : "调试逻辑参数",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "VIEWCTRLINVOKE2"
"id" : "VIEWCTRLFIREEVENT1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"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",
"name" : "准备参数",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "DEACTION1"
"id" : "DELOGIC1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "PREPAREJSPARAM1"
"id" : "PREPAREJSPARAM2"
}
} ],
"getPSDEUILogicNodeParams" : [ {
"dstFieldName" : "book",
"dstFieldName" : "ibizbook",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "otherParam"
"id" : "context"
},
"name" : "直接值[12] ==> otherParam[book]",
"name" : "直接值[12] ==> context[ibizbook]",
"paramAction" : "SETPARAMVALUE",
"srcValue" : "12",
"srcValueType" : "SRCVALUE"
......@@ -2166,64 +2252,6 @@
"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",
"getDstPSDEUILogicParam" : {
......@@ -2250,37 +2278,30 @@
"id" : "view"
}
}, {
"codeName" : "DEACTION1",
"getDstPSAppDEAction" : {
"modelref" : true,
"id" : "Get"
},
"getDstPSAppDataEntity" : {
"codeName" : "VIEWCTRLINVOKE2",
"getInvokeCtrl" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
"id" : "grid"
},
"getDstPSDEUILogicParam" : {
"invokeMethod" : "load",
"getInvokeParam" : {
"modelref" : true,
"id" : "otherParam"
"id" : "viewParam"
},
"logicNodeType" : "DEACTION",
"name" : "实体行为",
"logicNodeType" : "VIEWCTRLINVOKE",
"name" : "表格加载",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "END1"
"id" : "PREPAREJSPARAM2"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "DEACTION1"
"id" : "VIEWCTRLINVOKE2"
}
} ],
"getRetPSDEUILogicParam" : {
"modelref" : true,
"id" : "Default"
}
} ]
}, {
"codeName" : "END1",
"logicNodeType" : "END",
......@@ -2291,75 +2312,89 @@
},
"returnType" : "LOGICPARAM"
}, {
"codeName" : "PREPAREJSPARAM2",
"logicNodeType" : "PREPAREJSPARAM",
"name" : "准备参数",
"codeName" : "VIEWCTRLINVOKE1",
"getInvokeCtrl" : {
"modelref" : true,
"id" : "searchForm"
},
"invokeMethod" : "loadDraft",
"getInvokeParam" : {
"modelref" : true,
"id" : "viewParam"
},
"logicNodeType" : "VIEWCTRLINVOKE",
"name" : "搜索表单loadDraft",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "DELOGIC1"
"id" : "VIEWCTRLINVOKE2"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"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" : "MSGBOX1",
"logicNodeType" : "MSGBOX",
"message" : "我被触发啦",
"msgBoxType" : "INFO",
"name" : "消息弹窗",
"codeName" : "PREPAREJSPARAM1",
"logicNodeType" : "PREPAREJSPARAM",
"name" : "准备参数",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "DEBUGPARAM1"
"id" : "DEACTION1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "MSGBOX1"
"id" : "PREPAREJSPARAM1"
}
} ],
"showMode" : "CENTER",
"title" : "触发"
"getPSDEUILogicNodeParams" : [ {
"dstFieldName" : "book",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "otherParam"
},
"name" : "直接值[12] ==> otherParam[book]",
"paramAction" : "SETPARAMVALUE",
"srcValue" : "12",
"srcValueType" : "SRCVALUE"
} ]
} ],
"getPSDEUILogicParams" : [ {
"codeName" : "context",
"logicName" : "应用上下文",
"name" : "应用上下文",
"navContextParam" : true
"codeName" : "grid",
"logicName" : "当前表格",
"name" : "当前表格",
"ctrlParam" : true
}, {
"codeName" : "routerParam",
"logicName" : "路由会话变量",
"name" : "路由会话变量",
"paramFieldName" : "testParam",
"routeViewSessionParam" : true
"codeName" : "otherParam",
"logicName" : "额外参数",
"name" : "额外参数",
"entityParam" : true
}, {
"codeName" : "searchForm",
"logicName" : "当前搜索表单",
"name" : "当前搜索表单",
"ctrlParam" : true
}, {
"codeName" : "viewParam",
"logicName" : "当前视图参数",
"name" : "当前视图参数",
"viewNavDataParam" : true
}, {
"codeName" : "otherParam",
"logicName" : "额外参数",
"name" : "额外参数",
"entityParam" : true
"codeName" : "view",
"logicName" : "当前视图",
"name" : "当前视图",
"activeViewParam" : true
}, {
"codeName" : "routerParam",
"logicName" : "路由会话变量",
"name" : "路由会话变量",
"paramFieldName" : "testParam",
"routeViewSessionParam" : true
}, {
"codeName" : "systemName",
"logicName" : "当前系统名称",
......@@ -2371,20 +2406,10 @@
"default" : true,
"entityParam" : true
}, {
"codeName" : "searchForm",
"logicName" : "当前搜索表单",
"name" : "当前搜索表单",
"ctrlParam" : true
}, {
"codeName" : "view",
"logicName" : "当前视图",
"name" : "当前视图",
"activeViewParam" : true
}, {
"codeName" : "grid",
"logicName" : "当前表格",
"name" : "当前表格",
"ctrlParam" : true
"codeName" : "context",
"logicName" : "应用上下文",
"name" : "应用上下文",
"navContextParam" : true
} ],
"getStartPSDEUILogicNode" : {
"modelref" : true,
......
......@@ -1293,32 +1293,32 @@
"layoutPos" : "CENTER"
},
"getPSPanelItems" : [ {
"caption" : "导航区占位",
"caption" : "表单",
"itemStyle" : "DEFAULT",
"itemType" : "RAWITEM",
"name" : "nav_pos1",
"itemType" : "CTRLPOS",
"name" : "form",
"getPSLayoutPos" : {
"heightMode" : "FULL",
"layout" : "BORDER",
"layoutPos" : "CENTER",
"widthMode" : "FULL"
},
"getPSRawItem" : {
"name" : "nav_pos1",
"predefinedType" : "NAV_POS"
},
"showCaption" : true
}, {
"caption" : "表单",
"caption" : "导航区占位",
"itemStyle" : "DEFAULT",
"itemType" : "CTRLPOS",
"name" : "form",
"itemType" : "RAWITEM",
"name" : "nav_pos1",
"getPSLayoutPos" : {
"heightMode" : "FULL",
"layout" : "BORDER",
"layoutPos" : "CENTER",
"widthMode" : "FULL"
},
"getPSRawItem" : {
"name" : "nav_pos1",
"predefinedType" : "NAV_POS"
},
"showCaption" : true
} ],
"showCaption" : true
......
......@@ -1280,7 +1280,6 @@
},
"getPSPanelItems" : [ {
"caption" : "面板容器",
"contentHeight" : 50.0,
"itemStyle" : "DEFAULT",
"itemType" : "CONTAINER",
"name" : "container_scroll_main2",
......@@ -1288,80 +1287,65 @@
"layout" : "BORDER"
},
"getPSLayoutPos" : {
"height" : 50,
"heightMode" : "PX",
"layout" : "BORDER",
"layoutPos" : "CENTER"
},
"getPSPanelItems" : [ {
"caption" : "DRTAB部件",
"contentHeight" : 50.0,
"itemStyle" : "DEFAULT",
"itemType" : "CTRLPOS",
"name" : "drtab",
"getPSLayoutPos" : {
"height" : 50,
"heightMode" : "PX",
"layout" : "BORDER",
"layoutPos" : "CENTER"
},
"showCaption" : true
} ],
"showCaption" : true
}, {
"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" : "表单",
}, {
"caption" : "导航区占位",
"itemStyle" : "DEFAULT",
"itemType" : "CTRLPOS",
"name" : "form",
"itemType" : "RAWITEM",
"name" : "nav_pos1",
"getPSLayoutPos" : {
"heightMode" : "FULL",
"layout" : "BORDER",
"layoutPos" : "CENTER"
"layoutPos" : "CENTER",
"widthMode" : "FULL"
},
"getPSRawItem" : {
"name" : "nav_pos1",
"predefinedType" : "NAV_POS"
},
"showCaption" : true
} ],
"showCaption" : true
}, {
"caption" : "面板容器",
"contentHeight" : 80.0,
"height" : 80.0,
"contentHeight" : 50.0,
"height" : 50.0,
"itemStyle" : "DEFAULT",
"itemType" : "CONTAINER",
"name" : "container_scroll_bottom1",
"name" : "container_scroll_header2",
"getPSLayout" : {
"layout" : "BORDER"
},
"getPSLayoutPos" : {
"height" : 80,
"heightMode" : "FULL",
"height" : 50,
"heightMode" : "PERCENTAGE",
"layout" : "BORDER",
"layoutPos" : "SOUTH"
"layoutPos" : "NORTH"
},
"getPSPanelItems" : [ {
"caption" : "导航区占位",
"caption" : "表单",
"itemStyle" : "DEFAULT",
"itemType" : "RAWITEM",
"name" : "nav_pos1",
"itemType" : "CTRLPOS",
"name" : "form",
"getPSLayoutPos" : {
"layout" : "BORDER",
"layoutPos" : "CENTER"
},
"getPSRawItem" : {
"name" : "nav_pos1",
"predefinedType" : "NAV_POS"
},
"showCaption" : true
} ],
"showCaption" : true
......
......@@ -19,6 +19,10 @@
"id" : "field_textbox"
}, {
"id" : "field_textbox1"
}, {
"id" : "field_textbox2"
}, {
"id" : "field_textbox3"
}, {
"id" : "field_qrcode"
} ],
......@@ -352,6 +356,38 @@
},
"hidden" : 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" : "二维码",
"itemStyle" : "DEFAULT",
......
......@@ -172,7 +172,7 @@
<!--输出实体[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">
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
......@@ -340,7 +340,7 @@
<!--输出实体[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">
<column name="TP" remarks="" type="TEXT(1048576)">
</column>
......
......@@ -37,7 +37,7 @@
</createView>
</changeSet>
<!--输出实体[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">
<![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>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册