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

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

上级 46c4f556
...@@ -309,7 +309,7 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue { ...@@ -309,7 +309,7 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
*/ */
public layoutItems:any = { public layoutItems:any = {
form:{ name: 'form', type: 'VIEWLAYOUT', caption: '表单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'FULL', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this }, form:{ name: 'form', type: 'VIEWLAYOUT', caption: '表单', isShowCaption: true, sysCss: '', itemType: 'CTRLPOS', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'FULL', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this },
container_scroll_main1:{ name: 'container_scroll_main1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: true, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:100, widthMode:'PX', 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' },
button_calluilogic2:{ name: 'button_calluilogic2', type: 'VIEWLAYOUT', caption: '确认', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'PRIMARY', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'FULL', layoutWidth:60, widthMode:'PX', spacingBottom:'', spacingLeft:'', spacingRight:'OUTERSMALL', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'PRIMARY', borderStyle: '', iconAlign: '', predefinedType: 'DATA_SAVECHANGES', renderMode: '', }, button_calluilogic2:{ name: 'button_calluilogic2', type: 'VIEWLAYOUT', caption: '确认', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'PRIMARY', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'FULL', layoutWidth:60, widthMode:'PX', spacingBottom:'', spacingLeft:'', spacingRight:'OUTERSMALL', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'PRIMARY', borderStyle: '', iconAlign: '', predefinedType: 'DATA_SAVECHANGES', renderMode: '', },
button_calluilogic1:{ name: 'button_calluilogic1', type: 'VIEWLAYOUT', caption: '取消', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'FULL', layoutWidth:60, widthMode:'PX', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', predefinedType: 'DATA_CANCELCHANGES', renderMode: '', }, button_calluilogic1:{ name: 'button_calluilogic1', type: 'VIEWLAYOUT', caption: '取消', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'FULL', layoutWidth:60, widthMode:'PX', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', predefinedType: 'DATA_CANCELCHANGES', renderMode: '', },
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'FULL', spacingBottom:'INNERMEDIUM', spacingLeft:'', spacingRight:'', spacingTop:'INNERMEDIUM', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'flex-end',dir:'row',vAlign:'center'}, parentName: 'container_scroll_bottom1', panel: this , details:['button_calluilogic2','button_calluilogic1'] , dataRegionType: 'INHERIT' }, container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'FULL', spacingBottom:'INNERMEDIUM', spacingLeft:'', spacingRight:'', spacingTop:'INNERMEDIUM', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'flex-end',dir:'row',vAlign:'center'}, parentName: 'container_scroll_bottom1', panel: this , details:['button_calluilogic2','button_calluilogic1'] , dataRegionType: 'INHERIT' },
......
...@@ -297,7 +297,7 @@ export default class IndexBase extends Vue { ...@@ -297,7 +297,7 @@ export default class IndexBase extends Vue {
* @memberof IndexBase * @memberof IndexBase
*/ */
public layoutItems:any = { public layoutItems:any = {
nav_pos1:{ name: 'nav_pos1', type: 'VIEWLAYOUT', caption: '导航区占位', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'INNERMEDIUM', spacingRight:'INNERMEDIUM', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main2', panel: this , viewType: 'APPINDEXVIEW', predefinedType: 'NAV_POS', contentType: '', contentStyle: '', rawContent: '', htmlContent: '', }, 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:'INNERMEDIUM', spacingRight:'INNERMEDIUM', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main2', panel: this , viewType: 'APPINDEXVIEW', 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:'INNERMEDIUM', spacingLeft:'INNERMEDIUM', spacingRight:'INNERMEDIUM', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll2', panel: this , details:['nav_pos1'] , dataRegionType: 'INHERIT' }, 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:'INNERMEDIUM', spacingLeft:'INNERMEDIUM', spacingRight:'INNERMEDIUM', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll2', panel: this , details:['nav_pos1'] , dataRegionType: 'INHERIT' },
nav_tabs2:{ name: 'nav_tabs2', type: 'VIEWLAYOUT', caption: '标签页导航栏', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header2', panel: this , viewType: 'APPINDEXVIEW', predefinedType: 'NAV_TABS', contentType: '', contentStyle: '', rawContent: '', htmlContent: '', }, nav_tabs2:{ name: 'nav_tabs2', type: 'VIEWLAYOUT', caption: '标签页导航栏', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'FULL', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_header2', panel: this , viewType: 'APPINDEXVIEW', predefinedType: 'NAV_TABS', contentType: '', contentStyle: '', rawContent: '', htmlContent: '', },
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:56, heightMode:'PX', layoutWidth:0, widthMode:'', spacingBottom:'INNERSMALL', spacingLeft:'INNERMEDIUM', spacingRight:'', spacingTop:'INNERSMALL', hAlignSelf:'LEFT', vAlignSelf:'MIDDLE', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll2', panel: this , details:['nav_tabs2'] , 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:56, heightMode:'PX', layoutWidth:0, widthMode:'', spacingBottom:'INNERSMALL', spacingLeft:'INNERMEDIUM', spacingRight:'', spacingTop:'INNERSMALL', hAlignSelf:'LEFT', vAlignSelf:'MIDDLE', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll2', panel: this , details:['nav_tabs2'] , dataRegionType: 'INHERIT' },
......
...@@ -213,30 +213,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface { ...@@ -213,30 +213,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
*/ */
public appUIService:UIService = new UIService(); public appUIService:UIService = new UIService();
/**
* 视图布局是否加载
*
* @public
* @memberof PanelBase
*/
public isLayoutLoadding: boolean = false;
/**
* 视图布局数据
*
* @public
* @memberof PanelBase
*/
public layoutData:any = {};
/**
* 视图布局面板模型对象
*
* @public
* @memberof PanelBase
*/
public layoutModelDetails:any = {};
/** /**
* 视图布局顶级成员名称 * 视图布局顶级成员名称
* *
...@@ -245,68 +221,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface { ...@@ -245,68 +221,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
*/ */
public rootLayoutDetailNames: string[] = [ ]; public rootLayoutDetailNames: string[] = [ ];
/**
* 初始化布局
*
* @public
* @memberof PanelBase
*/
public async initLayout() {
if (this.rootLayoutDetailNames.length > 0) {
for (let i = 0; i < this.rootLayoutDetailNames.length; i++) {
const name = this.rootLayoutDetailNames[i];
const rootItem = this.layoutItems[name];
if (!rootItem) {
return;
}
await this.initLayoutItem(rootItem);
}
}
return true;
}
/**
* 初始化布局项
*
* @public
* @memberof PanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
} else {
layoutModelDetail.setIndex(index);
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, `${name}_${index}`, layoutModelDetail);
this.$set(this.layoutData, `${name}_${index}`, layoutModelDetail.getData());
}
if (layoutModelDetail && layoutModelDetail.details) {
if (layoutModelDetail.dataRegionType === 'MULTIDATA') {
const multiData = layoutModelDetail.getData();
if (multiData && multiData.length > 0) {
for (let i = 0; i < multiData.length; i++) {
for (let j = 0; j < layoutModelDetail.details.length; j++) {
const key = layoutModelDetail.details[j];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key], i);
}
}
}
}
} else {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
}
}
}
}
}
/** /**
* 视图布局面板项模型对象 * 视图布局面板项模型对象
...@@ -498,7 +412,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface { ...@@ -498,7 +412,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
* @memberof AppPanelViewBase * @memberof AppPanelViewBase
*/ */
public panelLogic(name: string): void { public panelLogic(name: string): void {
} }
/** /**
...@@ -509,36 +422,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface { ...@@ -509,36 +422,6 @@ export default class AppPanelViewBase extends Vue implements ControlInterface {
*/ */
public getButtonXData(name: string): any { public getButtonXData(name: string): any {
let xData = null; let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData; return xData;
} }
......
...@@ -598,7 +598,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -598,7 +598,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: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -634,7 +634,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -634,7 +634,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: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -247,30 +247,6 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -247,30 +247,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
*/ */
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService(); public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
*
* @public
* @memberof Item1layoutpanelBase
*/
public isLayoutLoadding: boolean = false;
/**
* 视图布局数据
*
* @public
* @memberof Item1layoutpanelBase
*/
public layoutData:any = {};
/**
* 视图布局面板模型对象
*
* @public
* @memberof Item1layoutpanelBase
*/
public layoutModelDetails:any = {};
/** /**
* 视图布局顶级成员名称 * 视图布局顶级成员名称
* *
...@@ -279,68 +255,6 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -279,68 +255,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
*/ */
public rootLayoutDetailNames: string[] = [ 'container1' ]; public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 初始化布局
*
* @public
* @memberof Item1layoutpanelBase
*/
public async initLayout() {
if (this.rootLayoutDetailNames.length > 0) {
for (let i = 0; i < this.rootLayoutDetailNames.length; i++) {
const name = this.rootLayoutDetailNames[i];
const rootItem = this.layoutItems[name];
if (!rootItem) {
return;
}
await this.initLayoutItem(rootItem);
}
}
return true;
}
/**
* 初始化布局项
*
* @public
* @memberof Item1layoutpanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
} else {
layoutModelDetail.setIndex(index);
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, `${name}_${index}`, layoutModelDetail);
this.$set(this.layoutData, `${name}_${index}`, layoutModelDetail.getData());
}
if (layoutModelDetail && layoutModelDetail.details) {
if (layoutModelDetail.dataRegionType === 'MULTIDATA') {
const multiData = layoutModelDetail.getData();
if (multiData && multiData.length > 0) {
for (let i = 0; i < multiData.length; i++) {
for (let j = 0; j < layoutModelDetail.details.length; j++) {
const key = layoutModelDetail.details[j];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key], i);
}
}
}
}
} else {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
}
}
}
}
}
/** /**
* 视图布局面板项模型对象 * 视图布局面板项模型对象
...@@ -349,10 +263,6 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -349,10 +263,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @memberof Item1layoutpanelBase * @memberof Item1layoutpanelBase
*/ */
public layoutItems:any = { public layoutItems:any = {
field1:{ name: 'field1', 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:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'title', wrapMode:'', vAlign:'', hAlign:'', },
field2:{ name: 'field2', 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:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'start', wrapMode:'', vAlign:'', hAlign:'', },
field3:{ name: 'field3', 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:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'end', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['field1','field2','field3'] , dataRegionType: 'INHERIT' }
}; };
/** /**
...@@ -548,11 +458,6 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -548,11 +458,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
* @memberof Auto1Base * @memberof Auto1Base
*/ */
public panelLogic(name: string): void { public panelLogic(name: string): void {
} }
/** /**
...@@ -563,36 +468,6 @@ export default class Auto1Base extends Vue implements ControlInterface { ...@@ -563,36 +468,6 @@ export default class Auto1Base extends Vue implements ControlInterface {
*/ */
public getButtonXData(name: string): any { public getButtonXData(name: string): any {
let xData = null; let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData; return xData;
} }
......
...@@ -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: 'IBIZBOOKUsr3GridView' + (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: 'IBIZBOOKUsr3GridView' + (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 } ;
......
...@@ -247,30 +247,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -247,30 +247,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
*/ */
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService(); public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
*
* @public
* @memberof ItemlayoutpanelBase
*/
public isLayoutLoadding: boolean = false;
/**
* 视图布局数据
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutData:any = {};
/**
* 视图布局面板模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutModelDetails:any = {};
/** /**
* 视图布局顶级成员名称 * 视图布局顶级成员名称
* *
...@@ -279,68 +255,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -279,68 +255,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
*/ */
public rootLayoutDetailNames: string[] = [ 'container1' ]; public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 初始化布局
*
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayout() {
if (this.rootLayoutDetailNames.length > 0) {
for (let i = 0; i < this.rootLayoutDetailNames.length; i++) {
const name = this.rootLayoutDetailNames[i];
const rootItem = this.layoutItems[name];
if (!rootItem) {
return;
}
await this.initLayoutItem(rootItem);
}
}
return true;
}
/**
* 初始化布局项
*
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
} else {
layoutModelDetail.setIndex(index);
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, `${name}_${index}`, layoutModelDetail);
this.$set(this.layoutData, `${name}_${index}`, layoutModelDetail.getData());
}
if (layoutModelDetail && layoutModelDetail.details) {
if (layoutModelDetail.dataRegionType === 'MULTIDATA') {
const multiData = layoutModelDetail.getData();
if (multiData && multiData.length > 0) {
for (let i = 0; i < multiData.length; i++) {
for (let j = 0; j < layoutModelDetail.details.length; j++) {
const key = layoutModelDetail.details[j];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key], i);
}
}
}
}
} else {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
}
}
}
}
}
/** /**
* 视图布局面板项模型对象 * 视图布局面板项模型对象
...@@ -349,10 +263,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -349,10 +263,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @memberof ItemlayoutpanelBase * @memberof ItemlayoutpanelBase
*/ */
public layoutItems:any = { public layoutItems:any = {
srfmajortext:{ name: 'srfmajortext', type: 'VIEWLAYOUT', caption: '', isShowCaption: false, sysCss: 'kanban-title', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'srfmajortext', wrapMode:'', vAlign:'', hAlign:'', },
author:{ name: 'author', type: 'VIEWLAYOUT', caption: '', isShowCaption: false, sysCss: 'kanban-author', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'author', wrapMode:'', vAlign:'', hAlign:'', },
srfdescription:{ name: 'srfdescription', type: 'VIEWLAYOUT', caption: '', isShowCaption: false, sysCss: 'kanban-description', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'srfdescription', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: 'kanban-panel', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:400, widthMode:'PX', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['srfmajortext','author','srfdescription'] , dataRegionType: 'INHERIT' }
}; };
/** /**
...@@ -548,11 +458,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -548,11 +458,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
* @memberof HasPanelKanBanBase * @memberof HasPanelKanBanBase
*/ */
public panelLogic(name: string): void { public panelLogic(name: string): void {
} }
/** /**
...@@ -563,36 +468,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface ...@@ -563,36 +468,6 @@ export default class HasPanelKanBanBase extends Vue implements ControlInterface
*/ */
public getButtonXData(name: string): any { public getButtonXData(name: string): any {
let xData = null; let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData; return xData;
} }
......
...@@ -247,30 +247,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -247,30 +247,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
*/ */
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService(); public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
*
* @public
* @memberof List_itempanelBase
*/
public isLayoutLoadding: boolean = false;
/**
* 视图布局数据
*
* @public
* @memberof List_itempanelBase
*/
public layoutData:any = {};
/**
* 视图布局面板模型对象
*
* @public
* @memberof List_itempanelBase
*/
public layoutModelDetails:any = {};
/** /**
* 视图布局顶级成员名称 * 视图布局顶级成员名称
* *
...@@ -279,68 +255,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -279,68 +255,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
*/ */
public rootLayoutDetailNames: string[] = [ 'container1' ]; public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 初始化布局
*
* @public
* @memberof List_itempanelBase
*/
public async initLayout() {
if (this.rootLayoutDetailNames.length > 0) {
for (let i = 0; i < this.rootLayoutDetailNames.length; i++) {
const name = this.rootLayoutDetailNames[i];
const rootItem = this.layoutItems[name];
if (!rootItem) {
return;
}
await this.initLayoutItem(rootItem);
}
}
return true;
}
/**
* 初始化布局项
*
* @public
* @memberof List_itempanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
} else {
layoutModelDetail.setIndex(index);
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, `${name}_${index}`, layoutModelDetail);
this.$set(this.layoutData, `${name}_${index}`, layoutModelDetail.getData());
}
if (layoutModelDetail && layoutModelDetail.details) {
if (layoutModelDetail.dataRegionType === 'MULTIDATA') {
const multiData = layoutModelDetail.getData();
if (multiData && multiData.length > 0) {
for (let i = 0; i < multiData.length; i++) {
for (let j = 0; j < layoutModelDetail.details.length; j++) {
const key = layoutModelDetail.details[j];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key], i);
}
}
}
}
} else {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
}
}
}
}
}
/** /**
* 视图布局面板项模型对象 * 视图布局面板项模型对象
...@@ -349,10 +263,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -349,10 +263,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase * @memberof List_itempanelBase
*/ */
public layoutItems:any = { public layoutItems:any = {
bookname:{ name: 'bookname', 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:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'IBIZBOOKNAME', wrapMode:'', vAlign:'', hAlign:'', },
author:{ name: 'author', 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:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'AUTHOR', wrapMode:'', vAlign:'', hAlign:'', },
press:{ name: 'press', 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:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'PRESS', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['bookname','author','press'] , dataRegionType: 'INHERIT' }
}; };
/** /**
...@@ -548,11 +458,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -548,11 +458,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
* @memberof HasPanelListBase * @memberof HasPanelListBase
*/ */
public panelLogic(name: string): void { public panelLogic(name: string): void {
} }
/** /**
...@@ -563,36 +468,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface { ...@@ -563,36 +468,6 @@ export default class HasPanelListBase extends Vue implements ControlInterface {
*/ */
public getButtonXData(name: string): any { public getButtonXData(name: string): any {
let xData = null; let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData; return xData;
} }
......
...@@ -256,30 +256,6 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -256,30 +256,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
*/ */
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService(); public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
*
* @public
* @memberof List_itempanelBase
*/
public isLayoutLoadding: boolean = false;
/**
* 视图布局数据
*
* @public
* @memberof List_itempanelBase
*/
public layoutData:any = {};
/**
* 视图布局面板模型对象
*
* @public
* @memberof List_itempanelBase
*/
public layoutModelDetails:any = {};
/** /**
* 视图布局顶级成员名称 * 视图布局顶级成员名称
* *
...@@ -288,68 +264,6 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -288,68 +264,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
*/ */
public rootLayoutDetailNames: string[] = [ 'container1' ]; public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 初始化布局
*
* @public
* @memberof List_itempanelBase
*/
public async initLayout() {
if (this.rootLayoutDetailNames.length > 0) {
for (let i = 0; i < this.rootLayoutDetailNames.length; i++) {
const name = this.rootLayoutDetailNames[i];
const rootItem = this.layoutItems[name];
if (!rootItem) {
return;
}
await this.initLayoutItem(rootItem);
}
}
return true;
}
/**
* 初始化布局项
*
* @public
* @memberof List_itempanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
} else {
layoutModelDetail.setIndex(index);
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, `${name}_${index}`, layoutModelDetail);
this.$set(this.layoutData, `${name}_${index}`, layoutModelDetail.getData());
}
if (layoutModelDetail && layoutModelDetail.details) {
if (layoutModelDetail.dataRegionType === 'MULTIDATA') {
const multiData = layoutModelDetail.getData();
if (multiData && multiData.length > 0) {
for (let i = 0; i < multiData.length; i++) {
for (let j = 0; j < layoutModelDetail.details.length; j++) {
const key = layoutModelDetail.details[j];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key], i);
}
}
}
}
} else {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
}
}
}
}
}
/** /**
* 视图布局面板项模型对象 * 视图布局面板项模型对象
...@@ -358,13 +272,6 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -358,13 +272,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase * @memberof List_itempanelBase
*/ */
public layoutItems:any = { public layoutItems:any = {
static_label1:{ name: 'static_label1', type: 'VIEWLAYOUT', caption: '标签', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', 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 , viewType: 'DELISTVIEW', predefinedType: 'STATIC_LABEL', contentType: 'RAW', contentStyle: '', rawContent: '标签', htmlContent: '', renderMode: 'PARAGRAPH', wrapMode:'', vAlign:'', hAlign:'', },
static_text1:{ name: 'static_text1', type: 'VIEWLAYOUT', caption: '文本', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', 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 , viewType: 'DELISTVIEW', predefinedType: 'STATIC_TEXT', contentType: 'RAW', contentStyle: '', rawContent: '文本内容', htmlContent: '', renderMode: 'TEXT', wrapMode:'', vAlign:'', hAlign:'', },
field_text_dynamic:{ name: 'field_text_dynamic', 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_TEXT_DYNAMIC', renderMode: 'TEXT_DYNAMIC', dataItemName:'author', wrapMode:'', vAlign:'', hAlign:'', },
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:'booknumber', },
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', borderStyle: '', iconAlign: '', renderMode: 'LINK', },
button_calluilogic1:{ name: 'button_calluilogic1', 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', borderStyle: '', 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:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['static_label1','static_text1','field_text_dynamic','field_textbox','button_link1','button_calluilogic1'] , dataRegionType: 'INHERIT' }
}; };
/** /**
...@@ -556,14 +463,6 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -556,14 +463,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
* @memberof ListpanelBase * @memberof ListpanelBase
*/ */
public panelLogic(name: string): void { public panelLogic(name: string): void {
} }
/** /**
...@@ -574,36 +473,6 @@ export default class ListpanelBase extends Vue implements ControlInterface { ...@@ -574,36 +473,6 @@ export default class ListpanelBase extends Vue implements ControlInterface {
*/ */
public getButtonXData(name: string): any { public getButtonXData(name: string): any {
let xData = null; let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData; return xData;
} }
......
...@@ -238,30 +238,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI ...@@ -238,30 +238,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
*/ */
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService(); public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
*
* @public
* @memberof ItemlayoutpanelBase
*/
public isLayoutLoadding: boolean = false;
/**
* 视图布局数据
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutData:any = {};
/**
* 视图布局面板模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutModelDetails:any = {};
/** /**
* 视图布局顶级成员名称 * 视图布局顶级成员名称
* *
...@@ -270,68 +246,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI ...@@ -270,68 +246,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
*/ */
public rootLayoutDetailNames: string[] = [ 'container1' ]; public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 初始化布局
*
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayout() {
if (this.rootLayoutDetailNames.length > 0) {
for (let i = 0; i < this.rootLayoutDetailNames.length; i++) {
const name = this.rootLayoutDetailNames[i];
const rootItem = this.layoutItems[name];
if (!rootItem) {
return;
}
await this.initLayoutItem(rootItem);
}
}
return true;
}
/**
* 初始化布局项
*
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
} else {
layoutModelDetail.setIndex(index);
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, `${name}_${index}`, layoutModelDetail);
this.$set(this.layoutData, `${name}_${index}`, layoutModelDetail.getData());
}
if (layoutModelDetail && layoutModelDetail.details) {
if (layoutModelDetail.dataRegionType === 'MULTIDATA') {
const multiData = layoutModelDetail.getData();
if (multiData && multiData.length > 0) {
for (let i = 0; i < multiData.length; i++) {
for (let j = 0; j < layoutModelDetail.details.length; j++) {
const key = layoutModelDetail.details[j];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key], i);
}
}
}
}
} else {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
}
}
}
}
}
/** /**
* 视图布局面板项模型对象 * 视图布局面板项模型对象
...@@ -340,7 +254,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI ...@@ -340,7 +254,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @memberof ItemlayoutpanelBase * @memberof ItemlayoutpanelBase
*/ */
public layoutItems:any = { public layoutItems:any = {
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:[] , dataRegionType: 'INHERIT' }
}; };
/** /**
...@@ -524,8 +437,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI ...@@ -524,8 +437,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
* @memberof TIMELINEITEMLAYOUTPANELBase * @memberof TIMELINEITEMLAYOUTPANELBase
*/ */
public panelLogic(name: string): void { public panelLogic(name: string): void {
} }
/** /**
...@@ -536,36 +447,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI ...@@ -536,36 +447,6 @@ export default class TIMELINEITEMLAYOUTPANELBase extends Vue implements ControlI
*/ */
public getButtonXData(name: string): any { public getButtonXData(name: string): any {
let xData = null; let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData; return xData;
} }
......
...@@ -238,30 +238,6 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -238,30 +238,6 @@ export default class UsrBase extends Vue implements ControlInterface {
*/ */
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService(); public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
*
* @public
* @memberof List_itempanelBase
*/
public isLayoutLoadding: boolean = false;
/**
* 视图布局数据
*
* @public
* @memberof List_itempanelBase
*/
public layoutData:any = {};
/**
* 视图布局面板模型对象
*
* @public
* @memberof List_itempanelBase
*/
public layoutModelDetails:any = {};
/** /**
* 视图布局顶级成员名称 * 视图布局顶级成员名称
* *
...@@ -270,68 +246,6 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -270,68 +246,6 @@ export default class UsrBase extends Vue implements ControlInterface {
*/ */
public rootLayoutDetailNames: string[] = [ 'container1' ]; public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 初始化布局
*
* @public
* @memberof List_itempanelBase
*/
public async initLayout() {
if (this.rootLayoutDetailNames.length > 0) {
for (let i = 0; i < this.rootLayoutDetailNames.length; i++) {
const name = this.rootLayoutDetailNames[i];
const rootItem = this.layoutItems[name];
if (!rootItem) {
return;
}
await this.initLayoutItem(rootItem);
}
}
return true;
}
/**
* 初始化布局项
*
* @public
* @memberof List_itempanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
} else {
layoutModelDetail.setIndex(index);
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, `${name}_${index}`, layoutModelDetail);
this.$set(this.layoutData, `${name}_${index}`, layoutModelDetail.getData());
}
if (layoutModelDetail && layoutModelDetail.details) {
if (layoutModelDetail.dataRegionType === 'MULTIDATA') {
const multiData = layoutModelDetail.getData();
if (multiData && multiData.length > 0) {
for (let i = 0; i < multiData.length; i++) {
for (let j = 0; j < layoutModelDetail.details.length; j++) {
const key = layoutModelDetail.details[j];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key], i);
}
}
}
}
} else {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
}
}
}
}
}
/** /**
* 视图布局面板项模型对象 * 视图布局面板项模型对象
...@@ -340,7 +254,6 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -340,7 +254,6 @@ export default class UsrBase extends Vue implements ControlInterface {
* @memberof List_itempanelBase * @memberof List_itempanelBase
*/ */
public layoutItems:any = { public layoutItems:any = {
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:[] , dataRegionType: 'INHERIT' }
}; };
/** /**
...@@ -524,8 +437,6 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -524,8 +437,6 @@ export default class UsrBase extends Vue implements ControlInterface {
* @memberof UsrBase * @memberof UsrBase
*/ */
public panelLogic(name: string): void { public panelLogic(name: string): void {
} }
/** /**
...@@ -536,36 +447,6 @@ export default class UsrBase extends Vue implements ControlInterface { ...@@ -536,36 +447,6 @@ export default class UsrBase extends Vue implements ControlInterface {
*/ */
public getButtonXData(name: string): any { public getButtonXData(name: string): any {
let xData = null; let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData; return xData;
} }
......
...@@ -247,30 +247,6 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -247,30 +247,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/ */
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService(); public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
*
* @public
* @memberof ItemlayoutpanelBase
*/
public isLayoutLoadding: boolean = false;
/**
* 视图布局数据
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutData:any = {};
/**
* 视图布局面板模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutModelDetails:any = {};
/** /**
* 视图布局顶级成员名称 * 视图布局顶级成员名称
* *
...@@ -279,68 +255,6 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -279,68 +255,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/ */
public rootLayoutDetailNames: string[] = [ 'container1' ]; public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 初始化布局
*
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayout() {
if (this.rootLayoutDetailNames.length > 0) {
for (let i = 0; i < this.rootLayoutDetailNames.length; i++) {
const name = this.rootLayoutDetailNames[i];
const rootItem = this.layoutItems[name];
if (!rootItem) {
return;
}
await this.initLayoutItem(rootItem);
}
}
return true;
}
/**
* 初始化布局项
*
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
} else {
layoutModelDetail.setIndex(index);
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, `${name}_${index}`, layoutModelDetail);
this.$set(this.layoutData, `${name}_${index}`, layoutModelDetail.getData());
}
if (layoutModelDetail && layoutModelDetail.details) {
if (layoutModelDetail.dataRegionType === 'MULTIDATA') {
const multiData = layoutModelDetail.getData();
if (multiData && multiData.length > 0) {
for (let i = 0; i < multiData.length; i++) {
for (let j = 0; j < layoutModelDetail.details.length; j++) {
const key = layoutModelDetail.details[j];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key], i);
}
}
}
}
} else {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
}
}
}
}
}
/** /**
* 视图布局面板项模型对象 * 视图布局面板项模型对象
...@@ -349,10 +263,6 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -349,10 +263,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @memberof ItemlayoutpanelBase * @memberof ItemlayoutpanelBase
*/ */
public layoutItems:any = { public layoutItems:any = {
author:{ name: 'author', 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:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'author', wrapMode:'', vAlign:'', hAlign:'', },
press:{ name: 'press', 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:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'press', wrapMode:'', vAlign:'', hAlign:'', },
bookname:{ name: 'bookname', 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:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container1', panel: this , fieldState: '0', predefinedType: '', renderMode: '', dataItemName:'IBIZBOOKNAME', wrapMode:'', vAlign:'', hAlign:'', },
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['author','press','bookname'] , dataRegionType: 'INHERIT' }
}; };
/** /**
...@@ -548,11 +458,6 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -548,11 +458,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
* @memberof Usr4Base * @memberof Usr4Base
*/ */
public panelLogic(name: string): void { public panelLogic(name: string): void {
} }
/** /**
...@@ -563,36 +468,6 @@ export default class Usr4Base extends Vue implements ControlInterface { ...@@ -563,36 +468,6 @@ export default class Usr4Base extends Vue implements ControlInterface {
*/ */
public getButtonXData(name: string): any { public getButtonXData(name: string): any {
let xData = null; let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData; return xData;
} }
......
...@@ -238,30 +238,6 @@ export default class Usr5Base extends Vue implements ControlInterface { ...@@ -238,30 +238,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
*/ */
public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService(); public appUIService:IBIZBOOKUIService = new IBIZBOOKUIService();
/**
* 视图布局是否加载
*
* @public
* @memberof ItemlayoutpanelBase
*/
public isLayoutLoadding: boolean = false;
/**
* 视图布局数据
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutData:any = {};
/**
* 视图布局面板模型对象
*
* @public
* @memberof ItemlayoutpanelBase
*/
public layoutModelDetails:any = {};
/** /**
* 视图布局顶级成员名称 * 视图布局顶级成员名称
* *
...@@ -270,68 +246,6 @@ export default class Usr5Base extends Vue implements ControlInterface { ...@@ -270,68 +246,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
*/ */
public rootLayoutDetailNames: string[] = [ 'container1' ]; public rootLayoutDetailNames: string[] = [ 'container1' ];
/**
* 初始化布局
*
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayout() {
if (this.rootLayoutDetailNames.length > 0) {
for (let i = 0; i < this.rootLayoutDetailNames.length; i++) {
const name = this.rootLayoutDetailNames[i];
const rootItem = this.layoutItems[name];
if (!rootItem) {
return;
}
await this.initLayoutItem(rootItem);
}
}
return true;
}
/**
* 初始化布局项
*
* @public
* @memberof ItemlayoutpanelBase
*/
public async initLayoutItem(layoutModelItem: any, index: number = 0) {
const { name } = layoutModelItem;
const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem);
if (!index) {
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, name, layoutModelDetail);
this.$set(this.layoutData, name, layoutModelDetail.getData());
} else {
layoutModelDetail.setIndex(index);
await layoutModelDetail.load(this.context, this.viewparams);
this.$set(this.layoutModelDetails, `${name}_${index}`, layoutModelDetail);
this.$set(this.layoutData, `${name}_${index}`, layoutModelDetail.getData());
}
if (layoutModelDetail && layoutModelDetail.details) {
if (layoutModelDetail.dataRegionType === 'MULTIDATA') {
const multiData = layoutModelDetail.getData();
if (multiData && multiData.length > 0) {
for (let i = 0; i < multiData.length; i++) {
for (let j = 0; j < layoutModelDetail.details.length; j++) {
const key = layoutModelDetail.details[j];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key], i);
}
}
}
}
} else {
for (let i = 0; i < layoutModelDetail.details.length; i++) {
const key = layoutModelDetail.details[i];
if (this.layoutItems[key]) {
await this.initLayoutItem(this.layoutItems[key],index);
}
}
}
}
}
/** /**
* 视图布局面板项模型对象 * 视图布局面板项模型对象
...@@ -340,7 +254,6 @@ export default class Usr5Base extends Vue implements ControlInterface { ...@@ -340,7 +254,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @memberof ItemlayoutpanelBase * @memberof ItemlayoutpanelBase
*/ */
public layoutItems:any = { public layoutItems:any = {
container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'TABLE_24COL', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:[] , dataRegionType: 'INHERIT' }
}; };
/** /**
...@@ -524,8 +437,6 @@ export default class Usr5Base extends Vue implements ControlInterface { ...@@ -524,8 +437,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
* @memberof Usr5Base * @memberof Usr5Base
*/ */
public panelLogic(name: string): void { public panelLogic(name: string): void {
} }
/** /**
...@@ -536,36 +447,6 @@ export default class Usr5Base extends Vue implements ControlInterface { ...@@ -536,36 +447,6 @@ export default class Usr5Base extends Vue implements ControlInterface {
*/ */
public getButtonXData(name: string): any { public getButtonXData(name: string): any {
let xData = null; let xData = null;
let curLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((layoutModel: any) => {
if (layoutModel.name == name) {
curLayoutModel = layoutModel;
}
})
// 获取数据容器
if (curLayoutModel) {
const getDataArea = (cLayoutModel: any): any => {
let dataArea = null;
let parentLayoutModel = null;
Object.values(this.layoutModelDetails).forEach((pLayoutModel: any) => {
if (pLayoutModel.name == cLayoutModel.parentName) {
parentLayoutModel = pLayoutModel;
if (parentLayoutModel.dataRegionType == 'SINGLEDATA' || parentLayoutModel.dataRegionType == 'MULTIDATA') {
dataArea = parentLayoutModel;
}
}
})
if (!dataArea && parentLayoutModel) {
dataArea = getDataArea(parentLayoutModel);
}
return dataArea;
}
xData = getDataArea(curLayoutModel);
}
// 获取当前视图
if (!xData) {
xData = this;
}
return xData; return xData;
} }
......
...@@ -299,7 +299,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -299,7 +299,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [$event] 事件源 * @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件 * @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文 * @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderSF1GridViewBase * @memberof IBIZOrderPickupGridViewBase
*/ */
public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { public Edit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
if (args.length === 0) { if (args.length === 0) {
...@@ -421,20 +421,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -421,20 +421,6 @@ export default class MainBase extends Vue implements ControlInterface {
return this.selections[0]; return this.selections[0];
} }
/**
* 打开新建数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public newdata: any;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof MainBase
*/
@Prop() public opendata: any;
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
...@@ -967,7 +953,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -967,7 +953,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public load(opt: any = {}, pageReset: boolean = false): void { public load(opt: any = {}, pageReset: boolean = false): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(pageReset){ if(pageReset){
...@@ -1062,7 +1048,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1062,7 +1048,7 @@ export default class MainBase 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: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.removeAction') as string) });
return; return;
} }
let _datas:any[] = []; let _datas:any[] = [];
...@@ -1168,7 +1154,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1168,7 +1154,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public addBatch(arg: any = {}): void { public addBatch(arg: any = {}): void {
if(!this.fetchAction){ if(!this.fetchAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.fetchAction') as string) });
return; return;
} }
if(!arg){ if(!arg){
...@@ -2085,7 +2071,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2085,7 +2071,7 @@ export default class MainBase 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: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.createAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.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);
...@@ -2093,7 +2079,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2093,7 +2079,7 @@ export default class MainBase 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: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.updateAction') as string) });
}else{ }else{
Object.assign(item,{viewparams:this.viewparams}); Object.assign(item,{viewparams:this.viewparams});
if(item.ibizorder){ if(item.ibizorder){
...@@ -2160,7 +2146,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2160,7 +2146,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/ */
public newRow(args: any[], params?: any, $event?: any, xData?: any): void { public newRow(args: any[], params?: any, $event?: any, xData?: any): void {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderSF1GridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZOrderPickupGridView'+(this.$t('app.gridpage.notConfig.loaddraftAction') as string) });
return; return;
} }
let _this = this; let _this = this;
......
...@@ -104,21 +104,6 @@ export default class MainModel { ...@@ -104,21 +104,6 @@ export default class MainModel {
prop: 'n_ibizordername_like', prop: 'n_ibizordername_like',
dataType: 'QUERYPARAM' dataType: 'QUERYPARAM'
}, },
{
name: 'n_orderstate_eq',
prop: 'n_orderstate_eq',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_gt',
prop: 'n_ordertime_gt',
dataType: 'QUERYPARAM'
},
{
name: 'n_ordertime_lt',
prop: 'n_ordertime_lt',
dataType: 'QUERYPARAM'
},
{ {
name:'size', name:'size',
......
...@@ -1121,7 +1121,6 @@ ...@@ -1121,7 +1121,6 @@
}, },
"getPSPanelItems" : [ { "getPSPanelItems" : [ {
"caption" : "面板容器", "caption" : "面板容器",
"contentWidth" : 100.0,
"itemStyle" : "DEFAULT", "itemStyle" : "DEFAULT",
"itemType" : "CONTAINER", "itemType" : "CONTAINER",
"name" : "container_scroll_main1", "name" : "container_scroll_main1",
...@@ -1130,9 +1129,7 @@ ...@@ -1130,9 +1129,7 @@
}, },
"getPSLayoutPos" : { "getPSLayoutPos" : {
"layout" : "BORDER", "layout" : "BORDER",
"layoutPos" : "CENTER", "layoutPos" : "CENTER"
"width" : 100,
"widthMode" : "PX"
}, },
"getPSPanelItems" : [ { "getPSPanelItems" : [ {
"caption" : "表单", "caption" : "表单",
......
...@@ -88,10 +88,12 @@ ...@@ -88,10 +88,12 @@
"itemType" : "RAWITEM", "itemType" : "RAWITEM",
"name" : "nav_pos1", "name" : "nav_pos1",
"getPSLayoutPos" : { "getPSLayoutPos" : {
"heightMode" : "FULL",
"layout" : "BORDER", "layout" : "BORDER",
"layoutPos" : "CENTER", "layoutPos" : "CENTER",
"spacingLeft" : "INNERMEDIUM", "spacingLeft" : "INNERMEDIUM",
"spacingRight" : "INNERMEDIUM" "spacingRight" : "INNERMEDIUM",
"widthMode" : "FULL"
}, },
"getPSRawItem" : { "getPSRawItem" : {
"name" : "nav_pos1", "name" : "nav_pos1",
......
...@@ -15040,10 +15040,12 @@ ...@@ -15040,10 +15040,12 @@
"itemType" : "RAWITEM", "itemType" : "RAWITEM",
"name" : "nav_pos1", "name" : "nav_pos1",
"getPSLayoutPos" : { "getPSLayoutPos" : {
"heightMode" : "FULL",
"layout" : "BORDER", "layout" : "BORDER",
"layoutPos" : "CENTER", "layoutPos" : "CENTER",
"spacingLeft" : "INNERMEDIUM", "spacingLeft" : "INNERMEDIUM",
"spacingRight" : "INNERMEDIUM" "spacingRight" : "INNERMEDIUM",
"widthMode" : "FULL"
}, },
"getPSRawItem" : { "getPSRawItem" : {
"name" : "nav_pos1", "name" : "nav_pos1",
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 --> <!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-472-7"> <changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-477-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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册