<template> <div class="app-view-layout app-view-layout__deeditview ibizcustomer-usr3-edit-view" v-loading="isLayoutLoadding" :style="{height: '100%', width: '100%', overflow: 'auto'}"> <div v-show="!isLayoutLoadding" :style="{height: '100%', width: '100%'}"> <app-scroll-container name="container_scroll1" :layoutModelDetails="layoutModelDetails"> <template #container_scroll_main1> <app-scroll-container name="container_scroll_main1" :layoutModelDetails="layoutModelDetails"> <template #static_label1> <app-preset-text name="static_label1" :layoutModelDetails="layoutModelDetails"/> </template> <template #container_grid1> <app-simpleflex-container name="container_grid1" :layoutModelDetails="layoutModelDetails"> <template #container1> <app-simpleflex-container name="container1" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic1> <app-preset-button name="button_calluilogic1" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic5> <app-preset-button name="button_calluilogic5" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> <template #container2> <app-simpleflex-container name="container2" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic2> <app-preset-button name="button_calluilogic2" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic6> <app-preset-button name="button_calluilogic6" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> <template #container3> <app-simpleflex-container name="container3" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic3> <app-preset-button name="button_calluilogic3" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic7> <app-preset-button name="button_calluilogic7" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> <template #container4> <app-simpleflex-container name="container4" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic4> <app-preset-button name="button_calluilogic4" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> </app-simpleflex-container> </template> <template #static_label2> <app-preset-text name="static_label2" :layoutModelDetails="layoutModelDetails"/> </template> <template #container_grid2> <app-simpleflex-container name="container_grid2" :layoutModelDetails="layoutModelDetails"> <template #container5> <app-simpleflex-container name="container5" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic12> <app-preset-button name="button_calluilogic12" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic14> <app-preset-button name="button_calluilogic14" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> <template #container6> <app-simpleflex-container name="container6" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic13> <app-preset-button name="button_calluilogic13" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> <template #container7> <app-simpleflex-container name="container7" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic10> <app-preset-button name="button_calluilogic10" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> <template #container8> <app-simpleflex-container name="container8" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic11> <app-preset-button name="button_calluilogic11" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> </app-simpleflex-container> </template> <template #static_label3> <app-preset-text name="static_label3" :layoutModelDetails="layoutModelDetails"/> </template> <template #container_grid5> <app-simpleflex-container name="container_grid5" :layoutModelDetails="layoutModelDetails"> <template #container16> <app-simpleflex-container name="container16" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic15> <app-preset-button name="button_calluilogic15" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic18> <app-preset-button name="button_calluilogic18" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic23> <app-preset-button name="button_calluilogic23" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic27> <app-login-button class="app-login-button" name="button_calluilogic27" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> <template #container17> <app-simpleflex-container name="container17" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic17> <app-preset-button name="button_calluilogic17" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic24> <app-login-button class="app-reset-button" name="button_calluilogic24" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic28> <app-login-button class="app-logout-button" name="button_calluilogic28" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic29> <app-preset-button name="button_calluilogic29" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> <template #container18> <app-simpleflex-container name="container18" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic16> <app-preset-button name="button_calluilogic16" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic21> <app-preset-button name="button_calluilogic21" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic25> <app-preset-button name="button_calluilogic25" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic20> <app-preset-button name="button_calluilogic20" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> <template #container19> <app-simpleflex-container name="container19" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic19> <app-preset-button name="button_calluilogic19" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic22> <app-preset-button name="button_calluilogic22" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> <template #button_calluilogic26> <app-preset-button name="button_calluilogic26" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> </app-simpleflex-container> </template> <template #static_label4> <app-preset-text name="static_label4" :layoutModelDetails="layoutModelDetails"/> </template> <template #container_grid3> <app-simpleflex-container name="container_grid3" :layoutModelDetails="layoutModelDetails"> <template #container9> <app-simpleflex-container name="container9" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic8> <app-preset-button name="button_calluilogic8" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> <template #container10> <app-simpleflex-container name="container10" :layoutModelDetails="layoutModelDetails"> <template #button_calluilogic9> <app-preset-button name="button_calluilogic9" :layoutModelDetails="layoutModelDetails" @itemClick="(name) => handleButtonClick(name)"/> </template> </app-simpleflex-container> </template> <template #container11> <app-simpleflex-container name="container11" :layoutModelDetails="layoutModelDetails"> </app-simpleflex-container> </template> <template #container12> <app-simpleflex-container name="container12" :layoutModelDetails="layoutModelDetails"> </app-simpleflex-container> </template> </app-simpleflex-container> </template> <template #container20> <app-standard-container name="container20" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails"> <template #view_pagecaption> <app-preset-caption name="view_pagecaption" :layoutModelDetails="layoutModelDetails"> 按钮测试编辑视图 </app-preset-caption> </template> <template #view_pagecaption1> <app-preset-caption name="view_pagecaption1" :layoutModelDetails="layoutModelDetails"> 按钮测试编辑视图 </app-preset-caption> </template> <template #view_pagecaption2> <app-preset-caption name="view_pagecaption2" :layoutModelDetails="layoutModelDetails"> 按钮测试编辑视图 </app-preset-caption> </template> </app-standard-container> </template> <template #container21> <app-standard-container name="container21" :isMultiContainer="false" :layoutModelDetails="layoutModelDetails"> <template #view_pagecaption3> <app-preset-caption name="view_pagecaption3" :layoutModelDetails="layoutModelDetails"> 按钮测试编辑视图 </app-preset-caption> </template> <template #view_pagecaption4> <app-preset-caption name="view_pagecaption4" :layoutModelDetails="layoutModelDetails"> 按钮测试编辑视图 </app-preset-caption> </template> <template #view_pagecaption5> <app-preset-caption name="view_pagecaption5" :layoutModelDetails="layoutModelDetails"> 按钮测试编辑视图 </app-preset-caption> </template> </app-standard-container> </template> </app-scroll-container> </template> </app-scroll-container> </div> </div> </template> // 基于 @VIEW/实体编辑视图/VIEW-BASE.vue.ftl 生成 <script lang='tsx'> import { Vue, Component, Prop, Provide, Emit, Watch,Inject } from 'vue-property-decorator'; import { UIActionTool, Util } from '@/utils'; import axios from 'axios'; import { AppMessageBox } from '@/utils/app-message-box/app-message-box'; import NavDataService from '@/service/app/navdata-service'; import { Subject,Subscription } from 'rxjs'; import IBIZCustomerService from '@/service/ibizcustomer/ibizcustomer-service'; import IBIZCustomerAuthService from '@/authservice/ibizcustomer/ibizcustomer-auth-service'; import EditViewEngine from '@engine/view/edit-view-engine'; import IBIZCustomerUIService from '@/uiservice/ibizcustomer/ibizcustomer-ui-service'; import { PanelContainerModel, PanelRawitemModel, PanelFieldModel, PanelControlModel, PanelButtonModel, PanelUserControlModel, PanelTabPanelModel, PanelTabPageModel, PanelCtrlPosModel} from '@/model/panel-detail'; @Component({ components: { }, }) export default class IBIZCustomerUsr3EditViewBase extends Vue { /** * 实体服务对象 * * @type {IBIZCustomerService} * @memberof IBIZCustomerUsr3EditViewBase */ public appEntityService: IBIZCustomerService = new IBIZCustomerService(); /** * 实体UI服务对象 * * @type IBIZCustomerUIService * @memberof IBIZCustomerUsr3EditViewBase */ public appUIService: IBIZCustomerUIService = new IBIZCustomerUIService(); /** * 数据变化 * * @param {*} val * @returns {*} * @memberof IBIZCustomerUsr3EditViewBase */ @Emit() public viewDatasChange(val: any):any { return val; } /** * 传入视图上下文 * * @type {string} * @memberof IBIZCustomerUsr3EditViewBase */ @Prop() public viewdata!: string; /** * 传入视图参数 * * @type {string} * @memberof IBIZCustomerUsr3EditViewBase */ @Prop() public viewparam!: string; /** * 视图默认使用 * * @type {boolean} * @memberof IBIZCustomerUsr3EditViewBase */ @Prop({ default: true }) public viewDefaultUsage!: boolean; /** * 视图默认使用 * * @type {string} * @memberof IBIZCustomerUsr3EditViewBase */ @Inject({from:'navModel',default: 'tab'}) public navModel!:string; /** * 视图标识 * * @type {string} * @memberof IBIZCustomerUsr3EditViewBase */ public viewtag: string = '89f50fe0180852e47ffbb486cdfaf305'; /** * 视图类型 * * @type {string} * @memberof IBIZCustomerUsr3EditViewBase */ public viewType: string = 'DEEDITVIEW'; /** * 自定义视图导航上下文集合 * * @type {*} * @memberof IBIZCustomerUsr3EditViewBase */ public customViewNavContexts:any ={ }; /** * 自定义视图导航参数集合 * * @type {*} * @memberof IBIZCustomerUsr3EditViewBase */ public customViewParams:any ={ }; /** * 视图模型数据 * * @type {*} * @memberof IBIZCustomerUsr3EditViewBase */ public model: any = { srfCaption: 'entities.ibizcustomer.views.usr3editview.caption', srfTitle: 'entities.ibizcustomer.views.usr3editview.title', srfSubTitle: 'entities.ibizcustomer.views.usr3editview.subtitle', dataInfo: '' } /** * 视图参数变化 * * @param {*} newVal * @param {*} oldVal * @memberof IBIZCustomerUsr3EditViewBase */ @Watch('viewparam',{immediate: true, deep: true}) onParamData(newVal: any, oldVal: any) { if(newVal){ this.viewparams = {}; if(typeof newVal == 'string') { Object.assign(this.viewparams, JSON.parse(this.viewparam)); }else{ this.viewparams = Util.deepCopy(this.viewparam); } } } /** * 处理应用上下文变化 * * @param {*} newVal * @param {*} oldVal * @memberof IBIZCustomerUsr3EditViewBase */ @Watch('viewdata') onViewData(newVal: any, oldVal: any) { const _this: any = this; if (!Object.is(newVal, oldVal) && _this.engine) { this.$nextTick(()=>{ _this.parseViewParam(); _this.engine.load(); }); } else if(!Object.is(newVal, oldVal) && _this.refresh && _this.refresh instanceof Function) { _this.refresh(); } } /** * 容器模型 * * @type {*} * @memberof IBIZCustomerUsr3EditViewBase */ public containerModel: any = { view_form: { name: 'form', type: 'FORM' }, view_toolbar: { name: 'toolbar', type: 'TOOLBAR' }, }; /** * 视图操作参数 * * @type {*} * @readonly * @memberof IBIZCustomerUsr3EditViewBase */ public viewCtx: any = {}; /** * 视图刷新 * * @param {*} args * @memberof IBIZCustomerUsr3EditViewBase */ public refresh(args?: any): void { const refs: any = this.$refs; if (refs && refs.form) { refs.form.refresh(); } } /** * 计数器刷新 * * @memberof IBIZCustomerUsr3EditViewBase */ public counterRefresh(){ const _this:any =this; if(_this.counterServiceArray && _this.counterServiceArray.length >0){ _this.counterServiceArray.forEach((item:any) =>{ if(item.refreshData && item.refreshData instanceof Function){ item.refreshData(); } }) } } /** * 视图状态订阅对象 * * @public * @type {Subject<{action: string, data: any}>} * @memberof IBIZCustomerUsr3EditViewBase */ public viewState: Subject<ViewState> = new Subject(); /** * 工具栏模型 * * @type {*} * @memberof IBIZCustomerUsr3EditView */ public toolBarModels: any = { deuiaction1: { name: 'deuiaction1', actiontarget: 'NONE', caption: '新建', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'New', target: '' } }, tbitem3: { name: 'tbitem3', actiontarget: 'NONE', caption: '保存', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'Save', target: '' } }, tbitem5: { name: 'tbitem5', actiontarget: 'NONE', caption: '保存并关闭', disabled: false, type: 'DEUIACTION', visabled: true,noprivdisplaymode:2,dataaccaction: '', uiaction: { tag: 'SaveAndExit', target: '' } }, }; /** * 视图布局顶级成员名称 * * @public * @memberof IBIZCustomerUsr3EditViewBase */ public rootLayoutDetailNames: string[] = [ 'container_scroll1' ]; /** * 视图布局面板项模型对象 * * @public * @memberof IBIZCustomerUsr3EditViewBase */ public layoutItems:any = { static_label1:{ name: 'static_label1', type: 'VIEWLAYOUT', caption: '标签', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , viewType: 'DEEDITVIEW', predefinedType: 'STATIC_LABEL', contentType: 'RAW', contentStyle: '', rawContent: '按钮样式', htmlContent: '', renderMode: 'PARAGRAPH', wrapMode:'', vAlign:'', hAlign:'', }, 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 , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', renderMode: '', }, button_calluilogic5:{ name: 'button_calluilogic5', type: 'VIEWLAYOUT', caption: '成功按钮', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'SUCCESS', 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 , xDataControlName: 'form', buttonStyle: 'SUCCESS', borderStyle: '', iconAlign: '', renderMode: '', }, container1:{ name: 'container1', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['button_calluilogic1','button_calluilogic5'] , dataRegionType: 'INHERIT' }, button_calluilogic2:{ name: 'button_calluilogic2', type: 'VIEWLAYOUT', caption: '反向按钮', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'INVERSE', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container2', panel: this , xDataControlName: 'form', buttonStyle: 'INVERSE', borderStyle: '', iconAlign: '', renderMode: '', }, button_calluilogic6:{ name: 'button_calluilogic6', type: 'VIEWLAYOUT', caption: '警告按钮', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'WARNING', 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 , xDataControlName: 'form', buttonStyle: 'WARNING', borderStyle: '', iconAlign: '', renderMode: '', }, container2:{ name: 'container2', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['button_calluilogic2','button_calluilogic6'] , dataRegionType: 'INHERIT' }, button_calluilogic3:{ name: 'button_calluilogic3', type: 'VIEWLAYOUT', caption: '主要按钮', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'PRIMARY', 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: 'container3', panel: this , xDataControlName: 'form', buttonStyle: 'PRIMARY', borderStyle: '', iconAlign: '', renderMode: '', }, button_calluilogic7:{ name: 'button_calluilogic7', type: 'VIEWLAYOUT', caption: '危险按钮', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DANGER', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container3', panel: this , xDataControlName: 'form', buttonStyle: 'DANGER', borderStyle: '', iconAlign: '', renderMode: '', }, container3:{ name: 'container3', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['button_calluilogic3','button_calluilogic7'] , dataRegionType: 'INHERIT' }, button_calluilogic4:{ name: 'button_calluilogic4', 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:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container4', panel: this , xDataControlName: 'form', buttonStyle: 'INFO', borderStyle: '', iconAlign: '', renderMode: '', }, container4:{ name: 'container4', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid1', panel: this , details:['button_calluilogic4'] , dataRegionType: 'INHERIT' }, container_grid1:{ name: 'container_grid1', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'OUTERSMALL', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , details:['container1','container2','container3','container4'] , dataRegionType: 'INHERIT' }, static_label2:{ name: 'static_label2', type: 'VIEWLAYOUT', caption: '标签', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , viewType: 'DEEDITVIEW', predefinedType: 'STATIC_LABEL', contentType: 'RAW', contentStyle: '', rawContent: '按钮边框样式', htmlContent: '', renderMode: 'PARAGRAPH', wrapMode:'', vAlign:'', hAlign:'', }, button_calluilogic12:{ name: 'button_calluilogic12', 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: 'container5', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: 'DOTTED', iconAlign: '', renderMode: '', }, button_calluilogic14:{ name: 'button_calluilogic14', 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: 'container5', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: 'DOUBLE', iconAlign: '', renderMode: '', }, container5:{ name: 'container5', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid2', panel: this , details:['button_calluilogic12','button_calluilogic14'] , dataRegionType: 'INHERIT' }, button_calluilogic13:{ name: 'button_calluilogic13', 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: 'container6', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: 'DASHED', iconAlign: '', renderMode: '', }, container6:{ name: 'container6', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid2', panel: this , details:['button_calluilogic13'] , dataRegionType: 'INHERIT' }, button_calluilogic10:{ name: 'button_calluilogic10', 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: 'container7', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: 'SOLID', iconAlign: '', renderMode: '', }, container7:{ name: 'container7', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid2', panel: this , details:['button_calluilogic10'] , dataRegionType: 'INHERIT' }, button_calluilogic11:{ name: 'button_calluilogic11', 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: 'container8', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: 'NONE', iconAlign: '', renderMode: '', }, container8:{ name: 'container8', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid2', panel: this , details:['button_calluilogic11'] , dataRegionType: 'INHERIT' }, container_grid2:{ name: 'container_grid2', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'OUTERSMALL', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , details:['container5','container6','container7','container8'] , dataRegionType: 'INHERIT' }, static_label3:{ name: 'static_label3', type: 'VIEWLAYOUT', caption: '标签', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , viewType: 'DEEDITVIEW', predefinedType: 'STATIC_LABEL', contentType: 'RAW', contentStyle: '', rawContent: '按钮行为:自定义代码按钮中自定义代码无法配置', htmlContent: '', renderMode: 'PARAGRAPH', wrapMode:'', vAlign:'', hAlign:'', }, button_calluilogic15:{ name: 'button_calluilogic15', 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: 'container16', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', renderMode: '', }, button_calluilogic18:{ name: 'button_calluilogic18', 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: 'container16', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'SINGLEDATA', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, renderMode: '', }, button_calluilogic23:{ name: 'button_calluilogic23', 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: 'container16', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: '', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, predefinedType: 'DATA_SAVECHANGES', renderMode: '', }, button_calluilogic27:{ name: 'button_calluilogic27', 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: 'container16', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: '', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, predefinedType: 'APP_LOGIN', renderMode: '', }, container16:{ name: 'container16', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid5', panel: this , details:['button_calluilogic15','button_calluilogic18','button_calluilogic23','button_calluilogic27'] , dataRegionType: 'INHERIT' }, button_calluilogic17:{ name: 'button_calluilogic17', 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: 'container17', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'NONE', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZSample0001', visabled: true, disabled: false }, renderMode: '', }, button_calluilogic24:{ name: 'button_calluilogic24', 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: 'container17', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: '', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, predefinedType: 'DATA_CANCELCHANGES', renderMode: '', }, button_calluilogic28:{ name: 'button_calluilogic28', 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: 'container17', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: '', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, predefinedType: 'APP_LOGOUT', renderMode: '', }, button_calluilogic29:{ name: 'button_calluilogic29', 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: 'container17', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'NONE', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, renderMode: '', }, container17:{ name: 'container17', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid5', panel: this , details:['button_calluilogic17','button_calluilogic24','button_calluilogic28','button_calluilogic29'] , dataRegionType: 'INHERIT' }, button_calluilogic16:{ name: 'button_calluilogic16', 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: 'container18', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'SINGLEDATA', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZOrder', visabled: true, disabled: false }, renderMode: '', }, button_calluilogic21:{ name: 'button_calluilogic21', 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: 'container18', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'SINGLEDATA', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, renderMode: '', }, button_calluilogic25:{ name: 'button_calluilogic25', 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: 'container18', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: '', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, predefinedType: 'DATA_REMOVEOBJECT', renderMode: '', }, button_calluilogic20:{ name: 'button_calluilogic20', 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: 'container18', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'SINGLEDATA', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, renderMode: '', }, container18:{ name: 'container18', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid5', panel: this , details:['button_calluilogic16','button_calluilogic21','button_calluilogic25','button_calluilogic20'] , dataRegionType: 'INHERIT' }, button_calluilogic19:{ name: 'button_calluilogic19', 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: 'container19', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: 'SINGLEDATA', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, renderMode: '', }, button_calluilogic22:{ name: 'button_calluilogic22', 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: 'container19', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: '', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, predefinedType: 'DATA_CREATEOBJECT', renderMode: '', }, button_calluilogic26:{ name: 'button_calluilogic26', 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: 'container19', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', uiAction: { actiontarget: '', noprivdisplaymode: 2, dataaccaction: '', actionDECodeName: 'IBIZCustomer', visabled: true, disabled: false }, predefinedType: 'DATA_SYNCHRONIZE', renderMode: '', }, container19:{ name: 'container19', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid5', panel: this , details:['button_calluilogic19','button_calluilogic22','button_calluilogic26'] , dataRegionType: 'INHERIT' }, container_grid5:{ name: 'container_grid5', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'OUTERSMALL', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , details:['container16','container17','container18','container19'] , dataRegionType: 'INHERIT' }, static_label4:{ name: 'static_label4', type: 'VIEWLAYOUT', caption: '标签', isShowCaption: true, sysCss: '', itemType: 'RAWITEM', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , viewType: 'DEEDITVIEW', predefinedType: 'STATIC_LABEL', contentType: 'RAW', contentStyle: '', rawContent: '按钮边距', htmlContent: '', renderMode: 'PARAGRAPH', wrapMode:'', vAlign:'', hAlign:'', }, button_calluilogic8:{ name: 'button_calluilogic8', type: 'VIEWLAYOUT', caption: '按钮外边距', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'OUTERSMALL', spacingLeft:'OUTERSMALL', spacingRight:'OUTERSMALL', spacingTop:'OUTERSMALL', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container9', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', renderMode: '', }, container9:{ name: 'container9', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid3', panel: this , details:['button_calluilogic8'] , dataRegionType: 'INHERIT' }, button_calluilogic9:{ name: 'button_calluilogic9', type: 'VIEWLAYOUT', caption: '按钮内边距', isShowCaption: true, sysCss: '', itemType: 'BUTTON', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'INNERSMALL', spacingLeft:'INNERSMALL', spacingRight:'INNERSMALL', spacingTop:'INNERSMALL', hAlignSelf:'', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container10', panel: this , xDataControlName: 'form', buttonStyle: 'DEFAULT', borderStyle: '', iconAlign: '', renderMode: '', }, container10:{ name: 'container10', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid3', panel: this , details:['button_calluilogic9'] , dataRegionType: 'INHERIT' }, container11:{ name: 'container11', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid3', panel: this , details:[] , dataRegionType: 'INHERIT' }, container12:{ name: 'container12', type: 'VIEWLAYOUT', caption: '面板容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:3, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_grid3', panel: this , details:[] , dataRegionType: 'INHERIT' }, container_grid3:{ name: 'container_grid3', type: 'VIEWLAYOUT', caption: '栅格容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'SIMPLEFLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container_scroll_main1', panel: this , details:['container9','container10','container11','container12'] , dataRegionType: 'INHERIT' }, view_pagecaption:{ name: 'view_pagecaption', type: 'VIEWLAYOUT', caption: '页面标题', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'LEFT', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container20', panel: this , required: false, fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', }, view_pagecaption1:{ name: 'view_pagecaption1', 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: 'container20', panel: this , required: false, fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', }, view_pagecaption2:{ name: 'view_pagecaption2', 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:'RIGHT', vAlignSelf:'', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container20', panel: this , required: false, fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', }, container20:{ name: 'container20', type: 'VIEWLAYOUT', caption: '容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'CENTER', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'center',dir:'column',vAlign:'center'}, parentName: 'container_scroll_main1', panel: this , details:['view_pagecaption','view_pagecaption1','view_pagecaption2'] , dataRegionType: 'INHERIT' }, view_pagecaption3:{ name: 'view_pagecaption3', type: 'VIEWLAYOUT', caption: '页面标题', isShowCaption: false, sysCss: '', itemType: 'FIELD', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'LEFT', vAlignSelf:'TOP', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container21', panel: this , required: false, fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', }, view_pagecaption4:{ name: 'view_pagecaption4', 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: 'container21', panel: this , required: false, fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', }, view_pagecaption5:{ name: 'view_pagecaption5', 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:'RIGHT', vAlignSelf:'BOTTOM', flexGrow:-1, flexParams:{align:'',dir:'',vAlign:''}, parentName: 'container21', panel: this , required: false, fieldState: '0', predefinedType: 'VIEW_PAGECAPTION', renderMode: 'HEADING1', dataItemName:'', wrapMode:'', vAlign:'', hAlign:'', }, container21:{ name: 'container21', type: 'VIEWLAYOUT', caption: '容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'FLEX', layoutPos:'CENTER', layoutHeight:500, heightMode:'PX', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'center',dir:'row',vAlign:'center'}, parentName: 'container_scroll_main1', panel: this , details:['view_pagecaption3','view_pagecaption4','view_pagecaption5'] , 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:['static_label1','container_grid1','static_label2','container_grid2','static_label3','container_grid5','static_label4','container_grid3','container20','container21'] , dataRegionType: 'INHERIT' }, container_scroll1:{ name: 'container_scroll1', type: 'VIEWLAYOUT', caption: '滚动条容器', titleBarCloseMode: 0, isShowCaption: false, sysCss: '', itemType: 'CONTAINER', itemStyle: 'DEFAULT', visible: true, disabled: false, layout:'BORDER', layoutPos:'', layoutHeight:0, heightMode:'', layoutWidth:0, widthMode:'', spacingBottom:'', spacingLeft:'', spacingRight:'', spacingTop:'', hAlignSelf:'', vAlignSelf:'', flexGrow:0, flexParams:{align:'',dir:'',vAlign:''}, panel: this , details:['container_scroll_main1'] , dataRegionType: 'INHERIT' } } /** * 布局面板是否加载 * * @public * @memberof IBIZCustomerUsr3EditViewBase */ public isLayoutLoadding: boolean = true; /** * 布局面板数据 * * @public * @memberof IBIZCustomerUsr3EditViewBase */ public layoutData:any = {}; /** * 布局面板模型对象 * * @public * @memberof IBIZCustomerUsr3EditViewBase */ public layoutModelDetails:any = {}; /** * 初始化布局 * * @public * @memberof IBIZCustomerUsr3EditViewBase */ 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 IBIZCustomerUsr3EditViewBase */ public async initLayoutItem(layoutModelItem: any, index?: number) { const { name } = layoutModelItem; const layoutModelDetail = Util.getLayoutItemInstance(layoutModelItem); if (!(index || index === 0)) { 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); } } } } } /** * 计算面板按钮权限状态 * * @public * @memberof IBIZCustomerUsr3EditViewBase */ public async computeButtonAuthState() { for (const key in this.layoutModelDetails) { const layoutModel = this.layoutModelDetails[key]; if (layoutModel.itemType == 'BUTTON') { await layoutModel.computeActionAuthState(); } } } /** * 处理值改变 * * @public * @params args 改变数据 * @params index 多数据容器下标 * @memberof IBIZCustomerUsr3EditViewBase */ public handleValueChange(args: { name: string, value: any }, index?: number) { const { name, value } = args; let fullName = (index || index === 0) ? `${name}_${index}` : name; if (!fullName || !this.layoutData.hasOwnProperty(fullName)) { return; } this.layoutData[fullName] = value; this.layoutModelDetails[fullName].setData(value); this.panelLogic(name, index); this.computeButtonAuthState(); } /** * 面板逻辑 * * @public * @params name 改变项名称 * @params index 多数据容器下标 * @memberof IBIZCustomerUsr3EditViewBase */ public panelLogic(name: string, index?: number): void { } /** * 处理按钮点击 * * @public * @params name 按钮项名称 * @params index 多数据容器下标 * @memberof IBIZCustomerUsr3EditViewBase */ public handleButtonClick(name: string, index?: number) { let datas: any[] = []; let fullName = (index || index === 0) ? `${name}_${index}` : name; const data: any = this.layoutModelDetails[fullName].getData(); if (data) { if (data instanceof Array) { datas = [...data]; } else { datas = [data]; } } const xData: any = this.layoutModelDetails[fullName].getDataArea(); const paramJO: any = {}; const contextJO: any = {}; const _this: any = this; if (Object.is(name, 'button_calluilogic18')) { window.uiServiceRegister.getService('ibizcustomer').then((UIService: any) => { if (UIService && UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic18_click`] && UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic18_click`] instanceof Function) { UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic18_click`](datas, contextJO, paramJO, undefined, xData, this, undefined); } }) } if (Object.is(name, 'button_calluilogic23')) { _this.panel_A424afda77415fcfb6f_button_calluilogic23_click(datas, contextJO, paramJO, undefined, xData, this, undefined); } if (Object.is(name, 'button_calluilogic27')) { _this.panel_A424afda77415fcfb6f_button_calluilogic27_click(datas, contextJO, paramJO, undefined, xData, this, undefined); } if (Object.is(name, 'button_calluilogic17')) { window.uiServiceRegister.getService('ibizsample0001').then((UIService: any) => { if (UIService && UIService[`IBIZSample0001_openDocument`] && UIService[`IBIZSample0001_openDocument`] instanceof Function) { UIService[`IBIZSample0001_openDocument`](datas, contextJO, paramJO, undefined, xData, this, undefined); } }) } if (Object.is(name, 'button_calluilogic24')) { _this.panel_A424afda77415fcfb6f_button_calluilogic24_click(datas, contextJO, paramJO, undefined, xData, this, undefined); } if (Object.is(name, 'button_calluilogic28')) { _this.panel_A424afda77415fcfb6f_button_calluilogic28_click(datas, contextJO, paramJO, undefined, xData, this, undefined); } if (Object.is(name, 'button_calluilogic29')) { _this.IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic29_click(datas, contextJO, paramJO, undefined, xData, this, undefined); } if (Object.is(name, 'button_calluilogic16')) { window.uiServiceRegister.getService('ibizorder').then((UIService: any) => { if (UIService && UIService[`IBIZOrder_panel_A424afda77415fcfb6f_button_calluilogic16_click`] && UIService[`IBIZOrder_panel_A424afda77415fcfb6f_button_calluilogic16_click`] instanceof Function) { UIService[`IBIZOrder_panel_A424afda77415fcfb6f_button_calluilogic16_click`](datas, contextJO, paramJO, undefined, xData, this, undefined); } }) } if (Object.is(name, 'button_calluilogic21')) { window.uiServiceRegister.getService('ibizcustomer').then((UIService: any) => { if (UIService && UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic21_click`] && UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic21_click`] instanceof Function) { UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic21_click`](datas, contextJO, paramJO, undefined, xData, this, undefined); } }) } if (Object.is(name, 'button_calluilogic25')) { _this.panel_A424afda77415fcfb6f_button_calluilogic25_click(datas, contextJO, paramJO, undefined, xData, this, undefined); } if (Object.is(name, 'button_calluilogic20')) { window.uiServiceRegister.getService('ibizcustomer').then((UIService: any) => { if (UIService && UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic20_click`] && UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic20_click`] instanceof Function) { UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic20_click`](datas, contextJO, paramJO, undefined, xData, this, undefined); } }) } if (Object.is(name, 'button_calluilogic19')) { window.uiServiceRegister.getService('ibizcustomer').then((UIService: any) => { if (UIService && UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic19_click`] && UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic19_click`] instanceof Function) { UIService[`IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic19_click`](datas, contextJO, paramJO, undefined, xData, this, undefined); } }) } if (Object.is(name, 'button_calluilogic22')) { _this.panel_A424afda77415fcfb6f_button_calluilogic22_click(datas, contextJO, paramJO, undefined, xData, this, undefined); } if (Object.is(name, 'button_calluilogic26')) { _this.panel_A424afda77415fcfb6f_button_calluilogic26_click(datas, contextJO, paramJO, undefined, xData, this, undefined); } } /** * 保存变更 * * @param {any[]} args 当前数据 * @param {any} context 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @param {*} [srfParentDeName] 父实体名称 */ public async panel_A424afda77415fcfb6f_button_calluilogic23_click(args: any[], context: any = {}, params: any = {}, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string) { // 选择视图保存变更 if (Object.is(this.viewType, 'DEPICKUPVIEW') || Object.is(this.viewType, 'DEMPICKUPVIEW')) { this.$emit('viewdataschange', actionContext.viewSelections); this.$emit('close', null); } else { // 准备上下文参数 const tempContext = {...context}; if (xData && xData.context) { Object.assign(tempContext, xData.context); } const data = args[0]; let action: string | undefined = undefined; const service = await window.entityServiceRegister.getService('ibizcustomer'); if (service) { const key = service.APPDEKEY.toLowerCase(); const name = service.APPLYDEKEY.toLowerCase(); if (data.hasOwnProperty(key)) { Object.assign(tempContext, { [name]: data[key] }); action = 'Update'; } else { action = 'Create'; } if (service[action] && service[action] instanceof Function) { service[action](tempContext, data).then((response: any) => { if (!response.status || response.status !== 200) { actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); } }).catch((error: any) => { actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); }) } else { actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行保存变更逻辑[执行行为异常]' }); } } } } /** * 登录操作 * * @param {any[]} args 当前数据 * @param {any} contextJO 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @param {*} [srfParentDeName] 父实体名称 */ public panel_A424afda77415fcfb6f_button_calluilogic27_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { if (actionContext.viewType === 'APPLOGINVIEW') { const layoutData = args.length > 0 ? args[0] : {}; const layoutModelDetails: any = actionContext.layoutModelDetails || {}; 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 messageKey: string = Object.keys(layoutModelDetails).find((key: string) => Object.is(layoutModelDetails[key].predefinedType, 'AUTH_LOGINMSG')) || ''; if (!userNameKey || !passwordKey) { if (messageKey) { actionContext.handleValueChange({ name: messageKey, value: '用户名或密码未配置!' }); } else { actionContext.$message({ message: '用户名或密码未配置!',type: 'warning'}); } return; } const loginname: any = layoutData[userNameKey]; const password: any = layoutData[passwordKey]; if (!loginname || !password) { if (messageKey) { actionContext.handleValueChange({ name: messageKey, value: '请输入用户名与密码' }); } else { actionContext.$message({ message: '请输入用户名与密码',type: 'warning'}); } return; } // 清除cookie let leftTime = new Date(); leftTime.setTime(leftTime.getSeconds() - 1000); document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString(); const data = { loginname, password }; const post: Promise<any> = actionContext.$http.post('/v7/login', data, true); post.then((response: any) => { if (response && response.status === 200) { const data = response.data; if (data && data.token) { localStorage.setItem('token', data.token); Util.setCookie('ibzuaa-token',data.token,0); } if(data && data.user){ localStorage.setItem('user', JSON.stringify(data.user)); } // 设置cookie,保存账号密码7天 Util.setCookie("loginname",loginname, 7); // 跳转首页 const url: any = actionContext.$route.query.redirect ? actionContext.$route.query.redirect : '*'; actionContext.$router.push({path: url}); } }).catch((error: any) => { // 登录提示 const data = error.data; if (data) { if (messageKey) { actionContext.handleValueChange({ name: messageKey, value: data.message || this.$t('components.login.loginfailed') }); } } }); } else { actionContext.$router.push({ path: "/login", query: { redirect: window.location.hash.replace("#", '') } }); } } /** * 取消变更 * * @param {any[]} args 当前数据 * @param {any} contextJO 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @param {*} [srfParentDeName] 父实体名称 */ public panel_A424afda77415fcfb6f_button_calluilogic24_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { if (actionContext.viewType === 'APPLOGINVIEW') { const length = Object.keys(actionContext.layoutData).length; for (let i = length - 1; i >= 0; i--) { const name = Object.keys(actionContext.layoutData)[i]; if (actionContext.layoutData.hasOwnProperty(name) && !Object.is(actionContext.layoutModelDetails[name].itemType, 'CONTAINER')) { actionContext.handleValueChange({ name, value: null }); } } actionContext.$nextTick(() => { actionContext.$forceUpdate(); }) } else { 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); } } } /** * 登出操作 * * @param {any[]} args 当前数据 * @param {any} contextJO 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @param {*} [srfParentDeName] 父实体名称 */ public panel_A424afda77415fcfb6f_button_calluilogic28_click(args: any[], contextJO?:any, params?: any, $event?: any, xData?: any, actionContext?:any, srfParentDeName?:string) { actionContext.$Modal.confirm({ title: '提示', content: '确认要退出登录?', okText: '确认', cancelText: '取消', onOk: () => { actionContext.$http .get("/v7/logout") .then((response: any) => { if (response && response.status === 200) { localStorage.removeItem("user"); localStorage.removeItem("token"); let leftTime = new Date(); leftTime.setTime(leftTime.getSeconds() - 1); document.cookie = "ibzuaa-token=;expires=" + leftTime.toUTCString(); actionContext.$router.push({ path: "/login", query: { redirect: window.location.hash.replace("#", '') } }); } }) .catch((error: any) => { console.error(error); }); } }); } /** * 自定义代码 * * @param {any[]} args 当前数据 * @param {any} context 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @param {*} [srfParentDeName] 父实体名称 */ public IBIZCustomer_panel_A424afda77415fcfb6f_button_calluilogic29_click(args: any[], context: any = {}, params: any = {}, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string) { this.$Notice.error({ title: '错误', desc: '自定义行为未实现' }); } /** * 删除数据 * * @param {any[]} args 当前数据 * @param {any} context 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @param {*} [srfParentDeName] 父实体名称 */ public async panel_A424afda77415fcfb6f_button_calluilogic25_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('ibizcustomer'); if (service) { const key = service.APPDEKEY.toLowerCase(); const name = service.APPLYDEKEY.toLowerCase(); if (data.hasOwnProperty(key)) { Object.assign(tempContext, { [name]: data[key] }); } service.Remove(tempContext, data).then((response: any) => { if (!response.status || response.status !== 200) { 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) => { actionContext.$Notice.error({ title: '错误', desc: '当前环境无法执行删除数据逻辑[执行行为异常]' }); }) } } /** * 建立数据 * * @param {any[]} args 当前数据 * @param {any} context 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @param {*} [srfParentDeName] 父实体名称 */ public async panel_A424afda77415fcfb6f_button_calluilogic22_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('ibizcustomer'); if (service) { if (data.hasOwnProperty(service.APPDEKEY.toLowerCase())) { delete data[service.APPDEKEY.toLowerCase()]; } 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: '当前环境无法执行建立数据逻辑[执行行为异常]' }); }) } } /** * 同步数据 * * @param {any[]} args 当前数据 * @param {any} context 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @param {*} [srfParentDeName] 父实体名称 */ public panel_A424afda77415fcfb6f_button_calluilogic26_click(args: any[], context: any = {}, params: any = {}, $event?: any, xData?: any, actionContext?: any, srfParentDeName?: string) { if (xData) { if (xData.refresh && (xData.refresh instanceof Function)) { xData.refresh(); } else if (xData.refreshDataArea && (xData.refreshDataArea instanceof Function)) { xData.refreshDataArea(); } else { actionContext.$Notice.error({ title: '错误', desc: '同步数据行为未实现' }); } } } /** * 视图引擎 * * @public * @type {Engine} * @memberof IBIZCustomerUsr3EditViewBase */ public engine: EditViewEngine = new EditViewEngine(); /** * 引擎初始化 * * @public * @memberof IBIZCustomerUsr3EditViewBase */ public engineInit(): void { this.engine.init({ view: this, form: this.$refs.form, p2k: '0', keyPSDEField: 'ibizcustomer', majorPSDEField: 'ibizcustomername', isLoadDefault: true, }); } /** * 应用导航服务 * * @type {*} * @memberof IBIZCustomerUsr3EditViewBase */ public navDataService = NavDataService.getInstance(); /** * 导航服务事件 * * @public * @type {(Subscription | undefined)} * @memberof IBIZCustomerUsr3EditViewBase */ public serviceStateEvent: Subscription | undefined; /** * 门户部件状态对象 * * @type {*} * @memberof IBIZCustomerUsr3EditViewBase */ @Prop() public portletState?: any; /** * 门户部件状态事件 * * @public * @type {(Subscription | undefined)} * @memberof IBIZCustomerUsr3EditViewBase */ public portletStateEvent: Subscription | undefined; /** * 门户部件状态事件 * * @public * @type {(Subscription | undefined)} * @memberof IBIZCustomerUsr3EditViewBase */ public formDruipartEvent: Subscription | undefined; /** * 应用上下文 * * @type {*} * @memberof IBIZCustomerUsr3EditViewBase */ public context:any = {}; /** * 视图参数 * * @type {*} * @memberof IBIZCustomerUsr3EditViewBase */ public viewparams:any = {}; /** * 视图缓存数据 * * @type {*} * @memberof IBIZCustomerUsr3EditViewBase */ public viewCacheData:any; /** * 计数器服务对象集合 * * @type {Array<*>} * @memberof IBIZCustomerUsr3EditViewBase */ public counterServiceArray:Array<any> = []; /** * 解析视图参数 * * @public * @memberof IBIZCustomerUsr3EditViewBase */ public parseViewParam(inputvalue:any = null): void { for(let key in this.context){ delete this.context[key]; } if(this.$store.getters.getAppData() && this.$store.getters.getAppData().context){ Object.assign(this.context,this.$store.getters.getAppData().context); } if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) { if(typeof this.viewdata == 'string') { Object.assign(this.context, JSON.parse(this.viewdata)); } if(this.context && this.context.srfparentdename){ Object.assign(this.viewparams,{srfparentdename:this.context.srfparentdename}); } if(this.context && this.context.srfparentkey){ Object.assign(this.viewparams,{srfparentkey:this.context.srfparentkey}); } this.handleCustomViewData(); return; } const path = (this.$route.matched[this.$route.matched.length - 1]).path; const keys: Array<any> = []; const curReg = this.$pathToRegExp.pathToRegexp(path, keys); const matchArray = curReg.exec(this.$route.path); let tempValue: Object = {}; keys.forEach((item: any, index: number) => { if(matchArray[index + 1]){ Object.defineProperty(tempValue, item.name, { enumerable: true, value: decodeURIComponent(matchArray[index + 1]) }); } }); this.$viewTool.formatRouteParams(tempValue,this.$route,this.context,this.viewparams); if(inputvalue){ Object.assign(this.context,{'ibizcustomer':inputvalue}); } //初始化视图唯一标识 Object.assign(this.context,{srfsessionid:this.$util.createUUID()}); this.handleCustomViewData(); //初始化导航数据 this.initNavDataWithRoute(); } /** * 处理自定义视图数据 * * @memberof IBIZCustomerUsr3EditViewBase */ public handleCustomViewData(){ if(Object.keys(this.customViewNavContexts).length > 0){ Object.keys(this.customViewNavContexts).forEach((item:any) =>{ let tempContext:any = {}; let curNavContext:any = this.customViewNavContexts[item]; this.handleCustomDataLogic(curNavContext,tempContext,item); Object.assign(this.context,tempContext); }) } if(Object.keys(this.customViewParams).length > 0){ Object.keys(this.customViewParams).forEach((item:any) =>{ let tempParam:any = {}; let curNavParam:any = this.customViewParams[item]; this.handleCustomDataLogic(curNavParam,tempParam,item); Object.assign(this.viewparams,tempParam); }) } } /** * 处理自定义视图数据逻辑 * * @memberof IBIZCustomerUsr3EditViewBase */ public handleCustomDataLogic(curNavData:any,tempData:any,item:string){ // 直接值直接赋值 if(curNavData.isRawValue){ if(Object.is(curNavData.value,"null") || Object.is(curNavData.value,"")){ Object.defineProperty(tempData, item.toLowerCase(), { value: null, writable : true, enumerable : true, configurable : true }); }else{ Object.defineProperty(tempData, item.toLowerCase(), { value: curNavData.value, writable : true, enumerable : true, configurable : true }); } }else{ // 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null if(this.context[(curNavData.value).toLowerCase()] != null){ Object.defineProperty(tempData, item.toLowerCase(), { value: this.context[(curNavData.value).toLowerCase()], writable : true, enumerable : true, configurable : true }); }else{ if(this.viewparams[(curNavData.value).toLowerCase()] != null){ Object.defineProperty(tempData, item.toLowerCase(), { value: this.viewparams[(curNavData.value).toLowerCase()], writable : true, enumerable : true, configurable : true }); }else{ Object.defineProperty(tempData, item.toLowerCase(), { value: null, writable : true, enumerable : true, configurable : true }); } } } } /** * 初始化导航数据(路由模式) * * @memberof IBIZCustomerUsr3EditViewBase */ public initNavDataWithRoute(data:any = null, isNew:boolean = false, isAlways:boolean = false){ if( isAlways || (this.viewDefaultUsage && Object.is(this.navModel,"route")) ){ this.navDataService.addNavData({id:'ibizcustomer-usr3-edit-view',tag:this.viewtag,srfkey:isNew ? null : this.context.ibizcustomer,title:this.$t(this.model.srfCaption),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath}); } } /** * 初始化导航数据(分页模式) * * @memberof IBIZCustomerUsr3EditViewBase */ public initNavDataWithTab(data:any = null,isOnlyAdd:boolean = true, isAlways:boolean = false){ if( isAlways || (this.viewDefaultUsage && !Object.is(this.navModel,"route")) ){ this.navDataService.addNavDataByOnly({id:'ibizcustomer-usr3-edit-view',tag:this.viewtag,srfkey:this.context.ibizcustomer,title:this.$t(this.model.srfCaption),data:data,context:this.context,viewparams:this.viewparams,path:this.$route.fullPath},isOnlyAdd); } } /** * Vue声明周期 * * @memberof IBIZCustomerUsr3EditViewBase */ public created() { this.afterCreated(); } /** * 执行created后的逻辑 * * @memberof IBIZCustomerUsr3EditViewBase */ public afterCreated(){ let _this:any = this; const secondtag = _this.$util.createUUID(); _this.$store.commit('viewaction/createdView', { viewtag: _this.viewtag, secondtag: secondtag }); _this.viewtag = secondtag; _this.parseViewParam(); _this.serviceStateEvent = _this.navDataService.serviceState.subscribe(({ action,name, data }:{ action:string,name:any,data:any }) => { if(!Object.is(name,'ibizcustomer-usr3-edit-view')){ return; } if (Object.is(action, 'viewrefresh')) { _this.$nextTick(()=>{ _this.parseViewParam(data); if(_this.engine){ _this.engine.load(); } }); } }); if(_this.portletState){ _this.portletStateEvent = _this.portletState.subscribe((res:any) =>{ if(!Object.is(res.name,'IBIZCustomerUsr3EditView')){ return; } if(Object.is(res.action,'refresh') && _this.refresh && _this.refresh instanceof Function){ _this.refresh(); } }) } _this.initViewCtx(); if (this.panelState) { this.panelStateEvent = this.panelState.subscribe((res:any) => { if (Object.is(res.tag, 'meditviewpanel')) { if (Object.is(res.action, 'save')) { this.viewState.next({ tag:'form', action: 'save', data: res.data }); } if (Object.is(res.action, 'remove')) { this.viewState.next({ tag:'form', action: 'remove', data: res.data }); } } }); } } /** * 初始化视图操作参数 * * @memberof IBIZCustomerUsr3EditViewBase */ initViewCtx() { Object.assign(this.viewCtx, { app: this.$root, view: this, viewGlobal: {}, viewNavData: {}, viewNavContext: this.context, viewNavParam: this.viewparams, messagebox: AppMessageBox.getInstance(), }); Object.assign(this.viewCtx, { appGlobal: this.$store.getters.getAppGlobal() }); if (this.$store.getters.getRouteViewGlobal(this.context.srfsessionid)) { Object.assign(this.viewCtx, { routeViewGlobal: this.$store.getters.getRouteViewGlobal(this.context.srfsessionid) }); } else { this.$store.commit('addRouteViewGlobal', { tag: this.context.srfsessionid, param: {} }); Object.assign(this.viewCtx, { routeViewGlobal: this.$store.getters.getRouteViewGlobal(this.context.srfsessionid) }); } if (!this.viewDefaultUsage && this.viewdata && !Object.is(this.viewdata, '')) { // 嵌入视图 Object.assign(this.viewCtx, { topview: this.$store.getters.getView(this.context.srfsessionid) }); } else { // 顶层视图 this.$store.commit('addView', { tag: this.context.srfsessionid, param: this }); Object.assign(this.viewCtx, { topview: this }); } } /** * 销毁之前 * * @memberof IBIZCustomerUsr3EditViewBase */ public beforeDestroy() { this.$store.commit('viewaction/removeView', this.viewtag); let _this: any = this if (_this.serviceStateEvent) { _this.serviceStateEvent.unsubscribe(); } if (_this.portletStateEvent) { _this.portletStateEvent.unsubscribe(); } if (_this.formDruipartEvent) { _this.formDruipartEvent.unsubscribe(); } if (_this.engine) { _this.engine.destroy(); } if (_this.panelStateEvent) { _this.panelStateEvent.unsubscribe(); } } /** * Vue声明周期(组件初始化完毕) * * @memberof IBIZCustomerUsr3EditViewBase */ public mounted() { this.afterMounted(); } /** * 执行mounted后的逻辑 * * @memberof IBIZCustomerUsr3EditViewBase */ public afterMounted(){ const _this: any = this; _this.initLayout().then((result: any) => { _this.isLayoutLoadding = false; _this.engineInit(); if (_this.loadModel && _this.loadModel instanceof Function) { _this.loadModel(); } }) } /** * form 部件 load 事件 * * @param {*} [args={}] * @param {*} $event * @memberof IBIZCustomerUsr3EditViewBase */ public form_load($event: any, $event2?: any) { this.engine.onCtrlEvent('form', 'load', $event); } /** * form 部件 save 事件 * * @param {*} [args={}] * @param {*} $event * @memberof IBIZCustomerUsr3EditViewBase */ public form_save($event: any, $event2?: any) { this.engine.onCtrlEvent('form', 'save', $event); } /** * form 部件 remove 事件 * * @param {*} [args={}] * @param {*} $event * @memberof IBIZCustomerUsr3EditViewBase */ public form_remove($event: any, $event2?: any) { this.engine.onCtrlEvent('form', 'remove', $event); } /** * toolbar 部件 click 事件 * * @param {*} [args={}] * @param {*} $event * @memberof IBIZCustomerUsr3EditViewBase */ public toolbar_click($event: any, $event2?: any) { if (Object.is($event.tag, 'deuiaction1')) { this.toolbar_deuiaction1_click(null, '', $event2); } if (Object.is($event.tag, 'tbitem3')) { this.toolbar_tbitem3_click(null, '', $event2); } if (Object.is($event.tag, 'tbitem5')) { this.toolbar_tbitem5_click(null, '', $event2); } if (Object.is($event.tag, 'tbitem9')) { this.toolbar_tbitem9_click(null, '', $event2); } if (Object.is($event.tag, 'tbitem15')) { this.toolbar_tbitem15_click(null, '', $event2); } } /** * 逻辑事件 * * @param {*} [params={}] * @param {*} [tag] * @param {*} [$event] * @memberof */ public toolbar_deuiaction1_click(params: any = {}, tag?: any, $event?: any) { // 参数 // 取数 let datas: any[] = []; let xData: any = null; // _this 指向容器对象 const _this: any = this; let paramJO:any = {}; let contextJO:any = {}; xData = this.$refs.form; if (xData.getDatas && xData.getDatas instanceof Function) { datas = [...xData.getDatas()]; } if(params){ datas = [params]; } // 界面行为 this.New(datas, contextJO,paramJO, $event, xData,this,"IBIZCustomer"); } /** * 逻辑事件 * * @param {*} [params={}] * @param {*} [tag] * @param {*} [$event] * @memberof */ public toolbar_tbitem3_click(params: any = {}, tag?: any, $event?: any) { // 参数 // 取数 let datas: any[] = []; let xData: any = null; // _this 指向容器对象 const _this: any = this; let paramJO:any = {}; let contextJO:any = {}; xData = this.$refs.form; if (xData.getDatas && xData.getDatas instanceof Function) { datas = [...xData.getDatas()]; } if(params){ datas = [params]; } // 界面行为 this.Save(datas, contextJO,paramJO, $event, xData,this,"IBIZCustomer"); } /** * 逻辑事件 * * @param {*} [params={}] * @param {*} [tag] * @param {*} [$event] * @memberof */ public toolbar_tbitem5_click(params: any = {}, tag?: any, $event?: any) { // 参数 // 取数 let datas: any[] = []; let xData: any = null; // _this 指向容器对象 const _this: any = this; let paramJO:any = {}; let contextJO:any = {}; xData = this.$refs.form; if (xData.getDatas && xData.getDatas instanceof Function) { datas = [...xData.getDatas()]; } if(params){ datas = [params]; } // 界面行为 this.SaveAndExit(datas, contextJO,paramJO, $event, xData,this,"IBIZCustomer"); } /** * 逻辑事件 * * @param {*} [params={}] * @param {*} [tag] * @param {*} [$event] * @memberof */ public toolbar_tbitem9_click(params: any = {}, tag?: any, $event?: any) { // 参数 // 取数 let datas: any[] = []; let xData: any = null; // _this 指向容器对象 const _this: any = this; let paramJO:any = {}; let contextJO:any = {}; xData = this.$refs.form; if (xData.getDatas && xData.getDatas instanceof Function) { datas = [...xData.getDatas()]; } if(params){ datas = [params]; } // 界面行为 this.SaveAndStart(datas, contextJO,paramJO, $event, xData,this,"IBIZCustomer"); } /** * 逻辑事件 * * @param {*} [params={}] * @param {*} [tag] * @param {*} [$event] * @memberof */ public toolbar_tbitem15_click(params: any = {}, tag?: any, $event?: any) { // 参数 // 取数 let datas: any[] = []; let xData: any = null; // _this 指向容器对象 const _this: any = this; let paramJO:any = {}; let contextJO:any = {}; xData = this.$refs.form; if (xData.getDatas && xData.getDatas instanceof Function) { datas = [...xData.getDatas()]; } if(params){ datas = [params]; } // 界面行为 this.Print(datas, contextJO,paramJO, $event, xData,this,"IBIZCustomer"); } /** * 新建 * * @param {any[]} args 当前数据 * @param {any} contextJO 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @memberof IBIZCustomerUsr3EditViewBase */ public New(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { const _this: any = this; if (_this.newdata && _this.newdata instanceof Function) { const data: any = {}; _this.newdata([{ ...data }],[{ ...data }], params, $event, xData); } else { _this.$Notice.error({ title: '错误', desc: 'newdata 视图处理逻辑不存在,请添加!' }); } } /** * 保存 * * @param {any[]} args 当前数据 * @param {any} contextJO 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @memberof IBIZCustomerUsr3EditViewBase */ public Save(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { // 界面行为容器对象 _this const _this: any = this; if (xData && xData.save instanceof Function) { xData.save().then((response: any) => { if (!response || response.status !== 200) { return; } _this.$emit('viewdataschange', [{ ...response.data }]); }); } else if (_this.save && _this.save instanceof Function) { _this.save(); } } /** * 保存并关闭 * * @param {any[]} args 当前数据 * @param {any} contextJO 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @memberof IBIZCustomerUsr3EditViewBase */ public SaveAndExit(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { const _this: any = this; if (xData && xData.saveAndExit instanceof Function) { xData.saveAndExit().then((response: any) => { if (!response || response.status !== 200) { return; } if(window.parent){ window.parent.postMessage([{ ...response.data }],'*'); } }); } else if (_this.saveAndExit && _this.saveAndExit instanceof Function) { _this.saveAndExit().then((response: any) => { if (!response || response.status !== 200) { return; } if(window.parent){ window.parent.postMessage([{ ...response.data }],'*'); } }); } } /** * 开始流程 * * @param {any[]} args 当前数据 * @param {any} contextJO 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @memberof IBIZCustomerUsr3EditViewBase */ public SaveAndStart(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { const that: any = this; if (!xData || !(xData.wfstart instanceof Function)) { return; } let validateStatus: boolean = true; if (xData.formValidateStatus && xData.formValidateStatus instanceof Function) { validateStatus = xData.formValidateStatus(); } if (!validateStatus) { return; } const startWorkFlow: Function = (param: any, localdata: any) => { xData.wfstart(param).then((response: any) => { if (!response || response.status !== 200) { return; } const { data: _data } = response; that.closeView(_data); }); } const openStartView: Function = async (item: any, localdata: any) => { if (item['modelversion']) { const targetView: any = that.viewRefData ? that.viewRefData[`WFSTART@${item['modelversion']}`] : null; if (targetView) { const tempContext = Util.deepCopy(that.context); const tempViewParams = { actionView: `WFSTART@${item['modelversion']}`, actionForm: item['process-form'] }; const container: Subject<any> = that.$appmodal.openModal({viewname: targetView.viewname, title: (this.$t(targetView.title) as string), height: targetView.height, width: targetView.width}, tempContext, tempViewParams); container.subscribe((result: any) => { if (!result || !Object.is(result.ret, 'OK')) { return; } const tempSubmitData: any = Util.deepCopy(args[0]); if (result.datas && result.datas[0]) { const resultData: any = result.datas[0]; if (Object.keys(resultData).length > 0) { let tempData: any = {}; Object.keys(resultData).forEach((key: any) => { if (resultData[key] || (resultData[key] === 0) || (resultData[key] === false)) { tempData[key] = resultData[key]; } }) Object.assign(tempSubmitData, tempData); } } startWorkFlow([tempSubmitData], localdata); }) } else { startWorkFlow(args, localdata); } } else { startWorkFlow(args, localdata); } } let localData: any; const localContext = Util.deepCopy(that.context); const requestResult: Promise<any> = that.appEntityService.getStandWorkflow(localContext); requestResult.then((response: any) => { const { data: targetData, status } = response; if (status !== 200 || targetData.length === 0) { return; } if (targetData && targetData.length > 1) { const h = that.$createElement; targetData.forEach((element: any) => { Object.assign(element, { value: element.definitionkey, label: element.definitionname }); }) that.$msgbox({ title: '请选择流程版本', message: h('i-select', { key: Util.createUUID(), props: { value: localData, placeholder: "请选择流程版本...", transfer: true, transferClassName: "start-workflow-select-wraper" }, on: { 'on-change': ($event: any) => { localData = { processDefinitionKey: $event }; } } }, targetData.map((item: any) => { return h('i-option', { key: item.value, props: { value: item.value, label: item.label } }) })), showCancelButton: true, confirmButtonText: '确定', cancelButtonText: '取消' }).then((action: string) => { if (Object.is(action, 'confirm') && localData && Object.keys(localData).length > 0) { let targetItem: any = targetData.find((item: any) => { return item.definitionkey === localData.processDefinitionKey; }) openStartView(targetItem, localData); } }) } else { localData = { processDefinitionKey: targetData[0]['definitionkey'] }; openStartView(targetData[0], localData); } }) } /** * 打印 * * @param {any[]} args 当前数据 * @param {any} contextJO 行为附加上下文 * @param {*} [params] 附加参数 * @param {*} [$event] 事件源 * @param {*} [xData] 执行行为所需当前部件 * @param {*} [actionContext] 执行行为上下文 * @memberof IBIZCustomerUsr3EditViewBase */ public Print(args: any[],contextJO?:any, params?: any, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) { let _this:any = this; if (!xData || !(xData.print instanceof Function) || !$event) { return ; } xData.print(); } /** * 关闭视图 * * @param {any[]} args * @memberof IBIZCustomerUsr3EditViewBase */ public closeView(args: any[]): void { let _view: any = this; if (_view.viewdata) { _view.$emit('viewdataschange', Array.isArray(args)?args:[args]); _view.$emit('close', Array.isArray(args)?args:[args]); } else if (_view.$tabPageExp) { _view.$tabPageExp.onClose(_view.$route.fullPath); }else{ _view.$router.back(); } } /** * 销毁视图回调 * * @memberof IBIZCustomerUsr3EditViewBase */ public destroyed(){ this.afterDestroyed(); } /** * 执行destroyed后的逻辑 * * @memberof IBIZCustomerUsr3EditViewBase */ public afterDestroyed(){ if (this.viewDefaultUsage) { let localStoreLength = Object.keys(localStorage); if(localStoreLength.length > 0){ localStoreLength.forEach((item:string) =>{ if(item.startsWith(this.context.srfsessionid)){ localStorage.removeItem(item); } }) } if(Object.is(this.navModel,"tab")){ this.navDataService.removeNavDataByTag(this.viewtag); } } // 销毁计数器定时器 if(this.counterServiceArray && this.counterServiceArray.length >0){ this.counterServiceArray.forEach((item:any) =>{ if(item.destroyCounter && item.destroyCounter instanceof Function){ item.destroyCounter(); } }) } } /** * meditview9状态下发变量 * * @memberof IBIZCustomerUsr3EditViewBase */ @Prop() public panelState?: Subject<ViewState>; /** * meditview9状态事件 * * @public * @type {(Subscription | undefined)} * @memberof IBIZCustomerUsr3EditViewBase */ public panelStateEvent: Subscription | undefined; /** * 视图引用数据 * * @memberof IBIZCustomerUsr3EditViewBase */ public viewRefData:any = { }; } </script> <style lang='scss'> @import './ibizcustomer-usr3-edit-view.scss'; </style>