Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
a90e910d
提交
a90e910d
编写于
1月 20, 2022
作者:
WodahsOrez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 界面行为新建和编辑
上级
3749de6a
变更
10
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
123 行增加
和
25 行删除
+123
-25
checkbox-list.hbs
...urces/templ/r7/@macro/front-end/editors/checkbox-list.hbs
+0
-1
view-base-config.hbs
...rces/templ/r7/@macro/front-end/views/view-base-config.hbs
+35
-13
i-view-logics.ts
...7/app_{{apps}}/src/core/interface/common/i-view-logics.ts
+61
-0
index.ts
.../templ/r7/app_{{apps}}/src/core/interface/common/index.ts
+2
-1
app-sys-action.ts
...p_{{apps}}/src/core/logic/app-ui-action/app-sys-action.ts
+4
-4
main-view-state.ts
...pps}}/src/core/modules/views/main-view/main-view-state.ts
+9
-1
view-util.ts
...rces/templ/r7/app_{{apps}}/src/core/utils/ui/view-util.ts
+5
-4
{{ctrls@FORM}}-form-state.ts.hbs
...es}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form-state.ts.hbs
+2
-0
{{ctrls@QUICKSEARCHFORM}}-quick-search-form-state.ts.hbs
.../{{ctrls@QUICKSEARCHFORM}}-quick-search-form-state.ts.hbs
+3
-1
{{ctrls@SEARCHFORM}}-search-form-state.ts.hbs
...search-form/{{ctrls@SEARCHFORM}}-search-form-state.ts.hbs
+2
-0
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/checkbox-list.hbs
浏览文件 @
a90e910d
...
...
@@ -4,7 +4,6 @@
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
{{/
eq
}}
{{
capFirst
"dddd"
}}
{{#if
item
.
psEditor
.
isReadOnly
}}
:readonly=
"
{{
item
.
psEditor
.
isReadOnly
}}
"
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/views/view-base-config.hbs
浏览文件 @
a90e910d
{{>
@macro
/
front-end
/
views
/
include-view-control
}}
{{!-- 视图基本信息 --}}
viewCodeName: '
{{
page
.
codeName
}}
',
viewName: '
{{
page
.
name
}}
',
viewCaption: '
{{
page
.
caption
}}
',
subCaption: '
{{
page
.
subCaption
}}
',
viewSysCss: '
{{
page
.
psSysCss
.
cssName
}}
',
{{!-- viewSysImage: '{{page.psSysImage}}', --}}
showCaptionBar:
{{
page
.
showCaptionBar
}}
,
viewType: '
{{
page
.
viewType
}}
',
viewStyle: '
{{
page
.
viewStyle
}}
',
xDataControlName:'
{{
page
.
xDataControlName
}}
',
height: '
{{
page
.
height
}}
',
width: '
{{
page
.
width
}}
',
appEntityName: '
{{
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
}}
,
appViewNavParams:
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
page
.
getPSAppViewNavParams
}}
,
{{!-- 快速分组代码表 --}}
enableQuickGroup:
{{#if
page
.
enableQuickGroup
}}
true
{{else}}
false
{{/if}}
,
{{#if
page
.
quickGroupPSCodeList
}}
quickGroupPSCodeList: {
...
...
@@ -20,21 +34,29 @@
{{#
eq
page
.
viewType
'APPINDEXVIEW'
}}
menuAlign: '
{{#if
page
.
mainMenuAlign
}}{{
page
.
mainMenuAlign
}}{{else}}
LEFT
{{/if}}
',
{{/
eq
}}
appEntityName: '
{{
page
.
appEntity
.
codeName
}}
',
isLoadDefault:
{{#if
(
or
page
.
loadDefault
(
eq
page
.
loadDefault
false
))
}}{{
page
.
loadDefault
}}{{else}}
true
{{/if}}
,
keyPSDEField: '
{{
lowerCase
page
.
appEntity
.
codeName
}}
',
{{!-- viewMsgGroup: '{{page.psAppViewMsgGroup}}', --}}
{{!-- viewUIActions: '{{page.psAppViewUIActions}}', --}}
viewSysCss: '
{{
page
.
psSysCss
.
cssName
}}
',
{{!-- viewSysImage: '{{page.psSysImage}}', --}}
subCaption: '
{{
page
.
subCaption
}}
',
viewType: '
{{
page
.
viewType
}}
',
viewStyle: '
{{
page
.
viewStyle
}}
',
showCaptionBar:
{{
page
.
showCaptionBar
}}
,
xDataControlName:'
{{
page
.
xDataControlName
}}
',
openDataViewName: 'ExampleEditorEditView',
appViewNavContexts:
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
page
.
psAppViewNavContexts
}}
,
appViewNavParams:
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
page
.
getPSAppViewNavParams
}}
,
{{!-- 视图逻辑 --}}
viewLogics: {
{{#
each
page
.
psAppViewLogics
as
|
viewLogic
|
}}
{{#if
(
eq
viewLogic
.
name
'newdata'
)
}}
newData:{
{{#if
viewLogic
.
psAppUILogic
.
newDataPSAppView
.
openMode
}}
openMode: '
{{
viewLogic
.
psAppUILogic
.
newDataPSAppView
.
openMode
}}
'
{{/if}}
newDataViewName: '
{{
viewLogic
.
psAppUILogic
.
newDataPSAppView
.
refPSAppView
.
codeName
}}
',
},
{{/if}}
{{#if
(
eq
viewLogic
.
name
'opendata'
)
}}
openData:{
{{#if
viewLogic
.
psAppUILogic
.
newDataPSAppView
.
openMode
}}
openMode: '
{{
viewLogic
.
psAppUILogic
.
newDataPSAppView
.
openMode
}}
'
{{/if}}
openDataViewName: '
{{
viewLogic
.
psAppUILogic
.
openDataPSAppView
.
refPSAppView
.
codeName
}}
',
},
{{/if}}
{{/
each
}}
},
toolbar: [
{{#
page
.
viewToolBarItems
}}
{{#
items
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/interface/common/i-view-logics.ts
0 → 100644
浏览文件 @
a90e910d
/**
* 新建数据视图 视图逻辑配置信息
*
* @export
* @interface IViewLogics
*/
export
interface
INewDataViewLogics
{
/**
* 打开方式
*
* @type {string}
* @memberof ViewDetail
*/
openMode
?:
'INDEXViewDetailTAB'
|
'POPUPAPP'
|
'POPUPMODAL'
|
'DRAWER'
|
'POPOVER'
|
string
;
/**
* 新建数据视图名称
*
*/
newDataViewName
?:
string
;
}
/**
* 编辑数据视图 视图逻辑配置信息
*
* @export
* @interface IViewLogics
*/
export
interface
IOpenDataViewLogics
{
/**
* 打开方式
*
* @type {string}
* @memberof ViewDetail
*/
openMode
?:
'INDEXViewDetailTAB'
|
'POPUPAPP'
|
'POPUPMODAL'
|
'DRAWER'
|
'POPOVER'
|
string
;
/**
* 新建数据视图名称
*
*/
openDataViewName
?:
string
;
}
/**
* 视图逻辑配置信息
*
* @export
* @interface IViewLogics
*/
export
interface
IViewLogics
{
/**
* 新建数据视图 视图逻辑配置信息
*/
newData
?:
INewDataViewLogics
;
/**
* 编辑数据视图 视图逻辑配置信息
*/
openData
?:
IOpenDataViewLogics
;
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/interface/common/index.ts
浏览文件 @
a90e910d
...
...
@@ -2,4 +2,5 @@ export * from './i-context';
export
*
from
'./i-param'
;
export
*
from
'./i-action-param'
;
export
*
from
'./i-control-action'
;
export
*
from
'./i-view-detail'
;
\ No newline at end of file
export
*
from
'./i-view-detail'
;
export
*
from
'./i-view-logics'
;
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/logic/app-ui-action/app-sys-action.ts
浏览文件 @
a90e910d
...
...
@@ -39,10 +39,10 @@ export class AppSysAction {
*/
public
static
Edit
(
params
:
{
context
:
IContext
,
viewParams
:
IParam
,
data
:
IParam
,
event
:
MouseEvent
,
actionEnvironment
:
IParam
})
{
const
{
actionEnvironment
}
=
params
if
(
!
actionEnvironment
?.
viewState
?.
edit
DataViewName
)
{
if
(
!
actionEnvironment
?.
state
?.
viewLogics
?.
openData
?.
open
DataViewName
)
{
return
;
}
const
viewName
=
actionEnvironment
?.
viewState
?.
edit
DataViewName
;
const
viewName
=
actionEnvironment
?.
state
.
viewLogics
.
openData
.
open
DataViewName
;
const
view
=
App
.
getViewInfo
(
viewName
);
if
(
!
view
)
{
return
;
...
...
@@ -59,10 +59,10 @@ export class AppSysAction {
*/
public
static
New
(
params
:
{
context
:
IContext
,
viewParams
:
IParam
,
data
:
IParam
,
event
:
MouseEvent
,
actionEnvironment
:
IParam
})
{
const
{
actionEnvironment
}
=
params
if
(
!
actionEnvironment
?.
viewState
?.
open
DataViewName
)
{
if
(
!
actionEnvironment
?.
state
?.
viewLogics
?.
newData
?.
new
DataViewName
)
{
return
;
}
const
viewName
=
actionEnvironment
?.
viewState
?.
open
DataViewName
;
const
viewName
=
actionEnvironment
?.
state
.
viewLogics
.
newData
.
new
DataViewName
;
const
view
=
App
.
getViewInfo
(
viewName
);
if
(
!
view
)
{
return
;
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/main-view/main-view-state.ts
浏览文件 @
a90e910d
import
{
ControlAction
,
ViewStateBase
}
from
'@core'
;
import
{
ControlAction
,
IViewLogics
,
ViewStateBase
}
from
'@core'
;
/**
* @description 实体部件状态
...
...
@@ -22,4 +22,12 @@ export interface MainViewState extends ViewStateBase {
* @memberof MainViewState
*/
appEntityName
:
string
;
/**
* 视图逻辑配置
*
* @type {*}
* @memberof MainViewState
*/
viewLogics
:
IViewLogics
;
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/utils/ui/view-util.ts
浏览文件 @
a90e910d
...
...
@@ -3,7 +3,7 @@ import { IContext, IParam, ViewDetail } from "@core";
export
class
ViewUtil
{
/**
* 打开
新建
数据视图
* 打开
编辑
数据视图
*
* @param {any[]} args 数据参数
* @param {*} actionEnvironment 视图容器对象
...
...
@@ -71,7 +71,7 @@ export class ViewUtil {
context
:
context
,
viewParams
:
viewParams
})
subject
?.
subscribe
((
result
)
=>
{
subject
?.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
...
...
@@ -82,7 +82,8 @@ export class ViewUtil {
/**
*
* 打开编辑视图逻辑
* 打开的视图正常关闭后会刷新当前视图
*
* @static
* @param {ViewDetail} view
...
...
@@ -105,7 +106,7 @@ export class ViewUtil {
context
:
context
,
viewParams
:
viewParams
});
subject
?.
subscribe
((
result
)
=>
{
subject
?.
subscribe
((
result
:
any
)
=>
{
if
(
!
result
||
!
Object
.
is
(
result
.
ret
,
'OK'
))
{
return
;
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form-state.ts.hbs
浏览文件 @
a90e910d
...
...
@@ -62,9 +62,11 @@ export const ctrlState = {
{{/
each
}}
enableAutoSave:
{{
ctrl
.
enableAutoSave
}}
,
detailsModel: {
{{#if
ctrl
.
psDEFormPages
}}
{{#
each
ctrl
.
psDEFormPages
as
|
FormPage
|
}}
{{>
(
lookup
'FORMDETAILSMODEL'
)
formDetail
=
FormPage
}}
{{/
each
}}
{{/if}}
},
actionModel: {
{{#
each
ctrl
.
psDEFormPages
as
|
FormPage
|
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@QUICKSEARCHFORM}}-quick-search-form/{{ctrls@QUICKSEARCHFORM}}-quick-search-form-state.ts.hbs
浏览文件 @
a90e910d
...
...
@@ -58,9 +58,11 @@ export const ctrlState = {
selectHistoryItem: {},
historyItems: [],
detailsModel: {
{{#if
ctrl
.
psDEFormPages
}}
{{#
each
ctrl
.
psDEFormPages
as
|
FormPage
|
}}
{{>
(
lookup
'FORMDETAILSMODEL'
)
items
=
FormPage
.
psDEFormDetails
}}
{{>
(
lookup
'FORMDETAILSMODEL'
)
formDetail
=
FormPage
}}
{{/
each
}}
{{/if}}
},
rules: {
{{#
each
ctrl
.
psDEFormEditItemVRs
as
|
ruleItem
|
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM}}-search-form/{{ctrls@SEARCHFORM}}-search-form-state.ts.hbs
浏览文件 @
a90e910d
...
...
@@ -58,9 +58,11 @@ export const ctrlState = {
selectHistoryItem: {},
historyItems: [],
detailsModel: {
{{#if
ctrl
.
psDEFormPages
}}
{{#
each
ctrl
.
psDEFormPages
as
|
FormPage
|
}}
{{>
(
lookup
'FORMDETAILSMODEL'
)
formDetail
=
FormPage
}}
{{/
each
}}
{{/if}}
},
rules: {
{{#
each
ctrl
.
psDEFormEditItemVRs
as
|
ruleItem
|
}}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录