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

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

上级 22d0cbe7
...@@ -55,6 +55,14 @@ ...@@ -55,6 +55,14 @@
"viewname": "IBIZBOOKGridExpView", "viewname": "IBIZBOOKGridExpView",
"viewtag": "04dcaa66b007842529e5ef5e2e341b55" "viewtag": "04dcaa66b007842529e5ef5e2e341b55"
}, },
"ibizbookgridloadcustomview": {
"title": "界面逻辑加载与跳转",
"caption": "界面逻辑加载与跳转",
"viewtype": "DECUSTOMVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKGridLoadCustomView",
"viewtag": "05879876-B0D0-4102-991F-61A0C4608489"
},
"ibizbookhaspanelkanbanview": { "ibizbookhaspanelkanbanview": {
"title": "图书看板视图(嵌入视图面板)", "title": "图书看板视图(嵌入视图面板)",
"caption": "图书", "caption": "图书",
......
...@@ -46,6 +46,10 @@ function getLocaleResourceBase(){ ...@@ -46,6 +46,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("图书",null), caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书表格导航视图",null), title: commonLogic.appcommonhandle("图书表格导航视图",null),
}, },
gridloadcustomview: {
caption: commonLogic.appcommonhandle("界面逻辑加载与跳转",null),
title: commonLogic.appcommonhandle("界面逻辑加载与跳转",null),
},
haspanelkanbanview: { haspanelkanbanview: {
caption: commonLogic.appcommonhandle("图书",null), caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书看板视图(嵌入视图面板)",null), title: commonLogic.appcommonhandle("图书看板视图(嵌入视图面板)",null),
...@@ -602,6 +606,16 @@ function getLocaleResourceBase(){ ...@@ -602,6 +606,16 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
main_grid: {
columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
main6_grid: { main6_grid: {
columns: { columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null), ibizbookname: commonLogic.appcommonhandle("图书名称",null),
...@@ -715,16 +729,6 @@ function getLocaleResourceBase(){ ...@@ -715,16 +729,6 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
main_grid: {
columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
main2_grid: { main2_grid: {
columns: { columns: {
type: commonLogic.appcommonhandle("图书类型",null), type: commonLogic.appcommonhandle("图书类型",null),
......
...@@ -46,6 +46,10 @@ function getLocaleResourceBase(){ ...@@ -46,6 +46,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("图书",null), caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书表格导航视图",null), title: commonLogic.appcommonhandle("图书表格导航视图",null),
}, },
gridloadcustomview: {
caption: commonLogic.appcommonhandle("界面逻辑加载与跳转",null),
title: commonLogic.appcommonhandle("界面逻辑加载与跳转",null),
},
haspanelkanbanview: { haspanelkanbanview: {
caption: commonLogic.appcommonhandle("Item Layout Panel",null), caption: commonLogic.appcommonhandle("Item Layout Panel",null),
title: commonLogic.appcommonhandle("图书看板视图(嵌入视图面板)",null), title: commonLogic.appcommonhandle("图书看板视图(嵌入视图面板)",null),
...@@ -602,6 +606,16 @@ function getLocaleResourceBase(){ ...@@ -602,6 +606,16 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
main_grid: {
columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
main6_grid: { main6_grid: {
columns: { columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null), ibizbookname: commonLogic.appcommonhandle("图书名称",null),
...@@ -715,16 +729,6 @@ function getLocaleResourceBase(){ ...@@ -715,16 +729,6 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
main_grid: {
columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
main2_grid: { main2_grid: {
columns: { columns: {
type: commonLogic.appcommonhandle("图书类型",null), type: commonLogic.appcommonhandle("图书类型",null),
......
...@@ -46,6 +46,10 @@ function getLocaleResourceBase(){ ...@@ -46,6 +46,10 @@ function getLocaleResourceBase(){
caption: commonLogic.appcommonhandle("图书",null), caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书表格导航视图",null), title: commonLogic.appcommonhandle("图书表格导航视图",null),
}, },
gridloadcustomview: {
caption: commonLogic.appcommonhandle("界面逻辑加载与跳转",null),
title: commonLogic.appcommonhandle("界面逻辑加载与跳转",null),
},
haspanelkanbanview: { haspanelkanbanview: {
caption: commonLogic.appcommonhandle("图书",null), caption: commonLogic.appcommonhandle("图书",null),
title: commonLogic.appcommonhandle("图书看板视图(嵌入视图面板)",null), title: commonLogic.appcommonhandle("图书看板视图(嵌入视图面板)",null),
...@@ -602,6 +606,16 @@ function getLocaleResourceBase(){ ...@@ -602,6 +606,16 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
main_grid: {
columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
main6_grid: { main6_grid: {
columns: { columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null), ibizbookname: commonLogic.appcommonhandle("图书名称",null),
...@@ -715,16 +729,6 @@ function getLocaleResourceBase(){ ...@@ -715,16 +729,6 @@ function getLocaleResourceBase(){
uiactions: { uiactions: {
}, },
}, },
main_grid: {
columns: {
ibizbookname: commonLogic.appcommonhandle("图书名称",null),
updateman: commonLogic.appcommonhandle("更新人",null),
updatedate: commonLogic.appcommonhandle("更新时间",null),
},
nodata:commonLogic.appcommonhandle("",null),
uiactions: {
},
},
main2_grid: { main2_grid: {
columns: { columns: {
type: commonLogic.appcommonhandle("图书类型",null), type: commonLogic.appcommonhandle("图书类型",null),
......
...@@ -63,6 +63,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -63,6 +63,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "IBIZBOOKGridExpView", "viewname": "IBIZBOOKGridExpView",
"viewtag": "04dcaa66b007842529e5ef5e2e341b55" "viewtag": "04dcaa66b007842529e5ef5e2e341b55"
}, },
"ibizbookgridloadcustomview": {
"title": "界面逻辑加载与跳转",
"caption": "界面逻辑加载与跳转",
"viewtype": "DECUSTOMVIEW",
"viewmodule": "Sample",
"viewname": "IBIZBOOKGridLoadCustomView",
"viewtag": "05879876-B0D0-4102-991F-61A0C4608489"
},
"ibizbookhaspanelkanbanview": { "ibizbookhaspanelkanbanview": {
"title": "图书看板视图(嵌入视图面板)", "title": "图书看板视图(嵌入视图面板)",
"caption": "图书", "caption": "图书",
......
...@@ -347,7 +347,7 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue { ...@@ -347,7 +347,7 @@ export default class IBIZBOOKUsr2EditView_layoutBase extends Vue {
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'] , 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:['form'] , 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: 'container2', panel: this , fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', }, 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: 'container2', panel: this , fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', },
container2:{ name: 'container2', 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_grid2', panel: this , details:['view_pagecaption'] , dataRegionType: 'INHERIT' }, container2:{ name: 'container2', 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_grid2', panel: this , details:['view_pagecaption'] , dataRegionType: 'INHERIT' },
toolbar:{ name: 'toolbar', type: 'VIEWLAYOUT', caption: 'TOOLBAR', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'RIGHT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container4', panel: this }, toolbar:{ name: 'toolbar', type: 'VIEWLAYOUT', caption: 'TOOLBAR', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'RIGHT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container4', panel: this },
container4:{ name: 'container4', 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:9, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid2', panel: this , details:['toolbar'] , dataRegionType: 'INHERIT' }, container4:{ name: 'container4', 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:9, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid2', panel: this , details:['toolbar'] , dataRegionType: 'INHERIT' },
container_grid2:{ name: 'container_grid2', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header1', panel: this , details:['container2','container4'] , dataRegionType: 'INHERIT' }, container_grid2:{ name: 'container_grid2', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header1', panel: this , details:['container2','container4'] , 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:['container_grid2'] , 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:['container_grid2'] , dataRegionType: 'INHERIT' },
......
...@@ -347,7 +347,7 @@ export default class IBIZBOOKUsr2EditViewBase extends Vue { ...@@ -347,7 +347,7 @@ export default class IBIZBOOKUsr2EditViewBase extends Vue {
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'] , 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:['form'] , 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: 'container2', panel: this , fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', }, 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: 'container2', panel: this , fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', },
container2:{ name: 'container2', 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_grid2', panel: this , details:['view_pagecaption'] , dataRegionType: 'INHERIT' }, container2:{ name: 'container2', 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_grid2', panel: this , details:['view_pagecaption'] , dataRegionType: 'INHERIT' },
toolbar:{ name: 'toolbar', type: 'VIEWLAYOUT', caption: 'TOOLBAR', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'RIGHT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container4', panel: this }, toolbar:{ name: 'toolbar', type: 'VIEWLAYOUT', caption: 'TOOLBAR', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'RIGHT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container4', panel: this },
container4:{ name: 'container4', 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:9, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid2', panel: this , details:['toolbar'] , dataRegionType: 'INHERIT' }, container4:{ name: 'container4', 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:9, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid2', panel: this , details:['toolbar'] , dataRegionType: 'INHERIT' },
container_grid2:{ name: 'container_grid2', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header1', panel: this , details:['container2','container4'] , dataRegionType: 'INHERIT' }, container_grid2:{ name: 'container_grid2', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header1', panel: this , details:['container2','container4'] , 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:['container_grid2'] , 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:['container_grid2'] , dataRegionType: 'INHERIT' },
......
...@@ -483,11 +483,11 @@ export default class IBIZOrderUsr2GridViewBase extends Vue { ...@@ -483,11 +483,11 @@ export default class IBIZOrderUsr2GridViewBase extends Vue {
grid:{ name: 'grid', 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 }, grid:{ name: 'grid', 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:['searchform','grid'] , 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:['searchform','grid'] , 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', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', }, 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', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', },
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:-1, 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' },
quicksearchbar:{ name: 'quicksearchbar', type: 'VIEWLAYOUT', caption: 'QUICKSEARCHBAR部件', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'RIGHT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container3', panel: this }, quicksearchbar:{ name: 'quicksearchbar', type: 'VIEWLAYOUT', caption: 'QUICKSEARCHBAR部件', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'RIGHT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container3', panel: this },
container3:{ name: 'container3', 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:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['quicksearchbar'] , dataRegionType: 'INHERIT' }, container3:{ name: 'container3', 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:['quicksearchbar'] , dataRegionType: 'INHERIT' },
toolbar:{ name: 'toolbar', type: 'VIEWLAYOUT', caption: '工具栏', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'RIGHT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container2', panel: this }, toolbar:{ name: 'toolbar', type: 'VIEWLAYOUT', caption: '工具栏', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'RIGHT', vAlignSelf:'MIDDLE', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container2', panel: this },
container2:{ name: 'container2', 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:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['toolbar'] , dataRegionType: 'INHERIT' }, container2:{ name: 'container2', 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:6, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['toolbar'] , dataRegionType: 'INHERIT' },
container_grid1:{ name: 'container_grid1', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header1', panel: this , details:['container1','container3','container2'] , dataRegionType: 'INHERIT' }, container_grid1:{ name: 'container_grid1', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header1', panel: this , details:['container1','container3','container2'] , 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:['container_grid1'] , 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:['container_grid1'] , 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:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, 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:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['container_scroll_main1','container_scroll_header1'] , dataRegionType: 'INHERIT' }
......
...@@ -136,10 +136,10 @@ export default class IBIZCustomerServiceBase extends EntityService { ...@@ -136,10 +136,10 @@ export default class IBIZCustomerServiceBase extends EntityService {
return await Http.getInstance().post(`/ibizcustomers/getdynacarouselbatch`,tempData,isloading); return await Http.getInstance().post(`/ibizcustomers/getdynacarouselbatch`,tempData,isloading);
} }
public async GetDynaImg(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDynaImg(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
console.log("这里要返回模拟动态图片数据:",data) tempData['field_image'] = 'assets/img/logo2.png'
return {"status":200,"data":tempData}; return {"status":200,"data":tempData};
} }
/** /**
* Remove接口方法 * Remove接口方法
......
import { UIActionContext } from "@/logic/ui-logic";
import { LogicReturnType } from "@/logic/const/logic-return-type";
import { UILogicParamType } from "@/logic/const/ui-logic-param-type";
import { Util, Verify } from "@/utils";
import { AppMessageBox } from "@/utils/app-message-box/app-message-box";
import { Subject } from "rxjs";
/**
* 编辑
*
* @export
* @class CustomEditUILogicBase
*/
export default class CustomEditUILogicBase {
/**
* Creates an instance of CustomEditBase.
*
* @param {*} [opts={}]
* @memberof CustomEditUILogicBase
*/
constructor(opts: any = {}) { }
/**
* 逻辑参数
*
* @protected
* @type {any[]}
* @memberof CustomEditUILogicBase
*/
protected logicParams: any[] = [
{
name: '传入变量',
codeName: 'Default',
default: true,
entityParam: true,
},
];
/**
* 执行前
*
* @param {*} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actioncontext]
* @param {string} [srfParentDeName]
* @return {*}
* @memberof CustomEditUILogicBase
*/
public beforeExecute(args: any, context: any = {}, params: any = {},
$event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
return new UIActionContext(this.logicParams, args, context, params, $event, xData, actioncontext, srfParentDeName)
}
/**
* 执行
*
* @param {any[]} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actionContext]
* @param {string} [srfParentDeName]
* @memberof CustomEditUILogicBase
*/
async execute(args: any[], context:any = {} ,params: any = {}, $event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
try {
const actionContext = this.beforeExecute(args, context, params, $event, xData, actioncontext, srfParentDeName);
await this.execute_begin_node(actionContext);
return actionContext.getResult();
} catch (error: any) {
throw new Error(`${error && error.message ? error.message : '发生未知错误!'}`);
}
}
/**
* 获取条件参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @param {string} param 节点参数
* @param {string} property 参数属性
* @return {*}
* @memberof CustomEditUILogicBase
*/
public getCondParam(actionContext: UIActionContext, param: string, property: string) {
const resultParam = actionContext.getParam(param).getReal();
// 当不存在参数属性时,返回直接值
if (property === '') {
return resultParam;
}
if (resultParam && resultParam.hasOwnProperty(property)) {
return resultParam[property];
}
return null;
}
/**
* 开始
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomEditUILogicBase
*/
protected async execute_begin_node(actionContext: UIActionContext) {
actionContext.setResult(actionContext.defaultParam.getReal());
console.log('已完成执行 开始 节点');
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import CustomEditUILogicBase from './custom-edit-ui-logic-base';
/**
* 编辑
*
* @export
* @class CustomEditUILogic
*/
export default class CustomEditUILogic extends CustomEditUILogicBase {
/**
* 编辑 逻辑实例对象
*
* @private
* @static
* @type {CustomEditUILogic}
* @memberof CustomEditUILogic
*/
private static instance: CustomEditUILogic;
/**
* 获取 编辑 逻辑实例对象
*
* @static
* @return {*} {CustomEditUILogic}
* @memberof CustomEditUILogic
*/
static getInstance(): CustomEditUILogic {
if (!this.instance) {
this.instance = new CustomEditUILogic();
}
return this.instance;
}
/**
* Creates an instance of CustomEditUILogic
*
* @param {*} [opts={}]
* @memberof CustomEditUILogic
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import { UIActionContext } from "@/logic/ui-logic";
import { LogicReturnType } from "@/logic/const/logic-return-type";
import { UILogicParamType } from "@/logic/const/ui-logic-param-type";
import { Util, Verify } from "@/utils";
import { AppMessageBox } from "@/utils/app-message-box/app-message-box";
import { Subject } from "rxjs";
/**
* 自定义视图表格加载
*
* @export
* @class CustomViewGridLoadUILogicBase
*/
export default class CustomViewGridLoadUILogicBase {
/**
* Creates an instance of CustomViewGridLoadBase.
*
* @param {*} [opts={}]
* @memberof CustomViewGridLoadUILogicBase
*/
constructor(opts: any = {}) { }
/**
* 逻辑参数
*
* @protected
* @type {any[]}
* @memberof CustomViewGridLoadUILogicBase
*/
protected logicParams: any[] = [
{
name: '传入变量',
codeName: 'Default',
default: true,
entityParam: true,
},
];
/**
* 执行前
*
* @param {*} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actioncontext]
* @param {string} [srfParentDeName]
* @return {*}
* @memberof CustomViewGridLoadUILogicBase
*/
public beforeExecute(args: any, context: any = {}, params: any = {},
$event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
return new UIActionContext(this.logicParams, args, context, params, $event, xData, actioncontext, srfParentDeName)
}
/**
* 执行
*
* @param {any[]} args
* @param {*} [context={}]
* @param {*} [params={}]
* @param {*} [$event]
* @param {*} [xData]
* @param {*} [actionContext]
* @param {string} [srfParentDeName]
* @memberof CustomViewGridLoadUILogicBase
*/
async execute(args: any[], context:any = {} ,params: any = {}, $event?: any, xData?: any, actioncontext?: any, srfParentDeName?: string) {
try {
const actionContext = this.beforeExecute(args, context, params, $event, xData, actioncontext, srfParentDeName);
await this.execute_begin_node(actionContext);
return actionContext.getResult();
} catch (error: any) {
throw new Error(`${error && error.message ? error.message : '发生未知错误!'}`);
}
}
/**
* 获取条件参数
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @param {string} param 节点参数
* @param {string} property 参数属性
* @return {*}
* @memberof CustomViewGridLoadUILogicBase
*/
public getCondParam(actionContext: UIActionContext, param: string, property: string) {
const resultParam = actionContext.getParam(param).getReal();
// 当不存在参数属性时,返回直接值
if (property === '') {
return resultParam;
}
if (resultParam && resultParam.hasOwnProperty(property)) {
return resultParam[property];
}
return null;
}
/**
* 开始
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomViewGridLoadUILogicBase
*/
protected async execute_begin_node(actionContext: UIActionContext) {
actionContext.setResult(actionContext.defaultParam.getReal());
console.log('已完成执行 开始 节点');
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import CustomViewGridLoadUILogicBase from './custom-view-grid-load-ui-logic-base';
/**
* 自定义视图表格加载
*
* @export
* @class CustomViewGridLoadUILogic
*/
export default class CustomViewGridLoadUILogic extends CustomViewGridLoadUILogicBase {
/**
* 自定义视图表格加载 逻辑实例对象
*
* @private
* @static
* @type {CustomViewGridLoadUILogic}
* @memberof CustomViewGridLoadUILogic
*/
private static instance: CustomViewGridLoadUILogic;
/**
* 获取 自定义视图表格加载 逻辑实例对象
*
* @static
* @return {*} {CustomViewGridLoadUILogic}
* @memberof CustomViewGridLoadUILogic
*/
static getInstance(): CustomViewGridLoadUILogic {
if (!this.instance) {
this.instance = new CustomViewGridLoadUILogic();
}
return this.instance;
}
/**
* Creates an instance of CustomViewGridLoadUILogic
*
* @param {*} [opts={}]
* @memberof CustomViewGridLoadUILogic
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -4,6 +4,8 @@ import UIService from '../ui-service'; ...@@ -4,6 +4,8 @@ import UIService from '../ui-service';
import { Subject } from 'rxjs'; import { Subject } from 'rxjs';
import IBIZBOOKService from '@/service/ibizbook/ibizbook-service'; import IBIZBOOKService from '@/service/ibizbook/ibizbook-service';
import IBIZBOOKAuthService from '@/authservice/ibizbook/ibizbook-auth-service'; import IBIZBOOKAuthService from '@/authservice/ibizbook/ibizbook-auth-service';
import CustomEditUILogic from './custom-edit-ui-logic';
import CustomViewGridLoadUILogic from './custom-view-grid-load-ui-logic';
import FormLoadUILogic from './form-load-ui-logic'; import FormLoadUILogic from './form-load-ui-logic';
import GridLoadUILogic from './grid-load-ui-logic'; import GridLoadUILogic from './grid-load-ui-logic';
import PrintParamsUILogic from './print-params-ui-logic'; import PrintParamsUILogic from './print-params-ui-logic';
...@@ -102,6 +104,7 @@ export default class IBIZBOOKUIServiceBase extends UIService { ...@@ -102,6 +104,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'treeview',srfappde:'ibizbooks',component:'ibizbooktree-view'}); this.allViewMap.set(':',{viewname:'treeview',srfappde:'ibizbooks',component:'ibizbooktree-view'});
this.allViewMap.set(':',{viewname:'internalfuncgridview',srfappde:'ibizbooks',component:'ibizbookinternal-func-grid-view'}); this.allViewMap.set(':',{viewname:'internalfuncgridview',srfappde:'ibizbooks',component:'ibizbookinternal-func-grid-view'});
this.allViewMap.set(':',{viewname:'gridexpview',srfappde:'ibizbooks',component:'ibizbookgrid-exp-view'}); this.allViewMap.set(':',{viewname:'gridexpview',srfappde:'ibizbooks',component:'ibizbookgrid-exp-view'});
this.allViewMap.set(':',{viewname:'gridloadcustomview',srfappde:'ibizbooks',component:'ibizbookgrid-load-custom-view'});
this.allViewMap.set(':',{viewname:'haspanelkanbanview',srfappde:'ibizbooks',component:'ibizbookhas-panel-kan-ban-view'}); this.allViewMap.set(':',{viewname:'haspanelkanbanview',srfappde:'ibizbooks',component:'ibizbookhas-panel-kan-ban-view'});
this.allViewMap.set(':',{viewname:'testcldataview',srfappde:'ibizbooks',component:'ibizbooktest-cldata-view'}); this.allViewMap.set(':',{viewname:'testcldataview',srfappde:'ibizbooks',component:'ibizbooktest-cldata-view'});
this.allViewMap.set(':',{viewname:'usr6gridview_layout',srfappde:'ibizbooks',component:'ibizbookusr6-grid-view-layout'}); this.allViewMap.set(':',{viewname:'usr6gridview_layout',srfappde:'ibizbooks',component:'ibizbookusr6-grid-view-layout'});
...@@ -608,6 +611,12 @@ export default class IBIZBOOKUIServiceBase extends UIService { ...@@ -608,6 +611,12 @@ export default class IBIZBOOKUIServiceBase extends UIService {
* @memberof UIService * @memberof UIService
*/ */
public async executeUILogic(name: string, args: any[], context?: any, params?: any, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string | undefined): Promise<any> { public async executeUILogic(name: string, args: any[], context?: any, params?: any, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string | undefined): Promise<any> {
if (name === 'CustomEdit') {
return await CustomEditUILogic.getInstance().execute(args, context, params, $event, xData, actionContext, srfParentDeName);
}
if (name === 'CustomViewGridLoad') {
return await CustomViewGridLoadUILogic.getInstance().execute(args, context, params, $event, xData, actionContext, srfParentDeName);
}
if (name === 'FormLoad') { if (name === 'FormLoad') {
return await FormLoadUILogic.getInstance().execute(args, context, params, $event, xData, actionContext, srfParentDeName); return await FormLoadUILogic.getInstance().execute(args, context, params, $event, xData, actionContext, srfParentDeName);
} }
......
...@@ -530,7 +530,7 @@ export default class ListExpBase extends Vue implements ControlInterface { ...@@ -530,7 +530,7 @@ export default class ListExpBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return; return;
} }
const arg: any = {...opt}; const arg: any = {...opt};
...@@ -646,7 +646,7 @@ export default class ListExpBase extends Vue implements ControlInterface { ...@@ -646,7 +646,7 @@ export default class ListExpBase 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: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.removeAction') as string) });
return; return;
} }
if (datas.length === 0) { if (datas.length === 0) {
...@@ -741,7 +741,7 @@ export default class ListExpBase extends Vue implements ControlInterface { ...@@ -741,7 +741,7 @@ export default class ListExpBase 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: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderListExpView' + (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);
...@@ -749,7 +749,7 @@ export default class ListExpBase extends Vue implements ControlInterface { ...@@ -749,7 +749,7 @@ export default class ListExpBase 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.warning') as string), desc: 'IBIZOrderListExpView_layout' + (this.$t('app.list.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.warning') as string), desc: 'IBIZOrderListExpView' + (this.$t('app.list.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorder){ if(item.ibizorder){
......
...@@ -4074,6 +4074,12 @@ ...@@ -4074,6 +4074,12 @@
"name" : "测试日历视图布局面板", "name" : "测试日历视图布局面板",
"realModelSubType" : "DECALENDARVIEW", "realModelSubType" : "DECALENDARVIEW",
"realModelType" : "PSDEVIEWBASE" "realModelType" : "PSDEVIEWBASE"
}, {
"codeName" : "GridLoadCustomView",
"logicName" : "界面逻辑加载与跳转",
"name" : "界面逻辑加载与跳转",
"realModelSubType" : "DECUSTOMVIEW",
"realModelType" : "PSDEVIEWBASE"
}, { }, {
"codeName" : "Usr2DataView", "codeName" : "Usr2DataView",
"logicName" : "图书实体数据视图(自动分组)", "logicName" : "图书实体数据视图(自动分组)",
......
...@@ -2071,6 +2071,50 @@ ...@@ -2071,6 +2071,50 @@
"id" : "toolbar_CustomView_layouttoolbar_deuiaction1_click@IBIZBOOK" "id" : "toolbar_CustomView_layouttoolbar_deuiaction1_click@IBIZBOOK"
} ], } ],
"getAllPSAppDEUILogics" : [ { "getAllPSAppDEUILogics" : [ {
"codeName" : "CustomEdit",
"defaultParamName" : "Default",
"logicName" : "编辑",
"name" : "编辑",
"getPSDEUILogicNodes" : [ {
"codeName" : "Begin",
"logicNodeType" : "BEGIN",
"name" : "开始",
"parallelOutput" : true
} ],
"getPSDEUILogicParams" : [ {
"codeName" : "Default",
"logicName" : "传入变量",
"name" : "传入变量",
"default" : true,
"entityParam" : true
} ],
"getStartPSDEUILogicNode" : {
"modelref" : true,
"id" : "Begin"
}
}, {
"codeName" : "CustomViewGridLoad",
"defaultParamName" : "Default",
"logicName" : "自定义视图表格加载",
"name" : "自定义视图表格加载",
"getPSDEUILogicNodes" : [ {
"codeName" : "Begin",
"logicNodeType" : "BEGIN",
"name" : "开始",
"parallelOutput" : true
} ],
"getPSDEUILogicParams" : [ {
"codeName" : "Default",
"logicName" : "传入变量",
"name" : "传入变量",
"default" : true,
"entityParam" : true
} ],
"getStartPSDEUILogicNode" : {
"modelref" : true,
"id" : "Begin"
}
}, {
"codeName" : "FormLoad", "codeName" : "FormLoad",
"defaultParamName" : "Default", "defaultParamName" : "Default",
"logicName" : "表单加载", "logicName" : "表单加载",
......
...@@ -164,7 +164,6 @@ ...@@ -164,7 +164,6 @@
"getPSLayoutPos" : { "getPSLayoutPos" : {
"grow" : -1, "grow" : -1,
"hAlignSelf" : "RIGHT", "hAlignSelf" : "RIGHT",
"heightMode" : "FULL",
"layout" : "SIMPLEFLEX", "layout" : "SIMPLEFLEX",
"vAlignSelf" : "MIDDLE" "vAlignSelf" : "MIDDLE"
}, },
......
...@@ -164,7 +164,6 @@ ...@@ -164,7 +164,6 @@
"getPSLayoutPos" : { "getPSLayoutPos" : {
"grow" : -1, "grow" : -1,
"hAlignSelf" : "RIGHT", "hAlignSelf" : "RIGHT",
"heightMode" : "FULL",
"layout" : "SIMPLEFLEX", "layout" : "SIMPLEFLEX",
"vAlignSelf" : "MIDDLE" "vAlignSelf" : "MIDDLE"
}, },
......
...@@ -1703,7 +1703,7 @@ ...@@ -1703,7 +1703,7 @@
"layout" : "SIMPLEFLEX" "layout" : "SIMPLEFLEX"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"grow" : -1, "grow" : 3,
"layout" : "SIMPLEFLEX" "layout" : "SIMPLEFLEX"
}, },
"getPSPanelItems" : [ { "getPSPanelItems" : [ {
...@@ -1736,7 +1736,7 @@ ...@@ -1736,7 +1736,7 @@
"layout" : "SIMPLEFLEX" "layout" : "SIMPLEFLEX"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"grow" : -1, "grow" : 3,
"layout" : "SIMPLEFLEX" "layout" : "SIMPLEFLEX"
}, },
"getPSPanelItems" : [ { "getPSPanelItems" : [ {
...@@ -1761,7 +1761,7 @@ ...@@ -1761,7 +1761,7 @@
"layout" : "SIMPLEFLEX" "layout" : "SIMPLEFLEX"
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"grow" : -1, "grow" : 6,
"layout" : "SIMPLEFLEX" "layout" : "SIMPLEFLEX"
}, },
"getPSPanelItems" : [ { "getPSPanelItems" : [ {
......
...@@ -13175,6 +13175,12 @@ ...@@ -13175,6 +13175,12 @@
"viewType" : "DEGRIDEXPVIEW", "viewType" : "DEGRIDEXPVIEW",
"resource" : "IBIZBOOK", "resource" : "IBIZBOOK",
"view" : "GridExpView" "view" : "GridExpView"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKGridLoadCustomView.json",
"viewType" : "DECUSTOMVIEW",
"resource" : "IBIZBOOK",
"view" : "GridLoadCustomView"
}, { }, {
"modelref" : true, "modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKHasPanelKanBanView.json", "path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKHasPanelKanBanView.json",
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 --> <!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-489-7"> <changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-508-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-543-14"> <changeSet author="a_LAB01_df847bdfd" id="tab-ibizorder-547-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-543-8" runOnChange="true"> <changeSet author="a_LAB01_df847bdfd" id="view-ibizorder-547-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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册