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

update:统一实体名称

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