Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
24440741
提交
24440741
编写于
2月 18, 2022
作者:
Mosher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
1、补充表单关系界面导航参数处理逻辑 2、增加主数据视图刷新逻辑 3、调整主数据视图通知部件加载逻辑
上级
601a40e8
变更
13
显示空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
265 行增加
和
90 行删除
+265
-90
form-druipart.hbs
...r7/@macro/front-end/widgets/form-detail/form-druipart.hbs
+22
-10
app-form-druipart.vue
.../app_{{apps}}/src/components/common/app-form-druipart.vue
+79
-40
edit-view.ts
...pp_{{apps}}/src/core/modules/views/edit-view/edit-view.ts
+28
-18
main-view.ts
...pp_{{apps}}/src/core/modules/views/main-view/main-view.ts
+53
-1
md-view.ts
...r7/app_{{apps}}/src/core/modules/views/md-view/md-view.ts
+23
-12
view-base.ts
...pp_{{apps}}/src/core/modules/views/view-base/view-base.ts
+7
-3
view-prop-base.ts
...apps}}/src/core/modules/views/view-base/view-prop-base.ts
+7
-0
view-state-base.ts
...pps}}/src/core/modules/views/view-base/view-state-base.ts
+14
-0
form-control-state.ts
...c/core/modules/widgets/form-control/form-control-state.ts
+15
-0
form-control.ts
...s}}/src/core/modules/widgets/form-control/form-control.ts
+14
-2
ui-util.ts
...ources/templ/r7/app_{{apps}}/src/core/utils/ui/ui-util.ts
+1
-1
{{pages@DEEDITVIEW}}.vue.hbs
...dules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
+1
-2
{{pages@DEGRIDVIEW}}.vue.hbs
...dules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
+1
-1
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/form-detail/form-druipart.hbs
浏览文件 @
24440741
<AppFormDruipart
name=
"
{{
item
.
codeName
}}
"
title=
"
{{
item
.
caption
}}
"
:formSubject=
"state.formSubject"
:visible=
"state.detailsModel.
{{
item
.
codeName
}}
.visible"
viewCodeName=
"
{{
item
.
psAppView
.
codeName
}}
"
:layoutOpts=
"
{{>
@macro
/
front-end
/
common
/
layoutPos
.
hbs
layout
=
item
.
psLayout
layoutPos
=
item
.
psLayoutPos
}}
"
{{#if
item
.
psSysCss
}}
class=
"
{{
item
.
psSysCss
.
cssName
}}
"
...
...
@@ -9,8 +11,16 @@
{{#if
(
or
item
.
width
item
.
height
)
}}
style=
"
{{#if
item
.
width
}}
width:
{{
item
.
width
}}
px;
{{/if}}{{#if
item
.
height
}}
height:
{{
item
.
height
}}
px;
{{/if}}
"
{{/if}}
paramItem=
"
{{#if
item
.
paramItem
}}{{
item
.
paramItem
}}{{else}}
srfkey
{{/if}}
"
deCodeName=
"
{{
lowerCase
ctrl
.
appEntity
.
codeName
}}
"
:context=
"context"
:viewParams=
"viewParams"
{{#if
item
.
psNavigateContexts
}}
:localContext=
"
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
item
.
psNavigateContexts
}}
"
{{/if}}
{{#if
item
.
psNavigateParams
}}
:localViewParams=
"
{{>
@macro
/
front-end
/
common
/
navparam
.
hbs
appNavParams
=
item
.
psNavigateParams
}}
"
{{/if}}
:data=
"state.data"
:viewSubject=
"state.viewSubject"
>
<template
#
default=
"druipartParams"
>
...
...
@@ -19,7 +29,9 @@
:context=
"druipartParams.context"
:viewParams=
"druipartParams.viewParams"
:viewDefaultUsage=
"false"
:noViewCaption=
"true"
:showCaptionBar=
"false"
openType=
"EMBED"
:viewSubject=
"state.viewSubject"
@
viewEvent=
"druipartParams.viewEvent"
>
</
{{
item
.
psAppView
.
codeName
}}
>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-form-druipart.vue
浏览文件 @
24440741
<
script
setup
lang=
"ts"
>
import
{
IActionParam
,
ILayoutOpts
,
IParam
,
RouteUtil
}
from
'@core'
;
import
{
deepCopy
,
IActionParam
,
ILayoutOpts
,
IParam
,
RouteUtil
,
UIUtil
}
from
'@core'
;
import
{
context
}
from
'ant-design-vue/lib/vc-image/src/PreviewGroup'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
Ref
}
from
'vue'
;
interface
FormDruipartProps
{
// 名称
name
:
string
;
...
...
@@ -11,7 +13,9 @@ interface FormDruipartProps {
// 禁止加载
isForbidLoad
?:
boolean
;
// 传入参数项名称
paramItem
?:
string
;
paramItem
:
string
;
// 表单实体代码标识
deCodeName
:
string
;
// 视图上下文
context
:
any
;
// 视图参数
...
...
@@ -27,13 +31,21 @@ interface FormDruipartProps {
// 表单数据
data
:
any
;
// 视图订阅对象
viewSubject
:
Subject
<
any
>
;
viewSubject
:
Subject
<
IActionParam
>
;
// 表单订阅对象
formSubject
:
Subject
<
any
>
;
// 视图路由参数
parameters
?
:
any
[];
parameters
:
any
[];
// 是否忽略表单项值变化
ignoreFieldValueChange
?:
boolean
;
// 是否显示
visible
?:
boolean
;
// 关系视图标识
viewCodeName
:
string
;
// 导航上下文
localContext
?:
IParam
;
// 导航视图参数
localViewParams
?:
IParam
;
}
interface
FormDruipartEmit
{
(
name
:
'componentEvent'
,
value
:
IActionParam
):
void
;
...
...
@@ -44,15 +56,17 @@ const props = withDefaults(defineProps<FormDruipartProps>(), {
const
emit
=
defineEmits
<
FormDruipartEmit
>
();
// 视图通讯事件
let
viewSubjectEvent
:
undefined
|
Subscription
=
undefined
;
const
formDruipart
:
Subject
<
any
>
=
new
Subject
<
any
>
();
// 表单通讯事件
let
formSubjectEvent
:
undefined
|
Subscription
=
undefined
;
// 关秀界面上下文
let
druipartContext
:
any
=
undefined
;
let
druipartContext
:
Ref
<
any
>
=
ref
({})
;
// 关秀界面视图参数
let
druipartViewParams
:
any
=
undefined
;
let
druipartViewParams
:
Ref
<
any
>
=
ref
({})
;
onBeforeMount
(()
=>
{
watch
(
...
...
@@ -75,44 +89,69 @@ const druipartInit = () => {
return
;
}
viewSubjectEvent
=
props
.
viewSubject
.
subscribe
((
$event
:
any
)
=>
{
// 表单加载完成
if
(
Object
.
is
(
$event
.
type
,
'load'
))
{
refreshDRUIPart
(
$event
.
data
);
}
// 视图事件
});
// formSubjectEvent = props.formSubject.subscribe(({ type, data }) => {
// // 表单加载完成
// if (type && Object.is(type, 'load')) {
// refreshDRUIPart(data);
// }
// })
};
// 刷新关系界面
const
refreshDRUIPart
=
(
data
?:
any
)
=>
{
// const formData: any = data ? data : JSON.parse(props.data);
// const _paramItem = formData[props.paramItem];
// let tempContext: any = {};
// let tempParam: any = {};
// const _parameters: any[] = [RouteUtil.getIndexViewParam(), ...props.parameters];
// _parameters.forEach((parameter: any) => {
// const { pathName, parameterName }: { pathName: string; parameterName: string } = parameter;
// if (formData[parameterName] && !Object.is(formData[parameterName], '')) {
// Object.assign(tempContext, {
// [parameterName]: formData[parameterName],
// });
// }
// });
// Object.assign(tempContext, { [props.paramItem]: _paramItem });
// //设置顶层视图唯一标识
// Object.assign(tempContext, props.context);
// Object.assign(tempContext, {
// srfParentDeName: props.parentName,
// srfParentDeMapName: props.parentDeName,
// srfParentKey: _paramItem,
// });
// Object.assign(tempParam, {
// srfParentDeName: props.parentName,
// srfParentDeMapName: props.parentDeName,
// srfParentKey: _paramItem,
// });
const
formData
:
any
=
data
?
data
:
props
.
data
;
const
paramItem
=
formData
[
props
.
paramItem
];
// 应用上下文
const
tempContext
=
deepCopy
(
props
.
context
);
// 视图参数
const
tempParams
:
any
=
deepCopy
(
props
.
viewParams
);
// 路由参数
const
_parameters
:
any
[]
=
[
RouteUtil
.
getIndexViewParam
()];
if
(
props
.
parameters
&&
props
.
parameters
.
length
)
{
_parameters
.
push
(...
props
.
parameters
);
}
_parameters
.
forEach
((
parameter
:
any
)
=>
{
const
{
pathName
,
parameterName
}:
{
pathName
:
string
;
parameterName
:
string
}
=
parameter
;
if
(
formData
[
parameterName
]
&&
!
Object
.
is
(
formData
[
parameterName
],
''
))
{
Object
.
assign
(
tempContext
,
{
[
parameterName
]:
formData
[
parameterName
],
});
}
});
Object
.
assign
(
tempContext
,
{
[
props
.
paramItem
]:
paramItem
});
if
(
formData
&&
(
formData
[
props
.
deCodeName
]
||
formData
.
srfkey
))
{
Object
.
assign
(
tempContext
,
{
[
props
.
deCodeName
]:
formData
[
props
.
deCodeName
]
||
formData
.
srfkey
});
}
//设置顶层视图唯一标识
Object
.
assign
(
tempContext
,
{
srfParentDeName
:
props
.
parentName
,
srfParentDeMapName
:
props
.
parentDeName
,
srfParentKey
:
paramItem
,
});
Object
.
assign
(
tempParams
,
{
srfParentDeName
:
props
.
parentName
,
srfParentDeMapName
:
props
.
parentDeName
,
srfParentKey
:
paramItem
,
});
// 导航上下文
if
(
props
.
localContext
)
{
Object
.
assign
(
tempContext
,
UIUtil
.
computedNavData
(
formData
,
tempContext
,
tempParams
,
props
.
localContext
))
}
// 导航视图参数
if
(
props
.
localViewParams
)
{
Object
.
assign
(
tempParams
,
UIUtil
.
computedNavData
(
formData
,
tempContext
,
tempParams
,
props
.
localViewParams
))
}
Object
.
assign
(
druipartContext
.
value
,
tempContext
);
Object
.
assign
(
druipartViewParams
.
value
,
tempParams
);
nextTick
(()
=>
{
// 设置局部上下文
formDruipart
.
next
({
action
:
'load'
});
if
(
props
.
viewSubject
)
{
props
.
viewSubject
.
next
({
tag
:
props
.
viewCodeName
,
action
:
'viewRefresh'
,
data
:
[]
});
}
})
};
const
viewEvent
=
(
action
:
any
)
=>
{
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/edit-view/edit-view.ts
浏览文件 @
24440741
...
...
@@ -24,33 +24,43 @@ export class EditView extends MainView {
public
declare
form
:
IParam
;
/**
* @description 处理视图初始化
*
* @description 数据部件加载
* @protected
* @param {IParam} [data]
* @memberof EditView
*/
public
useViewInit
()
{
super
.
useViewInit
();
// 初始化表单引用
this
.
form
=
ref
(
null
);
onMounted
(()
=>
{
protected
xDataControlLoad
(
data
?:
IParam
)
{
// 初始化数据能力部件
this
.
xDataControl
=
this
.
getForm
();
const
{
isLoadDefault
,
context
,
viewparams
,
appDeKeyField
Name
}
=
this
.
state
;
const
{
isLoadDefault
,
context
,
viewParams
,
appEntityCode
Name
}
=
this
.
state
;
if
(
this
.
getForm
()
&&
isLoadDefault
)
{
const
tag
=
this
.
getForm
().
name
;
let
action
:
string
=
''
;
if
(
appDeKeyField
Name
&&
context
[
appDeKeyFieldName
]
&&
!
Object
.
is
(
context
[
appDeKeyFieldName
],
''
)
appEntityCode
Name
&&
context
[
appEntityCodeName
.
toLowerCase
()
]
&&
!
Object
.
is
(
context
[
appEntityCodeName
.
toLowerCase
()
],
''
)
)
{
action
=
'load'
;
}
else
{
action
=
'loadDraft'
;
}
this
.
next
({
tag
:
tag
,
action
:
action
,
data
:
viewp
arams
});
this
.
next
({
tag
:
tag
,
action
:
action
,
data
:
viewP
arams
});
}
this
.
state
.
isLoadDefault
=
true
;
}
/**
* @description 处理视图初始化
*
* @memberof EditView
*/
public
useViewInit
()
{
super
.
useViewInit
();
// 初始化表单引用
this
.
form
=
ref
(
null
);
onMounted
(()
=>
{
this
.
xDataControlLoad
();
})
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/main-view/main-view.ts
浏览文件 @
24440741
import
{
ViewBase
,
MainViewState
,
IActionParam
,
IParam
}
from
'@core'
;
import
{
ViewBase
,
MainViewState
,
IActionParam
,
IParam
,
isExistAndNotEmpty
}
from
'@core'
;
/**
* 实体视图
...
...
@@ -23,6 +23,57 @@ export class MainView extends ViewBase {
*/
public
appUIService
:
any
;
/**
* @description 使用视图初始化模块
* @memberof MainView
*/
public
useViewInit
():
void
{
super
.
useViewInit
();
const
{
viewSubject
,
viewCodeName
}
=
this
.
state
;
if
(
viewSubject
)
{
viewSubject
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
tag
||
tag
!==
viewCodeName
)
{
return
;
}
if
(
action
===
'viewRefresh'
)
{
this
.
refresh
(
data
);
}
})
}
}
/**
* @description 数据部件加载
* @protected
* @param {IParam} [data]
* @memberof MainView
*/
protected
xDataControlLoad
(
data
?:
IParam
):
void
{
}
/**
* @description 视图刷新
* @protected
* @param {IParam} [data]
* @memberof MainView
*/
protected
refresh
(
data
?:
IParam
):
void
{
}
/**
* @description 使用视图刷新模块
* @return {*}
* @memberof MainView
*/
public
useRefresh
()
{
const
refresh
=
(
data
?:
IParam
)
=>
{
const
{
xDataControlName
}
=
this
.
state
;
if
(
isExistAndNotEmpty
(
xDataControlName
))
{
this
.
xDataControlLoad
();
}
}
this
.
refresh
=
refresh
;
return
refresh
;
}
/**
* 设置工具栏项状态
*
...
...
@@ -144,6 +195,7 @@ export class MainView extends ViewBase {
return
{
...
superParams
,
xDataControl
:
this
.
xDataControl
,
refresh
:
this
.
useRefresh
(),
onToolbarEvent
:
this
.
onToolbarEvent
.
bind
(
this
),
};
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/md-view/md-view.ts
浏览文件 @
24440741
...
...
@@ -40,6 +40,28 @@ export class MDView extends MainView {
*/
public
declare
searchBar
:
IParam
;
/**
* @description 数据部件加载
* @protected
* @param {IParam} [data]
* @memberof MDView
*/
protected
xDataControlLoad
(
data
?:
IParam
):
void
{
// 初始化数据能力部件
this
.
xDataControl
=
this
.
getMDCtrl
();
const
{
isLoadDefault
}
=
this
.
state
;
const
searchForm
=
this
.
getSearchForm
();
if
(
searchForm
&&
isLoadDefault
)
{
const
tag
=
searchForm
.
name
;
this
.
next
({
tag
:
tag
,
action
:
'loaddraft'
,
data
:
null
});
}
else
if
(
this
.
xDataControl
&&
isLoadDefault
)
{
const
tag
=
this
.
xDataControl
.
name
;
this
.
next
({
tag
:
tag
,
action
:
'load'
,
data
:
null
});
}
else
{
this
.
state
.
isLoadDefault
=
true
;
}
}
/**
* @description 处理视图初始化
*
...
...
@@ -54,18 +76,7 @@ export class MDView extends MainView {
// 初始化搜索栏引用
this
.
searchBar
=
ref
(
null
);
onMounted
(()
=>
{
// 初始化数据能力部件
this
.
xDataControl
=
this
.
getMDCtrl
();
const
{
isLoadDefault
}
=
this
.
state
;
if
(
this
.
getSearchForm
()
&&
isLoadDefault
)
{
const
tag
=
this
.
getSearchForm
().
name
;
this
.
next
({
tag
:
tag
,
action
:
'loaddraft'
,
data
:
null
});
}
else
if
(
this
.
getMDCtrl
()
&&
isLoadDefault
)
{
const
tag
=
this
.
getMDCtrl
().
name
;
this
.
next
({
tag
:
tag
,
action
:
'load'
,
data
:
null
});
}
else
{
this
.
state
.
isLoadDefault
=
true
;
}
this
.
xDataControlLoad
();
});
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/view-base/view-base.ts
浏览文件 @
24440741
...
...
@@ -67,6 +67,9 @@ export class ViewBase {
*/
protected
handleReactiveState
()
{
this
.
state
.
viewSubject
=
toRef
(
this
.
props
,
'viewSubject'
)
as
any
;
if
(
this
.
props
.
showCaptionBar
===
false
)
{
this
.
state
.
showCaptionBar
=
false
;
}
}
/**
...
...
@@ -111,7 +114,7 @@ export class ViewBase {
Object
.
assign
(
context
.
value
,
appData
.
context
?
appData
.
context
:
{});
// 视图应用上下文
const
pageContext
=
{};
const
routeParams
=
useRoute
().
params
;
const
routeParams
=
useRoute
()
?
.
params
;
if
(
routeParams
&&
(
Object
.
keys
(
routeParams
).
length
>
0
))
{
Object
.
keys
(
routeParams
).
forEach
((
key
:
string
)
=>
{
if
(
routeParams
[
key
])
{
...
...
@@ -122,7 +125,7 @@ export class ViewBase {
Object
.
assign
(
context
.
value
,
pageContext
);
// 视图参数
const
pageViewParams
=
{};
const
routeQuerys
=
useRoute
().
query
;
const
routeQuerys
=
useRoute
()
?
.
query
;
if
(
routeQuerys
&&
(
Object
.
keys
(
routeQuerys
).
length
>
0
))
{
Object
.
keys
(
routeQuerys
).
forEach
((
key
:
string
)
=>
{
if
(
routeQuerys
[
key
])
{
...
...
@@ -160,7 +163,8 @@ export class ViewBase {
// 导航视图参数处理
this
.
handleViewContextParams
(
this
.
props
,
context
,
viewParams
);
watch
(
context
,
(
newVal
:
any
,
oldVal
:
any
)
=>
{
this
.
handleViewContextParams
(
this
.
props
,
newVal
,
viewParams
);
// context转响应式对象
this
.
handleViewContextParams
(
this
.
props
,
isRef
(
newVal
)
?
newVal
:
ref
(
newVal
),
viewParams
);
});
// 把Ref赋值到State上进行解包
this
.
state
.
context
=
context
;
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/view-base/view-prop-base.ts
浏览文件 @
24440741
...
...
@@ -35,4 +35,11 @@ export interface ViewPropsBase {
* @memberof ViewPropsBase
*/
openType
?:
"ROUTE"
|
"MODAL"
|
"EMBED"
;
/**
* @description 是否显示标题栏
* @type {boolean}
* @memberof ViewPropsBase
*/
showCaptionBar
?:
boolean
;
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/view-base/view-state-base.ts
浏览文件 @
24440741
...
...
@@ -15,6 +15,13 @@ export interface ViewStateBase {
*/
context
:
IParam
;
/**
* @description 视图标识
* @type {string}
* @memberof ViewStateBase
*/
viewCodeName
:
string
;
/**
* @description 视图参数
* @type {IParam}
...
...
@@ -29,6 +36,13 @@ export interface ViewStateBase {
*/
viewSubject
:
Subject
<
IActionParam
>
;
/**
* @description 是否显示标题栏
* @type {boolean}
* @memberof ViewStateBase
*/
showCaptionBar
:
boolean
;
// 声明任意属性
[
propName
:
string
]:
any
;
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/form-control/form-control-state.ts
浏览文件 @
24440741
import
{
Subject
}
from
'rxjs'
;
import
{
ControlVOBase
,
IParam
,
MainControlState
}
from
'@core'
;
/**
...
...
@@ -8,6 +9,13 @@ import { ControlVOBase, IParam, MainControlState } from '@core';
*/
export
interface
FormControlState
extends
MainControlState
{
/**
* @description 行为模型
* @type {IParam}
* @memberof FormControlState
*/
actionModel
:
IParam
;
/**
* @description 新建默认值集合
* @type {IParam[]}
...
...
@@ -29,6 +37,13 @@ export interface FormControlState extends MainControlState {
*/
detailsModel
:
IParam
;
/**
* @description 表单通讯对象
* @type {Subject<any>}
* @memberof FormControlState
*/
formSubject
:
Subject
<
any
>
;
/**
* @description 值规则
* @type {IParam}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/form-control/form-control.ts
浏览文件 @
24440741
import
{
Subject
}
from
'rxjs'
;
import
{
DataTypes
,
dateFormat
,
...
...
@@ -35,6 +36,16 @@ export class FormControl extends MainControl {
return
[
this
.
state
.
data
];
}
/**
* 设置表单状态
*
* @memberof FormControl
*/
public
setState
()
{
super
.
setState
();
this
.
state
.
formSubject
=
new
Subject
();
}
/**
* @description 检验表单动态逻辑
* @param {IParam} data 表单数据
...
...
@@ -454,7 +465,7 @@ export class FormControl extends MainControl {
*/
const
load
=
async
(
opt
:
any
=
{})
=>
{
try
{
const
{
controlService
,
context
,
viewParams
,
showBusyIndicator
,
controlAction
}
=
this
.
state
;
const
{
controlService
,
context
,
viewParams
,
showBusyIndicator
,
controlAction
,
formSubject
}
=
this
.
state
;
if
(
!
controlAction
.
loadAction
)
{
return
;
}
...
...
@@ -472,6 +483,7 @@ export class FormControl extends MainControl {
this
.
state
.
data
=
response
.
data
;
this
.
emit
(
'ctrlEvent'
,
{
tag
:
this
.
props
.
name
,
action
:
'load'
,
data
:
[
response
.
data
]
});
this
.
afterFormAction
(
'load'
);
formSubject
.
next
({
type
:
'load'
,
data
:
this
.
state
.
data
});
}
}
catch
(
error
)
{
// TODO 错误异常处理
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/utils/ui/ui-util.ts
浏览文件 @
24440741
...
...
@@ -78,7 +78,7 @@ export class UIUtil {
let
value
:
string
|
null
=
params
[
name
];
if
(
value
&&
value
.
toString
().
startsWith
(
'%'
)
&&
value
.
toString
().
endsWith
(
'%'
))
{
const
key
=
value
.
substring
(
1
,
value
.
length
-
1
).
toLowerCase
();
if
(
activedata
&&
activedata
.
hasOwnProperty
(
key
))
{
if
(
activedata
&&
(
activedata
.
hasOwnProperty
(
key
)
||
key
in
activedata
))
{
value
=
activedata
[
key
];
}
else
if
(
context
&&
context
[
key
])
{
value
=
context
[
key
];
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEEDITVIEW}}/{{pages@DEEDITVIEW}}.vue.hbs
浏览文件 @
24440741
...
...
@@ -35,13 +35,12 @@ const { state, form, onToolbarEvent, onCtrlEvent } = editView;
</script>
<template>
<AppEditViewLayout
:class=
"['app-edit-view', state.viewSysCss]"
>
<AppEditViewLayout
:class=
"['app-edit-view', state.viewSysCss]"
:showCaptionBar=
"state.showCaptionBar"
>
<template
v-slot:caption
>
<AppIconText
class=
"app-view__caption"
size=
"large"
:subCaption=
"state.subCaption"
:showCaptionBar=
"state.showCaptionBar"
:text=
"state.viewCaption"
/>
</template>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
浏览文件 @
24440741
...
...
@@ -45,7 +45,7 @@ const { state, grid, searchForm, quickSearchForm, onCtrlEvent, onToolbarEvent, o
</script>
<template>
<AppGridViewLayout
:class=
"['app-grid-view', state.viewSysCss]"
>
<AppGridViewLayout
:class=
"['app-grid-view', state.viewSysCss]"
:showCaptionBar=
"state.showCaptionBar"
>
<template
v-slot:caption
>
<AppIconText
class=
"app-view__caption"
size=
"large"
:text=
"state.viewCaption"
/>
</template>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录