Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
5cc87f7e
提交
5cc87f7e
编写于
12月 30, 2021
作者:
Shine-zwj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
上级
3156441a
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
89 行增加
和
80 行删除
+89
-80
controlAction.hbs
...s/templ/r7/@macro/front-end/view/common/controlAction.hbs
+5
-9
viewBaseConfig.hbs
.../templ/r7/@macro/front-end/view/common/viewBaseConfig.hbs
+10
-0
grid-column.hbs
...ain/resources/templ/r7/@macro/grid-detail/grid-column.hbs
+3
-4
view-state-base.ts
.../src/ibiz-core/modules/views/view-base/view-state-base.ts
+7
-0
grid-control-state.ts
...z-core/modules/widgets/grid-control/grid-control-state.ts
+1
-1
grid-control.ts
...rc/ibiz-core/modules/widgets/grid-control/grid-control.ts
+6
-6
{{pages@DEEDITVIEW}}-config.ts.hbs
...}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}-config.ts.hbs
+5
-13
{{pages@DEEDITVIEW}}.vue.hbs
...dules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
+18
-18
{{pages@DEGRIDVIEW}}-config.ts.hbs
...}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}-config.ts.hbs
+6
-4
{{pages@DEGRIDVIEW}}.vue.hbs
...dules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
+21
-15
{{ctrls@GRID}}-grid-config.ts.hbs
...s}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid-config.ts.hbs
+7
-10
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/view/common/controlAction.hbs
浏览文件 @
5cc87f7e
controlsAction:{
{{#
each
page
.
ctrls
as
|
ctrl
|
}}
{{
ctrl
.
codeName
}}
:{
loadAction: '
{{
ctrl
.
getPSControlAction
.
psAppDEMethod
.
codeName
}}
',
removeAction: '
{{
ctrl
.
removePSControlAction
.
psAppDEMethod
.
codeName
}}
',
updateAction: '
{{
ctrl
.
updatePSControlAction
.
psAppDEMethod
.
codeName
}}
',
loadDraftAction: '
{{
ctrl
.
getDraftPSControlAction
.
psAppDEMethod
.
codeName
}}
',
createAction: '
{{
ctrl
.
getDraftPSControlAction
.
psAppDEMethod
.
codeName
}}
',
},
{{/
each
}}
loadAction: '
{{
ctrl
.
getPSControlAction
.
psAppDEMethod
.
codeName
}}
',
removeAction: '
{{
ctrl
.
removePSControlAction
.
psAppDEMethod
.
codeName
}}
',
updateAction: '
{{
ctrl
.
updatePSControlAction
.
psAppDEMethod
.
codeName
}}
',
loadDraftAction: '
{{
ctrl
.
getDraftPSControlAction
.
psAppDEMethod
.
codeName
}}
',
createAction: '
{{
ctrl
.
getDraftPSControlAction
.
psAppDEMethod
.
codeName
}}
',
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/view/common/viewBaseConfig.hbs
浏览文件 @
5cc87f7e
...
...
@@ -11,4 +11,14 @@
viewType: '
{{
page
.
viewType
}}
',
viewStyle: '
{{
page
.
viewStyle
}}
',
showCaptionBar: '
{{
page
.
viewStyle
}}
',
viewToolbarModel: [
{{#
page
.
ctrls
}}
{{#
eq
controlType
"TOOLBAR"
}}
{{#
psDEToolbarItems
}}
{ name:'
{{
name
}}
',caption:'
{{
caption
}}
',groupExtractMode:'
{{
groupExtractMode
}}
',itemType:'
{{
itemType
}}
',noPrivDisplayMode:'
{{
noPrivDisplayMode
}}
',showIcon:
{{
showIcon
}}
,showCaption:
{{
showCaption
}}
,tooltip:'
{{
tooltip
}}
' },
{{/
psDEToolbarItems
}}
{{/
eq
}}
{{/
page
.
ctrls
}}
],
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/grid-detail/grid-column.hbs
浏览文件 @
5cc87f7e
...
...
@@ -23,10 +23,9 @@
{{/if}}
{{#if
(
eq
item
.
columnType
'UAGRIDCOLUMN'
)
}}
<ibizToolbar
mode=
"uiAction"
:toolbarModel=
"record.
{{
lowerCase
item
.
codeName
}}
"
:context=
"state.context"
:viewParams=
"state.viewParams"
mode=
"link"
name=
"
{{
lowerCase
item
.
codeName
}}
"
:actionModel=
"record.
{{
lowerCase
item
.
codeName
}}
"
@
toolbarEvent=
"($event) => handleToolbarEvent(record, $event)"
/>
{{/if}}
</div>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/views/view-base/view-state-base.ts
浏览文件 @
5cc87f7e
...
...
@@ -43,6 +43,13 @@ export interface ViewStateBase {
*/
viewSubject
:
Subject
<
IActionParam
>
;
/**
* @description 视图工具栏模型
* @type {IParam[]}
* @memberof ViewStateBase
*/
viewToolbarModel
:
IParam
[];
// 声明任意属性
[
propName
:
string
]:
any
;
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/grid-control/grid-control-state.ts
浏览文件 @
5cc87f7e
...
...
@@ -27,7 +27,7 @@ export interface GridControlState extends MainControlState {
* @type {IParam}
* @memberof GridControlState
*/
UAColumnModel
:
IParam
;
uAColumnModel
:
IParam
[]
;
/**
* @description 值规则
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/grid-control/grid-control.ts
浏览文件 @
5cc87f7e
...
...
@@ -53,10 +53,10 @@ export class GridControl extends MainControl {
* @memberof GridControl
*/
public
getActionAuthState
(
rowData
:
IParam
)
{
const
{
UIService
,
U
AColumnModel
}
=
this
.
controlState
;
let
temp
UAColumn
:
any
=
deepCopy
(
U
AColumnModel
);
calcActionItemAuthState
(
rowData
,
temp
UAColumn
.
items
,
UIService
);
return
temp
UAColumn
;
const
{
UIService
,
u
AColumnModel
}
=
this
.
controlState
;
let
temp
Model
:
any
=
deepCopy
(
u
AColumnModel
);
calcActionItemAuthState
(
rowData
,
temp
Model
,
UIService
);
return
temp
Model
;
}
/**
...
...
@@ -374,7 +374,7 @@ export class GridControl extends MainControl {
// return
// }
const
data
=
[];
for
(
let
i
=
0
;
i
<
10
0
;
i
++
)
{
for
(
let
i
=
0
;
i
<
4
0
;
i
++
)
{
data
.
push
({
group
:
i
%
2
===
1
?
"分组1"
:
"分组2"
,
srfkey
:
i
,
...
...
@@ -389,7 +389,7 @@ export class GridControl extends MainControl {
// dataRef.value = response.data;
if
(
enablePagingBar
)
{
// paginationRef.value['total'] = response.total;
paginationRef
.
value
[
"total"
]
=
10
0
;
paginationRef
.
value
[
"total"
]
=
4
0
;
}
this
.
calcGridAuthState
();
this
.
handleDefaultSelect
();
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}-config.ts.hbs
浏览文件 @
5cc87f7e
export const ViewConfig = {
{{>
@macro
/
front-end
/
view
/
common
/
viewBaseConfig
.
hbs
}}
{{#
page
.
ctrls
}}
{{#
eq
controlType
"TOOLBAR"
}}
{{
lowerCase
codeName
}}
:{
name:'
{{
name
}}
',
items:[
{{#
psDEToolbarItems
}}
{ name:'
{{
name
}}
',caption:'
{{
caption
}}
',groupExtractMode:'
{{
groupExtractMode
}}
',itemType:'
{{
itemType
}}
',noPrivDisplayMode:'
{{
noPrivDisplayMode
}}
',showIcon:
{{
showIcon
}}
,showCaption:
{{
showCaption
}}
,tooltip:'
{{
tooltip
}}
' },
{{/
psDEToolbarItems
}}
]
},
{{/
eq
}}
{{/
page
.
ctrls
}}
{{>
@macro
/
front-end
/
view
/
common
/
controlAction
.
hbs
}}
{{#
each
page
.
ctrls
as
|
ctrl
|
}}
{{#if
(
eq
ctrl
.
controlType
"FORM"
)
}}
{{>
@macro
/
front-end
/
view
/
common
/
controlAction
.
hbs
ctrl
=
ctrl
}}
{{/if}}
{{/
each
}}
};
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
浏览文件 @
5cc87f7e
...
...
@@ -44,26 +44,26 @@ const { state, handleToolbarEvent } = new EditView(ViewConfig).moduleInstall(pro
:text=
"state.viewCaption"
/>
</template>
{{#
page
.
ctrls
}}
{{#
eq
controlType
"TOOLBAR"
}}
<template
v-slot:header-right
>
{{#
page
.
ctrls
}}
{{#
eq
controlType
"TOOLBAR"
}}
<template
v-slot:header-right
>
<IbizToolbar
:toolbarModel=
"state.
{{
lowerCase
codeName
}}
"
@
toolbarEvent=
"handleToolbarEvent
"
:
context=
"state.context
"
:viewParams=
"state.viewParams
"
/>
mode=
"button
"
name=
"
{{
lowerCase
codeName
}}
"
:
actionModel=
"state.viewToolbarModel
"
@
toolbarEvent=
"handleToolbarEvent
"
/>
</template>
{{/
eq
}}
{{#
eq
controlType
"FORM"
}}
<
{{
codeName
}}
Form
:showBusyIndicator=
"true"
:context=
"state.context"
:viewParams=
"state.viewParams"
:controlAction=
"state.controlsAction.
{{
codeName
}}
"
:viewSubject=
"state.viewSubject"
></
{{
codeName
}}
Form>
{{/
eq
}}
{{/
page
.
ctrls
}}
{{/
eq
}}
{{#
eq
controlType
"FORM"
}}
<
{{
codeName
}}
Form
:showBusyIndicator=
"true"
:context=
"state.context"
:viewParams=
"state.viewParams"
:controlAction=
"state.controlsAction.
{{
codeName
}}
"
:viewSubject=
"state.viewSubject"
></
{{
codeName
}}
Form>
{{/
eq
}}
{{/
page
.
ctrls
}}
</IbizDefaultViewLayout>
</template>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}-config.ts.hbs
浏览文件 @
5cc87f7e
export const ViewConfig = {
viewCodeName: '
{{
page
.
codeName
}}
',
viewName: '
{{
page
.
name
}}
',
viewCaption: '
{{
page
.
caption
}}
',
gridRowActiveMode:
{{
page
.
gridRowActiveMode
}}
,
rowEditState:
{{#if
page
.
enableRowEdit
}}{{
page
.
rowEditDefault
}}{{else}}
false
{{/if}}
,
{{>
@macro
/
front-end
/
view
/
common
/
controlAction
.
hbs
}}
{{>
@macro
/
front-end
/
view
/
common
/
viewBaseConfig
.
hbs
}}
{{#
each
page
.
ctrls
as
|
ctrl
|
}}
{{#if
(
eq
ctrl
.
controlType
"GRID"
)
}}
{{>
@macro
/
front-end
/
view
/
common
/
controlAction
.
hbs
ctrl
=
ctrl
}}
{{/if}}
{{/
each
}}
};
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
浏览文件 @
5cc87f7e
...
...
@@ -38,23 +38,29 @@ const { state, handleCtrlEvent } = new GridView(ViewConfig).moduleInstall(props)
<template
v-slot:header-left
>
<IbizIconText
class=
"ibiz-view__caption"
size=
"large"
:text=
"state.viewCaption"
/>
</template>
{{#
page
.
ctrls
}}
{{#
eq
controlType
"TOOLBAR"
}}
<template
v-slot:header-right
>
<span>
工具栏部件
</span>
<IbizToolbar
mode=
"button"
name=
"
{{
lowerCase
codeName
}}
"
:actionModel=
"state.viewToolbarModel"
@
toolbarEvent=
"handleToolbarEvent"
/>
</template>
{{#
page
.
ctrls
}}
{{#
eq
controlType
"GRID"
}}
<
{{
codeName
}}
Grid
:context=
"state.context"
:rowEditState=
"state.rowEditState"
:rowActiveMode=
"state.gridRowActiveMode"
:showBusyIndicator=
"true"
:viewParams=
"state.viewParams"
:controlAction=
"state.controlsAction"
:viewSubject=
"state.viewSubject"
@
ctrlEvent=
"handleCtrlEvent"
></
{{
codeName
}}
Grid>
{{/
eq
}}
{{/
page
.
ctrls
}}
{{/
eq
}}
{{#
eq
controlType
"GRID"
}}
<
{{
codeName
}}
Grid
:context=
"state.context"
:rowEditState=
"state.rowEditState"
:rowActiveMode=
"state.gridRowActiveMode"
:showBusyIndicator=
"true"
:viewParams=
"state.viewParams"
:controlAction=
"state.controlsAction"
:viewSubject=
"state.viewSubject"
@
ctrlEvent=
"handleCtrlEvent"
></
{{
codeName
}}
Grid>
{{/
eq
}}
{{/
page
.
ctrls
}}
</IbizDefaultViewLayout>
</template>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid-config.ts.hbs
浏览文件 @
5cc87f7e
...
...
@@ -43,20 +43,17 @@ export const CtrlConfig = {
enablePagingBar: false,
pagination: false,
{{/if}}
UAColumnModel:{
uAColumnModel:[
{{#
each
ctrl
.
psDEGridColumns
as
|
column
|
}}
{{#if
(
eq
column
.
columnType
'UAGRIDCOLUMN'
)
}}
name: "
{{
lowerCase
column
.
codeName
}}
",
items: [
{{#
each
column
.
psDEUIActionGroup
.
psUIActionGroupDetails
as
|
action
|
}}
{{#
action
}}
{ name: "
{{
name
}}
", caption: "
{{
psUIAction
.
caption
}}
", showIcon:
{{
showIcon
}}
, showCaption:
{{
showCaption
}}
, separator:
{{
addSeparator
}}
, uIActionTag: "
{{
psUIAction
.
uIActionTag
}}
", noPrivDisplayMode:
{{#if
psUIAction
.
noPrivDisplayMode
}}{{
psUIAction
.
noPrivDisplayMode
}}{{else}}
6
{{/if}}
, disabled: false, visabled: true,
{{#if
psUIAction
.
psSysImage
}}{{#if
psUIAction
.
psSysImage
.
imagePath
}}
imgPath: "
{{
psUIAction
.
psSysImage
.
imagePath
}}
",
{{/if}}{{#if
psUIAction
.
psSysImage
.
cssClass
}}
iconCls: "
{{
psUIAction
.
psSysImage
.
cssClass
}}
",
{{/if}}{{/if}}
},
{{/
action
}}
{{/
each
}}
],
{{#
each
column
.
psDEUIActionGroup
.
psUIActionGroupDetails
as
|
action
|
}}
{{#
action
}}
{ name: "
{{
name
}}
", caption: "
{{
psUIAction
.
caption
}}
", showIcon:
{{
showIcon
}}
, showCaption:
{{
showCaption
}}
, separator:
{{
addSeparator
}}
, uIActionTag: "
{{
psUIAction
.
uIActionTag
}}
", noPrivDisplayMode:
{{#if
psUIAction
.
noPrivDisplayMode
}}{{
psUIAction
.
noPrivDisplayMode
}}{{else}}
6
{{/if}}
, disabled: false, visabled: true,
{{#if
psUIAction
.
psSysImage
}}{{#if
psUIAction
.
psSysImage
.
imagePath
}}
imgPath: "
{{
psUIAction
.
psSysImage
.
imagePath
}}
",
{{/if}}{{#if
psUIAction
.
psSysImage
.
cssClass
}}
iconCls: "
{{
psUIAction
.
psSysImage
.
cssClass
}}
",
{{/if}}{{/if}}
},
{{/
action
}}
{{/
each
}}
{{/if}}
{{/
each
}}
}
,
]
,
columnsModel: [
{{#if
ctrl
.
enableGroup
}}
{{#if
ctrl
.
groupPSAppDEField
}}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录