Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
1cb59d67
提交
1cb59d67
编写于
1月 27, 2022
作者:
LUCIFER-ZHU
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:统一实体名称
上级
f235a4be
变更
8
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
12 行增加
和
13 行删除
+12
-13
view-base-config.hbs
...rces/templ/r7/@macro/front-end/views/view-base-config.hbs
+1
-1
app-view-config.ts.hbs
...mpl/r7/app_{{apps}}/src/app/config/app-view-config.ts.hbs
+1
-1
app-action-base.ts
..._{{apps}}/src/core/logic/app-ui-action/app-action-base.ts
+1
-1
app-backend-action.ts
...apps}}/src/core/logic/app-ui-action/app-backend-action.ts
+1
-1
main-view-state.ts
...pps}}/src/core/modules/views/main-view/main-view-state.ts
+1
-1
view-base.ts
...pp_{{apps}}/src/core/modules/views/view-base/view-base.ts
+6
-6
tree-service.ts
...{{apps}}/src/core/service/control-service/tree-service.ts
+1
-1
{{ctrls@PORTLET}}-portlet-state.ts.hbs
...@PORTLET}}-portlet/{{ctrls@PORTLET}}-portlet-state.ts.hbs
+0
-1
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/views/view-base-config.hbs
浏览文件 @
1cb59d67
...
...
@@ -12,7 +12,7 @@
xDataControlName:'
{{
page
.
xDataControlName
}}
',
height: '
{{
page
.
height
}}
',
width: '
{{
page
.
width
}}
',
appEntityName: '
{{
page
.
appEntity
.
codeName
}}
',
appEntity
Code
Name: '
{{
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
}}
,
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/app/config/app-view-config.ts.hbs
浏览文件 @
1cb59d67
...
...
@@ -5,7 +5,7 @@ export const AppViewConfig:IParam = {
"
{{
appView
.
codeName
}}
":{
"name": "
{{
appView
.
name
}}
",
"codeName": "
{{
appView
.
codeName
}}
",
"appEntityName":"
{{
appView
.
appEntity
.
codeName
}}
",
"appEntity
Code
Name":"
{{
appView
.
appEntity
.
codeName
}}
",
"openMode": "
{{#if
appView
.
openMode
}}{{
appView
.
openMode
}}{{else}}
INDEXVIEWTAB
{{/if}}
",
"redirectView":
{{
appView
.
redirectView
}}
,
"deResPaths": [
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/logic/app-ui-action/app-action-base.ts
浏览文件 @
1cb59d67
...
...
@@ -60,7 +60,7 @@ export class AppActionBase {
* @memberof AppActionBase
*/
public
static
async
getUIService
(
actionEnvironment
:
IParam
)
{
const
entityName
=
actionEnvironment
?.
state
?.
appEntityName
;
const
entityName
=
actionEnvironment
?.
state
?.
appEntity
Code
Name
;
if
(
!
entityName
)
{
console
.
log
(
"实体名称不存在"
);
return
;
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/logic/app-ui-action/app-backend-action.ts
浏览文件 @
1cb59d67
...
...
@@ -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
?.
appEntity
Code
Name
;
if
(
!
entityName
)
{
console
.
log
(
"实体名称不存在"
);
return
{
ok
:
false
,
result
:
null
};
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/main-view/main-view-state.ts
浏览文件 @
1cb59d67
...
...
@@ -21,7 +21,7 @@ export interface MainViewState extends ViewStateBase {
* @type {string}
* @memberof MainViewState
*/
appEntityName
:
string
;
appEntity
Code
Name
:
string
;
/**
* 视图逻辑配置
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/view-base/view-base.ts
浏览文件 @
1cb59d67
...
...
@@ -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
{
appEntity
Code
Name
,
context
}
=
this
.
state
;
if
(
appEntity
Code
Name
)
{
App
.
getUIService
(
appEntity
Code
Name
.
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
{
appEntity
Code
Name
,
context
}
=
this
.
state
;
if
(
appEntity
Code
Name
)
{
App
.
getDataService
(
appEntity
Code
Name
.
toLowerCase
(),
context
).
then
((
service
:
IParam
)
=>
{
this
.
appDataService
=
service
;
})
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/service/control-service/tree-service.ts
浏览文件 @
1cb59d67
...
...
@@ -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
,
appEntity
Code
Name
:
deCodeName
});
list
.
push
(
treeNode
);
resolve
(
list
);
bFirst
=
false
;
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PORTLET}}-portlet/{{ctrls@PORTLET}}-portlet-state.ts.hbs
浏览文件 @
1cb59d67
...
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录