Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
0014dcc9
提交
0014dcc9
编写于
3月 09, 2022
作者:
Mosher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新适配TS版本发布器
上级
d008398c
变更
11
显示空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
75 行增加
和
53 行删除
+75
-53
derules.hbs
...in/resources/templ/r7/@macro/front-end/common/derules.hbs
+2
-2
app-panel-container.vue
...pp_{{apps}}/src/components/common/app-panel-container.vue
+3
-2
control-base.ts
...s}}/src/core/modules/widgets/control-base/control-base.ts
+2
-2
exp-bar-control.ts
...c/core/modules/widgets/exp-bar-control/exp-bar-control.ts
+31
-5
main-control.ts
...s}}/src/core/modules/widgets/main-control/main-control.ts
+7
-13
{{ctrls@FORM}}-form-state.ts.hbs
...es}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form-state.ts.hbs
+7
-7
{{ctrls@GRID}}-grid-state.ts.hbs
...es}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid-state.ts.hbs
+10
-9
{{ctrls@TREEEXPBAR}}-tree-exp-bar-state.ts.hbs
...ee-exp-bar/{{ctrls@TREEEXPBAR}}-tree-exp-bar-state.ts.hbs
+1
-1
{{ctrls@TREEEXPBAR}}-tree-exp-bar.vue.hbs
...}}-tree-exp-bar/{{ctrls@TREEEXPBAR}}-tree-exp-bar.vue.hbs
+9
-9
{{ctrls@TREEVIEW}}-tree-state.ts.hbs
...trls@TREEVIEW}}-tree/{{ctrls@TREEVIEW}}-tree-state.ts.hbs
+1
-1
{{ctrls@TREEVIEW}}-tree.vue.hbs
...}/{{ctrls@TREEVIEW}}-tree/{{ctrls@TREEVIEW}}-tree.vue.hbs
+2
-2
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/common/derules.hbs
浏览文件 @
0014dcc9
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
{{#if
item
.
condOp
}}
{{#if
item
.
condOp
}}
"condOp": "
{{
item
.
condOp
}}
",
"condOp": "
{{
item
.
condOp
}}
",
{{/if}}
{{/if}}
"notMode":
{{
item
.
notMode
}}
,
"notMode":
{{
#if
item
.
notMode
}}
true
{{else}}
false
{{/if
}}
,
"condType": "
{{
item
.
condType
}}
",
"condType": "
{{
item
.
condType
}}
",
"ruleInfo": "
{{
item
.
ruleInfo
}}
",
"ruleInfo": "
{{
item
.
ruleInfo
}}
",
"keyCond":
{{
item
.
keyCond
}}
,
"keyCond":
{{
#if
item
.
keyCond
}}
true
{{else}}
false
{{/if
}}
,
{{#
eq
item
.
condType
'SIMPLE'
}}
{{#
eq
item
.
condType
'SIMPLE'
}}
"paramType": "
{{
item
.
paramType
}}
",
"paramType": "
{{
item
.
paramType
}}
",
"paramValue": "
{{
item
.
paramValue
}}
",
"paramValue": "
{{
item
.
paramValue
}}
",
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/common/app-panel-container.vue
浏览文件 @
0014dcc9
...
@@ -6,7 +6,8 @@ interface IProps {
...
@@ -6,7 +6,8 @@ interface IProps {
name
:
string
;
name
:
string
;
layoutOpts
:
ILayoutOpts
;
layoutOpts
:
ILayoutOpts
;
visible
:
boolean
;
visible
:
boolean
;
showCaption
?:
boolean
showCaption
?:
boolean
;
labelCssName
?:
string
;
}
}
const
props
=
withDefaults
(
defineProps
<
IProps
>
(),
{
const
props
=
withDefaults
(
defineProps
<
IProps
>
(),
{
showCaption
:
true
showCaption
:
true
...
@@ -17,7 +18,7 @@ const props = withDefaults(defineProps<IProps>(), {
...
@@ -17,7 +18,7 @@ const props = withDefaults(defineProps<IProps>(), {
<
template
>
<
template
>
<AppRow
:layoutOpts=
"layoutOpts"
v-show=
"visible"
>
<AppRow
:layoutOpts=
"layoutOpts"
v-show=
"visible"
>
<div
v-if=
"showCaption"
class=
"panel-container-header"
>
<div
v-if=
"showCaption"
class=
"panel-container-header"
>
<span
class=
"text
"
>
{{
caption
}}
</span>
<span
:class=
"['text', labelCssName]
"
>
{{
caption
}}
</span>
</div>
</div>
<slot></slot>
<slot></slot>
</AppRow>
</AppRow>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/control-base/control-base.ts
浏览文件 @
0014dcc9
...
@@ -128,8 +128,8 @@ export class ControlBase {
...
@@ -128,8 +128,8 @@ export class ControlBase {
return
{
return
{
state
:
this
.
state
,
state
:
this
.
state
,
name
:
this
.
state
.
controlName
,
name
:
this
.
state
.
controlName
,
getData
:
this
.
getData
,
getData
:
this
.
getData
.
bind
(
this
)
,
onCtrlEvent
:
this
.
onCtrlEvent
,
onCtrlEvent
:
this
.
onCtrlEvent
.
bind
(
this
)
,
};
};
}
}
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/exp-bar-control/exp-bar-control.ts
浏览文件 @
0014dcc9
...
@@ -34,9 +34,8 @@ export class ExpBarControl extends MainControl {
...
@@ -34,9 +34,8 @@ export class ExpBarControl extends MainControl {
*/
*/
protected
useExpCtrlInit
()
{
protected
useExpCtrlInit
()
{
onMounted
(()
=>
{
onMounted
(()
=>
{
const
xDataControl
=
this
.
getXDataCtrl
();
if
(
this
.
xDataControl
)
{
if
(
xDataControl
)
{
this
.
next
({
tag
:
this
.
xDataControl
.
name
,
action
:
'load'
,
data
:
null
});
this
.
next
({
tag
:
xDataControl
.
name
,
action
:
'load'
,
data
:
null
});
}
}
})
})
}
}
...
@@ -48,7 +47,6 @@ export class ExpBarControl extends MainControl {
...
@@ -48,7 +47,6 @@ export class ExpBarControl extends MainControl {
*/
*/
public
onCtrlEvent
(
actionParam
:
IActionParam
)
{
public
onCtrlEvent
(
actionParam
:
IActionParam
)
{
const
{
tag
,
action
,
data
}
=
actionParam
;
const
{
tag
,
action
,
data
}
=
actionParam
;
const
{
selection
}
=
this
.
state
;
switch
(
action
)
{
switch
(
action
)
{
case
'selectionchange'
:
case
'selectionchange'
:
this
.
onSelectionChange
(
data
);
this
.
onSelectionChange
(
data
);
...
@@ -56,6 +54,34 @@ export class ExpBarControl extends MainControl {
...
@@ -56,6 +54,34 @@ export class ExpBarControl extends MainControl {
}
}
}
}
/**
* 工具栏事件
*
* @param {IActionParam} actionParam
* @return {*}
* @memberof ExpBarControl
*/
public
onToolbarEvent
(
actionParam
:
IActionParam
)
{
const
{
data
}
=
actionParam
;
if
(
!
data
)
{
console
.
warn
(
"工具栏事件执行参数不足"
);
return
;
}
const
{
uIAction
}
=
data
;
if
(
!
uIAction
)
{
console
.
warn
(
"工具栏事件执行参数不足"
);
return
;
}
const
inputParam
=
{
context
:
this
.
state
.
context
,
viewParams
:
this
.
state
.
viewParams
,
data
:
this
.
getData
(),
event
:
data
.
event
,
actionEnvironment
:
this
}
App
.
getAppActionService
().
execute
(
uIAction
,
inputParam
);
}
/**
/**
* @description 处理选中事件
* @description 处理选中事件
* @protected
* @protected
...
@@ -112,7 +138,7 @@ export class ExpBarControl extends MainControl {
...
@@ -112,7 +138,7 @@ export class ExpBarControl extends MainControl {
this
.
useExpCtrlInit
();
this
.
useExpCtrlInit
();
return
{
return
{
...
superParams
,
...
superParams
,
on
CtrlEvent
:
this
.
onCtrl
Event
.
bind
(
this
)
on
ToolbarEvent
:
this
.
onToolbar
Event
.
bind
(
this
)
};
};
}
}
}
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/main-control/main-control.ts
浏览文件 @
0014dcc9
...
@@ -21,7 +21,8 @@ export class MainControl extends ControlBase {
...
@@ -21,7 +21,8 @@ export class MainControl extends ControlBase {
* @type {IParam}
* @type {IParam}
* @memberof MainControl
* @memberof MainControl
*/
*/
protected
declare
xData
:
IParam
;
protected
declare
xDataControl
:
IParam
;
/**
/**
* 界面行为服务
* 界面行为服务
...
@@ -61,21 +62,14 @@ export class MainControl extends ControlBase {
...
@@ -61,21 +62,14 @@ export class MainControl extends ControlBase {
* @return {*}
* @return {*}
* @memberof MainControl
* @memberof MainControl
*/
*/
private
useSetXDataC
tr
l
()
{
private
useSetXDataC
ontro
l
()
{
const
xData
=
ref
(
null
);
const
xData
=
ref
(
null
);
this
.
xData
=
xData
;
onMounted
(()
=>
{
this
.
xDataControl
=
unref
(
xData
)
as
any
;
})
return
xData
;
return
xData
;
}
}
/**
* @description 获取数据部件
* @return {*}
* @memberof MainControl
*/
protected
getXDataCtrl
()
{
return
unref
(
this
.
xData
);
}
/**
/**
* @description 安装部件所有功能模块的方法
* @description 安装部件所有功能模块的方法
* @return {*}
* @return {*}
...
@@ -87,7 +81,7 @@ export class MainControl extends ControlBase {
...
@@ -87,7 +81,7 @@ export class MainControl extends ControlBase {
this
.
useUIService
();
this
.
useUIService
();
return
{
return
{
...
superParams
,
...
superParams
,
xDataC
trl
:
this
.
useSetXDataCtr
l
()
xDataC
ontrol
:
this
.
useSetXDataContro
l
()
};
};
}
}
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{ctrls@FORM}}-form-state.ts.hbs
浏览文件 @
0014dcc9
...
@@ -51,11 +51,11 @@ export const ctrlState = {
...
@@ -51,11 +51,11 @@ export const ctrlState = {
controlName: '
{{
ctrl
.
name
}}
',
controlName: '
{{
ctrl
.
name
}}
',
controlService: new EditFormService
<ControlVO>
(ControlVO, new
{{
pascalCase
ctrl
.
psAppDataEntity
.
codeName
}}
Service() ),
controlService: new EditFormService
<ControlVO>
(ControlVO, new
{{
pascalCase
ctrl
.
psAppDataEntity
.
codeName
}}
Service() ),
data: new ControlVO({}),
data: new ControlVO({}),
appEntityCodeName: '
{{
ctrl
.
app
Entity
.
codeName
}}
',
appEntityCodeName: '
{{
ctrl
.
psAppData
Entity
.
codeName
}}
',
appDeCodeName:'
{{
ctrl
.
app
Entity
.
codeName
}}
',
appDeCodeName:'
{{
ctrl
.
psAppData
Entity
.
codeName
}}
',
appDeLogicName: '
{{
ctrl
.
app
Entity
.
logicName
}}
',
appDeLogicName: '
{{
ctrl
.
psAppData
Entity
.
logicName
}}
',
appDeKeyFieldName: '
{{#if
ctrl
.
appEntity
.
keyPSAppDEField
}}{{
ctrl
.
app
Entity
.
keyPSAppDEField
.
codeName
}}{{/if}}
',
appDeKeyFieldName: '
{{#if
ctrl
.
psAppDataEntity
.
keyPSAppDEField
}}{{
ctrl
.
psAppData
Entity
.
keyPSAppDEField
.
codeName
}}{{/if}}
',
appDeMajorFieldName: '
{{#if
ctrl
.
appEntity
.
majorPSAppDEField
}}{{
ctrl
.
app
Entity
.
majorPSAppDEField
.
codeName
}}{{/if}}
',
appDeMajorFieldName: '
{{#if
ctrl
.
psAppDataEntity
.
majorPSAppDEField
}}{{
ctrl
.
psAppData
Entity
.
majorPSAppDEField
.
codeName
}}{{/if}}
',
enableAutoSave:
{{
ctrl
.
enableAutoSave
}}
,
enableAutoSave:
{{
ctrl
.
enableAutoSave
}}
,
// 错误信息
// 错误信息
errorMessages: [],
errorMessages: [],
...
@@ -132,7 +132,7 @@ export const ctrlState = {
...
@@ -132,7 +132,7 @@ export const ctrlState = {
if (isEmpty(value)) {
if (isEmpty(value)) {
return Promise.resolve();
return Promise.resolve();
}
}
let source: any = { '
{{
ruleItem
.
getPS
DEFormItemName
}}
': value };
let source: any = { '
{{
ruleItem
.
ps
DEFormItemName
}}
': value };
try {
try {
eval(`
{{
ruleItem
.
psSysValueRule
.
scriptCode
}}
`);
eval(`
{{
ruleItem
.
psSysValueRule
.
scriptCode
}}
`);
} catch (error: any) {
} catch (error: any) {
...
@@ -148,7 +148,7 @@ export const ctrlState = {
...
@@ -148,7 +148,7 @@ export const ctrlState = {
if (isEmpty(value)) {
if (isEmpty(value)) {
return Promise.resolve();
return Promise.resolve();
}
}
let source: any = { '
{{
ruleItem
.
getPS
DEFormItemName
}}
': value };
let source: any = { '
{{
ruleItem
.
ps
DEFormItemName
}}
': value };
const { isPast, infoMessage } = Verify.verifyDeRules(
const { isPast, infoMessage } = Verify.verifyDeRules(
'
{{
ruleItem
.
getPSDEFormItemName
}}
',
'
{{
ruleItem
.
getPSDEFormItemName
}}
',
source,
source,
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid-state.ts.hbs
浏览文件 @
0014dcc9
...
@@ -32,11 +32,11 @@ export const ctrlState = {
...
@@ -32,11 +32,11 @@ export const ctrlState = {
controlName: '
{{
ctrl
.
name
}}
',
controlName: '
{{
ctrl
.
name
}}
',
totalColumnWidth:
{{
ctrl
.
totalColumnWidth
}}
,
totalColumnWidth:
{{
ctrl
.
totalColumnWidth
}}
,
selectColumnWidth:
{{#if
(
neq
ctrl
.
aggMode
'NONE'
)
}}
100
{{else}}
50
{{/if}}
,
selectColumnWidth:
{{#if
(
neq
ctrl
.
aggMode
'NONE'
)
}}
100
{{else}}
50
{{/if}}
,
appEntityCodeName: '
{{
ctrl
.
app
Entity
.
codeName
}}
',
appEntityCodeName: '
{{
ctrl
.
psAppData
Entity
.
codeName
}}
',
appDeCodeName:'
{{
ctrl
.
app
Entity
.
codeName
}}
',
appDeCodeName:'
{{
ctrl
.
psAppData
Entity
.
codeName
}}
',
appDeLogicName: '
{{
ctrl
.
app
Entity
.
logicName
}}
',
appDeLogicName: '
{{
ctrl
.
psAppData
Entity
.
logicName
}}
',
appDeKeyFieldName: '
{{#if
ctrl
.
appEntity
.
keyPSAppDEField
}}{{
ctrl
.
app
Entity
.
keyPSAppDEField
.
codeName
}}{{/if}}
',
appDeKeyFieldName: '
{{#if
ctrl
.
psAppDataEntity
.
keyPSAppDEField
}}{{
ctrl
.
psAppData
Entity
.
keyPSAppDEField
.
codeName
}}{{/if}}
',
appDeMajorFieldName: '
{{#if
ctrl
.
appEntity
.
majorPSAppDEField
}}{{
ctrl
.
app
Entity
.
majorPSAppDEField
.
codeName
}}{{/if}}
',
appDeMajorFieldName: '
{{#if
ctrl
.
psAppDataEntity
.
majorPSAppDEField
}}{{
ctrl
.
psAppData
Entity
.
majorPSAppDEField
.
codeName
}}{{/if}}
',
controlService: new GridService
<ControlVO>
(ControlVO, new
{{
pascalCase
ctrl
.
psAppDataEntity
.
codeName
}}
Service() ),
controlService: new GridService
<ControlVO>
(ControlVO, new
{{
pascalCase
ctrl
.
psAppDataEntity
.
codeName
}}
Service() ),
// 新建默认值
// 新建默认值
createDefaultItems: [
createDefaultItems: [
...
@@ -217,7 +217,7 @@ export const ctrlState = {
...
@@ -217,7 +217,7 @@ export const ctrlState = {
rules:{
rules:{
{{#
each
ctrl
.
psDEGridEditItemVRs
as
|
ruleItem
|
}}
{{#
each
ctrl
.
psDEGridEditItemVRs
as
|
ruleItem
|
}}
{{
ruleItem
.
psDEGridEditItemName
}}
: [
{{
ruleItem
.
psDEGridEditItemName
}}
: [
{{#
if
(
eq
ruleItem
.
valueRuleType
'SYSVALUERULE'
)
}}
{{#
eq
ruleItem
.
valueRuleType
'SYSVALUERULE'
}}
{
{
{{#
eq
ruleItem
.
psSysValueRule
.
ruleType
'REG'
}}
{{#
eq
ruleItem
.
psSysValueRule
.
ruleType
'REG'
}}
trigger: ['change', 'blur'],
trigger: ['change', 'blur'],
...
@@ -238,7 +238,8 @@ export const ctrlState = {
...
@@ -238,7 +238,8 @@ export const ctrlState = {
}
}
{{/
eq
}}
{{/
eq
}}
},
},
{{else
if
(
eq
ruleItem
.
valueRuleType
'DEFVALUERULE'
)
}}
{{/
eq
}}
{{#
eq
ruleItem
.
valueRuleType
'DEFVALUERULE'
}}
{{#
each
ctrl
.
psDEGridEditItems
as
|
editItem
|
}}
{{#
each
ctrl
.
psDEGridEditItems
as
|
editItem
|
}}
{{#
eq
editItem
.
codeName
ruleItem
.
psDEGridEditItemName
}}
{{#
eq
editItem
.
codeName
ruleItem
.
psDEGridEditItemName
}}
{
{
...
@@ -249,7 +250,7 @@ export const ctrlState = {
...
@@ -249,7 +250,7 @@ export const ctrlState = {
const { isPast, infoMessage } = Verify.verifyDeRules(
const { isPast, infoMessage } = Verify.verifyDeRules(
'
{{#if
editItem
.
valueItemName
}}{{
editItem
.
valueItemName
}}{{else
if
editItem
.
dataItemName
}}{{
editItem
.
dataItemName
}}{{else}}{{
ruleItem
.
psDEGridEditItemName
}}{{/if}}
',
'
{{#if
editItem
.
valueItemName
}}{{
editItem
.
valueItemName
}}{{else
if
editItem
.
dataItemName
}}{{
editItem
.
dataItemName
}}{{else}}{{
ruleItem
.
psDEGridEditItemName
}}{{/if}}
',
source,
source,
{{>
@macro
/
front-end
/
common
/
derules
.
hbs
item
=
ruleItem
.
psDEFValueRule
.
getPS
DEFVRGroupCondition
}}
{{>
@macro
/
front-end
/
common
/
derules
.
hbs
item
=
ruleItem
.
psDEFValueRule
.
ps
DEFVRGroupCondition
}}
);
);
if (!isPast) {
if (!isPast) {
return Promise.reject(infoMessage || '
{{
ruleItem
.
psDEFValueRule
.
ruleInfo
}}
');
return Promise.reject(infoMessage || '
{{
ruleItem
.
psDEFValueRule
.
ruleInfo
}}
');
...
@@ -259,7 +260,7 @@ export const ctrlState = {
...
@@ -259,7 +260,7 @@ export const ctrlState = {
}
}
{{/
eq
}}
{{/
eq
}}
{{/
each
}}
{{/
each
}}
{{/
if
}}
{{/
eq
}}
],
],
{{/
each
}}
{{/
each
}}
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEEXPBAR}}-tree-exp-bar/{{ctrls@TREEEXPBAR}}-tree-exp-bar-state.ts.hbs
浏览文件 @
0014dcc9
...
@@ -14,7 +14,7 @@ export const ctrlState = {
...
@@ -14,7 +14,7 @@ export const ctrlState = {
{{#
eq
childCtrl
.
controlType
'TOOLBAR'
}}
{{#
eq
childCtrl
.
controlType
'TOOLBAR'
}}
toolbar: [
toolbar: [
{{#
childCtrl
.
psDEToolbarItems
}}
{{#
childCtrl
.
psDEToolbarItems
}}
{ name:'
{{
name
}}
',caption:'
{{
caption
}}
',groupExtractMode:'
{{
groupExtractMode
}}
',itemType:'
{{
itemType
}}
',noPrivDisplayMode:'
{{
noPrivDisplayMode
}}
',showIcon:
{{
showIcon
}}
,showCaption:
{{
showCaption
}}
,tooltip:'
{{
tooltip
}}
',disabled: false, visible: true, imgPath: '
{{
imgPath
}}
',iconClass: '
{{
iconClass
}}
',xDataControlName:'
{{
xDataControlName
}}
',
{{#if
uIAction
}}
uIAction:{codeName:'
{{
uIAction
.
codeName
}}
',fullCodeName:'
{{
uIAction
.
fullCodeName
}}
',uIActionMode:'
{{
uIAction
.
uIActionMode
}}
',actionTarget:'
{{
uIAction
.
actionTarget
}}
',uIActionTag:'
{{
uIAction
.
uIActionTag
}}
',dataAccessAction:'
{{
uIAction
.
dataAccessAction
}}
',uIActionType:'
{{
uIAction
.
uIActionType
}}
'}
{{#if
uIAction
.
counterId
}}
,counterId: '
{{
u
IAction
.
counterId
}}
'
{{/if}}{{/if}}
},
{ name:'
{{
name
}}
',caption:'
{{
caption
}}
',groupExtractMode:'
{{
groupExtractMode
}}
',itemType:'
{{
itemType
}}
',noPrivDisplayMode:'
{{
noPrivDisplayMode
}}
',showIcon:
{{
showIcon
}}
,showCaption:
{{
showCaption
}}
,tooltip:'
{{
tooltip
}}
',disabled: false, visible: true, imgPath: '
{{
imgPath
}}
',iconClass: '
{{
iconClass
}}
',xDataControlName:'
{{
xDataControlName
}}
',
{{#if
psUIAction
}}
uIAction:{codeName:'
{{
psUIAction
.
codeName
}}
',fullCodeName:'
{{
psUIAction
.
fullCodeName
}}
',uIActionMode:'
{{
psUIAction
.
uIActionMode
}}
',actionTarget:'
{{
psUIAction
.
actionTarget
}}
',uIActionTag:'
{{
psUIAction
.
uIActionTag
}}
',dataAccessAction:'
{{
psUIAction
.
dataAccessAction
}}
',uIActionType:'
{{
psUIAction
.
uIActionType
}}
'}
{{#if
psUIAction
.
counterId
}}
,counterId: '
{{
psU
IAction
.
counterId
}}
'
{{/if}}{{/if}}
},
{{/
childCtrl
.
psDEToolbarItems
}}
{{/
childCtrl
.
psDEToolbarItems
}}
],
],
{{/
eq
}}
{{/
eq
}}
...
...
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
浏览文件 @
0014dcc9
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
import
{
Subject
}
from
'rxjs'
;
import
{
Subject
}
from
'rxjs'
;
import
{
IActionParam
,
IParam
,
ControlAction
,
TreeExpBarControl
,
IContext
}
from
'@core'
;
import
{
IActionParam
,
IParam
,
ControlAction
,
TreeExpBarControl
,
IContext
}
from
'@core'
;
import
{
ctrlState
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-tree-exp-bar-state'
;
import
{
ctrlState
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-tree-exp-bar-state'
;
{{#
ctrl
.
ctr
ls
}}
{{#
ctrl
.
psContro
ls
}}
{{#
eq
controlType
"TREEVIEW"
}}
{{#
eq
controlType
"TREEVIEW"
}}
import
{
{{
codeName
}}
Tree
}
from
'@widgets/
{{
spinalCase
psAppDataEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-tree'
;
import
{
{{
codeName
}}
Tree
}
from
'@widgets/
{{
spinalCase
psAppDataEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-tree'
;
{{/
eq
}}
{{/
eq
}}
{{/
ctrl
.
ctr
ls
}}
{{/
ctrl
.
psContro
ls
}}
{{#
each
ctrl
.
a
ppViewRefs
as
|
viewRef
|
}}
{{#
each
ctrl
.
psA
ppViewRefs
as
|
viewRef
|
}}
{{#if
viewRef
.
refPSAppView
}}
{{#if
viewRef
.
refPSAppView
}}
{{#if
{{#if
(
or
(
or
...
@@ -55,7 +55,7 @@ interface CtrlEmit {
...
@@ -55,7 +55,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
// 安装功能模块,提供状态和能力方法
const
{
name
,
state
,
onCtrlEvent
,
xDataC
tr
l
,
search
,
onToolbarEvent
}
=
new
TreeExpBarControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
const
{
name
,
state
,
onCtrlEvent
,
xDataC
ontro
l
,
search
,
onToolbarEvent
}
=
new
TreeExpBarControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
// 暴露内部状态及能力
// 暴露内部状态及能力
defineExpose
({
name
,
state
});
defineExpose
({
name
,
state
});
...
@@ -68,7 +68,7 @@ defineExpose({ name, state });
...
@@ -68,7 +68,7 @@ defineExpose({ name, state });
<div
v-if=
"state.enableSearch || state.toolbar || state.showTitleBar"
class=
"tree-exp-bar-header"
>
<div
v-if=
"state.enableSearch || state.toolbar || state.showTitleBar"
class=
"tree-exp-bar-header"
>
<div
class=
"title"
v-if=
"state.showTitleBar"
><span>
\{{ state.title }}
</span></div>
<div
class=
"title"
v-if=
"state.showTitleBar"
><span>
\{{ state.title }}
</span></div>
{{
~#
if
ctrl
.
enableSearch
}}
{{
~#
if
ctrl
.
enableSearch
}}
<a-input-search
class=
"
tree-exp-bar__
search"
v-model:value=
"state.searchValue"
@
search=
"search"
/>
<a-input-search
class=
"search"
v-model:value=
"state.searchValue"
@
search=
"search"
/>
{{/if}}
{{/if}}
{{#
each
ctrl
.
psControls
as
|
childCtrl
|
}}
{{#
each
ctrl
.
psControls
as
|
childCtrl
|
}}
{{#
eq
childCtrl
.
controlType
'TOOLBAR'
}}
{{#
eq
childCtrl
.
controlType
'TOOLBAR'
}}
...
@@ -83,10 +83,10 @@ defineExpose({ name, state });
...
@@ -83,10 +83,10 @@ defineExpose({ name, state });
{{/
each
}}
{{/
each
}}
</div>
</div>
<div
class=
"tree-exp-bar-body"
>
<div
class=
"tree-exp-bar-body"
>
{{#
ctrl
.
ctr
ls
}}
{{#
ctrl
.
psContro
ls
}}
{{#
eq
controlType
"TREEVIEW"
}}
{{#
eq
controlType
"TREEVIEW"
}}
<
{{
codeName
}}
Tree
<
{{
codeName
}}
Tree
ref=
"xDataC
tr
l"
ref=
"xDataC
ontro
l"
name=
"
{{
name
}}
"
name=
"
{{
name
}}
"
:context=
"state.context"
:context=
"state.context"
:viewParams=
"state.viewParams"
:viewParams=
"state.viewParams"
...
@@ -97,11 +97,11 @@ defineExpose({ name, state });
...
@@ -97,11 +97,11 @@ defineExpose({ name, state });
@
ctrlEvent=
"onCtrlEvent"
@
ctrlEvent=
"onCtrlEvent"
></
{{
codeName
}}
Tree>
></
{{
codeName
}}
Tree>
{{/
eq
}}
{{/
eq
}}
{{/
ctrl
.
ctr
ls
}}
{{/
ctrl
.
psContro
ls
}}
</div>
</div>
</template>
</template>
<template
#
right
>
<template
#
right
>
{{#
each
ctrl
.
a
ppViewRefs
as
|
viewRef
|
}}
{{#
each
ctrl
.
psA
ppViewRefs
as
|
viewRef
|
}}
{{#if
viewRef
.
refPSAppView
}}
{{#if
viewRef
.
refPSAppView
}}
{{#if
{{#if
(
or
(
or
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEVIEW}}-tree/{{ctrls@TREEVIEW}}-tree-state.ts.hbs
浏览文件 @
0014dcc9
...
@@ -65,7 +65,7 @@ export class ControlVO extends ControlVOBase implements TreeControlVO {
...
@@ -65,7 +65,7 @@ export class ControlVO extends ControlVOBase implements TreeControlVO {
enableQuickSearch:
{{
treeNode
.
enableQuickSearch
}}
,
enableQuickSearch:
{{
treeNode
.
enableQuickSearch
}}
,
expandFirstOnly:
{{
treeNode
.
expandFirstOnly
}}
,
expandFirstOnly:
{{
treeNode
.
expandFirstOnly
}}
,
expanded:
{{
treeNode
.
expanded
}}
,
expanded:
{{
treeNode
.
expanded
}}
,
hasPSDETreeNodeRSs:
{{
treeNode
.
hasPS
DETreeNodeRSs
}}
,
hasPSDETreeNodeRSs:
{{
treeNode
.
ps
DETreeNodeRSs
}}
,
{{#if
treeNode
.
leafFlagPSAppDEField
}}
{{#if
treeNode
.
leafFlagPSAppDEField
}}
leafFlagPSAppDEField: { codeName: '
{{
treeNode
.
leafFlagPSAppDEField
.
codeName
}}
' },
leafFlagPSAppDEField: { codeName: '
{{
treeNode
.
leafFlagPSAppDEField
.
codeName
}}
' },
{{/if}}
{{/if}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEVIEW}}-tree/{{ctrls@TREEVIEW}}-tree.vue.hbs
浏览文件 @
0014dcc9
...
@@ -47,7 +47,7 @@ const getCustomText = (scriptCode: any) => {
...
@@ -47,7 +47,7 @@ const getCustomText = (scriptCode: any) => {
}
}
// 安装功能模块,提供状态和能力方法
// 安装功能模块,提供状态和能力方法
const
{
name
,
state
,
load
,
onTreeNodeSelect
,
onContextMenuClick
,
onRightClick
}
=
new
TreeControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
const
{
name
,
state
,
load
,
refresh
,
onTreeNodeSelect
,
onContextMenuClick
,
onRightClick
}
=
new
TreeControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
{{#
and
ctrl
.
psAppCounterRef
ctrl
.
psAppCounterRef
.
psAppCounter
}}
{{#
and
ctrl
.
psAppCounterRef
ctrl
.
psAppCounterRef
.
psAppCounter
}}
// 获取计数器数据
// 获取计数器数据
...
@@ -60,7 +60,7 @@ const counterData = computed(() => {
...
@@ -60,7 +60,7 @@ const counterData = computed(() => {
})
})
{{/
and
}}
{{/
and
}}
// 暴露内部状态及能力
// 暴露内部状态及能力
defineExpose
({
name
,
state
});
defineExpose
({
name
,
state
,
load
,
refresh
});
</script>
</script>
<template>
<template>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录