<#assign self_content> /** * 加载模型 * * @memberof ${srfclassname('${view.name}')}Base */ public loadModel(){ <#assign appDataEntity = view.getPSAppDataEntity() /> if(this.context.${appDataEntity.getCodeName()?lower_case}){ this.appEntityService.getDataInfo(JSON.parse(JSON.stringify(this.context)),{},false).then((response:any) =>{ if (!response || response.status !== 200) { return; } const { data: _data } = response; this.engine.computeToolbarState(false,_data); this.viewState.next({ tag: 'tabexppanel', action: 'loadmodel', data: _data}); if (_data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case}) { Object.assign(this.model, { dataInfo: _data.${appDataEntity.getMajorPSAppDEField().getCodeName()?lower_case} }); if(this.$tabPageExp){ let _this:any = this; this.$tabPageExp.setCurPageCaption(_this.$t(this.model.srfCaption), this.model.srfCaption, _this.model.dataInfo); } if(this.$route && this.$route.meta){ this.$route.meta.info = this.model.dataInfo; } <#noparse>Object.assign(this.model, { srfCaption: `${this.$t(this.model.srfCaption)} - ${this.$t(this.model.dataInfo)}` });</#noparse> } }) } } </#assign> <#ibizinclude> ../@MACRO/LAYOUTPANEL_VIEW.template.ftl </#ibizinclude> <#ibizinclude> ../@MACRO/VIEW_HEADER-BASE.vue.ftl </#ibizinclude> <#ibizinclude> ../@MACRO/VIEW_CONTENT-BASE.vue.ftl </#ibizinclude> <#ibizinclude> ../@MACRO/VIEW_BOTTOM-BASE.vue.ftl </#ibizinclude> <#ibizinclude> ../@MACRO/VIEW-BASE.style.ftl </#ibizinclude>