提交 1cb59d67 编写于 作者: LUCIFER-ZHU's avatar LUCIFER-ZHU

update:统一实体名称

上级 f235a4be
......@@ -12,7 +12,7 @@
xDataControlName:'{{page.xDataControlName}}',
height: '{{page.height}}',
width: '{{page.width}}',
appEntityName: '{{page.appEntity.codeName}}',
appEntityCodeName: '{{page.appEntity.codeName}}',
keyPSDEField: '{{lowerCase page.appEntity.codeName}}',
isLoadDefault: {{#if (or page.loadDefault (eq page.loadDefault false))}}{{page.loadDefault}}{{else}}true{{/if}},
appViewNavContexts:{{> @macro/front-end/common/navparam.hbs appNavParams=page.psAppViewNavContexts}},
......
......@@ -5,7 +5,7 @@ export const AppViewConfig:IParam = {
"{{appView.codeName}}":{
"name": "{{appView.name}}",
"codeName": "{{appView.codeName}}",
"appEntityName":"{{appView.appEntity.codeName}}",
"appEntityCodeName":"{{appView.appEntity.codeName}}",
"openMode": "{{#if appView.openMode}}{{appView.openMode}}{{else}}INDEXVIEWTAB{{/if}}",
"redirectView": {{appView.redirectView}},
"deResPaths": [
......
......@@ -60,7 +60,7 @@ export class AppActionBase {
* @memberof AppActionBase
*/
public static async getUIService(actionEnvironment: IParam) {
const entityName = actionEnvironment?.state?.appEntityName;
const entityName = actionEnvironment?.state?.appEntityCodeName;
if (!entityName) {
console.log("实体名称不存在");
return;
......
......@@ -18,7 +18,7 @@ export class AppBackendAction extends AppActionBase {
try {
const { actionEnvironment } = params;
const { context } = actionParams;
const entityName = actionEnvironment?.state?.appEntityName;
const entityName = actionEnvironment?.state?.appEntityCodeName;
if (!entityName) {
console.log("实体名称不存在");
return { ok: false, result: null };
......
......@@ -21,7 +21,7 @@ export interface MainViewState extends ViewStateBase {
* @type {string}
* @memberof MainViewState
*/
appEntityName: string;
appEntityCodeName: string;
/**
* 视图逻辑配置
......
......@@ -189,9 +189,9 @@ export class ViewBase {
* @memberof ViewBase
*/
public useUIService() {
const { appEntityName, context } = this.state;
if (appEntityName) {
App.getUIService(appEntityName.toLowerCase(), context).then((service: IParam) => {
const { appEntityCodeName, context } = this.state;
if (appEntityCodeName) {
App.getUIService(appEntityCodeName.toLowerCase(), context).then((service: IParam) => {
this.appUIService = service;
})
}
......@@ -203,9 +203,9 @@ export class ViewBase {
* @memberof ViewBase
*/
public useDataService() {
const { appEntityName, context } = this.state;
if (appEntityName) {
App.getDataService(appEntityName.toLowerCase(), context).then((service: IParam) => {
const { appEntityCodeName, context } = this.state;
if (appEntityCodeName) {
App.getDataService(appEntityCodeName.toLowerCase(), context).then((service: IParam) => {
this.appDataService = service;
})
}
......
......@@ -373,7 +373,7 @@ export class TreeService<T extends ControlVOBase> extends ControlServiceBase<T>
Object.assign(treeNode, { nodeid: treeNode.srfkey });
Object.assign(treeNode, { nodeid2: filter.strRealNodeId });
Object.assign(treeNode, { nodeType: node.nodeType, appEntityName: deCodeName });
Object.assign(treeNode, { nodeType: node.nodeType, appEntityCodeName: deCodeName });
list.push(treeNode);
resolve(list);
bFirst = false;
......
......@@ -14,7 +14,6 @@ export const ctrlState = {
{{/if}}
{{#if ctrl.psAppDataEntity}}
// 实体名称
appEntityName: '{{ctrl.psAppDataEntity.codeName}}',
appEntityCodeName: '{{ctrl.psAppDataEntity.codeName}}',
{{/if}}
{{#if ctrl.psUIActionGroup.psUIActionGroupDetails}}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册