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

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

上级 df75ca65
...@@ -67,8 +67,8 @@ function getLocaleResourceBase(){ ...@@ -67,8 +67,8 @@ function getLocaleResourceBase(){
viewlist_list: { viewlist_list: {
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
uiactions: { uiactions: {
ibizappview_opendocument: commonLogic.appcommonhandle("打开文档",null),
ibizappview_openinstance: commonLogic.appcommonhandle("打开示例",null), ibizappview_openinstance: commonLogic.appcommonhandle("打开示例",null),
ibizappview_opendocument: commonLogic.appcommonhandle("打开文档",null),
}, },
}, },
viewamount_list: { viewamount_list: {
......
...@@ -67,8 +67,8 @@ function getLocaleResourceBase(){ ...@@ -67,8 +67,8 @@ function getLocaleResourceBase(){
viewlist_list: { viewlist_list: {
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
uiactions: { uiactions: {
ibizappview_opendocument: commonLogic.appcommonhandle("打开文档",null),
ibizappview_openinstance: commonLogic.appcommonhandle("打开示例",null), ibizappview_openinstance: commonLogic.appcommonhandle("打开示例",null),
ibizappview_opendocument: commonLogic.appcommonhandle("打开文档",null),
}, },
}, },
viewamount_list: { viewamount_list: {
......
...@@ -67,8 +67,8 @@ function getLocaleResourceBase(){ ...@@ -67,8 +67,8 @@ function getLocaleResourceBase(){
viewlist_list: { viewlist_list: {
nodata:commonLogic.appcommonhandle("",null), nodata:commonLogic.appcommonhandle("",null),
uiactions: { uiactions: {
ibizappview_opendocument: commonLogic.appcommonhandle("打开文档",null),
ibizappview_openinstance: commonLogic.appcommonhandle("打开示例",null), ibizappview_openinstance: commonLogic.appcommonhandle("打开示例",null),
ibizappview_opendocument: commonLogic.appcommonhandle("打开文档",null),
}, },
}, },
viewamount_list: { viewamount_list: {
......
...@@ -506,14 +506,14 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue { ...@@ -506,14 +506,14 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
if (service[action] && service[action] instanceof Function) { if (service[action] && service[action] instanceof Function) {
service[action](tempContext, data).then((response: any) => { service[action](tempContext, data).then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
}) })
} else { } else {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} catch (error: any) { } catch (error: any) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} }
} }
...@@ -529,23 +529,23 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue { ...@@ -529,23 +529,23 @@ export default class IBIZBOOKOptionView_layoutBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public panel_Layoutpanel_button_calluilogic1_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { public panel_Layoutpanel_button_calluilogic1_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) {
if (this.viewType === 'APPLOGINVIEW') { if (actionContext.viewType === 'APPLOGINVIEW') {
const length = Object.keys(this.layoutData).length; const length = Object.keys(actionContext.layoutData).length;
for (let i = length - 1; i >= 0; i--) { for (let i = length - 1; i >= 0; i--) {
const name = Object.keys(this.layoutData)[i]; const name = Object.keys(actionContext.layoutData)[i];
if (this.layoutData.hasOwnProperty(name) && !Object.is(this.layoutModelDetails[name].itemType, 'CONTAINER')) { if (actionContext.layoutData.hasOwnProperty(name) && !Object.is(actionContext.layoutModelDetails[name].itemType, 'CONTAINER')) {
this.handleValueChange({ name, value: null }); actionContext.handleValueChange({ name, value: null });
} }
} }
this.$nextTick(() => { actionContext.$nextTick(() => {
this.$forceUpdate(); actionContext.$forceUpdate();
}) })
} else { } else {
const parentRef: any = this.$parent; const parentRef: any = actionContext.$parent;
if (parentRef.closeView && (parentRef.closeView instanceof Function)) { if (parentRef.closeView && (parentRef.closeView instanceof Function)) {
parentRef.closeView(args); parentRef.closeView(args);
} else if (this.closeView && (this.closeView instanceof Function)) { } else if (actionContext.closeView && (actionContext.closeView instanceof Function)) {
this.closeView(args); actionContext.closeView(args);
} }
} }
} }
......
...@@ -36,6 +36,9 @@ ...@@ -36,6 +36,9 @@
</template> </template>
</app-standard-container> </app-standard-container>
</template> </template>
<template #button_calluilogic3>
<app-preset-button name="button_calluilogic3" :layoutModelDetails="layoutModelDetails" @itemClick="handleButtonClick" />
</template>
</app-standard-container> </app-standard-container>
</template> </template>
<template #static_label3> <template #static_label3>
...@@ -320,7 +323,8 @@ export default class IBIZBOOKUsr2CustomViewBase extends Vue { ...@@ -320,7 +323,8 @@ export default class IBIZBOOKUsr2CustomViewBase extends Vue {
field_textbox3:{ name: 'field_textbox3', type: 'VIEWLAYOUT', caption: '文本框', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container4', panel: this , required: false, fieldState: '0', predefinedType: 'FIELD_TEXTBOX', dataItemName:'', }, field_textbox3:{ name: 'field_textbox3', type: 'VIEWLAYOUT', caption: '文本框', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container4', panel: this , required: false, fieldState: '0', predefinedType: 'FIELD_TEXTBOX', dataItemName:'', },
field_textbox4:{ name: 'field_textbox4', 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: 'container4', panel: this , required: false, fieldState: '0', predefinedType: 'FIELD_TEXTBOX', dataItemName:'', }, field_textbox4:{ name: 'field_textbox4', 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: 'container4', panel: this , required: false, fieldState: '0', predefinedType: 'FIELD_TEXTBOX', dataItemName:'', },
container4:{ name: 'container4', 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:''}, parentName: 'container_singledata1', panel: this , details:['field_textbox2','field_textbox3','field_textbox4'] , dataRegionType: 'INHERIT' }, container4:{ name: 'container4', 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:''}, parentName: 'container_singledata1', panel: this , details:['field_textbox2','field_textbox3','field_textbox4'] , dataRegionType: 'INHERIT' },
container_singledata1:{ name: 'container_singledata1', 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:'OUTERMEDIUM', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this , details:['static_label1','container1','static_label5','container4'] , dataRegionType: 'SINGLEDATA' , dataSourceType: 'DEACTION' , appDataEntityCodeName: 'ibizbook' , appDEMethodCodeName: 'GetDraft' }, button_calluilogic3:{ name: 'button_calluilogic3', type: 'VIEWLAYOUT', caption: '建立数据', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'INFO', 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: 'container_singledata1', panel: this , buttonStyle: 'INFO', borderStyle: '', iconAlign: '', uiAction: { actiontarget: '', noprivdisplaymode: 2, dataaccaction: '', visabled: true, disabled: false }, predefinedType: 'DATA_CREATEOBJECT', renderMode: '', },
container_singledata1:{ name: 'container_singledata1', 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:'OUTERMEDIUM', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this , details:['static_label1','container1','static_label5','container4','button_calluilogic3'] , dataRegionType: 'SINGLEDATA' , dataSourceType: 'DEACTION' , appDataEntityCodeName: 'ibizbook' , appDEMethodCodeName: 'GetDraft' },
static_label3:{ name: 'static_label3', 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:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this , viewType: 'DECUSTOMVIEW', predefinedType: 'STATIC_LABEL', contentType: 'RAW', contentStyle: '', rawContent: '多数据容器', htmlContent: '', renderMode: 'PARAGRAPH', wrapMode:'', vAlign:'', hAlign:'', }, static_label3:{ name: 'static_label3', 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:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'page_container', panel: this , viewType: 'DECUSTOMVIEW', predefinedType: 'STATIC_LABEL', contentType: 'RAW', contentStyle: '', rawContent: '多数据容器', htmlContent: '', renderMode: 'PARAGRAPH', wrapMode:'', vAlign:'', hAlign:'', },
static_label4:{ name: 'static_label4', 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: 'container2', panel: this , viewType: 'DECUSTOMVIEW', predefinedType: 'STATIC_LABEL', contentType: 'RAW', contentStyle: '', rawContent: '按钮权限测试:输入框值为 武侠 时禁用打开文档按钮', htmlContent: '', renderMode: 'PARAGRAPH', wrapMode:'', vAlign:'', hAlign:'', }, static_label4:{ name: 'static_label4', 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: 'container2', panel: this , viewType: 'DECUSTOMVIEW', predefinedType: 'STATIC_LABEL', contentType: 'RAW', contentStyle: '', rawContent: '按钮权限测试:输入框值为 武侠 时禁用打开文档按钮', htmlContent: '', renderMode: 'PARAGRAPH', wrapMode:'', vAlign:'', hAlign:'', },
button_calluilogic2:{ name: 'button_calluilogic2', type: 'VIEWLAYOUT', caption: '打开文档', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'INFO', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:100, widthMode:'PX', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container3', panel: this , buttonStyle: 'INFO', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'SINGLEKEY', noprivdisplaymode: 1, dataaccaction: 'OPEN_DOCUMENT', visabled: true, disabled: false }, renderMode: '', }, button_calluilogic2:{ name: 'button_calluilogic2', type: 'VIEWLAYOUT', caption: '打开文档', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'INFO', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:100, widthMode:'PX', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container3', panel: this , buttonStyle: 'INFO', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'SINGLEKEY', noprivdisplaymode: 1, dataaccaction: 'OPEN_DOCUMENT', visabled: true, disabled: false }, renderMode: '', },
...@@ -586,6 +590,9 @@ export default class IBIZBOOKUsr2CustomViewBase extends Vue { ...@@ -586,6 +590,9 @@ export default class IBIZBOOKUsr2CustomViewBase extends Vue {
} }
}) })
} }
if (Object.is(name, 'button_calluilogic3')) {
_this.panel_Usr1110541566_button_calluilogic3_click(datas, contextJO, paramJO, $event, xData, this, undefined);
}
if (Object.is(name, 'button_calluilogic2')) { if (Object.is(name, 'button_calluilogic2')) {
window.uiServiceRegister.getService('ibizbook').then((UIService: any) => { window.uiServiceRegister.getService('ibizbook').then((UIService: any) => {
if (UIService && UIService[`IBIZBOOK_openDocument`] && UIService[`IBIZBOOK_openDocument`] instanceof Function) { if (UIService && UIService[`IBIZBOOK_openDocument`] && UIService[`IBIZBOOK_openDocument`] instanceof Function) {
...@@ -595,6 +602,40 @@ export default class IBIZBOOKUsr2CustomViewBase extends Vue { ...@@ -595,6 +602,40 @@ export default class IBIZBOOKUsr2CustomViewBase extends Vue {
} }
} }
/**
* 建立数据
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
*/
public async panel_Usr1110541566_button_calluilogic3_click(args: any[], context: any = {}, params: any = {}, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string) {
// 准备上下文参数
const tempContext = {...context};
if (xData && xData.context) {
Object.assign(tempContext, xData.context);
}
const data = args[0];
const service = await window.entityServiceRegister.getService('ibizbook');
if (service) {
if (data.hasOwnProperty(service.APPDEKEY.toLowerCase())) {
delete data[service.APPDEKEY.toLowerCase()];
}
try {
service.Create(tempContext, data).then((response: any) => {
if (!response.status || response.status !== 200) {
actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行建立数据逻辑[执行行为异常]' });
}
})
} catch (error: any) {
actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行建立数据逻辑[执行行为异常]' });
}
}
}
......
...@@ -490,14 +490,14 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue { ...@@ -490,14 +490,14 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
if (service[action] && service[action] instanceof Function) { if (service[action] && service[action] instanceof Function) {
service[action](tempContext, data).then((response: any) => { service[action](tempContext, data).then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
}) })
} else { } else {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} catch (error: any) { } catch (error: any) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} }
} }
...@@ -513,23 +513,23 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue { ...@@ -513,23 +513,23 @@ export default class IBIZCustomerMPickupView_layoutBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public panel_Layoutpanel_button_calluilogic2_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { public panel_Layoutpanel_button_calluilogic2_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) {
if (this.viewType === 'APPLOGINVIEW') { if (actionContext.viewType === 'APPLOGINVIEW') {
const length = Object.keys(this.layoutData).length; const length = Object.keys(actionContext.layoutData).length;
for (let i = length - 1; i >= 0; i--) { for (let i = length - 1; i >= 0; i--) {
const name = Object.keys(this.layoutData)[i]; const name = Object.keys(actionContext.layoutData)[i];
if (this.layoutData.hasOwnProperty(name) && !Object.is(this.layoutModelDetails[name].itemType, 'CONTAINER')) { if (actionContext.layoutData.hasOwnProperty(name) && !Object.is(actionContext.layoutModelDetails[name].itemType, 'CONTAINER')) {
this.handleValueChange({ name, value: null }); actionContext.handleValueChange({ name, value: null });
} }
} }
this.$nextTick(() => { actionContext.$nextTick(() => {
this.$forceUpdate(); actionContext.$forceUpdate();
}) })
} else { } else {
const parentRef: any = this.$parent; const parentRef: any = actionContext.$parent;
if (parentRef.closeView && (parentRef.closeView instanceof Function)) { if (parentRef.closeView && (parentRef.closeView instanceof Function)) {
parentRef.closeView(args); parentRef.closeView(args);
} else if (this.closeView && (this.closeView instanceof Function)) { } else if (actionContext.closeView && (actionContext.closeView instanceof Function)) {
this.closeView(args); actionContext.closeView(args);
} }
} }
} }
......
...@@ -489,14 +489,14 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue { ...@@ -489,14 +489,14 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
if (service[action] && service[action] instanceof Function) { if (service[action] && service[action] instanceof Function) {
service[action](tempContext, data).then((response: any) => { service[action](tempContext, data).then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
}) })
} else { } else {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} catch (error: any) { } catch (error: any) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} }
} }
...@@ -512,23 +512,23 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue { ...@@ -512,23 +512,23 @@ export default class IBIZCustomerPickupView_layoutBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public panel_Layoutpanel_button_calluilogic2_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { public panel_Layoutpanel_button_calluilogic2_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) {
if (this.viewType === 'APPLOGINVIEW') { if (actionContext.viewType === 'APPLOGINVIEW') {
const length = Object.keys(this.layoutData).length; const length = Object.keys(actionContext.layoutData).length;
for (let i = length - 1; i >= 0; i--) { for (let i = length - 1; i >= 0; i--) {
const name = Object.keys(this.layoutData)[i]; const name = Object.keys(actionContext.layoutData)[i];
if (this.layoutData.hasOwnProperty(name) && !Object.is(this.layoutModelDetails[name].itemType, 'CONTAINER')) { if (actionContext.layoutData.hasOwnProperty(name) && !Object.is(actionContext.layoutModelDetails[name].itemType, 'CONTAINER')) {
this.handleValueChange({ name, value: null }); actionContext.handleValueChange({ name, value: null });
} }
} }
this.$nextTick(() => { actionContext.$nextTick(() => {
this.$forceUpdate(); actionContext.$forceUpdate();
}) })
} else { } else {
const parentRef: any = this.$parent; const parentRef: any = actionContext.$parent;
if (parentRef.closeView && (parentRef.closeView instanceof Function)) { if (parentRef.closeView && (parentRef.closeView instanceof Function)) {
parentRef.closeView(args); parentRef.closeView(args);
} else if (this.closeView && (this.closeView instanceof Function)) { } else if (actionContext.closeView && (actionContext.closeView instanceof Function)) {
this.closeView(args); actionContext.closeView(args);
} }
} }
} }
......
...@@ -490,14 +490,14 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue { ...@@ -490,14 +490,14 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
if (service[action] && service[action] instanceof Function) { if (service[action] && service[action] instanceof Function) {
service[action](tempContext, data).then((response: any) => { service[action](tempContext, data).then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
}) })
} else { } else {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} catch (error: any) { } catch (error: any) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} }
} }
...@@ -513,23 +513,23 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue { ...@@ -513,23 +513,23 @@ export default class IBIZCustomerUsr2MPickupView_layoutBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public panel_Layoutpanel_button_calluilogic2_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { public panel_Layoutpanel_button_calluilogic2_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) {
if (this.viewType === 'APPLOGINVIEW') { if (actionContext.viewType === 'APPLOGINVIEW') {
const length = Object.keys(this.layoutData).length; const length = Object.keys(actionContext.layoutData).length;
for (let i = length - 1; i >= 0; i--) { for (let i = length - 1; i >= 0; i--) {
const name = Object.keys(this.layoutData)[i]; const name = Object.keys(actionContext.layoutData)[i];
if (this.layoutData.hasOwnProperty(name) && !Object.is(this.layoutModelDetails[name].itemType, 'CONTAINER')) { if (actionContext.layoutData.hasOwnProperty(name) && !Object.is(actionContext.layoutModelDetails[name].itemType, 'CONTAINER')) {
this.handleValueChange({ name, value: null }); actionContext.handleValueChange({ name, value: null });
} }
} }
this.$nextTick(() => { actionContext.$nextTick(() => {
this.$forceUpdate(); actionContext.$forceUpdate();
}) })
} else { } else {
const parentRef: any = this.$parent; const parentRef: any = actionContext.$parent;
if (parentRef.closeView && (parentRef.closeView instanceof Function)) { if (parentRef.closeView && (parentRef.closeView instanceof Function)) {
parentRef.closeView(args); parentRef.closeView(args);
} else if (this.closeView && (this.closeView instanceof Function)) { } else if (actionContext.closeView && (actionContext.closeView instanceof Function)) {
this.closeView(args); actionContext.closeView(args);
} }
} }
} }
......
...@@ -489,14 +489,14 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue { ...@@ -489,14 +489,14 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
if (service[action] && service[action] instanceof Function) { if (service[action] && service[action] instanceof Function) {
service[action](tempContext, data).then((response: any) => { service[action](tempContext, data).then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
}) })
} else { } else {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} catch (error: any) { } catch (error: any) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} }
} }
...@@ -512,23 +512,23 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue { ...@@ -512,23 +512,23 @@ export default class IBIZCustomerUsr2PickupView_layoutBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public panel_Layoutpanel_button_calluilogic2_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { public panel_Layoutpanel_button_calluilogic2_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) {
if (this.viewType === 'APPLOGINVIEW') { if (actionContext.viewType === 'APPLOGINVIEW') {
const length = Object.keys(this.layoutData).length; const length = Object.keys(actionContext.layoutData).length;
for (let i = length - 1; i >= 0; i--) { for (let i = length - 1; i >= 0; i--) {
const name = Object.keys(this.layoutData)[i]; const name = Object.keys(actionContext.layoutData)[i];
if (this.layoutData.hasOwnProperty(name) && !Object.is(this.layoutModelDetails[name].itemType, 'CONTAINER')) { if (actionContext.layoutData.hasOwnProperty(name) && !Object.is(actionContext.layoutModelDetails[name].itemType, 'CONTAINER')) {
this.handleValueChange({ name, value: null }); actionContext.handleValueChange({ name, value: null });
} }
} }
this.$nextTick(() => { actionContext.$nextTick(() => {
this.$forceUpdate(); actionContext.$forceUpdate();
}) })
} else { } else {
const parentRef: any = this.$parent; const parentRef: any = actionContext.$parent;
if (parentRef.closeView && (parentRef.closeView instanceof Function)) { if (parentRef.closeView && (parentRef.closeView instanceof Function)) {
parentRef.closeView(args); parentRef.closeView(args);
} else if (this.closeView && (this.closeView instanceof Function)) { } else if (actionContext.closeView && (actionContext.closeView instanceof Function)) {
this.closeView(args); actionContext.closeView(args);
} }
} }
} }
......
...@@ -785,14 +785,14 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -785,14 +785,14 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
if (service[action] && service[action] instanceof Function) { if (service[action] && service[action] instanceof Function) {
service[action](tempContext, data).then((response: any) => { service[action](tempContext, data).then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
}) })
} else { } else {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} catch (error: any) { } catch (error: any) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' });
} }
} }
} }
...@@ -808,17 +808,17 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -808,17 +808,17 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public panel_Layoutpanel_button_calluilogic27_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { public panel_Layoutpanel_button_calluilogic27_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) {
if (this.viewType === 'APPLOGINVIEW') { if (actionContext.viewType === 'APPLOGINVIEW') {
const layoutData = args.length > 0 ? args[0] : {}; const layoutData = args.length > 0 ? args[0] : {};
const layoutModelDetails: any = this.layoutModelDetails || {}; const layoutModelDetails: any = actionContext.layoutModelDetails || {};
let userNameKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_USERID')) || ''; let userNameKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_USERID')) || '';
let passwordKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_PASSWORD')) || ''; let passwordKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_PASSWORD')) || '';
let messageKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_LOGINMSG')) || ''; let messageKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_LOGINMSG')) || '';
if (!userNameKey || !passwordKey) { if (!userNameKey || !passwordKey) {
if (messageKey) { if (messageKey) {
this.handleValueChange({ name: messageKey, value: '用户名或密码未配置!' }); actionContext.handleValueChange({ name: messageKey, value: '用户名或密码未配置!' });
} else { } else {
this.$message({ message: '用户名或密码未配置!',type: 'warning'}); actionContext.$message({ message: '用户名或密码未配置!',type: 'warning'});
} }
return; return;
} }
...@@ -826,9 +826,9 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -826,9 +826,9 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
const password: any = layoutData[passwordKey]; const password: any = layoutData[passwordKey];
if (!loginname || !password) { if (!loginname || !password) {
if (messageKey) { if (messageKey) {
this.handleValueChange({ name: messageKey, value: '请输入用户名与密码' }); actionContext.handleValueChange({ name: messageKey, value: '请输入用户名与密码' });
} else { } else {
this.$message({ message: '请输入用户名与密码',type: 'warning'}); actionContext.$message({ message: '请输入用户名与密码',type: 'warning'});
} }
return; return;
} }
...@@ -837,7 +837,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -837,7 +837,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
leftTime.setTime(leftTime.getSeconds() - 1000); leftTime.setTime(leftTime.getSeconds() - 1000);
document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString(); document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString();
const data = { loginname, password }; const data = { loginname, password };
const post: Promise<any> = this.$http.post('/v7/login', data, true); const post: Promise<any> = actionContext.$http.post('/v7/login', data, true);
post.then((response: any) => { post.then((response: any) => {
if (response && response.status === 200) { if (response && response.status === 200) {
const data = response.data; const data = response.data;
...@@ -851,20 +851,20 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -851,20 +851,20 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
// 设置cookie,保存账号密码7天 // 设置cookie,保存账号密码7天
Util.setCookie("loginname",loginname, 7); Util.setCookie("loginname",loginname, 7);
// 跳转首页 // 跳转首页
const url: any = this.$route.query.redirect ? this.$route.query.redirect : '*'; const url: any = actionContext.$route.query.redirect ? actionContext.$route.query.redirect : '*';
this.$router.push({path: url}); actionContext.$router.push({path: url});
} }
}).catch((error: any) => { }).catch((error: any) => {
// 登录提示 // 登录提示
const data = error.data; const data = error.data;
if (data) { if (data) {
if (messageKey) { if (messageKey) {
this.handleValueChange({ name: messageKey, value: data.message || this.$t('components.login.loginfailed') }); actionContext.handleValueChange({ name: messageKey, value: data.message || this.$t('components.login.loginfailed') });
} }
} }
}); });
} else { } else {
this.$router.push({ path: "/login", query: { redirect: window.location.hash.replace("#", '') } }); actionContext.$router.push({ path: "/login", query: { redirect: window.location.hash.replace("#", '') } });
} }
} }
/** /**
...@@ -879,23 +879,23 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -879,23 +879,23 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public panel_Layoutpanel_button_calluilogic24_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { public panel_Layoutpanel_button_calluilogic24_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) {
if (this.viewType === 'APPLOGINVIEW') { if (actionContext.viewType === 'APPLOGINVIEW') {
const length = Object.keys(this.layoutData).length; const length = Object.keys(actionContext.layoutData).length;
for (let i = length - 1; i >= 0; i--) { for (let i = length - 1; i >= 0; i--) {
const name = Object.keys(this.layoutData)[i]; const name = Object.keys(actionContext.layoutData)[i];
if (this.layoutData.hasOwnProperty(name) && !Object.is(this.layoutModelDetails[name].itemType, 'CONTAINER')) { if (actionContext.layoutData.hasOwnProperty(name) && !Object.is(actionContext.layoutModelDetails[name].itemType, 'CONTAINER')) {
this.handleValueChange({ name, value: null }); actionContext.handleValueChange({ name, value: null });
} }
} }
this.$nextTick(() => { actionContext.$nextTick(() => {
this.$forceUpdate(); actionContext.$forceUpdate();
}) })
} else { } else {
const parentRef: any = this.$parent; const parentRef: any = actionContext.$parent;
if (parentRef.closeView && (parentRef.closeView instanceof Function)) { if (parentRef.closeView && (parentRef.closeView instanceof Function)) {
parentRef.closeView(args); parentRef.closeView(args);
} else if (this.closeView && (this.closeView instanceof Function)) { } else if (actionContext.closeView && (actionContext.closeView instanceof Function)) {
this.closeView(args); actionContext.closeView(args);
} }
} }
} }
...@@ -911,13 +911,13 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -911,13 +911,13 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public panel_Layoutpanel_button_calluilogic28_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { public panel_Layoutpanel_button_calluilogic28_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) {
this.$Modal.confirm({ actionContext.$Modal.confirm({
title: '提示', title: '提示',
content: '确认要退出登录?', content: '确认要退出登录?',
okText: '确认', okText: '确认',
cancelText: '取消', cancelText: '取消',
onOk: () => { onOk: () => {
this.$http actionContext.$http
.get("/v7/logout") .get("/v7/logout")
.then((response: any) => { .then((response: any) => {
if (response && response.status === 200) { if (response && response.status === 200) {
...@@ -926,7 +926,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -926,7 +926,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
let leftTime = new Date(); let leftTime = new Date();
leftTime.setTime(leftTime.getSeconds() - 1); leftTime.setTime(leftTime.getSeconds() - 1);
document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString(); document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString();
this.$router.push({ path: "/login", query: { redirect: window.location.hash.replace("#", '') } }); actionContext.$router.push({ path: "/login", query: { redirect: window.location.hash.replace("#", '') } });
} }
}) })
.catch((error: any) => { .catch((error: any) => {
...@@ -980,11 +980,17 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -980,11 +980,17 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
try { try {
service.Remove(tempContext, data).then((response: any) => { service.Remove(tempContext, data).then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行删除数据逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行删除数据逻辑[执行行为异常]' });
}
const parentRef: any = actionContext.$parent;
if (parentRef.closeView && (parentRef.closeView instanceof Function)) {
parentRef.closeView(args);
} else if (actionContext.closeView && (actionContext.closeView instanceof Function)) {
actionContext.closeView(args);
} }
}) })
} catch (error: any) { } catch (error: any) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行删除数据逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行删除数据逻辑[执行行为异常]' });
} }
} }
} }
...@@ -1014,11 +1020,11 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -1014,11 +1020,11 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
try { try {
service.Create(tempContext, data).then((response: any) => { service.Create(tempContext, data).then((response: any) => {
if (!response.status || response.status !== 200) { if (!response.status || response.status !== 200) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行建立数据逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行建立数据逻辑[执行行为异常]' });
} }
}) })
} catch (error: any) { } catch (error: any) {
this.$Notice.error({ title: '错误', desc: '当前环境无法执行建立数据逻辑[执行行为异常]' }); actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行建立数据逻辑[执行行为异常]' });
} }
} }
} }
...@@ -1040,7 +1046,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue { ...@@ -1040,7 +1046,7 @@ export default class IBIZCustomerUsr3EditViewBase extends Vue {
} else if (xData.refreshDataArea && (xData.refreshDataArea instanceof Function)) { } else if (xData.refreshDataArea && (xData.refreshDataArea instanceof Function)) {
xData.refreshDataArea(); xData.refreshDataArea();
} else { } else {
this.$Notice.error({ title: '错误', desc: '同步数据行为未实现' }); actionContext.$Notice.error({ title: '错误', desc: '同步数据行为未实现' });
} }
} }
} }
......
...@@ -695,7 +695,7 @@ export default class AppIndexViewBase extends Vue { ...@@ -695,7 +695,7 @@ export default class AppIndexViewBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public async panel_Usr1102678360_button_calluilogic5_click(args: any[], context: any = {}, params: any = {}, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string) { public async panel_Usr1102678360_button_calluilogic5_click(args: any[], context: any = {}, params: any = {}, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string) {
this.$Notice.error({ title: '错误', desc: '建立数据行未配置实体' }); actionContext.$Notice.error({ title: '错误', desc: '建立数据行未配置实体' });
} }
/** /**
* 保存变更按钮 * 保存变更按钮
...@@ -709,7 +709,7 @@ export default class AppIndexViewBase extends Vue { ...@@ -709,7 +709,7 @@ export default class AppIndexViewBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public async panel_Usr1102678360_button_calluilogic6_click(args: any[], context: any = {}, params: any = {}, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string) { public async panel_Usr1102678360_button_calluilogic6_click(args: any[], context: any = {}, params: any = {}, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string) {
this.$Notice.error({ title: '错误', desc: '保存变更行为未配置实体' }); actionContext.$Notice.error({ title: '错误', desc: '保存变更行为未配置实体' });
} }
/** /**
* 删除数据按钮 * 删除数据按钮
...@@ -723,7 +723,7 @@ export default class AppIndexViewBase extends Vue { ...@@ -723,7 +723,7 @@ export default class AppIndexViewBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public async panel_Usr1102678360_button_calluilogic8_click(args: any[], context: any = {}, params: any = {}, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string) { public async panel_Usr1102678360_button_calluilogic8_click(args: any[], context: any = {}, params: any = {}, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string) {
this.$Notice.error({ title: '错误', desc: '删除数据行未配置实体' }); actionContext.$Notice.error({ title: '错误', desc: '删除数据行未配置实体' });
} }
/** /**
* 同步数据按钮 * 同步数据按钮
...@@ -743,7 +743,7 @@ export default class AppIndexViewBase extends Vue { ...@@ -743,7 +743,7 @@ export default class AppIndexViewBase extends Vue {
} else if (xData.refreshDataArea && (xData.refreshDataArea instanceof Function)) { } else if (xData.refreshDataArea && (xData.refreshDataArea instanceof Function)) {
xData.refreshDataArea(); xData.refreshDataArea();
} else { } else {
this.$Notice.error({ title: '错误', desc: '同步数据行为未实现' }); actionContext.$Notice.error({ title: '错误', desc: '同步数据行为未实现' });
} }
} }
} }
......
...@@ -447,17 +447,17 @@ export default class AppLoginViewBase extends Vue { ...@@ -447,17 +447,17 @@ export default class AppLoginViewBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public panel_Usr1102196415_auth_loginbutton1_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { public panel_Usr1102196415_auth_loginbutton1_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) {
if (this.viewType === 'APPLOGINVIEW') { if (actionContext.viewType === 'APPLOGINVIEW') {
const layoutData = args.length > 0 ? args[0] : {}; const layoutData = args.length > 0 ? args[0] : {};
const layoutModelDetails: any = this.layoutModelDetails || {}; const layoutModelDetails: any = actionContext.layoutModelDetails || {};
let userNameKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_USERID')) || ''; let userNameKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_USERID')) || '';
let passwordKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_PASSWORD')) || ''; let passwordKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_PASSWORD')) || '';
let messageKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_LOGINMSG')) || ''; let messageKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_LOGINMSG')) || '';
if (!userNameKey || !passwordKey) { if (!userNameKey || !passwordKey) {
if (messageKey) { if (messageKey) {
this.handleValueChange({ name: messageKey, value: '用户名或密码未配置!' }); actionContext.handleValueChange({ name: messageKey, value: '用户名或密码未配置!' });
} else { } else {
this.$message({ message: '用户名或密码未配置!',type: 'warning'}); actionContext.$message({ message: '用户名或密码未配置!',type: 'warning'});
} }
return; return;
} }
...@@ -465,9 +465,9 @@ export default class AppLoginViewBase extends Vue { ...@@ -465,9 +465,9 @@ export default class AppLoginViewBase extends Vue {
const password: any = layoutData[passwordKey]; const password: any = layoutData[passwordKey];
if (!loginname || !password) { if (!loginname || !password) {
if (messageKey) { if (messageKey) {
this.handleValueChange({ name: messageKey, value: '请输入用户名与密码' }); actionContext.handleValueChange({ name: messageKey, value: '请输入用户名与密码' });
} else { } else {
this.$message({ message: '请输入用户名与密码',type: 'warning'}); actionContext.$message({ message: '请输入用户名与密码',type: 'warning'});
} }
return; return;
} }
...@@ -476,7 +476,7 @@ export default class AppLoginViewBase extends Vue { ...@@ -476,7 +476,7 @@ export default class AppLoginViewBase extends Vue {
leftTime.setTime(leftTime.getSeconds() - 1000); leftTime.setTime(leftTime.getSeconds() - 1000);
document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString(); document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString();
const data = { loginname, password }; const data = { loginname, password };
const post: Promise<any> = this.$http.post('/v7/login', data, true); const post: Promise<any> = actionContext.$http.post('/v7/login', data, true);
post.then((response: any) => { post.then((response: any) => {
if (response && response.status === 200) { if (response && response.status === 200) {
const data = response.data; const data = response.data;
...@@ -490,20 +490,20 @@ export default class AppLoginViewBase extends Vue { ...@@ -490,20 +490,20 @@ export default class AppLoginViewBase extends Vue {
// 设置cookie,保存账号密码7天 // 设置cookie,保存账号密码7天
Util.setCookie("loginname",loginname, 7); Util.setCookie("loginname",loginname, 7);
// 跳转首页 // 跳转首页
const url: any = this.$route.query.redirect ? this.$route.query.redirect : '*'; const url: any = actionContext.$route.query.redirect ? actionContext.$route.query.redirect : '*';
this.$router.push({path: url}); actionContext.$router.push({path: url});
} }
}).catch((error: any) => { }).catch((error: any) => {
// 登录提示 // 登录提示
const data = error.data; const data = error.data;
if (data) { if (data) {
if (messageKey) { if (messageKey) {
this.handleValueChange({ name: messageKey, value: data.message || this.$t('components.login.loginfailed') }); actionContext.handleValueChange({ name: messageKey, value: data.message || this.$t('components.login.loginfailed') });
} }
} }
}); });
} else { } else {
this.$router.push({ path: "/login", query: { redirect: window.location.hash.replace("#", '') } }); actionContext.$router.push({ path: "/login", query: { redirect: window.location.hash.replace("#", '') } });
} }
} }
/** /**
...@@ -518,23 +518,23 @@ export default class AppLoginViewBase extends Vue { ...@@ -518,23 +518,23 @@ export default class AppLoginViewBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public panel_Usr1102196415_auth_resetinput1_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { public panel_Usr1102196415_auth_resetinput1_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) {
if (this.viewType === 'APPLOGINVIEW') { if (actionContext.viewType === 'APPLOGINVIEW') {
const length = Object.keys(this.layoutData).length; const length = Object.keys(actionContext.layoutData).length;
for (let i = length - 1; i >= 0; i--) { for (let i = length - 1; i >= 0; i--) {
const name = Object.keys(this.layoutData)[i]; const name = Object.keys(actionContext.layoutData)[i];
if (this.layoutData.hasOwnProperty(name) && !Object.is(this.layoutModelDetails[name].itemType, 'CONTAINER')) { if (actionContext.layoutData.hasOwnProperty(name) && !Object.is(actionContext.layoutModelDetails[name].itemType, 'CONTAINER')) {
this.handleValueChange({ name, value: null }); actionContext.handleValueChange({ name, value: null });
} }
} }
this.$nextTick(() => { actionContext.$nextTick(() => {
this.$forceUpdate(); actionContext.$forceUpdate();
}) })
} else { } else {
const parentRef: any = this.$parent; const parentRef: any = actionContext.$parent;
if (parentRef.closeView && (parentRef.closeView instanceof Function)) { if (parentRef.closeView && (parentRef.closeView instanceof Function)) {
parentRef.closeView(args); parentRef.closeView(args);
} else if (this.closeView && (this.closeView instanceof Function)) { } else if (actionContext.closeView && (actionContext.closeView instanceof Function)) {
this.closeView(args); actionContext.closeView(args);
} }
} }
} }
...@@ -550,13 +550,13 @@ export default class AppLoginViewBase extends Vue { ...@@ -550,13 +550,13 @@ export default class AppLoginViewBase extends Vue {
* @param {*} [srfParentDeName] 父实体名称 * @param {*} [srfParentDeName] 父实体名称
*/ */
public panel_Usr1102196415_auth_logout1_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { public panel_Usr1102196415_auth_logout1_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) {
this.$Modal.confirm({ actionContext.$Modal.confirm({
title: '提示', title: '提示',
content: '确认要退出登录?', content: '确认要退出登录?',
okText: '确认', okText: '确认',
cancelText: '取消', cancelText: '取消',
onOk: () => { onOk: () => {
this.$http actionContext.$http
.get("/v7/logout") .get("/v7/logout")
.then((response: any) => { .then((response: any) => {
if (response && response.status === 200) { if (response && response.status === 200) {
...@@ -565,7 +565,7 @@ export default class AppLoginViewBase extends Vue { ...@@ -565,7 +565,7 @@ export default class AppLoginViewBase extends Vue {
let leftTime = new Date(); let leftTime = new Date();
leftTime.setTime(leftTime.getSeconds() - 1); leftTime.setTime(leftTime.getSeconds() - 1);
document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString(); document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString();
this.$router.push({ path: "/login", query: { redirect: window.location.hash.replace("#", '') } }); actionContext.$router.push({ path: "/login", query: { redirect: window.location.hash.replace("#", '') } });
} }
}) })
.catch((error: any) => { .catch((error: any) => {
......
...@@ -638,7 +638,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -638,7 +638,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: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loadAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loadAction') as string) });
return; return;
} }
const arg: any = { ...opt }; const arg: any = { ...opt };
...@@ -674,7 +674,7 @@ export default class DefaultBase extends Vue implements ControlInterface { ...@@ -674,7 +674,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/ */
public async loadDraft(opt: any = {},mode?:string): Promise<any> { public async loadDraft(opt: any = {},mode?:string): Promise<any> {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORListView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) }); this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: 'IBIZAPPEDITORGridView' + (this.$t('app.searchForm.notConfig.loaddraftAction') as string) });
return; return;
} }
const arg: any = { ...opt } ; const arg: any = { ...opt } ;
......
...@@ -180,7 +180,7 @@ export default class ViewListBase extends Vue implements ControlInterface { ...@@ -180,7 +180,7 @@ export default class ViewListBase extends Vue implements ControlInterface {
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public list_operation_u37c350c_click(params: any = {}, tag?: any, $event?: any) { public list_operation_u9aef9b0_click(params: any = {}, tag?: any, $event?: any) {
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
let xData: any = null; let xData: any = null;
...@@ -197,7 +197,7 @@ export default class ViewListBase extends Vue implements ControlInterface { ...@@ -197,7 +197,7 @@ export default class ViewListBase extends Vue implements ControlInterface {
} }
// 界面行为 // 界面行为
const curUIService:IBIZAPPVIEWUIService = new IBIZAPPVIEWUIService(); const curUIService:IBIZAPPVIEWUIService = new IBIZAPPVIEWUIService();
curUIService.IBIZAPPVIEW_openDocument(datas,contextJO, paramJO, $event, xData,this,"IBIZAPPVIEW"); curUIService.IBIZAPPVIEW_openInstance(datas,contextJO, paramJO, $event, xData,this,"IBIZAPPVIEW");
} }
/** /**
...@@ -208,7 +208,7 @@ export default class ViewListBase extends Vue implements ControlInterface { ...@@ -208,7 +208,7 @@ export default class ViewListBase extends Vue implements ControlInterface {
* @param {*} [$event] * @param {*} [$event]
* @memberof * @memberof
*/ */
public list_operation_u9aef9b0_click(params: any = {}, tag?: any, $event?: any) { public list_operation_u37c350c_click(params: any = {}, tag?: any, $event?: any) {
// 取数 // 取数
let datas: any[] = []; let datas: any[] = [];
let xData: any = null; let xData: any = null;
...@@ -225,7 +225,7 @@ export default class ViewListBase extends Vue implements ControlInterface { ...@@ -225,7 +225,7 @@ export default class ViewListBase extends Vue implements ControlInterface {
} }
// 界面行为 // 界面行为
const curUIService:IBIZAPPVIEWUIService = new IBIZAPPVIEWUIService(); const curUIService:IBIZAPPVIEWUIService = new IBIZAPPVIEWUIService();
curUIService.IBIZAPPVIEW_openInstance(datas,contextJO, paramJO, $event, xData,this,"IBIZAPPVIEW"); curUIService.IBIZAPPVIEW_openDocument(datas,contextJO, paramJO, $event, xData,this,"IBIZAPPVIEW");
} }
...@@ -981,8 +981,8 @@ export default class ViewListBase extends Vue implements ControlInterface { ...@@ -981,8 +981,8 @@ export default class ViewListBase extends Vue implements ControlInterface {
* @memberof ViewListBase * @memberof ViewListBase
*/ */
public actionModel:any ={ public actionModel:any ={
"openDocument":{name:"openDocument",icon:"",caption:"打开文档",disabled: false, visabled: true,noprivdisplaymode:2,dataaccaction: "", actiontarget: "SINGLEKEY"},
"openInstance":{name:"openInstance",icon:"",caption:"打开示例",disabled: false, visabled: true,noprivdisplaymode:2,dataaccaction: "", actiontarget: "SINGLEKEY"}, "openInstance":{name:"openInstance",icon:"",caption:"打开示例",disabled: false, visabled: true,noprivdisplaymode:2,dataaccaction: "", actiontarget: "SINGLEKEY"},
"openDocument":{name:"openDocument",icon:"",caption:"打开文档",disabled: false, visabled: true,noprivdisplaymode:2,dataaccaction: "", actiontarget: "SINGLEKEY"},
}; };
/** /**
...@@ -995,12 +995,12 @@ export default class ViewListBase extends Vue implements ControlInterface { ...@@ -995,12 +995,12 @@ export default class ViewListBase extends Vue implements ControlInterface {
*/ */
public uiAction(data: any, tag: any, $event: any) { public uiAction(data: any, tag: any, $event: any) {
$event.stopPropagation(); $event.stopPropagation();
if(Object.is('openDocument', tag)) {
this.list_operation_u37c350c_click(data, tag, $event);
}
if(Object.is('openInstance', tag)) { if(Object.is('openInstance', tag)) {
this.list_operation_u9aef9b0_click(data, tag, $event); this.list_operation_u9aef9b0_click(data, tag, $event);
} }
if(Object.is('openDocument', tag)) {
this.list_operation_u37c350c_click(data, tag, $event);
}
} }
/** /**
......
...@@ -318,7 +318,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -318,7 +318,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) {
...@@ -461,20 +461,6 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -461,20 +461,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;
/** /**
* 是否嵌入关系界面 * 是否嵌入关系界面
...@@ -1009,7 +995,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1009,7 +995,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.fetchAction) { if (!this.fetchAction) {
this.$Notice.error({ this.$Notice.error({
title: this.$t("app.commonWords.wrong") as string, title: this.$t("app.commonWords.wrong") as string,
desc: "IBIZOrderSF1GridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string), desc: "IBIZOrderPickupGridView" + (this.$t("app.gridpage.notConfig.fetchAction") as string),
}); });
return; return;
} }
...@@ -1138,7 +1124,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1138,7 +1124,7 @@ export default class MainBase extends Vue implements ControlInterface {
if (!this.removeAction) { if (!this.removeAction) {
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string), title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderSF1GridView' + (this.$t('app.gridpage.notConfig.removeAction') as string) desc: 'IBIZOrderPickupGridView' + (this.$t('app.gridpage.notConfig.removeAction') as string)
}); });
return; return;
} }
...@@ -1252,7 +1238,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -1252,7 +1238,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){
...@@ -2183,7 +2169,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2183,7 +2169,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 });
const tempContext = Util.deepCopy(this.context); const tempContext = Util.deepCopy(this.context);
...@@ -2192,7 +2178,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2192,7 +2178,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 });
const tempContext = Util.deepCopy(this.context); const tempContext = Util.deepCopy(this.context);
...@@ -2268,7 +2254,7 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -2268,7 +2254,7 @@ export default class MainBase extends Vue implements ControlInterface {
if(!this.loaddraftAction){ if(!this.loaddraftAction){
this.$Notice.error({ this.$Notice.error({
title: (this.$t('app.commonWords.wrong') as string), title: (this.$t('app.commonWords.wrong') as string),
desc: 'IBIZOrderSF1GridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string) desc: 'IBIZOrderPickupGridView' + (this.$t('app.gridpage.notConfig.loaddraftAction') as string)
}); });
return; return;
} }
......
...@@ -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',
......
...@@ -2073,6 +2073,20 @@ ...@@ -2073,6 +2073,20 @@
"uILogicAttachMode" : "REPLACE", "uILogicAttachMode" : "REPLACE",
"uILogicType" : "DELOGIC", "uILogicType" : "DELOGIC",
"id" : "panel_Usr1109586119_button_calluilogic2_click@IBIZBOOK" "id" : "panel_Usr1109586119_button_calluilogic2_click@IBIZBOOK"
}, {
"caption" : "建立数据",
"codeName" : "panel_Usr1110541566_button_calluilogic3_click",
"fullCodeName" : "panel_Usr1110541566_button_calluilogic3_click",
"name" : "建立数据",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"predefinedType" : "DATA_CREATEOBJECT",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "panel_Usr1110541566_button_calluilogic3_click",
"uIActionType" : "DEUIACTION"
}, { }, {
"actionTarget" : "SINGLEDATA", "actionTarget" : "SINGLEDATA",
"caption" : "加载", "caption" : "加载",
......
...@@ -11,51 +11,51 @@ ...@@ -11,51 +11,51 @@
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json" "path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}, },
"getPSDETreeColumns" : [ { "getPSDETreeColumns" : [ {
"caption" : "归还日期", "caption" : "作者",
"codeName" : "returntime", "codeName" : "author",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "returntime", "dataItemName" : "author",
"name" : "returntime", "name" : "author",
"width" : 200, "width" : 200,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
"enableSort" : false "enableSort" : false
}, { }, {
"caption" : "出版社", "caption" : "图书名称",
"codeName" : "press", "codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "press", "dataItemName" : "ibizbookname",
"name" : "press", "name" : "ibizbookname",
"width" : 200, "width" : 200,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
"enableSort" : false "enableSort" : false
}, { }, {
"caption" : "借出日期", "caption" : "归还日期",
"codeName" : "lendouttime", "codeName" : "returntime",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "lendouttime", "dataItemName" : "returntime",
"name" : "lendouttime", "name" : "returntime",
"width" : 200, "width" : 200,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
"enableSort" : false "enableSort" : false
}, { }, {
"caption" : "作者", "caption" : "出版社",
"codeName" : "author", "codeName" : "press",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author", "dataItemName" : "press",
"name" : "author", "name" : "press",
"width" : 200, "width" : 200,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
"enableSort" : false "enableSort" : false
}, { }, {
"caption" : "图书名称", "caption" : "借出日期",
"codeName" : "ibizbookname", "codeName" : "lendouttime",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "ibizbookname", "dataItemName" : "lendouttime",
"name" : "ibizbookname", "name" : "lendouttime",
"width" : 200, "width" : 200,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
......
...@@ -19,21 +19,21 @@ ...@@ -19,21 +19,21 @@
} }
} ], } ],
"getPSDETreeColumns" : [ { "getPSDETreeColumns" : [ {
"caption" : "图书名称", "caption" : "作者",
"codeName" : "ibizbookname", "codeName" : "author",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "ibizbookname", "dataItemName" : "author",
"name" : "ibizbookname", "name" : "author",
"width" : 50, "width" : 50,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
"enableSort" : false "enableSort" : false
}, { }, {
"caption" : "作者", "caption" : "图书名称",
"codeName" : "author", "codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author", "dataItemName" : "ibizbookname",
"name" : "author", "name" : "ibizbookname",
"width" : 50, "width" : 50,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
......
...@@ -34,51 +34,51 @@ ...@@ -34,51 +34,51 @@
"id" : "GANTT" "id" : "GANTT"
}, },
"getPSDETreeColumns" : [ { "getPSDETreeColumns" : [ {
"caption" : "归还日期", "caption" : "作者",
"codeName" : "returntime", "codeName" : "author",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "returntime", "dataItemName" : "author",
"name" : "returntime", "name" : "author",
"width" : 200, "width" : 200,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
"enableSort" : false "enableSort" : false
}, { }, {
"caption" : "出版社", "caption" : "图书名称",
"codeName" : "press", "codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "press", "dataItemName" : "ibizbookname",
"name" : "press", "name" : "ibizbookname",
"width" : 200, "width" : 200,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
"enableSort" : false "enableSort" : false
}, { }, {
"caption" : "借出日期", "caption" : "归还日期",
"codeName" : "lendouttime", "codeName" : "returntime",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "lendouttime", "dataItemName" : "returntime",
"name" : "lendouttime", "name" : "returntime",
"width" : 200, "width" : 200,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
"enableSort" : false "enableSort" : false
}, { }, {
"caption" : "作者", "caption" : "出版社",
"codeName" : "author", "codeName" : "press",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author", "dataItemName" : "press",
"name" : "author", "name" : "press",
"width" : 200, "width" : 200,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
"enableSort" : false "enableSort" : false
}, { }, {
"caption" : "图书名称", "caption" : "借出日期",
"codeName" : "ibizbookname", "codeName" : "lendouttime",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "ibizbookname", "dataItemName" : "lendouttime",
"name" : "ibizbookname", "name" : "lendouttime",
"width" : 200, "width" : 200,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
......
...@@ -75,21 +75,21 @@ ...@@ -75,21 +75,21 @@
"id" : "TREEGRIDEX" "id" : "TREEGRIDEX"
}, },
"getPSDETreeColumns" : [ { "getPSDETreeColumns" : [ {
"caption" : "图书名称", "caption" : "作者",
"codeName" : "ibizbookname", "codeName" : "author",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "ibizbookname", "dataItemName" : "author",
"name" : "ibizbookname", "name" : "author",
"width" : 50, "width" : 50,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
"enableSort" : false "enableSort" : false
}, { }, {
"caption" : "作者", "caption" : "图书名称",
"codeName" : "author", "codeName" : "ibizbookname",
"columnType" : "DEFGRIDCOLUMN", "columnType" : "DEFGRIDCOLUMN",
"dataItemName" : "author", "dataItemName" : "ibizbookname",
"name" : "author", "name" : "ibizbookname",
"width" : 50, "width" : 50,
"widthUnit" : "px", "widthUnit" : "px",
"enableExpand" : false, "enableExpand" : false,
......
...@@ -50,6 +50,14 @@ ...@@ -50,6 +50,14 @@
"modelref" : true, "modelref" : true,
"id" : "layoutpanel_button_calluilogic1" "id" : "layoutpanel_button_calluilogic1"
} }
}, {
"logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION",
"name" : "layoutpanel_button_calluilogic3_click",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "layoutpanel_button_calluilogic3"
}
}, { }, {
"logicTrigger" : "CUSTOM", "logicTrigger" : "CUSTOM",
"logicType" : "APPVIEWUIACTION", "logicType" : "APPVIEWUIACTION",
...@@ -71,6 +79,17 @@ ...@@ -71,6 +79,17 @@
}, },
"uIActionTarget" : "SINGLEKEY", "uIActionTarget" : "SINGLEKEY",
"xDataControlName" : "layoutpanel" "xDataControlName" : "layoutpanel"
}, {
"name" : "layoutpanel_button_calluilogic3",
"getPSUIAction" : {
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"modelref" : true,
"id" : "panel_Usr1110541566_button_calluilogic3_click"
},
"xDataControlName" : "layoutpanel"
}, { }, {
"name" : "layoutpanel_button_calluilogic2", "name" : "layoutpanel_button_calluilogic2",
"getPSUIAction" : { "getPSUIAction" : {
...@@ -363,6 +382,38 @@ ...@@ -363,6 +382,38 @@
"hidden" : false, "hidden" : false,
"showCaption" : false "showCaption" : false
} ] } ]
}, {
"actionType" : "UIACTION",
"buttonStyle" : "INFO",
"caption" : "建立数据",
"itemStyle" : "INFO",
"itemType" : "BUTTON",
"name" : "button_calluilogic3",
"getPSAppViewUIAction" : {
"modelref" : true,
"id" : "layoutpanel_button_calluilogic3"
},
"getPSLayoutPos" : {
"colMD" : 24,
"layout" : "TABLE_24COL"
},
"getPSUIAction" : {
"caption" : "建立数据",
"codeName" : "panel_Usr1110541566_button_calluilogic3_click",
"fullCodeName" : "panel_Usr1110541566_button_calluilogic3_click",
"name" : "建立数据",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"predefinedType" : "DATA_CREATEOBJECT",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "panel_Usr1110541566_button_calluilogic3_click",
"uIActionType" : "DEUIACTION"
},
"tooltip" : "建立数据",
"showCaption" : true
} ] } ]
}, { }, {
"caption" : "标签", "caption" : "标签",
......
...@@ -26894,6 +26894,20 @@ ...@@ -26894,6 +26894,20 @@
"uILogicAttachMode" : "REPLACE", "uILogicAttachMode" : "REPLACE",
"uILogicType" : "DELOGIC", "uILogicType" : "DELOGIC",
"id" : "panel_Usr1109586119_button_calluilogic2_click@IBIZBOOK" "id" : "panel_Usr1109586119_button_calluilogic2_click@IBIZBOOK"
}, {
"caption" : "建立数据",
"codeName" : "panel_Usr1110541566_button_calluilogic3_click",
"fullCodeName" : "panel_Usr1110541566_button_calluilogic3_click",
"name" : "建立数据",
"getPSAppDataEntity" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"predefinedType" : "DATA_CREATEOBJECT",
"timeout" : 60000,
"uIActionMode" : "SYS",
"uIActionTag" : "panel_Usr1110541566_button_calluilogic3_click",
"uIActionType" : "DEUIACTION"
}, { }, {
"actionTarget" : "SINGLEDATA", "actionTarget" : "SINGLEDATA",
"caption" : "加载", "caption" : "加载",
......
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
<!--输出实体[IBIZBOOK]数据结构 --> <!--输出实体[IBIZBOOK]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-815-7"> <changeSet author="a_LAB01_df847bdfd" id="tab-ibizbook-818-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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册