Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
065b406a
提交
065b406a
编写于
1月 14, 2022
作者:
RedPig97
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:命名标准---u2
上级
8347d089
变更
32
隐藏空白字符变更
内嵌
并排
正在显示
32 个修改的文件
包含
90 行增加
和
78 行删除
+90
-78
auto-complete.hbs
...urces/templ/r7/@macro/front-end/editors/auto-complete.hbs
+2
-2
checkbox-list.hbs
...urces/templ/r7/@macro/front-end/editors/checkbox-list.hbs
+2
-2
checkbox.hbs
.../resources/templ/r7/@macro/front-end/editors/checkbox.hbs
+2
-2
code.hbs
...main/resources/templ/r7/@macro/front-end/editors/code.hbs
+2
-2
data-picker-view.hbs
...es/templ/r7/@macro/front-end/editors/data-picker-view.hbs
+2
-2
data-picker.hbs
...sources/templ/r7/@macro/front-end/editors/data-picker.hbs
+2
-2
date-picker.hbs
...sources/templ/r7/@macro/front-end/editors/date-picker.hbs
+2
-2
dropdown-list.hbs
...urces/templ/r7/@macro/front-end/editors/dropdown-list.hbs
+2
-2
input-ip.hbs
.../resources/templ/r7/@macro/front-end/editors/input-ip.hbs
+2
-2
input.hbs
...ain/resources/templ/r7/@macro/front-end/editors/input.hbs
+2
-2
list-box.hbs
.../resources/templ/r7/@macro/front-end/editors/list-box.hbs
+2
-2
radio-group.hbs
...sources/templ/r7/@macro/front-end/editors/radio-group.hbs
+2
-2
rating.hbs
...in/resources/templ/r7/@macro/front-end/editors/rating.hbs
+2
-2
raw.hbs
.../main/resources/templ/r7/@macro/front-end/editors/raw.hbs
+2
-2
rich-text.hbs
...resources/templ/r7/@macro/front-end/editors/rich-text.hbs
+2
-2
slider.hbs
...in/resources/templ/r7/@macro/front-end/editors/slider.hbs
+2
-2
stepper.hbs
...n/resources/templ/r7/@macro/front-end/editors/stepper.hbs
+2
-2
switch.hbs
...in/resources/templ/r7/@macro/front-end/editors/switch.hbs
+2
-2
upload.hbs
...in/resources/templ/r7/@macro/front-end/editors/upload.hbs
+2
-2
form-group-panel.hbs
...@macro/front-end/widgets/form-detail/form-group-panel.hbs
+2
-2
main-view.ts
...pp_{{apps}}/src/core/modules/views/main-view/main-view.ts
+4
-4
md-view.ts
...r7/app_{{apps}}/src/core/modules/views/md-view/md-view.ts
+15
-3
form-control.ts
...s}}/src/core/modules/widgets/form-control/form-control.ts
+4
-4
grid-control.ts
...s}}/src/core/modules/widgets/grid-control/grid-control.ts
+4
-4
quick-search-form-control.ts
...ts/quick-search-form-control/quick-search-form-control.ts
+2
-2
search-form-control.ts
...odules/widgets/search-form-control/search-form-control.ts
+4
-4
{{pages@DEEDITVIEW}}.vue.hbs
...dules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
+2
-2
{{pages@DEGRIDVIEW}}.vue.hbs
...dules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
+7
-7
{{ctrls@FORM}}-form.vue.hbs
...ntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
+1
-1
{{ctrls@GRID}}-grid.vue.hbs
...ntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid.vue.hbs
+3
-3
{{ctrls@QUICKSEARCHFORM}}-quick-search-form.vue.hbs
...-form/{{ctrls@QUICKSEARCHFORM}}-quick-search-form.vue.hbs
+1
-1
{{ctrls@SEARCHFORM}}-search-form.vue.hbs
...RM}}-search-form/{{ctrls@SEARCHFORM}}-search-form.vue.hbs
+3
-3
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/auto-complete.hbs
浏览文件 @
065b406a
...
...
@@ -40,10 +40,10 @@
{{/
eq
}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/checkbox-list.hbs
浏览文件 @
065b406a
...
...
@@ -22,10 +22,10 @@
:viewParams=
"state.viewParams"
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/checkbox.hbs
浏览文件 @
065b406a
...
...
@@ -8,10 +8,10 @@
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/code.hbs
浏览文件 @
065b406a
...
...
@@ -5,11 +5,11 @@
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
:context=
"state.context"
:viewParams=
"state.viewParams"
/>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/data-picker-view.hbs
浏览文件 @
065b406a
...
...
@@ -26,10 +26,10 @@
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/data-picker.hbs
浏览文件 @
065b406a
...
...
@@ -53,10 +53,10 @@
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/date-picker.hbs
浏览文件 @
065b406a
...
...
@@ -47,10 +47,10 @@
{{/
eq
}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/dropdown-list.hbs
浏览文件 @
065b406a
...
...
@@ -28,11 +28,11 @@
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:data=
"state.data"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:data=
"record"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/input-ip.hbs
浏览文件 @
065b406a
...
...
@@ -8,11 +8,11 @@
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/input.hbs
浏览文件 @
065b406a
...
...
@@ -38,10 +38,10 @@
{{/
eq
}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/list-box.hbs
浏览文件 @
065b406a
...
...
@@ -38,10 +38,10 @@
:viewParams=
"state.viewParams"
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/radio-group.hbs
浏览文件 @
065b406a
...
...
@@ -22,10 +22,10 @@
:viewParams=
"state.viewParams"
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/rating.hbs
浏览文件 @
065b406a
...
...
@@ -14,10 +14,10 @@
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/raw.hbs
浏览文件 @
065b406a
...
...
@@ -12,10 +12,10 @@
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/rich-text.hbs
浏览文件 @
065b406a
...
...
@@ -20,11 +20,11 @@
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
:data=
"state.data"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:data=
"record"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/slider.hbs
浏览文件 @
065b406a
...
...
@@ -18,10 +18,10 @@
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/stepper.hbs
浏览文件 @
065b406a
...
...
@@ -20,10 +20,10 @@
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/switch.hbs
浏览文件 @
065b406a
...
...
@@ -11,10 +11,10 @@
{{/if}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/upload.hbs
浏览文件 @
065b406a
...
...
@@ -31,10 +31,10 @@
{{/
eq
}}
{{#if
(
or
(
eq
ctrlType
'form'
)
(
eq
ctrlType
'panel'
))
}}
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"
handle
EditorEvent"
@
editorEvent=
"
on
EditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
@
editorEvent=
"($event) =>
handle
EditorEvent(index,$event)"
@
editorEvent=
"($event) =>
on
EditorEvent(index,$event)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-group-panel.hbs
浏览文件 @
065b406a
...
...
@@ -12,7 +12,7 @@
:titleBarCloseMode=
"
{{
item
.
titleBarCloseMode
}}
"
:showCaption=
"
{{
item
.
showCaption
}}
"
:uIActionGroup=
"state.detailsModel.
{{
item
.
codeName
}}
.uIActionGroup"
@
componentEvent=
"
handle
ComponentEvent"
>
@
componentEvent=
"
on
ComponentEvent"
>
{{#
eq
item
.
psLayout
.
layout
"FLEX"
}}
<div
class=
"app-form-layout-flex"
style=
"
{{#if
item
.
psLayout
.
dir
}}
flex-direction:
{{
item
.
psLayout
.
dir
}}
;
{{/if}}{{#if
item
.
psLayout
.
align
}}
justify-content:
{{
item
.
psLayout
.
align
}}
;
{{/if}}{{#if
item
.
psLayout
.
vAlign
}}
align-items:
{{
item
.
psLayout
.
vAlign
}}
;
{{/if}}
"
>
{{#
each
item
.
psDEFormDetails
as
|
formDetail
|
}}
...
...
@@ -43,7 +43,7 @@
:titleBarCloseMode=
"
{{
item
.
titleBarCloseMode
}}
"
:showCaption=
"
{{
item
.
showCaption
}}
"
:uIActionGroup=
"state.detailsModel.
{{
item
.
codeName
}}
.uIActionGroup"
@
componentEvent=
"
handle
ComponentEvent"
>
@
componentEvent=
"
on
ComponentEvent"
>
{{#
eq
item
.
psLayout
.
layout
"FLEX"
}}
<div
class=
"app-form-layout-flex"
style=
"
{{#if
item
.
psLayout
.
dir
}}
flex-direction:
{{
item
.
psLayout
.
dir
}}
;
{{/if}}{{#if
item
.
psLayout
.
align
}}
justify-content:
{{
item
.
psLayout
.
align
}}
;
{{/if}}{{#if
item
.
psLayout
.
vAlign
}}
align-items:
{{
item
.
psLayout
.
vAlign
}}
;
{{/if}}
"
>
{{#
each
item
.
psDEFormDetails
as
|
formDetail
|
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/main-view/main-view.ts
浏览文件 @
065b406a
...
...
@@ -29,7 +29,7 @@ export class MainView extends ViewBase {
* @param {IActionParam} actionParam
* @memberof MainView
*/
public
handle
ToolbarEvent
(
actionParam
:
IActionParam
)
{
public
on
ToolbarEvent
(
actionParam
:
IActionParam
)
{
const
{
tag
,
action
,
data
}
=
actionParam
;
if
(
!
tag
||
!
action
||
!
data
)
{
console
.
warn
(
"工具栏执行参数不足"
);
...
...
@@ -58,7 +58,7 @@ export class MainView extends ViewBase {
* @param {IActionParam} actionParam
* @memberof MainView
*/
public
handle
CtrlEvent
(
actionParam
:
IActionParam
)
{
}
public
on
CtrlEvent
(
actionParam
:
IActionParam
)
{
}
/**
* @description 安装视图所有功能模块的方法
...
...
@@ -70,8 +70,8 @@ export class MainView extends ViewBase {
return
{
...
superParams
,
xDataControl
:
this
.
xDataControl
,
handleToolbarEvent
:
this
.
handle
ToolbarEvent
.
bind
(
this
),
handleCtrlEvent
:
this
.
handle
CtrlEvent
.
bind
(
this
),
onToolbarEvent
:
this
.
on
ToolbarEvent
.
bind
(
this
),
onCtrlEvent
:
this
.
on
CtrlEvent
.
bind
(
this
),
};
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/md-view/md-view.ts
浏览文件 @
065b406a
...
...
@@ -104,6 +104,18 @@ export class MDView extends MainView {
this
.
state
.
isLoadDefault
=
true
;
}
/**
* @description 快速分组查询
* @param {*} [args={}]
* @memberof MDView
*/
public
handleQuickGroupSearch
(
args
:
any
=
{}):
void
{
const
{
viewParams
}
=
this
.
state
;
Object
.
assign
(
viewParams
,{
quickGroup
:
args
})
const
tag
=
this
.
getMDCtrl
().
name
;
this
.
next
({
tag
:
tag
,
action
:
'load'
,
data
:
viewParams
});
}
/**
* 搜索表单搜索
*
...
...
@@ -210,9 +222,9 @@ export class MDView extends MainView {
* @param {IActionParam} $event
* @memberof MDView
*/
public
handle
QuickGroupEvent
(
$event
:
IActionParam
)
{
public
on
QuickGroupEvent
(
$event
:
IActionParam
)
{
if
(
$event
)
{
this
.
onSearchForm
Search
(
$event
);
this
.
handleQuickGroup
Search
(
$event
);
}
}
...
...
@@ -228,7 +240,7 @@ export class MDView extends MainView {
xDataControl
:
this
.
xDataControl
,
searchForm
:
this
.
searchForm
,
searchBar
:
this
.
searchBar
,
handleQuickGroupEvent
:
this
.
handle
QuickGroupEvent
.
bind
(
this
)
onQuickGroupEvent
:
this
.
on
QuickGroupEvent
.
bind
(
this
)
};
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/form-control/form-control.ts
浏览文件 @
065b406a
...
...
@@ -605,7 +605,7 @@ export class FormControl extends MainControl {
* @param {IActionParam} actionParam 行为参数
* @memberof FormControl
*/
public
handle
EditorEvent
(
actionParam
:
IActionParam
)
{
public
on
EditorEvent
(
actionParam
:
IActionParam
)
{
const
{
tag
,
action
,
data
}
=
actionParam
;
switch
(
action
)
{
case
'valueChange'
:
...
...
@@ -621,7 +621,7 @@ export class FormControl extends MainControl {
* @param {IActionParam} actionParam 行为参数
* @memberof FormControl
*/
public
handle
ComponentEvent
(
actionParam
:
IActionParam
)
{
public
on
ComponentEvent
(
actionParam
:
IActionParam
)
{
const
{
tag
,
action
,
data
}
=
actionParam
;
switch
(
action
)
{
case
'formGroupAction'
:
...
...
@@ -654,8 +654,8 @@ export class FormControl extends MainControl {
load
:
this
.
useLoad
(),
loadDraft
:
this
.
useLoadDraft
(),
save
:
this
.
useSave
(),
handleEditorEvent
:
this
.
handle
EditorEvent
.
bind
(
this
),
handleComponentEvent
:
this
.
handle
ComponentEvent
.
bind
(
this
),
onEditorEvent
:
this
.
on
EditorEvent
.
bind
(
this
),
onComponentEvent
:
this
.
on
ComponentEvent
.
bind
(
this
),
};
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/grid-control/grid-control.ts
浏览文件 @
065b406a
...
...
@@ -91,11 +91,11 @@ export class GridControl extends MDControl {
};
});
// 列拖动
const
handle
ResizeColumn
=
(
width
:
number
,
column
:
IParam
)
=>
{
const
on
ResizeColumn
=
(
width
:
number
,
column
:
IParam
)
=>
{
column
.
width
=
width
;
}
// 处理表格变化(分页,过滤,排序)
const
handle
GridChange
=
(
pagination
:
IParam
,
filters
:
IParam
,
sorter
:
IParam
,
data
:
IParam
)
=>
{
const
on
GridChange
=
(
pagination
:
IParam
,
filters
:
IParam
,
sorter
:
IParam
,
data
:
IParam
)
=>
{
if
(
pagination
)
{
this
.
useLoad
().
load
();
}
...
...
@@ -106,8 +106,8 @@ export class GridControl extends MDControl {
useRowClassName
,
useCustomRow
,
useRowSelectionOption
,
handle
ResizeColumn
,
handle
GridChange
on
ResizeColumn
,
on
GridChange
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/quick-search-form-control/quick-search-form-control.ts
浏览文件 @
065b406a
...
...
@@ -19,8 +19,8 @@ export class QuickSearchFormControl extends FormControl {
* @param {IActionParam} actionParam 行为参数
* @memberof FormControl
*/
public
handle
EditorEvent
(
actionParam
:
IActionParam
)
{
super
.
handle
EditorEvent
(
actionParam
);
public
on
EditorEvent
(
actionParam
:
IActionParam
)
{
super
.
on
EditorEvent
(
actionParam
);
this
.
emit
(
"onCtrlEvent"
,
{
tag
:
this
.
state
.
controlName
,
action
:
"selectionChange"
,
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/search-form-control/search-form-control.ts
浏览文件 @
065b406a
...
...
@@ -40,7 +40,7 @@ export class SearchFormControl extends FormControl {
* @description 添加历史项
* @memberof SearchFormControl
*/
public
add
HistoryItem
()
{
public
onSave
HistoryItem
()
{
//todo saveModel服务
this
.
state
.
showPopover
=
false
;
}
...
...
@@ -50,7 +50,7 @@ export class SearchFormControl extends FormControl {
* @param {IParam} item
* @memberof SearchFormControl
*/
public
r
emoveHistoryItem
(
item
:
IParam
)
{
public
onR
emoveHistoryItem
(
item
:
IParam
)
{
const
index
=
this
.
state
.
historyItems
.
findIndex
((
_item
:
IParam
)
=>
{
return
item
.
name
==
_item
.
name
&&
item
.
value
==
_item
.
value
;
})
...
...
@@ -80,8 +80,8 @@ export class SearchFormControl extends FormControl {
...
superParams
,
onSearch
:
this
.
onSearch
.
bind
(
this
),
onCancel
:
this
.
onCancel
.
bind
(
this
),
addHistoryItem
:
this
.
add
HistoryItem
.
bind
(
this
),
removeHistoryItem
:
this
.
r
emoveHistoryItem
.
bind
(
this
),
onSaveHistoryItem
:
this
.
onSave
HistoryItem
.
bind
(
this
),
onRemoveHistoryItem
:
this
.
onR
emoveHistoryItem
.
bind
(
this
),
};
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
浏览文件 @
065b406a
...
...
@@ -29,7 +29,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
form
,
handle
ToolbarEvent
}
=
new
EditView
(
viewState
,
props
,
emit
).
moduleInstall
();
const
{
state
,
form
,
on
ToolbarEvent
}
=
new
EditView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
...
...
@@ -51,7 +51,7 @@ const { state, form, handleToolbarEvent } = new EditView(viewState, props, emit)
mode=
"button"
name=
"
{{
lowerCase
codeName
}}
"
:actionModel=
"state.toolbar"
@
onToolbarEvent=
"
handle
ToolbarEvent"
/>
@
onToolbarEvent=
"
on
ToolbarEvent"
/>
</template>
{{/
eq
}}
{{#
eq
controlType
"FORM"
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
浏览文件 @
065b406a
...
...
@@ -36,7 +36,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
grid
,
handleCtrlEvent
,
handleToolbarEvent
,
handle
QuickGroupEvent
}
=
new
GridView
(
viewState
,
props
,
emit
).
moduleInstall
();
const
{
state
,
grid
,
onCtrlEvent
,
onToolbarEvent
,
on
QuickGroupEvent
}
=
new
GridView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
...
...
@@ -47,7 +47,7 @@ const { state, grid, handleCtrlEvent, handleToolbarEvent, handleQuickGroupEvent
</template>
{{#if
page
.
enableQuickGroup
}}
<template
v-slot:quickGroupSearch
>
<app-quick-group
:quickGroupModel=
"state.quickGroupPSCodeList"
@
onQuickGroupEvent=
"
handle
QuickGroupEvent"
/>
<app-quick-group
:quickGroupModel=
"state.quickGroupPSCodeList"
@
onQuickGroupEvent=
"
on
QuickGroupEvent"
/>
</template>
{{/if}}
{{#
page
.
ctrls
}}
...
...
@@ -57,7 +57,7 @@ const { state, grid, handleCtrlEvent, handleToolbarEvent, handleQuickGroupEvent
mode=
"button"
name=
"
{{
lowerCase
codeName
}}
"
:actionModel=
"state.toolbar"
@
onToolbarEvent=
"
handle
ToolbarEvent"
/>
@
onToolbarEvent=
"
on
ToolbarEvent"
/>
</template>
{{/
eq
}}
{{#if
(
and
(
eq
controlType
"SEARCHFORM"
)
(
eq
name
'searchform'
))
}}
...
...
@@ -72,7 +72,7 @@ const { state, grid, handleCtrlEvent, handleToolbarEvent, handleQuickGroupEvent
:viewParams=
"state.viewParams"
:controlAction=
"state.
{{
camelCase
name
}}
.action"
:viewSubject=
"state.viewSubject"
@
onCtrlEvent=
"
handle
CtrlEvent"
@
onCtrlEvent=
"
on
CtrlEvent"
></
{{
codeName
}}
SearchForm>
</template>
<a-button><filter-outlined
/></a-button>
...
...
@@ -86,7 +86,7 @@ const { state, grid, handleCtrlEvent, handleToolbarEvent, handleQuickGroupEvent
:viewParams=
"state.viewParams"
:controlAction=
"state.
{{
camelCase
name
}}
.action"
:viewSubject=
"state.viewSubject"
@
onCtrlEvent=
"
handle
CtrlEvent"
@
onCtrlEvent=
"
on
CtrlEvent"
></
{{
codeName
}}
SearchForm>
</template>
{{/if}}
...
...
@@ -98,7 +98,7 @@ const { state, grid, handleCtrlEvent, handleToolbarEvent, handleQuickGroupEvent
:viewParams=
"state.viewParams"
:controlAction=
"state.
{{
camelCase
name
}}
.action"
:viewSubject=
"state.viewSubject"
@
onCtrlEvent=
"
handle
CtrlEvent"
@
onCtrlEvent=
"
on
CtrlEvent"
></
{{
codeName
}}
QuickSearchForm>
</template>
{{/if}}
...
...
@@ -112,7 +112,7 @@ const { state, grid, handleCtrlEvent, handleToolbarEvent, handleQuickGroupEvent
:viewParams=
"state.viewParams"
:controlAction=
"state.
{{
name
}}
.action"
:viewSubject=
"state.viewSubject"
@
onCtrlEvent=
"
handle
CtrlEvent"
@
onCtrlEvent=
"
on
CtrlEvent"
></
{{
codeName
}}
Grid>
{{/
eq
}}
{{/
page
.
ctrls
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
浏览文件 @
065b406a
...
...
@@ -25,7 +25,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handleEditorEvent
,
handle
ComponentEvent
}
=
new
FormControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
const
{
state
,
onEditorEvent
,
on
ComponentEvent
}
=
new
FormControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
// 暴露内部状态及能力
defineExpose
({
state
,
name
:
'
{{
ctrl
.
name
}}
'
});
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid.vue.hbs
浏览文件 @
065b406a
...
...
@@ -31,7 +31,7 @@ const emit = defineEmits<{(event: 'onCtrlevent', value: IActionParam): void;}>()
// 安装功能模块,提供状态和能力
const
{
state
,
useCustom
}
=
new
GridControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
const
{
useScrollOption
,
useRowKey
,
useRowClassName
,
useCustomRow
,
useRowSelectionOption
,
handleResizeColumn
,
handle
GridChange
}
=
useCustom
;
const
{
useScrollOption
,
useRowKey
,
useRowClassName
,
useCustomRow
,
useRowSelectionOption
,
onResizeColumn
,
on
GridChange
}
=
useCustom
;
// 暴露内部状态及能力
defineExpose
({
state
,
name
:
'
{{
ctrl
.
name
}}
'
});
...
...
@@ -51,8 +51,8 @@ defineExpose({ state, name: '{{ctrl.name}}' });
:pagination=
"state.mdCtrlPaging.pagination"
:customRow=
"customRow"
:rowClassName=
"rowClassName"
@
change=
"
handle
GridChange"
@
resizeColumn=
"
handle
ResizeColumn"
@
change=
"
on
GridChange"
@
resizeColumn=
"
on
ResizeColumn"
>
<template
#
emptyText
>
<div
class=
"not-data"
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@QUICKSEARCHFORM}}-quick-search-form/{{ctrls@QUICKSEARCHFORM}}-quick-search-form.vue.hbs
浏览文件 @
065b406a
...
...
@@ -26,7 +26,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handle
EditorEvent
}
=
new
QuickSearchFormControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
const
{
state
,
on
EditorEvent
}
=
new
QuickSearchFormControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM}}-search-form/{{ctrls@SEARCHFORM}}-search-form.vue.hbs
浏览文件 @
065b406a
...
...
@@ -26,7 +26,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handleEditorEvent
,
handleComponentEvent
,
onSearch
,
loadDraft
,
addHistoryItem
,
onCancel
,
r
emoveHistoryItem
}
=
new
SearchFormControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
const
{
state
,
onEditorEvent
,
onComponentEvent
,
onSearch
,
loadDraft
,
onSaveHistoryItem
,
onCancel
,
onR
emoveHistoryItem
}
=
new
SearchFormControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
...
...
@@ -63,7 +63,7 @@ const { state, handleEditorEvent, handleComponentEvent, onSearch, loadDraft, add
v-model:Value=
"state.selectHistoryItem"
@
change=
"handleChange"
>
<a-select-option
class=
"search-form-history-option"
v-for=
"(item,index) in state.historyItems"
:key=
"index"
:value=
"item.value"
>
\{{item.name}}
<close-outlined
@
click=
"() =>
r
emoveHistoryItem(item)"
/></a-select-option>
<a-select-option
class=
"search-form-history-option"
v-for=
"(item,index) in state.historyItems"
:key=
"index"
:value=
"item.value"
>
\{{item.name}}
<close-outlined
@
click=
"() =>
onR
emoveHistoryItem(item)"
/></a-select-option>
</a-select>
<a-button
class=
'search-button'
@
click=
"onSearch"
type=
"primary"
>
搜索
</a-button>
<a-button
class=
'reset-button'
@
click=
'loadDraft'
>
重置
</a-button>
...
...
@@ -72,7 +72,7 @@ const { state, handleEditorEvent, handleComponentEvent, onSearch, loadDraft, add
<a-input
/>
<div
class=
"search-form-buttons"
>
<a-button
@
click=
"onCancel"
>
取消
</a-button>
<a-button
@
click=
"
add
HistoryItem"
type=
"primary"
>
保存
</a-button>
<a-button
@
click=
"
onSave
HistoryItem"
type=
"primary"
>
保存
</a-button>
</div>
</template>
<a-button><save-outlined
/></a-button>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录