Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
422ee752
提交
422ee752
编写于
12月 24, 2021
作者:
Shine-zwj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
上级
6f8480dc
变更
22
隐藏空白字符变更
内嵌
并排
正在显示
22 个修改的文件
包含
392 行增加
和
21 行删除
+392
-21
App.vue
...core/src/main/resources/templ/r7/app_{{apps}}/src/App.vue
+0
-1
grid-view-prop.ts
...}/src/ibiz-core/modules/views/grid-view/grid-view-prop.ts
+11
-0
grid-view-state.ts
.../src/ibiz-core/modules/views/grid-view/grid-view-state.ts
+11
-0
grid-view.ts
...apps}}/src/ibiz-core/modules/views/grid-view/grid-view.ts
+45
-0
index.ts
...p_{{apps}}/src/ibiz-core/modules/views/grid-view/index.ts
+3
-0
index.ts
...empl/r7/app_{{apps}}/src/ibiz-core/modules/views/index.ts
+2
-1
form-control-state.ts
...z-core/modules/widgets/form-control/form-control-state.ts
+10
-2
grid-control-prop.ts
...iz-core/modules/widgets/grid-control/grid-control-prop.ts
+11
-0
grid-control-state.ts
...z-core/modules/widgets/grid-control/grid-control-state.ts
+38
-0
grid-control.ts
...rc/ibiz-core/modules/widgets/grid-control/grid-control.ts
+117
-0
index.ts
...pps}}/src/ibiz-core/modules/widgets/grid-control/index.ts
+3
-0
index.ts
...pl/r7/app_{{apps}}/src/ibiz-core/modules/widgets/index.ts
+2
-1
menu-control.ts
...rc/ibiz-core/modules/widgets/menu-control/menu-control.ts
+12
-1
{{pages@DEEDITVIEW}}.vue.hbs
...age/{{appModules}}/{{pages}}/{{pages@DEEDITVIEW}}.vue.hbs
+11
-7
{{pages@DEGRIDVIEW}}-config.ts.hbs
...appModules}}/{{pages}}/{{pages@DEGRIDVIEW}}-config.ts.hbs
+5
-0
{{pages@DEGRIDVIEW}}.vue.hbs
...age/{{appModules}}/{{pages}}/{{pages@DEGRIDVIEW}}.vue.hbs
+60
-6
index.ts
.../main/resources/templ/r7/app_{{apps}}/src/router/index.ts
+5
-0
{{ctrls@FORM}}-form.vue.hbs
...ntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
+2
-2
index.ts.hbs
.../widgets/{{appEntities}}/{{ctrls@GRID}}-grid/index.ts.hbs
+3
-0
{{ctrls@GRID}}-grid-config.ts.hbs
...s}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid-config.ts.hbs
+5
-0
{{ctrls@GRID}}-grid-service.ts.hbs
...}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid-service.ts.hbs
+0
-0
{{ctrls@GRID}}-grid.vue.hbs
...ntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid.vue.hbs
+36
-0
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/App.vue
浏览文件 @
422ee752
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
// This starter template is using Vue 3
<
script
setup
>
SFCs
// This starter template is using Vue 3
<
script
setup
>
SFCs
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
// Check out https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup
import
{
PlatformIndexView
}
from
'@page/default/platform-index-view'
;
import
{
PlatformIndexView
}
from
'@page/default/platform-index-view'
;
import
{
JobsInfoEditView
}
from
'@page/jobs-info/jobs-info-edit-view'
;
</
script
>
</
script
>
<
template
>
<
template
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/views/grid-view/grid-view-prop.ts
0 → 100644
浏览文件 @
422ee752
import
{
MainViewProps
}
from
"@ibiz-core"
;
/**
* @description 表格视图props
* @export
* @interface GridViewProps
* @extends {MainViewProps}
*/
export
interface
GridViewProps
extends
MainViewProps
{
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/views/grid-view/grid-view-state.ts
0 → 100644
浏览文件 @
422ee752
import
{
MainViewState
}
from
"@ibiz-core"
;
/**
* @description 表格视图状态
* @export
* @interface GridViewState
* @extends {MainViewState}
*/
export
interface
GridViewState
extends
MainViewState
{
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/views/grid-view/grid-view.ts
0 → 100644
浏览文件 @
422ee752
import
{
GridViewProps
,
GridViewState
,
MainView
}
from
'@ibiz-core'
;
/**
* @description 表格视图
* @export
* @class GridView
* @extends {MainView}
*/
export
class
GridView
extends
MainView
{
/**
* @description 视图状态
* @type {EditViewState}
* @memberof GridView
*/
public
declare
viewState
:
GridViewState
;
/**
* @description 使用加载功能模块
* @param {GridViewProps} props 传入的props
* @memberof GridView
*/
public
useLoad
(
props
:
GridViewProps
){
const
{
viewSubject
}
=
this
.
viewState
;
onMounted
(()
=>
{
viewSubject
.
next
({
tag
:
'grid'
,
action
:
"load"
,
data
:
{}})
})
}
/**
* @description 安装视图所有功能模块的方法
* @param {GridViewProps} props 传入的Props
* @param {Function} [emit] [emit] 事件
* @return {*}
* @memberof GridView
*/
public
moduleInstall
(
props
:
GridViewProps
,
emit
?:
Function
)
{
const
superParams
=
super
.
moduleInstall
(
props
,
emit
);
this
.
useLoad
(
props
);
return
{
...
superParams
,
state
:
this
.
viewState
,
};
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/views/grid-view/index.ts
0 → 100644
浏览文件 @
422ee752
export
*
from
'./grid-view-prop'
export
*
from
'./grid-view-state'
export
*
from
'./grid-view'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/views/index.ts
浏览文件 @
422ee752
export
*
from
'./view-base'
export
*
from
'./view-base'
export
*
from
'./main-view'
export
*
from
'./main-view'
export
*
from
'./edit-view'
export
*
from
'./edit-view'
export
*
from
'./index-view'
export
*
from
'./index-view'
\ No newline at end of file
export
*
from
'./grid-view'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/form-control/form-control-state.ts
浏览文件 @
422ee752
...
@@ -7,6 +7,7 @@ import { IParam, MainControlState } from '@ibiz-core';
...
@@ -7,6 +7,7 @@ import { IParam, MainControlState } from '@ibiz-core';
* @extends {MainControlState}
* @extends {MainControlState}
*/
*/
export
interface
FormControlState
extends
MainControlState
{
export
interface
FormControlState
extends
MainControlState
{
/**
/**
* @description 表单数据对象
* @description 表单数据对象
* @type {IParam}
* @type {IParam}
...
@@ -15,16 +16,23 @@ export interface FormControlState extends MainControlState {
...
@@ -15,16 +16,23 @@ export interface FormControlState extends MainControlState {
data
:
IParam
;
data
:
IParam
;
/**
/**
* @description 表单成员模型
集合
* @description 表单成员模型
* @type {IParam}
* @type {IParam}
* @memberof FormControlState
* @memberof FormControlState
*/
*/
detailsModel
:
IParam
;
detailsModel
:
IParam
;
/**
/**
* @description 表单界面行为模型
集合
* @description 表单界面行为模型
* @type {IParam}
* @type {IParam}
* @memberof FormControlState
* @memberof FormControlState
*/
*/
actionModel
:
IParam
;
actionModel
:
IParam
;
/**
* @description 值规则
* @type {IParam}
* @memberof FormControlState
*/
rules
:
IParam
;
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/grid-control/grid-control-prop.ts
0 → 100644
浏览文件 @
422ee752
import
{
MainControlProps
}
from
"@ibiz-core"
;
/**
* @description 表格部件的props
* @export
* @interface GridControlProps
* @extends {MainControlProps}
*/
export
interface
GridControlProps
extends
MainControlProps
{
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/grid-control/grid-control-state.ts
0 → 100644
浏览文件 @
422ee752
import
{
IParam
,
MainControlState
}
from
'@ibiz-core'
;
/**
* @description 表格部件状态
* @export
* @interface GridControlState
* @extends {MainControlState}
*/
export
interface
GridControlState
extends
MainControlState
{
/**
* @description 表格数据集合
* @type {IParam[]}
* @memberof GridControlState
*/
Items
:
IParam
[];
/**
* @description 表格列模型
* @type {IParam}
* @memberof GridControlState
*/
columnsModel
:
IParam
;
/**
* @description 表格界面行为模型
* @type {IParam}
* @memberof GridControlState
*/
actionModel
:
IParam
;
/**
* @description 值规则
* @type {IParam}
* @memberof GridControlState
*/
rules
:
IParam
;
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/grid-control/grid-control.ts
0 → 100644
浏览文件 @
422ee752
import
{
deepCopy
,
GridControlProps
,
GridControlState
,
IActionParam
,
MainControl
}
from
'@ibiz-core'
;
/**
* @description 表格部件
* @export
* @class GridControl
* @extends {MainControl}
*/
export
class
GridControl
extends
MainControl
{
/**
* @description 部件状态
* @type {GridControlState}
* @memberof GridControl
*/
public
declare
controlState
:
GridControlState
;
/**
* @description 表格数据改变
* @param {number} rowIndex 行索引
* @param {string} name 表格列属性名称
* @param {*} value 表格列属性值
* @memberof GridControl
*/
public
gridDataChange
(
rowIndex
:
number
,
name
:
string
,
value
:
any
){
this
.
controlState
.
items
[
rowIndex
][
name
]
=
value
;
}
/**
* @description 使用加载功能模块
* @param {GridControlProps} props 传入的props
* @return {*}
* @memberof GridControl
*/
public
useLoad
(
props
:
GridControlProps
){
const
{
viewSubject
,
controlName
}
=
this
.
controlState
;
const
load
=
async
(
opt
:
any
=
{})
=>
{
try
{
const
loadAction
=
this
.
controlState
.
controlAction
.
loadAction
;
const
{
controlService
,
context
,
viewParams
,
showBusyIndicator
}
=
this
.
controlState
;
const
dataRef
=
toRef
(
this
.
controlState
,
'items'
);
if
(
!
loadAction
){
return
;
}
let
_context
=
deepCopy
(
context
);
let
_viewParams
=
deepCopy
(
viewParams
);
const
response
=
await
controlService
.
get
(
loadAction
,
_context
,
{
viewParams
:
_viewParams
},
showBusyIndicator
);
if
(
!
response
.
status
||
response
.
status
!==
200
)
{
return
}
dataRef
.
value
=
response
.
data
;
}
catch
(
error
)
{
// todo 错误异常处理
}
}
// 订阅viewSubject,监听load行为
if
(
viewSubject
){
let
subscription
=
viewSubject
.
subscribe
(({
tag
,
action
,
data
}:
IActionParam
)
=>
{
if
(
Object
.
is
(
controlName
,
tag
)
&&
Object
.
is
(
"load"
,
action
)
){
load
(
data
)
}
})
// 部件卸载时退订viewSubject
onUnmounted
(()
=>
{
subscription
.
unsubscribe
();
})
}
return
{
load
:
load
}
}
/**
* @description 处理编辑器事件
* @param {IActionParam} actionParam 行为参数
* @memberof GridControl
*/
public
handleEditorEvent
(
rowIndex
:
number
,
actionParam
:
IActionParam
)
{
const
{
tag
,
action
,
data
}
=
actionParam
;
switch
(
action
)
{
case
"valueChange"
:
this
.
gridDataChange
(
rowIndex
,
tag
,
data
);
break
;
default
:
break
;
}
}
/**
* @description 安装部件所有功能模块的方法
* @param {GridControlProps} props 传入的Props
* @param {Function} [emit]
* @return {*}
* @memberof GridControl [emit] 事件
*/
public
moduleInstall
(
props
:
GridControlProps
,
emit
?:
Function
)
{
const
superParams
=
super
.
moduleInstall
(
props
,
emit
);
const
{
load
}
=
this
.
useLoad
(
props
)
const
handleEditorEvent
=
this
.
handleEditorEvent
.
bind
(
this
);
this
.
handleEditorEvent
=
(
rowIndex
:
number
,
actionParam
:
IActionParam
)
=>
{
handleEditorEvent
(
rowIndex
,
actionParam
)
}
return
{
...
superParams
,
state
:
this
.
controlState
,
load
,
handleEditorEvent
:
this
.
handleEditorEvent
,
};
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/grid-control/index.ts
0 → 100644
浏览文件 @
422ee752
export
*
from
'./grid-control-prop'
export
*
from
'./grid-control-state'
export
*
from
'./grid-control'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/index.ts
浏览文件 @
422ee752
export
*
from
'./control-base'
export
*
from
'./control-base'
export
*
from
'./main-control'
export
*
from
'./main-control'
export
*
from
'./form-control'
export
*
from
'./form-control'
export
*
from
'./menu-control'
export
*
from
'./menu-control'
\ No newline at end of file
export
*
from
'./grid-control'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/menu-control/menu-control.ts
浏览文件 @
422ee752
...
@@ -69,7 +69,7 @@ export class MenuControl extends ControlBase {
...
@@ -69,7 +69,7 @@ export class MenuControl extends ControlBase {
const
{
funcs
,
defaultView
,
menuAlign
}
=
this
.
controlState
;
const
{
funcs
,
defaultView
,
menuAlign
}
=
this
.
controlState
;
const
defaultSelectRef
=
toRef
(
this
.
controlState
,
'defaultSelect'
);
const
defaultSelectRef
=
toRef
(
this
.
controlState
,
'defaultSelect'
);
const
dataRef
=
toRef
(
this
.
controlState
,
'menus'
);
const
dataRef
=
toRef
(
this
.
controlState
,
'menus'
);
if
(
this
.
route
?
.
matched
?.
length
==
2
)
{
if
(
this
.
route
.
matched
?.
length
==
2
)
{
const
[{
},
matched
]
=
this
.
route
.
matched
;
const
[{
},
matched
]
=
this
.
route
.
matched
;
const
appFunc
:
any
=
funcs
.
find
((
func
:
any
)
=>
Object
.
is
(
func
.
routePath
,
matched
.
path
)
&&
Object
.
is
(
func
.
funcType
,
'APPVIEW'
));
const
appFunc
:
any
=
funcs
.
find
((
func
:
any
)
=>
Object
.
is
(
func
.
routePath
,
matched
.
path
)
&&
Object
.
is
(
func
.
funcType
,
'APPVIEW'
));
if
(
appFunc
)
{
if
(
appFunc
)
{
...
@@ -164,6 +164,17 @@ export class MenuControl extends ControlBase {
...
@@ -164,6 +164,17 @@ export class MenuControl extends ControlBase {
*/
*/
public
menuClick
(
item
:
IParam
)
{
public
menuClick
(
item
:
IParam
)
{
console
.
log
(
item
);
console
.
log
(
item
);
// 测试代码
switch
(
item
.
name
)
{
case
'menuitem12'
:
this
.
router
.
push
(
'/JobsInfoEditView'
)
break
;
case
'menuitem13'
:
this
.
router
.
push
(
'/JobsRegistryGridView'
)
break
;
default
:
break
;
}
}
}
/**
/**
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages}}/{{pages@DEEDITVIEW}}.vue.hbs
浏览文件 @
422ee752
...
@@ -41,13 +41,17 @@ const { state } = new EditView(ViewConfig).moduleInstall(props);
...
@@ -41,13 +41,17 @@ const { state } = new EditView(ViewConfig).moduleInstall(props);
<template
v-slot:header-right
>
<template
v-slot:header-right
>
<span>
工具栏部件
</span>
<span>
工具栏部件
</span>
</template>
</template>
<
{{#
page
.
ctrls
}}{{#
eq
controlType
"FORM"
}}{{
codeName
}}
Form
{{/
eq
}}{{/
page
.
ctrls
}}
{{#
page
.
ctrls
}}
:showBusyIndicator=
"true"
{{#
eq
controlType
"FORM"
}}
:context=
"state.context"
<
{{
codeName
}}
Form
:viewParams=
"state.viewParams"
:showBusyIndicator=
"true"
:controlAction=
"state.controlsAction"
:context=
"state.context"
:viewSubject=
"state.viewSubject"
:viewParams=
"state.viewParams"
></
{{#
page
.
ctrls
}}{{#
eq
controlType
"FORM"
}}{{
codeName
}}
Form
{{/
eq
}}{{/
page
.
ctrls
}}
>
:controlAction=
"state.controlsAction"
:viewSubject=
"state.viewSubject"
></
{{
codeName
}}
Form>
{{/
eq
}}
{{/
page
.
ctrls
}}
</IbizDefaultViewLayout>
</IbizDefaultViewLayout>
</template>
</template>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages}}/{{pages@DEGRIDVIEW}}-config.ts.hbs
0 → 100644
浏览文件 @
422ee752
export const ViewConfig = {
viewCodeName: '
{{
page
.
codeName
}}
',
viewName: '
{{
page
.
name
}}
',
viewCaption: '
{{
page
.
caption
}}
',
};
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/page/{{appModules}}/{{pages}}/{{pages@DEGRIDVIEW}}.vue.hbs
浏览文件 @
422ee752
grid@
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
{{
page
.
codeName
}}
--
{{
page
.
appModule
}}
import
{
GridView
,
IActionParam
,
IParam
}
from
'@ibiz-core'
;
import
{
ViewConfig
}
from
'./
{{
page
.
codeName
.
spinalCase
}}
-config'
;
{{#
page
.
ctrls
}}
{{#
page
.
ctrls
}}
这里是页面视图 ctrl的代码名称
{{
codeName
}}
{{#
eq
controlType
"GRID"
}}
import
{
{{
codeName
}}
Grid
}
from
'@widgets/
{{
appEntity
.
codeName
.
spinalCase
}}
/
{{
codeName
.
spinalCase
}}
-grid'
;
{{/
eq
}}
{{/
page
.
ctrls
}}
{{/
page
.
ctrls
}}
这里是页面视图所属应用实体的代码名称
{{
page
.
appEntity
.
codeName
}}
// props声明和默认值处理
\ No newline at end of file
interface
Props
{
context
:
IParam
;
viewParams
?:
IParam
;
openType
?:
"ROUTE"
|
"MODAL"
|
"EMBED"
;
viewSubject
?:
Subject
<
IActionParam
>
;
}
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
// 设定默认值,可选属性可以在这初始化
viewSubject
:
()
=>
new
Subject
<
IActionParam
>
()
})
// emit声明
interface
ViewEmit
{
(
name
:
"viewEvent"
,
value
:
IActionParam
):
void
;
}
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
}
=
new
GridView
(
ViewConfig
).
moduleInstall
(
props
);
</script>
<template>
<IbizDefaultViewLayout
class=
"ibiz-grid-view"
>
<template
v-slot:header-left
>
<IbizIconText
class=
"ibiz-view__caption"
size=
"large"
text=
"state.viewCaption"
/>
</template>
<template
v-slot:header-right
>
<span>
工具栏部件
</span>
</template>
{{#
page
.
ctrls
}}
{{#
eq
controlType
"GRID"
}}
<
{{
codeName
}}
Grid
:showBusyIndicator=
"true"
:context=
"state.context"
:viewParams=
"state.viewParams"
:controlAction=
"state.controlsAction"
:viewSubject=
"state.viewSubject"
></
{{
codeName
}}
Grid>
{{/
eq
}}
{{/
page
.
ctrls
}}
</IbizDefaultViewLayout>
</template>
<style
lang=
"scss"
>
.ibiz-grid-view
{
height
:
100%
;
width
:
100%
;
}
</style>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/router/index.ts
浏览文件 @
422ee752
import
{
createRouter
,
createWebHashHistory
}
from
'vue-router'
;
import
{
createRouter
,
createWebHashHistory
}
from
'vue-router'
;
import
{
JobsInfoEditView
}
from
'@page/jobs-info/jobs-info-edit-view'
;
import
{
JobsInfoEditView
}
from
'@page/jobs-info/jobs-info-edit-view'
;
import
{
JobsRegistryGridView
}
from
'@page/jobs-registry/jobs-registry-grid-view'
;
const
routes
=
[
const
routes
=
[
{
{
path
:
'/JobsInfoEditView'
,
path
:
'/JobsInfoEditView'
,
component
:
JobsInfoEditView
component
:
JobsInfoEditView
},
},
{
path
:
'/JobsRegistryGridView'
,
component
:
JobsRegistryGridView
},
{
{
path
:
'/'
,
path
:
'/'
,
redirect
:
'JobsInfoEditView'
redirect
:
'JobsInfoEditView'
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
浏览文件 @
422ee752
...
@@ -33,8 +33,8 @@ const { state, handleEditorEvent } = new FormControl(CtrlConfig).moduleInstall(p
...
@@ -33,8 +33,8 @@ const { state, handleEditorEvent } = new FormControl(CtrlConfig).moduleInstall(p
name=
"
{{
ctrl
.
codeName
}}
"
name=
"
{{
ctrl
.
codeName
}}
"
class=
"ibiz-form
{{#if
ctrl
.
pSSysCss
}}
{{
ctrl
.
pSSysCss
.
cssName
}}{{/if}}{{#if
ctrl
.
infoFormMode
}}
ibiz-info-form
{{/if}}
"
class=
"ibiz-form
{{#if
ctrl
.
pSSysCss
}}
{{
ctrl
.
pSSysCss
.
cssName
}}{{/if}}{{#if
ctrl
.
infoFormMode
}}
ibiz-info-form
{{/if}}
"
style=
"
{{#if
ctrl
.
formWidth
}}
width:
{{
ctrl
.
formWidth
}}
px;
{{/if}}
"
style=
"
{{#if
ctrl
.
formWidth
}}
width:
{{
ctrl
.
formWidth
}}
px;
{{/if}}
"
:model=
"data"
:model=
"
state.
data"
:rules=
"rules"
>
:rules=
"
state.
rules"
>
{{#if
ctrl
.
noTabHeader
}}
{{#if
ctrl
.
noTabHeader
}}
{{#
each
ctrl
.
psDEFormPages
as
|
ctrlPage
|
}}
{{#
each
ctrl
.
psDEFormPages
as
|
ctrlPage
|
}}
{{#
each
ctrlPage
.
pSDEFormDetails
as
|
formDetail
|
}}
{{#
each
ctrlPage
.
pSDEFormDetails
as
|
formDetail
|
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/index.ts.hbs
0 → 100644
浏览文件 @
422ee752
import
{{
ctrl
.
codeName
}}
Grid from "./
{{
ctrl
.
codeName
.
spinalCase
}}
-grid.vue";
export {
{{
ctrl
.
codeName
}}
Grid };
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid-config.ts.hbs
0 → 100644
浏览文件 @
422ee752
export const CtrlConfig = {
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlName: '
{{
ctrl
.
name
}}
',
items: [],
};
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid-service.ts.hbs
0 → 100644
浏览文件 @
422ee752
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid.vue.hbs
0 → 100644
浏览文件 @
422ee752
{{>
@macro
/
form-detail
/
include-form
.
hbs
}}
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
CtrlConfig
}
from
'./
{{
ctrl
.
codeName
.
spinalCase
}}
-grid-config'
;
import
{
GridControl
,
IActionParam
,
IParam
,
ControlAction
}
from
'@ibiz-core'
;
interface
Props
{
context
:
IParam
;
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
GridControl
(
CtrlConfig
).
moduleInstall
(
props
);
</script>
<template>
</template>
<style
lang=
"scss"
>
</style>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录