Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
df1f1099
提交
df1f1099
编写于
1月 04, 2022
作者:
Shine-zwj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
上级
7329c625
变更
10
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
69 行增加
和
67 行删除
+69
-67
app-func-config.ts.hbs
...ps}}/src/ibiz-core/helper/app-func/app-func-config.ts.hbs
+1
-0
app-func-service.ts
...{apps}}/src/ibiz-core/helper/app-func/app-func-service.ts
+8
-7
view-prop-base.ts
...}/src/ibiz-core/modules/views/view-base/view-prop-base.ts
+2
-2
view-state-base.ts
.../src/ibiz-core/modules/views/view-base/view-state-base.ts
+3
-3
control-prop-base.ts
...iz-core/modules/widgets/control-base/control-prop-base.ts
+3
-3
control-state-base.ts
...z-core/modules/widgets/control-base/control-state-base.ts
+2
-2
{{ctrls@APPMENU}}-menu.vue.hbs
...s}}/{{ctrls@APPMENU}}-menu/{{ctrls@APPMENU}}-menu.vue.hbs
+2
-2
{{ctrls@FORM}}-form.vue.hbs
...ntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
+2
-2
{{ctrls@GRID}}-grid.vue.hbs
...ntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid.vue.hbs
+2
-2
{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
...ewpanel/{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
+44
-44
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/helper/app-func/app-func-config.ts.hbs
浏览文件 @
df1f1099
...
...
@@ -9,6 +9,7 @@ export const FuncConfig = [
{{/if}}
{{#if
(
eq
func
.
appFuncType
'APPVIEW'
)
}}
openMode: "
{{
func
.
openMode
}}
",
viewName: "
{{
func
.
psAppView
.
name
}}
",
viewCodeName: "
{{
func
.
psAppView
.
codeName
}}
",
{{/if}}
navParam: {
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/helper/app-func/app-func-service.ts
浏览文件 @
df1f1099
import
{
IParam
,
FuncConfig
}
from
"@ibiz-core"
;
import
{
IParam
,
FuncConfig
,
IContext
}
from
"@ibiz-core"
;
import
{
App
}
from
"@service"
;
export
class
AppFuncService
{
...
...
@@ -28,7 +28,7 @@ export class AppFuncService {
* @param {IParam} viewParams 视图参数
* @memberof AppFuncService
*/
executeAppFunc
(
menu
:
IParam
,
context
:
I
Param
,
viewParams
:
IParam
)
{
executeAppFunc
(
menu
:
IParam
,
context
:
I
Context
,
viewParams
:
IParam
)
{
const
appFunc
=
FuncConfig
.
find
((
func
:
IParam
)
=>
Object
.
is
(
func
.
funcTag
,
menu
.
funcTag
));
if
(
appFunc
)
{
switch
(
appFunc
.
appFuncType
)
{
...
...
@@ -57,7 +57,7 @@ export class AppFuncService {
* @param {IParam} viewParams 视图参数
* @memberof AppFuncService
*/
executeCustomFunc
(
appFunc
:
IParam
,
context
:
IParam
,
viewParams
:
IParam
)
{
private
executeCustomFunc
(
appFunc
:
IParam
,
context
:
IContext
,
viewParams
:
IParam
)
{
console
.
warn
(
`
${
appFunc
.
appFuncType
}
类型应用功能暂未支持`
);
}
...
...
@@ -68,7 +68,7 @@ export class AppFuncService {
* @param {IParam} viewParams 视图参数
* @memberof AppFuncService
*/
executeJavaScript
(
appFunc
:
IParam
,
context
:
IParam
,
viewParams
:
IParam
)
{
private
executeJavaScript
(
appFunc
:
IParam
,
context
:
IContext
,
viewParams
:
IParam
)
{
console
.
warn
(
`
${
appFunc
.
appFuncType
}
类型应用功能暂未支持`
);
}
...
...
@@ -80,7 +80,7 @@ export class AppFuncService {
* @param {IParam} viewParams 视图参数
* @memberof AppFuncService
*/
executePresetFunc
(
appFunc
:
IParam
,
context
:
IParam
,
viewParams
:
IParam
)
{
private
executePresetFunc
(
appFunc
:
IParam
,
context
:
IContext
,
viewParams
:
IParam
)
{
console
.
warn
(
`
${
appFunc
.
appFuncType
}
类型应用功能暂未支持`
);
}
...
...
@@ -91,7 +91,7 @@ export class AppFuncService {
* @param {IParam} viewParams 视图参数
* @memberof AppFuncService
*/
openHtmlPage
(
appFunc
:
IParam
,
context
:
IParam
,
viewParams
:
IParam
)
{
private
openHtmlPage
(
appFunc
:
IParam
,
context
:
IContext
,
viewParams
:
IParam
)
{
window
.
open
(
appFunc
.
htmlPageUrl
,
'_blank'
);
}
...
...
@@ -102,8 +102,9 @@ export class AppFuncService {
* @param {IParam} viewParams 视图参数
* @memberof AppFuncService
*/
openAppView
(
appFunc
:
IParam
,
context
:
IParam
,
viewParams
:
IParam
)
{
private
openAppView
(
appFunc
:
IParam
,
context
:
IContext
,
viewParams
:
IParam
)
{
const
view
=
{
name
:
appFunc
.
viewName
,
codeName
:
appFunc
.
viewCodeName
,
openMode
:
appFunc
.
openMode
,
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/views/view-base/view-prop-base.ts
浏览文件 @
df1f1099
import
{
Subject
}
from
"rxjs"
;
import
{
IActionParam
,
IParam
}
from
"@ibiz-core"
;
import
{
IActionParam
,
IParam
,
IContext
}
from
"@ibiz-core"
;
/**
* @description 视图props的基类
...
...
@@ -13,7 +13,7 @@ export interface ViewPropsBase {
* @type {IParam}
* @memberof ViewPropsBase
*/
context
?:
I
Param
;
context
?:
I
Context
;
/**
* @description 视图参数(外部传入)
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/views/view-base/view-state-base.ts
浏览文件 @
df1f1099
import
{
Subject
}
from
"rxjs"
;
import
{
IActionParam
,
IParam
}
from
'@ibiz-core'
;
import
{
IActionParam
,
IParam
,
IContext
}
from
'@ibiz-core'
;
/**
* @description 视图基类状态
...
...
@@ -24,10 +24,10 @@ export interface ViewStateBase {
/**
* @description 上下文参数
* @type {I
Param
}
* @type {I
Context
}
* @memberof ViewStateBase
*/
context
:
I
Param
;
context
:
I
Context
;
/**
* @description 视图参数
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/control-base/control-prop-base.ts
浏览文件 @
df1f1099
import
{
Subject
}
from
"rxjs"
;
import
{
IActionParam
,
IParam
}
from
"@ibiz-core"
;
import
{
IActionParam
,
IParam
,
IContext
}
from
"@ibiz-core"
;
/**
* @description 部件props的基类
...
...
@@ -10,10 +10,10 @@ export interface ControlPropsBase {
/**
* @description 上下文参数(外部传入)
* @type {I
Param
}
* @type {I
Context
}
* @memberof ControlPropsBase
*/
context
?:
I
Param
;
context
?:
I
Context
;
/**
* @description 视图参数(外部传入)
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/control-base/control-state-base.ts
浏览文件 @
df1f1099
import
{
IActionParam
,
IParam
}
from
"@ibiz-core"
;
import
{
IActionParam
,
IParam
,
IContext
}
from
"@ibiz-core"
;
import
{
Subject
}
from
"rxjs"
;
/**
...
...
@@ -27,7 +27,7 @@ export interface ControlStateBase {
* @type {IParam}
* @memberof ControlStateBase
*/
context
:
I
Param
;
context
:
I
Context
;
/**
* @description 视图参数
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@APPMENU}}-menu/{{ctrls@APPMENU}}-menu.vue.hbs
浏览文件 @
df1f1099
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
"rxjs"
;
import
{
CtrlConfig
}
from
"./
{{
spinalCase
ctrl
.
codeName
}}
-menu-config"
;
import
{
IParam
,
IActionParam
,
MenuControl
}
from
"@ibiz-core"
;
import
{
IParam
,
IActionParam
,
MenuControl
,
IContext
}
from
"@ibiz-core"
;
interface
Props
{
context
:
I
Param
;
context
:
I
Context
;
defaultView
:
string
;
collapsed
:
boolean
;
menuAlign
:
"LEFT"
|
"TOP"
|
"CENTER"
|
"TABEXP_LEFT"
|
"TABEXP_TOP"
|
"TABEXP_RIGHT"
|
"TABEXP_BOTTOM"
|
"NONE"
;
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form.vue.hbs
浏览文件 @
df1f1099
...
...
@@ -2,10 +2,10 @@
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
CtrlConfig
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-form-config'
;
import
{
FormControl
,
IActionParam
,
IParam
,
ControlAction
}
from
'@ibiz-core'
;
import
{
FormControl
,
IActionParam
,
IParam
,
ControlAction
,
IContext
}
from
'@ibiz-core'
;
interface
Props
{
context
:
I
Param
;
context
:
I
Context
;
viewParams
?:
IParam
;
controlAction
:
ControlAction
;
showBusyIndicator
?:
boolean
;
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid.vue.hbs
浏览文件 @
df1f1099
...
...
@@ -2,10 +2,10 @@
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
CtrlConfig
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-grid-config'
;
import
{
GridControl
,
IActionParam
,
IParam
,
ControlAction
,
deepCopy
}
from
'@ibiz-core'
;
import
{
GridControl
,
IActionParam
,
IParam
,
IContext
,
ControlAction
,
deepCopy
}
from
'@ibiz-core'
;
interface
Props
{
context
:
I
Param
;
context
:
I
Context
;
multiple
:
boolean
;
rowEditState
:
boolean
;
rowActiveMode
:
0
|
1
|
2
;
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel/{{ctrls@PICKUPVIEWPANEL}}-pickupviewpanel.vue.hbs
浏览文件 @
df1f1099
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
IActionParam
,
IParam
,
ControlAction
,
PickupViewPanelControl
}
from
'@ibiz-core'
;
import
{
CtrlConfig
}
from
'./
{{
ctrl
.
codeName
.
spinalCase
}}
-pickupviewpanel-config'
;
interface
Props
{
context
:
IParam
;
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
,
inited
,
viewdata
,
viewparam
}
=
new
PickupViewPanelControl
(
CtrlConfig
).
moduleInstall
(
props
);
import
{
Subject
}
from
'rxjs'
;
import
{
IActionParam
,
IParam
,
ControlAction
,
PickupViewPanelControl
,
IContext
}
from
'@ibiz-core'
;
import
{
CtrlConfig
}
from
'./
{{
ctrl
.
codeName
.
spinalCase
}}
-pickupviewpanel-config'
;
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
,
inited
,
viewdata
,
viewparam
}
=
new
PickupViewPanelControl
(
CtrlConfig
).
moduleInstall
(
props
);
</script>
<template>
<div
class=
"ibiz-pickupviewpanel"
>
<component
v-if=
"inited && state.embeddedView && state.embeddedView.viewName"
:if=
"state.embeddedView.viewName"
:viewdata=
"viewdata"
:viewparam=
"viewparam"
:isSingleSelect=
"state.isSingleSelect"
:isShowButton=
"state.isShowButton"
:selectedData=
"state.selectedData"
></component>
</div>
<div
class=
"ibiz-pickupviewpanel"
>
<component
v-if=
"inited && state.embeddedView && state.embeddedView.viewName"
:if=
"state.embeddedView.viewName"
:viewdata=
"viewdata"
:viewparam=
"viewparam"
:isSingleSelect=
"state.isSingleSelect"
:isShowButton=
"state.isShowButton"
:selectedData=
"state.selectedData"
></component>
</div>
</template>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录