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

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

上级 727dade9
...@@ -450,10 +450,16 @@ export class PanelDetailModel { ...@@ -450,10 +450,16 @@ export class PanelDetailModel {
Object.assign(boxStyle, { 'flex-grow': 1, 'min-width': `${(100 / 12)}%`, 'height': '100%' }); Object.assign(boxStyle, { 'flex-grow': 1, 'min-width': `${(100 / 12)}%`, 'height': '100%' });
} }
} }
if (this.parentName && this.panel) {
const parentItem = this.panel.layoutModelDetails[this.parentName];
// 当前项兄弟项个数大于1且本身设置宽或者高默认不占满
if (parentItem && parentItem.details && parentItem.details.length > 1) {
const boxSizeStyle: any = this.getBoxSizeStyle(); const boxSizeStyle: any = this.getBoxSizeStyle();
if (boxSizeStyle && Object.keys(boxSizeStyle).length > 0) { if (boxSizeStyle && Object.keys(boxSizeStyle).length > 0) {
Object.assign(boxStyle, { 'flex-grow': 0 }); Object.assign(boxStyle, { 'flex-grow': 0 });
} }
}
}
return boxStyle; return boxStyle;
} }
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<template #container6> <template #container6>
<app-simpleflex-container name="container6" :layoutModelDetails="layoutModelDetails"> <app-simpleflex-container name="container6" :layoutModelDetails="layoutModelDetails">
<template #static_carousel1> <template #static_carousel1>
<app-rawitem-carousel name="static_carousel1" type="STATIC_CAROUSEL" :value="[ { key:'img1', iconClass:'fa fa-bank', type:'icon' }, { key:'img2', imgPath:'assets/img/logo2.png', type:'img' }, { key:'img3', iconClass:'fa fa-steam-square', type:'icon' }, { key:'img4', imgPath:'/assets/img/login_bg.png', type:'img' }, { key:'autoplay', value:'1', }, { key:'timespan', value:'2000', } ]" :layoutModelDetails="layoutModelDetails" :data="layoutData"/> <app-rawitem-carousel name="static_carousel1" type="STATIC_CAROUSEL" :value="[ { key:'img1', value:'fa fa-bank', type:'icon' }, { key:'img2', value:'assets/img/logo2.png', type:'img' }, { key:'img3', value:'fa fa-steam-square', type:'icon' }, { key:'img4', value:'/assets/img/login_bg.png', type:'img' }, { key:'autoplay', value:'1', }, { key:'timespan', value:'2000', } ]" :layoutModelDetails="layoutModelDetails" :data="layoutData"/>
</template> </template>
</app-simpleflex-container> </app-simpleflex-container>
</template> </template>
......
...@@ -108,7 +108,7 @@ export default class IBIZCustomerServiceBase extends EntityService { ...@@ -108,7 +108,7 @@ export default class IBIZCustomerServiceBase extends EntityService {
} }
public async GetDynaCarousel(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDynaCarousel(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data)); let tempData:any = JSON.parse(JSON.stringify(data));
tempData['field_carousel'] = [ { key:'img1', iconClass:'fa fa-bank', type:'icon' }, { key:'img2', imgPath:'assets/img/logo2.png', type:'img' }, { key:'img3', iconClass:'fa fa-steam-square', type:'icon' }, { key:'img4', imgPath:'/assets/img/login_bg.png', type:'img' }, { key:'autoplay', value:'1', }, { key:'timespan', value:'2000', } ] tempData['field_carousel'] = [ { key:'img1', value:'fa fa-bank', type:'icon' }, { key:'img2', value:'assets/img/logo2.png', type:'img' }, { key:'img3', value:'fa fa-steam-square', type:'icon' }, { key:'img4', value:'/assets/img/login_bg.png', type:'img' }, { key:'autoplay', value:'1', }, { key:'timespan', value:'2000', } ]
return {"status":200,"data":tempData}; return {"status":200,"data":tempData};
} }
public async GetDynaImg(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async GetDynaImg(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
......
...@@ -28,27 +28,32 @@ export default class CustomEditUILogicBase { ...@@ -28,27 +28,32 @@ export default class CustomEditUILogicBase {
* @memberof CustomEditUILogicBase * @memberof CustomEditUILogicBase
*/ */
protected logicParams: any[] = [ protected logicParams: any[] = [
{
name: '当前视图',
codeName: 'view',
activeViewParam: true,
},
{ {
name: '传入变量', name: '传入变量',
codeName: 'Default', codeName: 'Default',
default: true, default: true,
entityParam: true, entityParam: true,
}, },
{
name: '当前激活部件',
codeName: 'grid',
activeCtrlParam: true,
ctrlParam: true,
},
{ {
name: '当前容器', name: '当前容器',
codeName: 'currentContainer', codeName: 'currentContainer',
activeContainerParam: true, activeContainerParam: true,
}, },
{ {
name: '当前激活部件', name: '当前视图',
codeName: 'grid', codeName: 'view',
activeCtrlParam: true, activeViewParam: true,
ctrlParam: true, },
{
name: '表格数据',
codeName: 'gridData',
entityListParam: true,
}, },
]; ];
...@@ -122,6 +127,33 @@ export default class CustomEditUILogicBase { ...@@ -122,6 +127,33 @@ export default class CustomEditUILogicBase {
protected async execute_begin_node(actionContext: UIActionContext) { protected async execute_begin_node(actionContext: UIActionContext) {
actionContext.setResult(actionContext.defaultParam.getReal()); actionContext.setResult(actionContext.defaultParam.getReal());
console.log('已完成执行 开始 节点'); console.log('已完成执行 开始 节点');
await this.execute_bindparam1_node(actionContext);
}
/**
* 绑定表格选中数据
*
* @param {UIActionContext} actionContext 界面逻辑上下文
* @memberof CustomEditUILogicBase
*/
protected async execute_bindparam1_node(actionContext: UIActionContext) {
try {
// 源数据
const srcParam = actionContext.getParam('grid');
// 目标数据
const dstParam = actionContext.getParam('gridData');
// 源属性
const srcFieldName: string = 'selections';
if (srcFieldName) {
dstParam.bind(srcParam.get(srcFieldName));
} else {
dstParam.bind(srcParam.getReal());
}
actionContext.bindLastReturnParam(null);
} catch (error: any) {
throw new Error(`逻辑参数表格数据 ${error && error.message ? error.message : '发生未知错误!'}`);
}
console.log('已完成执行 绑定表格选中数据 节点');
await this.execute_deuiaction1_node(actionContext); await this.execute_deuiaction1_node(actionContext);
} }
......
...@@ -671,7 +671,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -671,7 +671,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}): void { public load(opt: any = {}): void {
if(!this.loadAction){ if(!this.loadAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -707,7 +707,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -707,7 +707,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public loadDraft(opt: any = {},mode?:string): void { public loadDraft(opt: any = {},mode?:string): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr5DataView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZBOOKUsr9GridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -665,7 +665,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface ...@@ -665,7 +665,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
*/ */
public load(opt: any = {}, isReset: boolean = false): void { public load(opt: any = {}, isReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.list.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (this.$t('app.list.notConfig.fetchAction') as string) });
return; return;
} }
const arg: any = {...opt}; const arg: any = {...opt};
...@@ -744,7 +744,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface ...@@ -744,7 +744,7 @@ export default class CardNavigationBase 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: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.gridpage.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (this.$t('app.gridpage.notConfig.removeAction') as string) });
return; return;
} }
let _datas:any[] = []; let _datas:any[] = [];
...@@ -853,7 +853,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface ...@@ -853,7 +853,7 @@ export default class CardNavigationBase 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: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.list.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (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);
...@@ -861,7 +861,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface ...@@ -861,7 +861,7 @@ export default class CardNavigationBase extends Vue implements ControlInterface
} }
}else if(Object.is(item.rowDataState, 'update')){ }else if(Object.is(item.rowDataState, 'update')){
if(!this.updateAction){ if(!this.updateAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView_layout' + (this.$t('app.list.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderDataViewExpView' + (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){
......
...@@ -2126,7 +2126,7 @@ ...@@ -2126,7 +2126,7 @@
"getPSDEUILogicLinks" : [ { "getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : { "getDstPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
"id" : "DEUIACTION1" "id" : "BINDPARAM1"
}, },
"linkMode" : 0, "linkMode" : 0,
"name" : "连接名称", "name" : "连接名称",
...@@ -2136,6 +2136,31 @@ ...@@ -2136,6 +2136,31 @@
} }
} ], } ],
"parallelOutput" : true "parallelOutput" : true
}, {
"codeName" : "BINDPARAM1",
"getDstPSDEUILogicParam" : {
"modelref" : true,
"id" : "gridData"
},
"logicNodeType" : "BINDPARAM",
"name" : "绑定表格选中数据",
"getPSDEUILogicLinks" : [ {
"getDstPSDEUILogicNode" : {
"modelref" : true,
"id" : "DEUIACTION1"
},
"linkMode" : 0,
"name" : "连接名称",
"getSrcPSDEUILogicNode" : {
"modelref" : true,
"id" : "BINDPARAM1"
}
} ],
"srcFieldName" : "selections",
"getSrcPSDEUILogicParam" : {
"modelref" : true,
"id" : "grid"
}
}, { }, {
"codeName" : "END1", "codeName" : "END1",
"logicNodeType" : "END", "logicNodeType" : "END",
...@@ -2157,7 +2182,7 @@ ...@@ -2157,7 +2182,7 @@
}, },
"getDstPSDEUILogicParam" : { "getDstPSDEUILogicParam" : {
"modelref" : true, "modelref" : true,
"id" : "Default" "id" : "gridData"
}, },
"logicNodeType" : "DEUIACTION", "logicNodeType" : "DEUIACTION",
"name" : "界面行为", "name" : "界面行为",
...@@ -2175,27 +2200,32 @@ ...@@ -2175,27 +2200,32 @@
} ] } ]
} ], } ],
"getPSDEUILogicParams" : [ { "getPSDEUILogicParams" : [ {
"codeName" : "view",
"logicName" : "当前视图",
"name" : "当前视图",
"activeViewParam" : true
}, {
"codeName" : "Default", "codeName" : "Default",
"logicName" : "传入变量", "logicName" : "传入变量",
"name" : "传入变量", "name" : "传入变量",
"default" : true, "default" : true,
"entityParam" : true "entityParam" : true
}, {
"codeName" : "currentContainer",
"logicName" : "当前容器",
"name" : "当前容器",
"activeContainerParam" : true
}, { }, {
"codeName" : "grid", "codeName" : "grid",
"logicName" : "当前激活部件", "logicName" : "当前激活部件",
"name" : "当前激活部件", "name" : "当前激活部件",
"activeCtrlParam" : true, "activeCtrlParam" : true,
"ctrlParam" : true "ctrlParam" : true
}, {
"codeName" : "currentContainer",
"logicName" : "当前容器",
"name" : "当前容器",
"activeContainerParam" : true
}, {
"codeName" : "view",
"logicName" : "当前视图",
"name" : "当前视图",
"activeViewParam" : true
}, {
"codeName" : "gridData",
"logicName" : "表格数据",
"name" : "表格数据",
"entityListParam" : true
} ], } ],
"getStartPSDEUILogicNode" : { "getStartPSDEUILogicNode" : {
"modelref" : true, "modelref" : true,
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 --> <!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-534-7"> <changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-542-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>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册