Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
226f2d45
提交
226f2d45
编写于
1月 13, 2022
作者:
RedPig97
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:文件名称更改
上级
c88919ea
变更
51
隐藏空白字符变更
内嵌
并排
正在显示
51 个修改的文件
包含
312 行增加
和
114 行删除
+312
-114
app-grid-view-layout.vue
...p_{{apps}}/src/components/layout/app-grid-view-layout.vue
+1
-0
grid-view.ts
...pp_{{apps}}/src/core/modules/views/grid-view/grid-view.ts
+2
-1
index.ts
...s/templ/r7/app_{{apps}}/src/core/modules/widgets/index.ts
+3
-2
index.ts
...c/core/modules/widgets/pickup-view-panel-control/index.ts
+3
-0
pickup-view-panel-control-prop.ts
...ckup-view-panel-control/pickup-view-panel-control-prop.ts
+0
-0
pickup-view-panel-control-state.ts
...kup-view-panel-control/pickup-view-panel-control-state.ts
+0
-0
pickup-view-panel-control.ts
...ts/pickup-view-panel-control/pickup-view-panel-control.ts
+2
-2
index.ts
...src/core/modules/widgets/pickupviewpanel-control/index.ts
+0
-3
index.ts
...c/core/modules/widgets/quick-search-form-control/index.ts
+3
-0
quick-search-form-control-prop.ts
...ick-search-form-control/quick-search-form-control-prop.ts
+32
-0
quick-search-form-control-state.ts
...ck-search-form-control/quick-search-form-control-state.ts
+12
-0
quick-search-form-control.ts
...ts/quick-search-form-control/quick-search-form-control.ts
+46
-0
{{pages@APPINDEXVIEW}}-state.ts.hbs
...{pages@APPINDEXVIEW}}/{{pages@APPINDEXVIEW}}-state.ts.hbs
+1
-1
{{pages@APPINDEXVIEW}}.vue.hbs
...s}}/{{pages@APPINDEXVIEW}}/{{pages@APPINDEXVIEW}}.vue.hbs
+2
-2
{{pages@DEEDITVIEW}}-state.ts.hbs
...}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}-state.ts.hbs
+1
-1
{{pages@DEEDITVIEW}}.vue.hbs
...dules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
+2
-2
{{pages@DEGRIDVIEW}}-state.ts.hbs
...}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}-state.ts.hbs
+1
-1
{{pages@DEGRIDVIEW}}.vue.hbs
...dules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
+18
-4
{{pages@DEPICKUPGRIDVIEW}}-state.ts.hbs
...EPICKUPGRIDVIEW}}/{{pages@DEPICKUPGRIDVIEW}}-state.ts.hbs
+1
-1
{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
...ges@DEPICKUPGRIDVIEW}}/{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
+2
-2
{{pages@DEPICKUPVIEW}}-state.ts.hbs
...{pages@DEPICKUPVIEW}}/{{pages@DEPICKUPVIEW}}-state.ts.hbs
+1
-1
{{pages@DEPICKUPVIEW}}.vue.hbs
...s}}/{{pages@DEPICKUPVIEW}}/{{pages@DEPICKUPVIEW}}.vue.hbs
+2
-2
{{pages@DETREEEXPVIEW}}-state.ts.hbs
...ages@DETREEEXPVIEW}}/{{pages@DETREEEXPVIEW}}-state.ts.hbs
+1
-1
{{pages@DETREEEXPVIEW}}.vue.hbs
...}/{{pages@DETREEEXPVIEW}}/{{pages@DETREEEXPVIEW}}.vue.hbs
+2
-2
index.ts.hbs
...appEntities}}/{{ctrls@APPMENU-APPMENU}}-menu/index.ts.hbs
+0
-0
{{ctrls@APPMENU-APPMENU}}-menu-state.ts.hbs
...PPMENU}}-menu/{{ctrls@APPMENU-APPMENU}}-menu-state.ts.hbs
+1
-1
{{ctrls@APPMENU-APPMENU}}-menu.vue.hbs
...ENU-APPMENU}}-menu/{{ctrls@APPMENU-APPMENU}}-menu.vue.hbs
+2
-2
index.ts.hbs
...ets/{{appEntities}}/{{ctrls@FORM-FORM}}-form/index.ts.hbs
+0
-0
{{ctrls@FORM-FORM}}-form-state.ts.hbs
...ls@FORM-FORM}}-form/{{ctrls@FORM-FORM}}-form-state.ts.hbs
+1
-1
{{ctrls@FORM-FORM}}-form.vue.hbs
...{{ctrls@FORM-FORM}}-form/{{ctrls@FORM-FORM}}-form.vue.hbs
+2
-2
index.ts.hbs
...ets/{{appEntities}}/{{ctrls@GRID-GRID}}-grid/index.ts.hbs
+0
-0
{{ctrls@GRID-GRID}}-grid-state.ts.hbs
...ls@GRID-GRID}}-grid/{{ctrls@GRID-GRID}}-grid-state.ts.hbs
+1
-1
{{ctrls@GRID-GRID}}-grid.vue.hbs
...{{ctrls@GRID-GRID}}-grid/{{ctrls@GRID-GRID}}-grid.vue.hbs
+2
-2
index.ts.hbs
...IEWPANEL-PICKUPVIEWPANEL}}-pickup-view-panel/index.ts.hbs
+0
-0
{{ctrls@PICKUPVIEWPANEL-PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
...PICKUPVIEWPANEL-PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
+2
-2
{{ctrls@PICKUPVIEWPANEL-PICKUPVIEWPANEL}}-pickupviewpanelstate.ts.hbs
...UPVIEWPANEL-PICKUPVIEWPANEL}}-pickupviewpanelstate.ts.hbs
+1
-1
index.ts.hbs
.../{{ctrls@PICKUPVIEWPANEL}}-pickup-view-panel/index.ts.hbs
+0
-3
{{ctrls@PICKUPVIEWPANEL}}-pickup-view-panel.vue.hbs
...panel/{{ctrls@PICKUPVIEWPANEL}}-pickup-view-panel.vue.hbs
+0
-45
{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel-config.ts.hbs
...l/{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel-config.ts.hbs
+0
-10
index.ts.hbs
...ARCHFORM-QUICKSEARCHFORM}}-quick-search-form/index.ts.hbs
+3
-0
{{ctrls@SEARCHFORM-QUICKSEARCHFORM}}-quick-search-form-state.ts.hbs
...ARCHFORM-QUICKSEARCHFORM}}-quick-search-form-state.ts.hbs
+1
-1
{{ctrls@SEARCHFORM-QUICKSEARCHFORM}}-quick-search-form.vue.hbs
...ls@SEARCHFORM-QUICKSEARCHFORM}}-quick-search-form.vue.hbs
+55
-0
index.ts.hbs
.../{{ctrls@SEARCHFORM-SEARCHFORM}}-search-form/index.ts.hbs
+1
-1
{{ctrls@SEARCHFORM-SEARCHFORM}}-search-form-state.ts.hbs
.../{{ctrls@SEARCHFORM-SEARCHFORM}}-search-form-state.ts.hbs
+87
-0
{{ctrls@SEARCHFORM-SEARCHFORM}}-search-form.vue.hbs
...-form/{{ctrls@SEARCHFORM-SEARCHFORM}}-search-form.vue.hbs
+9
-8
index.ts.hbs
...{{ctrls@TREEEXPBAR-TREEEXPBAR}}-tree-exp-bar/index.ts.hbs
+0
-0
{{ctrls@TREEEXPBAR-TREEEXPBAR}}-tree-exp-bar-state.ts.hbs
...{{ctrls@TREEEXPBAR-TREEEXPBAR}}-tree-exp-bar-state.ts.hbs
+1
-1
{{ctrls@TREEEXPBAR-TREEEXPBAR}}-tree-exp-bar.vue.hbs
...-bar/{{ctrls@TREEEXPBAR-TREEEXPBAR}}-tree-exp-bar.vue.hbs
+2
-2
index.ts.hbs
...{{appEntities}}/{{ctrls@TREEVIEW-TREE}}-tree/index.ts.hbs
+0
-0
{{ctrls@TREEVIEW-TREE}}-tree-state.ts.hbs
...IEW-TREE}}-tree/{{ctrls@TREEVIEW-TREE}}-tree-state.ts.hbs
+1
-1
{{ctrls@TREEVIEW-TREE}}-tree.vue.hbs
...TREEVIEW-TREE}}-tree/{{ctrls@TREEVIEW-TREE}}-tree.vue.hbs
+2
-2
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/app-grid-view-layout.vue
浏览文件 @
226f2d45
...
...
@@ -13,6 +13,7 @@
</
template
>
<
template
v-slot:header-bottom
>
<slot
name=
"topMessage"
/>
<slot
name=
"quickSearchForm"
/>
<slot
name=
"searchForm"
/>
</
template
>
<
template
v-slot:body-top
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/grid-view/grid-view.ts
浏览文件 @
226f2d45
...
...
@@ -72,7 +72,8 @@ public declare state: GridViewState;
const
superParams
=
super
.
moduleInstall
();
return
{
...
superParams
,
grid
:
this
.
grid
grid
:
this
.
grid
,
onSearchFormSearch
:
this
.
onSearchFormSearch
.
bind
(
this
)
};
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/index.ts
浏览文件 @
226f2d45
...
...
@@ -4,7 +4,8 @@ export * from './exp-bar-control'
export
*
from
'./form-control'
export
*
from
'./menu-control'
export
*
from
'./grid-control'
export
*
from
'./pickup
view
panel-control'
export
*
from
'./pickup
-view-
panel-control'
export
*
from
'./tree-exp-bar-control'
export
*
from
'./tree-control'
export
*
from
'./search-form-control'
\ No newline at end of file
export
*
from
'./search-form-control'
export
*
from
'./quick-search-form-control'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/pickup-view-panel-control/index.ts
0 → 100644
浏览文件 @
226f2d45
export
*
from
'./pickup-view-panel-control-prop'
export
*
from
'./pickup-view-panel-control-state'
export
*
from
'./pickup-view-panel-control'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/pickup
viewpanel-control/pickupview
panel-control-prop.ts
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/pickup
-view-panel-control/pickup-view-
panel-control-prop.ts
浏览文件 @
226f2d45
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/pickup
viewpanel-control/pickupview
panel-control-state.ts
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/pickup
-view-panel-control/pickup-view-
panel-control-state.ts
浏览文件 @
226f2d45
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/pickup
viewpanel-control/pickupview
panel-control.ts
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/pickup
-view-panel-control/pickup-view-
panel-control.ts
浏览文件 @
226f2d45
import
{
IActionParam
,
MainControl
}
from
'@core'
;
import
{
PickupViewPanelControlProps
}
from
'./pickup
view
panel-control-prop'
;
import
{
PickupViewPanelControlState
}
from
'./pickup
view
panel-control-state'
;
import
{
PickupViewPanelControlProps
}
from
'./pickup
-view-
panel-control-prop'
;
import
{
PickupViewPanelControlState
}
from
'./pickup
-view-
panel-control-state'
;
/**
* @description 选择视图面板部件
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/pickupviewpanel-control/index.ts
已删除
100644 → 0
浏览文件 @
c88919ea
export
*
from
'./pickupviewpanel-control-prop'
export
*
from
'./pickupviewpanel-control-state'
export
*
from
'./pickupviewpanel-control'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/quick-search-form-control/index.ts
0 → 100644
浏览文件 @
226f2d45
export
*
from
'./quick-search-form-control-prop'
export
*
from
'./quick-search-form-control-state'
export
*
from
'./quick-search-form-control'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/quick-search-form-control/quick-search-form-control-prop.ts
0 → 100644
浏览文件 @
226f2d45
import
{
FormControlProps
,
IParam
}
from
"@core"
;
/**
* @description 表单部件的props
* @export
* @interface QuickSearchFormControlProps
* @extends {FormControlProps}
*/
export
interface
QuickSearchFormControlProps
extends
FormControlProps
{
/**
* @description 是否显示气泡框
* @type {boolean}
* @memberof QuickSearchFormControlProps
*/
showPopover
:
boolean
;
/**
* @description 选中历史项
* @type {IParam}
* @memberof QuickSearchFormControlProps
*/
selectHistoryItem
:
IParam
;
/**
* @description 历史项
* @type {IParam[]}
* @memberof QuickSearchFormControlProps
*/
historyItems
:
IParam
[];
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/quick-search-form-control/quick-search-form-control-state.ts
0 → 100644
浏览文件 @
226f2d45
import
{
FormControlState
,
IParam
}
from
'@core'
;
/**
* @description 表单部件状态
* @export
* @interface QuickSearchFormControlState
* @extends {FormControlState}
*/
export
interface
QuickSearchFormControlState
extends
FormControlState
{
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/quick-search-form-control/quick-search-form-control.ts
0 → 100644
浏览文件 @
226f2d45
import
{
FormControl
,
FormControlState
,
IActionParam
,
IParam
}
from
'@core'
;
/**
* @description 搜索表单部件
* @export
* @class FormControl
* @extends {MainControl}
*/
export
class
QuickSearchFormControl
extends
FormControl
{
/**
* @description 部件状态
* @type {FormControlState}
* @memberof FormControl
*/
public
declare
state
:
FormControlState
;
/**
* @description 处理编辑器事件
* @param {IActionParam} actionParam 行为参数
* @memberof FormControl
*/
public
handleEditorEvent
(
actionParam
:
IActionParam
)
{
super
.
handleEditorEvent
(
actionParam
);
this
.
emit
(
"ctrlEvent"
,
{
tag
:
this
.
state
.
controlName
,
action
:
"selectionChange"
,
data
:
this
.
state
.
data
,
});
}
/**
* @description 安装部件所有功能模块的方法
* @return {*}
* @memberof QuickSearchFormControl
*/
public
moduleInstall
()
{
const
superParams
=
super
.
moduleInstall
();
// 表单行为能力启用
const
{
loadDraft
}
=
this
.
useLoadDraft
();
return
{
...
superParams
,
loadDraft
,
handleEditorEvent
:
this
.
handleEditorEvent
.
bind
(
this
),
};
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@APPINDEXVIEW}}/{{pages@APPINDEXVIEW}}-
config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@APPINDEXVIEW}}/{{pages@APPINDEXVIEW}}-
state
.ts.hbs
浏览文件 @
226f2d45
export const
ViewConfig
= {
export const
viewState
= {
{{>
@macro
/
front-end
/
views
/
view-base-config
.
hbs
}}
};
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@APPINDEXVIEW}}/{{pages@APPINDEXVIEW}}.vue.hbs
浏览文件 @
226f2d45
...
...
@@ -2,7 +2,7 @@
import
{
Subject
}
from
'rxjs'
import
{
Ref
}
from
'vue'
;
import
{
IndexView
,
IActionParam
,
IParam
,
IContext
}
from
'@core'
;
import
{
ViewConfig
}
from
'./
{{
spinalCase
page
.
codeName
}}
-config
'
;
import
{
viewState
}
from
'./
{{
spinalCase
page
.
codeName
}}
-state
'
;
{{#
page
.
ctrls
}}
{{#
eq
controlType
"APPMENU"
}}
import
{
{{
codeName
}}
Menu
}
from
'@widgets/app/
{{
spinalCase
codeName
}}
-menu'
;
...
...
@@ -31,7 +31,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
menu
}
=
new
IndexView
(
ViewConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
menu
}
=
new
IndexView
(
viewState
,
props
,
emit
).
moduleInstall
();
const
collapsed
:
Ref
<
boolean
>
=
ref
(
false
);
const
collapsedChange
=
()
=>
{
collapsed
.
value
=
!
collapsed
.
value
;
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}-
config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}-
state
.ts.hbs
浏览文件 @
226f2d45
export const
ViewConfig
= {
export const
viewState
= {
{{>
@macro
/
front-end
/
views
/
view-base-config
.
hbs
}}
};
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
浏览文件 @
226f2d45
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
EditView
,
IActionParam
,
IParam
,
IContext
}
from
'@core'
;
import
{
ViewConfig
}
from
'./
{{
spinalCase
page
.
codeName
}}
-config
'
;
import
{
viewState
}
from
'./
{{
spinalCase
page
.
codeName
}}
-state
'
;
{{#
page
.
ctrls
}}
{{#
eq
controlType
"FORM"
}}
import
{
{{
codeName
}}
Form
}
from
'@widgets/
{{
spinalCase
appEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-form'
;
...
...
@@ -29,7 +29,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
form
,
handleToolbarEvent
}
=
new
EditView
(
ViewConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
form
,
handleToolbarEvent
}
=
new
EditView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}-
config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}-
state
.ts.hbs
浏览文件 @
226f2d45
export const
ViewConfig
= {
export const
viewState
= {
gridRowActiveMode:
{{
page
.
gridRowActiveMode
}}
,
rowEditState:
{{#if
page
.
enableRowEdit
}}{{
page
.
rowEditDefault
}}{{else}}
false
{{/if}}
,
{{>
@macro
/
front-end
/
views
/
view-base-config
.
hbs
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
浏览文件 @
226f2d45
...
...
@@ -2,13 +2,16 @@
import
{
Subject
}
from
'rxjs'
;
import
{
FilterOutlined
}
from
'@ant-design/icons-vue'
;
import
{
GridView
,
IActionParam
,
IParam
,
IContext
}
from
'@core'
;
import
{
ViewConfig
}
from
'./
{{
spinalCase
page
.
codeName
}}
-config
'
;
import
{
viewState
}
from
'./
{{
spinalCase
page
.
codeName
}}
-state
'
;
{{#
page
.
ctrls
}}
{{#
eq
controlType
"GRID"
}}
import
{
{{
codeName
}}
Grid
}
from
'@widgets/
{{
spinalCase
appEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-grid'
;
{{/
eq
}}
{{#if
(
and
(
eq
controlType
"SEARCHFORM"
)
(
eq
name
'searchform'
))
}}
import
{
{{
codeName
}}
SearchForm
}
from
'@widgets/
{{
spinalCase
appEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-searchForm'
;
import
{
{{
codeName
}}
SearchForm
}
from
'@widgets/
{{
spinalCase
appEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-search-form'
;
{{/if}}
{{#if
(
and
(
eq
controlType
"SEARCHFORM"
)
(
eq
name
'quicksearchform'
))
}}
import
{
{{
codeName
}}
QuickSearchForm
}
from
'@widgets/
{{
spinalCase
appEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-quick-search-form'
;
{{/if}}
{{/
page
.
ctrls
}}
...
...
@@ -33,7 +36,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
grid
,
handleCtrlEvent
,
handleToolbarEvent
}
=
new
GridView
(
ViewConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
grid
,
handleCtrlEvent
,
handleToolbarEvent
,
onSearchFormSearch
}
=
new
GridView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
...
...
@@ -56,7 +59,7 @@ const { state, grid, handleCtrlEvent, handleToolbarEvent } = new GridView(ViewCo
{{#if
page
.
enableFilter
}}
<template
v-slot:quickSearch
>
<div
class=
'app-quick-search'
>
<a-input
/>
<a-input
@
click=
"onSearchFormSearch"
/>
<a-popover
trigger=
"click"
:overlayStyle=
"{width: '50%'}"
>
<template
#
content
>
<
{{
codeName
}}
SearchForm
...
...
@@ -83,6 +86,17 @@ const { state, grid, handleCtrlEvent, handleToolbarEvent } = new GridView(ViewCo
</template>
{{/if}}
{{/if}}
{{#if
(
and
(
eq
controlType
"SEARCHFORM"
)
(
eq
name
'quicksearchform'
))
}}
<template
v-slot:quickSearchForm
>
<
{{
codeName
}}
QuickSearchForm
:context=
"state.context"
:viewParams=
"state.viewParams"
:controlAction=
"state.
{{
camelCase
name
}}
.action"
:viewSubject=
"state.viewSubject"
@
ctrlEvent=
"handleCtrlEvent"
></
{{
codeName
}}
QuickSearchForm>
</template>
{{/if}}
{{#
eq
controlType
"GRID"
}}
<
{{
codeName
}}
Grid
ref=
"grid"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEPICKUP
VIEW}}/{{pages@DEPICKUPVIEW}}-config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEPICKUP
GRIDVIEW}}/{{pages@DEPICKUPGRIDVIEW}}-state
.ts.hbs
浏览文件 @
226f2d45
export const
ViewConfig
= {
export const
viewState
= {
{{>
@macro
/
front-end
/
views
/
view-base-config
.
hbs
}}
};
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEPICKUPGRIDVIEW}}/{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
浏览文件 @
226f2d45
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
PickupGridView
,
IActionParam
,
IParam
,
IContext
}
from
'@core'
;
import
{
ViewConfig
}
from
'./
{{
spinalCase
page
.
codeName
}}
-config
'
;
import
{
viewState
}
from
'./
{{
spinalCase
page
.
codeName
}}
-state
'
;
// todo 表格部件拿不到目前导入固定表格
import
{
MainGrid
}
from
'@widgets/chart-data/main-grid'
;
{{#
each
page
.
controls
as
|
control
|
}}
...
...
@@ -32,7 +32,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
confirm
,
handleCtrlEvent
}
=
new
PickupGridView
(
ViewConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
confirm
,
handleCtrlEvent
}
=
new
PickupGridView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEPICKUP
GRIDVIEW}}/{{pages@DEPICKUPGRIDVIEW}}-config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEPICKUP
VIEW}}/{{pages@DEPICKUPVIEW}}-state
.ts.hbs
浏览文件 @
226f2d45
export const
ViewConfig
= {
export const
viewState
= {
{{>
@macro
/
front-end
/
views
/
view-base-config
.
hbs
}}
};
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEPICKUPVIEW}}/{{pages@DEPICKUPVIEW}}.vue.hbs
浏览文件 @
226f2d45
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
PickupView
,
IActionParam
,
IParam
,
IContext
}
from
'@core'
;
import
{
ViewConfig
}
from
'./
{{
spinalCase
page
.
codeName
}}
-config
'
;
import
{
viewState
}
from
'./
{{
spinalCase
page
.
codeName
}}
-state
'
;
{{#
page
.
ctrls
}}
{{#
eq
controlType
"PICKUPVIEWPANEL"
}}
import
{
{{
codeName
}}
PickUpViewPanel
}
from
'@widgets/
{{
spinalCase
appEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-pickup-view-panel'
;
...
...
@@ -28,7 +28,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
cancel
,
confirm
,
handleCtrlEvent
}
=
new
PickupView
(
ViewConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
cancel
,
confirm
,
handleCtrlEvent
}
=
new
PickupView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DETREEEXPVIEW}}/{{pages@DETREEEXPVIEW}}-
config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DETREEEXPVIEW}}/{{pages@DETREEEXPVIEW}}-
state
.ts.hbs
浏览文件 @
226f2d45
export const
ViewConfig
= {
export const
viewState
= {
{{#
each
page
.
ctrls
as
|
ctrl
|
}}
{{#if
(
eq
ctrl
.
controlType
"TREEEXPBAR"
)
}}
treeExpBarName: '
{{
ctrl
.
name
}}
',
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DETREEEXPVIEW}}/{{pages@DETREEEXPVIEW}}.vue.hbs
浏览文件 @
226f2d45
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
TreeExpView
,
IActionParam
,
IParam
,
IContext
}
from
'@core'
;
import
{
ViewConfig
}
from
'./
{{
spinalCase
page
.
codeName
}}
-config
'
;
import
{
viewState
}
from
'./
{{
spinalCase
page
.
codeName
}}
-state
'
;
{{#
page
.
ctrls
}}
{{#
eq
controlType
"TREEEXPBAR"
}}
import
{
{{
codeName
}}
TreeExpBar
}
from
'@widgets/
{{
spinalCase
appEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-tree-exp-bar'
;
...
...
@@ -25,7 +25,7 @@ interface ViewEmit {
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块
const
{
state
,
handleCtrlEvent
,
handleToolbarEvent
}
=
new
TreeExpView
(
ViewConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
handleCtrlEvent
,
handleToolbarEvent
}
=
new
TreeExpView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@APPMENU}}-menu/index.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@APPMENU
-APPMENU
}}-menu/index.ts.hbs
浏览文件 @
226f2d45
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@APPMENU
}}-menu/{{ctrls@APPMENU}}-menu-config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@APPMENU
-APPMENU}}-menu/{{ctrls@APPMENU-APPMENU}}-menu-state
.ts.hbs
浏览文件 @
226f2d45
{{>
@macro
/
front-end
/
widgets
/
menu-detail
/
include-menu
.
hbs
}}
export const
CtrlConfig
= {
export const
ctrlState
= {
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlName: '
{{
ctrl
.
name
}}
',
defaultOpens: [],
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@APPMENU
}}-menu/{{ctrls@
APPMENU}}-menu.vue.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@APPMENU
-APPMENU}}-menu/{{ctrls@APPMENU-
APPMENU}}-menu.vue.hbs
浏览文件 @
226f2d45
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
"rxjs"
;
import
{
CtrlConfig
}
from
"./
{{
spinalCase
ctrl
.
codeName
}}
-menu-config
"
;
import
{
ctrlState
}
from
"./
{{
spinalCase
ctrl
.
codeName
}}
-menu-state
"
;
import
{
IParam
,
IActionParam
,
MenuControl
,
IContext
}
from
"@core"
;
interface
Props
{
context
:
IContext
;
...
...
@@ -20,7 +20,7 @@ interface CtrlEmit {
}
const
emit
=
defineEmits
<
CtrlEmit
>
();
const
{
state
,
menuSelect
}
=
new
MenuControl
(
CtrlConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
menuSelect
}
=
new
MenuControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
// 暴露内部状态及能力
defineExpose
({
state
,
name
:
'
{{
ctrl
.
name
}}
'
});
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/index.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM
-FORM
}}-form/index.ts.hbs
浏览文件 @
226f2d45
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM
}}-form/{{ctrls@FORM}}-form-config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM
-FORM}}-form/{{ctrls@FORM-FORM}}-form-state
.ts.hbs
浏览文件 @
226f2d45
...
...
@@ -47,7 +47,7 @@ export class ControlVO extends ControlVOBase {
}
// 部件配置对象
export const
CtrlConfig
= {
export const
ctrlState
= {
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlName: '
{{
ctrl
.
name
}}
',
controlService: new EditFormService
<ControlVO>
(ControlVO, new
{{
pascalCase
ctrl
.
psAppDataEntity
.
codeName
}}
Service() ),
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM
}}-form/{{ctrls@
FORM}}-form.vue.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM
-FORM}}-form/{{ctrls@FORM-
FORM}}-form.vue.hbs
浏览文件 @
226f2d45
{{>
@macro
/
front-end
/
widgets
/
form-detail
/
include-form
.
hbs
}}
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
CtrlConfig
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-form-config
'
;
import
{
ctrlState
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-form-state
'
;
import
{
FormControl
,
IActionParam
,
IParam
,
ControlAction
,
IContext
}
from
'@core'
;
interface
Props
{
...
...
@@ -25,7 +25,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handleEditorEvent
,
handleComponentEvent
}
=
new
FormControl
(
CtrlConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
handleEditorEvent
,
handleComponentEvent
}
=
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/index.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID
-GRID
}}-grid/index.ts.hbs
浏览文件 @
226f2d45
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID
}}-grid/{{ctrls@GRID}}-grid-config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID
-GRID}}-grid/{{ctrls@GRID-GRID}}-grid-state
.ts.hbs
浏览文件 @
226f2d45
...
...
@@ -19,7 +19,7 @@ export class ControlVO extends ControlVOBase {
}
export const
CtrlConfig
= {
export const
ctrlState
= {
controlCodeName: "
{{
ctrl
.
codeName
}}
",
controlName: "
{{
ctrl
.
name
}}
",
controlService: new GridService
<ControlVO>
(ControlVO, new
{{
pascalCase
ctrl
.
psAppDataEntity
.
codeName
}}
Service() ),
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID
}}-grid/{{ctrls@
GRID}}-grid.vue.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID
-GRID}}-grid/{{ctrls@GRID-
GRID}}-grid.vue.hbs
浏览文件 @
226f2d45
{{>
@macro
/
front-end
/
widgets
/
grid-detail
/
include-grid
.
hbs
}}
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
CtrlConfig
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-grid-config
'
;
import
{
ctrlState
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-grid-state
'
;
import
{
GridControl
,
IActionParam
,
IParam
,
IContext
,
ControlAction
,
deepCopy
}
from
'@core'
;
interface
Props
{
...
...
@@ -33,7 +33,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力
const
{
state
,
load
,
handleEditorEvent
,
handleToolbarEvent
,
custom
}
=
new
GridControl
(
CtrlConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
load
,
handleEditorEvent
,
handleToolbarEvent
,
custom
}
=
new
GridControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
const
{
scrollOption
,
rowKey
,
rowClassName
,
customRow
,
rowSelectionOption
,
resizeColumn
,
handleGridChange
}
=
custom
;
// 暴露内部状态及能力
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL
}}-pickupview
panel/index.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL
-PICKUPVIEWPANEL}}-pickup-view-
panel/index.ts.hbs
浏览文件 @
226f2d45
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL
}}-pickupviewpanel/{{ctrls@
PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL
-PICKUPVIEWPANEL}}-pickup-view-panel/{{ctrls@PICKUPVIEWPANEL-
PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
浏览文件 @
226f2d45
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
IActionParam
,
IParam
,
ControlAction
,
PickupViewPanelControl
,
IContext
}
from
'@core'
;
import
{
CtrlConfig
}
from
'./
{{
ctrl
.
codeName
.
spinalCase
}}
-pickupviewpanel-config
'
;
import
{
ctrlState
}
from
'./
{{
ctrl
.
codeName
.
spinalCase
}}
-pickupviewpanelstate
'
;
interface
Props
{
context
:
IContext
;
...
...
@@ -31,7 +31,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
inited
,
viewdata
,
viewparam
}
=
new
PickupViewPanelControl
(
CtrlConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
inited
,
viewdata
,
viewparam
}
=
new
PickupViewPanelControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
// 暴露内部状态及能力
defineExpose
({
state
,
name
:
'
{{
ctrl
.
name
}}
'
});
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL
}}-pickup-view-panel/{{ctrls@PICKUPVIEWPANEL}}-pickup-view-panel-config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL
-PICKUPVIEWPANEL}}-pickup-view-panel/{{ctrls@PICKUPVIEWPANEL-PICKUPVIEWPANEL}}-pickupviewpanelstate
.ts.hbs
浏览文件 @
226f2d45
export const
CtrlConfig
= {
export const
ctrlState
= {
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlName: '
{{
ctrl
.
name
}}
',
data: {},
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL}}-pickup-view-panel/index.ts.hbs
已删除
100644 → 0
浏览文件 @
c88919ea
import
{{
ctrl
.
codeName
}}
PickUpViewPanel from "./
{{
spinalCase
ctrl
.
codeName
}}
-pickup-view-panel.vue";
export {
{{
ctrl
.
codeName
}}
PickUpViewPanel };
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL}}-pickup-view-panel/{{ctrls@PICKUPVIEWPANEL}}-pickup-view-panel.vue.hbs
已删除
100644 → 0
浏览文件 @
c88919ea
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
IActionParam
,
IParam
,
ControlAction
,
PickupViewPanelControl
,
IContext
}
from
'@core'
;
import
{
CtrlConfig
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-pickup-view-panel-config'
;
import
ChartDataPickUpGridView
from
'../../../page/sample/chart-data-pickup-grid-view'
;
interface
Props
{
context
:
IContext
;
viewParams
?:
IParam
;
controlAction
:
ControlAction
;
showBusyIndicator
?:
boolean
;
isSingleSelect
?:
boolean
;
viewMode
?:
number
;
selectedData
?:
string
;
isShowButton
?:
boolean
;
viewSubject
:
Subject
<
IActionParam
>
;
}
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
viewSubject
:
()
=>
new
Subject
<
IActionParam
>
(),
viewMode
:
0
,
isSingleSelect
:
false
,
isShowButton
:
true
,
showBusyIndicator
:
true
,
})
// emit声明
interface
CtrlEmit
{
(
name
:
"ctrlEvent"
,
value
:
IActionParam
):
void
;
}
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handleViewEvent
}
=
new
PickupViewPanelControl
(
CtrlConfig
,
props
,
emit
).
moduleInstall
();
// 暴露内部状态及能力
defineExpose
({
state
,
name
:
'
{{
ctrl
.
name
}}
'
});
</script>
<template>
<div
class=
"app-pickupviewpanel"
>
<ChartDataPickUpGridView
:isSingleSelect=
"state.isSingleSelect"
:isShowButton=
"state.isShowButton"
:selectedData=
"state.selectedData"
@
viewEvent=
"handleViewEvent"
></ChartDataPickUpGridView>
</div>
</template>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel/{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel-config.ts.hbs
已删除
100644 → 0
浏览文件 @
c88919ea
export const CtrlConfig = {
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlName: '
{{
ctrl
.
name
}}
',
data: {},
embeddedView: {
{{#if
ctrl
.
embeddedPSAppDEView
}}
viewName: '
{{
ctrl
.
embeddedPSAppDEView
.
codeName
}}
'
{{/if}}
}
};
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM-QUICKSEARCHFORM}}-quick-search-form/index.ts.hbs
0 → 100644
浏览文件 @
226f2d45
import
{{
ctrl
.
codeName
}}
QuickSearchForm from "./
{{
spinalCase
ctrl
.
codeName
}}
-quick-search-form.vue";
export {
{{
ctrl
.
codeName
}}
QuickSearchForm };
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM
}}-searchForm/{{ctrls@SEARCHFORM}}-searchForm-config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM
-QUICKSEARCHFORM}}-quick-search-form/{{ctrls@SEARCHFORM-QUICKSEARCHFORM}}-quick-search-form-state
.ts.hbs
浏览文件 @
226f2d45
...
...
@@ -49,7 +49,7 @@ export class ControlVO extends ControlVOBase {
}
// 部件配置对象
export const
CtrlConfig
= {
export const
ctrlState
= {
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlName: '
{{
ctrl
.
name
}}
',
controlService: new EditFormService
<ControlVO>
(ControlVO, new
{{
pascalCase
ctrl
.
psAppDataEntity
.
codeName
}}
Service() ),
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM-QUICKSEARCHFORM}}-quick-search-form/{{ctrls@SEARCHFORM-QUICKSEARCHFORM}}-quick-search-form.vue.hbs
0 → 100644
浏览文件 @
226f2d45
{{>
@macro
/
front-end
/
widgets
/
form-detail
/
include-form
.
hbs
}}
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
SaveOutlined
,
CloseOutlined
}
from
'@ant-design/icons-vue'
;
import
{
ctrlState
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-quick-search-form-state'
;
import
{
QuickSearchFormControl
,
IActionParam
,
IParam
,
ControlAction
,
IContext
}
from
'@core'
;
interface
Props
{
context
:
IContext
;
viewParams
?:
IParam
;
controlAction
:
ControlAction
;
showBusyIndicator
?:
boolean
;
viewSubject
:
Subject
<
IActionParam
>
;
}
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
viewSubject
:
()
=>
new
Subject
<
IActionParam
>
(),
showBusyIndicator
:
true
,
})
// emit声明
interface
CtrlEmit
{
(
name
:
"ctrlEvent"
,
value
:
IActionParam
):
void
;
}
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handleEditorEvent
}
=
new
QuickSearchFormControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
<a-form
name=
"
{{
ctrl
.
codeName
}}
"
class=
"app-quick-search-form
{{#if
ctrl
.
psSysCss
}}
{{
ctrl
.
psSysCss
.
cssName
}}{{/if}}
"
style=
"
{{#if
ctrl
.
formWidth
}}
width:
{{
ctrl
.
formWidth
}}
px;
{{/if}}
"
:model=
"state.data"
:rules=
"state.rules"
>
<a-row>
{{#if
ctrl
.
noTabHeader
}}
{{#
each
ctrl
.
psDEFormPages
as
|
ctrlPage
|
}}
{{#
each
ctrlPage
.
psDEFormDetails
as
|
formDetail
|
}}
{{>
(
lookup
.
'formDetail.detailType'
)
item
=
formDetail
}}
{{/
each
}}
{{/
each
}}
{{else}}
<a-tabs
class=
"app-form-page"
>
{{#
each
ctrl
.
psDEFormPages
as
|
ctrlPage
|
}}
{{>
(
lookup
.
'ctrlPage.detailType'
)
item
=
ctrlPage
}}
{{/
each
}}
</a-tabs>
{{/if}}
</a-row>
</a-form>
</template>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM
}}-searchF
orm/index.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM
-SEARCHFORM}}-search-f
orm/index.ts.hbs
浏览文件 @
226f2d45
import
{{
ctrl
.
codeName
}}
SearchForm from "./
{{
spinalCase
ctrl
.
codeName
}}
-search
F
orm.vue";
import
{{
ctrl
.
codeName
}}
SearchForm from "./
{{
spinalCase
ctrl
.
codeName
}}
-search
-f
orm.vue";
export {
{{
ctrl
.
codeName
}}
SearchForm };
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM-SEARCHFORM}}-search-form/{{ctrls@SEARCHFORM-SEARCHFORM}}-search-form-state.ts.hbs
0 → 100644
浏览文件 @
226f2d45
{{>
@macro
/
front-end
/
widgets
/
form-detail
/
include-form
.
hbs
}}
import { ControlVOBase, EditFormService } from '@core';
import {
{{
pascalCase
ctrl
.
psAppDataEntity
.
codeName
}}
Service } from '@api/
{{
spinalCase
ctrl
.
psAppDataEntity
.
codeName
}}
/
{{
spinalCase
ctrl
.
psAppDataEntity
.
codeName
}}
-service';
/**
* 部件展示数据对象
* @export
* @class ControlVO
*/
export class ControlVO extends ControlVOBase {
/**
* 用后台数据对象创建部件数据对象
* @param data 后台数据
*/
constructor(data: any){
super(data);
// 记录没有映射的属性
{{#if
ctrl
.
psDEFormItems
}}
this.$ownKeys =
{{
~#
each
ctrl
.
psDEFormItems
as
|
formItem
|
~
}}
{{#if
@first
}}
[
{{/
if
~
}}
'
{{
lowerCase
formItem
.
id
}}
'
{{#
unless
@last
}}
,
{{/
unless
}}
{{
~#
if
@last
}}
];
{{/
if
~
}}
{{/
each
}}
{{/if}}
}
// 表单里映射了属性的字段
{{#
each
ctrl
.
psDEFormItems
as
|
formItem
|
}}
{{!-- TODO: 表单formItem的name拿不到 --}}
{{#
neq
formItem
.
psAppDEField
null
}}
get
{{
lowerCase
formItem
.
id
}}
() {
return this.$DO.
{{
lowerCase
formItem
.
psAppDEField
.
codeName
}}
;
}
set
{{
lowerCase
formItem
.
id
}}
(value: any) {
this.$DO.
{{
lowerCase
formItem
.
psAppDEField
.
codeName
}}
= value;
}
{{/
neq
}}
{{/
each
}}
// 表单里没有映射实体属性的字段(srfuf除外)
{{#
each
ctrl
.
psDEFormItems
as
|
formItem
|
}}
{{#if
(
and
(
eq
formItem
.
psAppDEField
null
)
(
neq
formItem
.
id
"srfuf"
))
}}
{{
lowerCase
formItem
.
id
}}
: any;
{{/if}}
{{/
each
}}
}
// 部件配置对象
export const ctrlState = {
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlName: '
{{
ctrl
.
name
}}
',
controlService: new EditFormService
<ControlVO>
(ControlVO, new
{{
pascalCase
ctrl
.
psAppDataEntity
.
codeName
}}
Service() ),
data: new ControlVO({}),
showPopover: false,
selectHistoryItem: {},
historyItems: [],
detailsModel: {
{{#
each
ctrl
.
psDEFormPages
as
|
FormPage
|
}}
{{>
(
lookup
'FORMDETAILSMODEL'
)
items
=
FormPage
.
psDEFormDetails
}}
{{/
each
}}
},
rules: {
{{#
each
ctrl
.
psDEFormEditItemVRs
as
|
ruleItem
|
}}
{{#
neq
ruleItem
2
}}
{{#if
ruleItem
.
valueRuleType
'DEFVALUERULE'
}}
{{
psDEFormEditItemName
}}
: [
{{#
each
ruleItem
.
psDEFVRGroupCondition
as
|
condition
|
}}
{trigger: ['change', 'blur'],
validator: (_rule: RuleObject, value: string) => verifyRules(_rule,value,{
{{#
condition
.
condType
}}
type: '
{{
condition
.
condType
}}
',
{{/
condition
.
condType
}}
{{#
condition
.
name
}}
name: '
{{
condition
.
name
}}
',
{{/
condition
.
name
}}
{{#
condition
.
maxValue
}}
maxValue: '
{{
condition
.
maxValue
}}
',
{{/
condition
.
maxValue
}}
{{#
condition
.
minValue
}}
minValue: '
{{
condition
.
minValue
}}
',
{{/
condition
.
minValue
}}
{{#
condition
.
ruleInfo
}}
ruleInfo: '
{{
condition
.
ruleInfo
}}
',
{{/
condition
.
ruleInfo
}}
{{#
condition
.
includeMaxValue
}}
includeMaxValue: '
{{
condition
.
includeMaxValue
}}
',
{{/
condition
.
includeMaxValue
}}
{{#
condition
.
includeMinValue
}}
includeMinValue: '
{{
condition
.
includeMinValue
}}
',
{{/
condition
.
includeMinValue
}}
}) }
{{/
each
}}
]
{{/if}}
{{/
neq
}}
{{/
each
}}
},
};
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM
}}-searchForm/{{ctrls@SEARCHFORM}}-searchF
orm.vue.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHFORM
-SEARCHFORM}}-search-form/{{ctrls@SEARCHFORM-SEARCHFORM}}-search-f
orm.vue.hbs
浏览文件 @
226f2d45
...
...
@@ -2,7 +2,7 @@
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
SaveOutlined
,
CloseOutlined
}
from
'@ant-design/icons-vue'
;
import
{
CtrlConfig
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-searchForm-config
'
;
import
{
ctrlState
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-search-form-state
'
;
import
{
SearchFormControl
,
IActionParam
,
IParam
,
ControlAction
,
IContext
}
from
'@core'
;
interface
Props
{
...
...
@@ -26,7 +26,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handleEditorEvent
,
handleComponentEvent
,
onSearch
,
loadDraft
,
addHistoryItem
,
onCancel
,
removeHistoryItem
}
=
new
SearchFormControl
(
CtrlConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
handleEditorEvent
,
handleComponentEvent
,
onSearch
,
loadDraft
,
addHistoryItem
,
onCancel
,
removeHistoryItem
}
=
new
SearchFormControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
...
...
@@ -37,13 +37,14 @@ const { state, handleEditorEvent, handleComponentEvent, onSearch, loadDraft, add
:model=
"state.data"
:rules=
"state.rules"
>
<a-row>
<a-col>
{{#if
ctrl
.
noTabHeader
}}
<a-col>
{{#if
ctrl
.
noTabHeader
}}
<a-row>
{{#
each
ctrl
.
psDEFormPages
as
|
ctrlPage
|
}}
{{#
each
ctrlPage
.
psDEFormDetails
as
|
formDetail
|
}}
{{>
(
lookup
.
'formDetail.detailType'
)
item
=
formDetail
}}
{{/
each
}}
{{/
each
}}
{{#
each
ctrl
.
psDEFormPages
as
|
ctrlPage
|
}}
{{#
each
ctrlPage
.
psDEFormDetails
as
|
formDetail
|
}}
{{>
(
lookup
.
'formDetail.detailType'
)
item
=
formDetail
}}
{{/
each
}}
{{/
each
}}
{{else}}
<a-tabs
class=
"app-form-page"
>
{{#
each
ctrl
.
psDEFormPages
as
|
ctrlPage
|
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEEXPBAR}}-tree-exp-bar/index.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEEXPBAR
-TREEEXPBAR
}}-tree-exp-bar/index.ts.hbs
浏览文件 @
226f2d45
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEEXPBAR
}}-tree-exp-bar/{{ctrls@TREEEXPBAR}}-tree-exp-bar-config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEEXPBAR
-TREEEXPBAR}}-tree-exp-bar/{{ctrls@TREEEXPBAR-TREEEXPBAR}}-tree-exp-bar-state
.ts.hbs
浏览文件 @
226f2d45
export const
CtrlConfig
= {
export const
ctrlState
= {
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlName: '
{{
ctrl
.
name
}}
',
counter: 0,
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEEXPBAR
}}-tree-exp-bar/{{ctrls@
TREEEXPBAR}}-tree-exp-bar.vue.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEEXPBAR
-TREEEXPBAR}}-tree-exp-bar/{{ctrls@TREEEXPBAR-
TREEEXPBAR}}-tree-exp-bar.vue.hbs
浏览文件 @
226f2d45
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
IActionParam
,
IParam
,
ControlAction
,
TreeExpBarControl
,
IContext
}
from
'@core'
;
import
{
CtrlConfig
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-tree-exp-bar-config
'
;
import
{
ctrlState
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-tree-exp-bar-state
'
;
{{#
ctrl
.
ctrls
}}
{{#
eq
controlType
"TREEVIEW"
}}
import
{
{{
codeName
}}
Tree
}
from
'@widgets/
{{
spinalCase
appEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-tree'
;
...
...
@@ -35,7 +35,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
handleCtrlEvent
}
=
new
TreeExpBarControl
(
CtrlConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
handleCtrlEvent
}
=
new
TreeExpBarControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
// 暴露内部状态及能力
defineExpose
({
state
,
name
:
'
{{
ctrl
.
name
}}
'
});
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEVIEW}}-tree/index.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEVIEW
-TREE
}}-tree/index.ts.hbs
浏览文件 @
226f2d45
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEVIEW
}}-tree/{{ctrls@TREEVIEW}}-tree-config
.ts.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEVIEW
-TREE}}-tree/{{ctrls@TREEVIEW-TREE}}-tree-state
.ts.hbs
浏览文件 @
226f2d45
...
...
@@ -179,7 +179,7 @@ export class ControlVO extends ControlVOBase implements TreeControlVO {
}
}
export const
CtrlConfig
= {
export const
ctrlState
= {
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlName: '
{{
ctrl
.
name
}}
',
controlService: new TreeService
<ControlVO>
(ControlVO, new
{{
pascalCase
ctrl
.
psAppDataEntity
.
codeName
}}
Service() ),
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEVIEW
}}-tree/{{ctrls@TREEVIEW
}}-tree.vue.hbs
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEVIEW
-TREE}}-tree/{{ctrls@TREEVIEW-TREE
}}-tree.vue.hbs
浏览文件 @
226f2d45
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
IActionParam
,
IParam
,
ControlAction
,
TreeControl
,
IContext
}
from
'@core'
;
import
{
CtrlConfig
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-tree-config
'
;
import
{
ctrlState
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-tree-state
'
;
interface
Props
{
context
:
IContext
;
...
...
@@ -29,7 +29,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
load
,
treeNodeSelect
}
=
new
TreeControl
(
CtrlConfig
,
props
,
emit
).
moduleInstall
();
const
{
state
,
load
,
treeNodeSelect
}
=
new
TreeControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
// 暴露内部状态及能力
defineExpose
({
state
,
name
:
'
{{
ctrl
.
name
}}
'
});
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录