Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
11f2cee9
提交
11f2cee9
编写于
2月 14, 2022
作者:
Mosher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:新增表格值规则支持
上级
ab259cfb
变更
27
展开全部
显示空白字符变更
内嵌
并排
正在显示
27 个修改的文件
包含
875 行增加
和
34 行删除
+875
-34
derules.hbs
...in/resources/templ/r7/@macro/front-end/common/derules.hbs
+16
-0
auto-complete.hbs
...urces/templ/r7/@macro/front-end/editors/auto-complete.hbs
+5
-1
checkbox-list.hbs
...urces/templ/r7/@macro/front-end/editors/checkbox-list.hbs
+5
-1
checkbox.hbs
.../resources/templ/r7/@macro/front-end/editors/checkbox.hbs
+5
-1
code.hbs
...main/resources/templ/r7/@macro/front-end/editors/code.hbs
+5
-1
data-picker-view.hbs
...es/templ/r7/@macro/front-end/editors/data-picker-view.hbs
+5
-1
data-picker.hbs
...sources/templ/r7/@macro/front-end/editors/data-picker.hbs
+5
-1
date-picker.hbs
...sources/templ/r7/@macro/front-end/editors/date-picker.hbs
+5
-1
dropdown-list.hbs
...urces/templ/r7/@macro/front-end/editors/dropdown-list.hbs
+5
-1
input-ip.hbs
.../resources/templ/r7/@macro/front-end/editors/input-ip.hbs
+5
-1
input.hbs
...ain/resources/templ/r7/@macro/front-end/editors/input.hbs
+5
-1
list-box.hbs
.../resources/templ/r7/@macro/front-end/editors/list-box.hbs
+5
-1
radio-group.hbs
...sources/templ/r7/@macro/front-end/editors/radio-group.hbs
+5
-1
rating.hbs
...in/resources/templ/r7/@macro/front-end/editors/rating.hbs
+5
-1
raw.hbs
.../main/resources/templ/r7/@macro/front-end/editors/raw.hbs
+5
-1
rich-text.hbs
...resources/templ/r7/@macro/front-end/editors/rich-text.hbs
+5
-1
slider.hbs
...in/resources/templ/r7/@macro/front-end/editors/slider.hbs
+5
-1
span.hbs
...main/resources/templ/r7/@macro/front-end/editors/span.hbs
+5
-1
stepper.hbs
...n/resources/templ/r7/@macro/front-end/editors/stepper.hbs
+5
-1
switch.hbs
...in/resources/templ/r7/@macro/front-end/editors/switch.hbs
+5
-1
upload.hbs
...in/resources/templ/r7/@macro/front-end/editors/upload.hbs
+5
-1
grid-column.hbs
...l/r7/@macro/front-end/widgets/grid-detail/grid-column.hbs
+8
-7
grid-control-state.ts
...c/core/modules/widgets/grid-control/grid-control-state.ts
+7
-0
grid-control.ts
...s}}/src/core/modules/widgets/grid-control/grid-control.ts
+3
-3
index.ts
...esources/templ/r7/app_{{apps}}/src/core/utils/ui/index.ts
+2
-1
verify.ts
...sources/templ/r7/app_{{apps}}/src/core/utils/ui/verify.ts
+713
-0
{{ctrls@GRID}}-grid-state.ts.hbs
...es}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid-state.ts.hbs
+26
-3
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/common/derules.hbs
0 → 100644
浏览文件 @
11f2cee9
{
{{#if
item
.
condOp
}}
"condOp": "
{{
item
.
condOp
}}
",
{{/if}}
"notMode":
{{
item
.
notMode
}}
,
"condType": "
{{
item
.
condType
}}
",
"ruleInfo": "
{{
item
.
ruleInfo
}}
",
{{#if
item
.
psDEFVRConditions
}}
"conditions": [
{{#
each
item
.
psDEFVRConditions
as
|
condition
|
}}
{{>
@macro
/
front-end
/
common
/
derules
.
hbs
item
=
condition
}}
{{#
unless
@last
}}
,
{{/
unless
}}
{{/
each
}}
]
{{/if}}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/auto-complete.hbs
浏览文件 @
11f2cee9
<AppAutoComplete
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
:data=
"state.data"
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
...
...
@@ -51,7 +55,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/checkbox-list.hbs
浏览文件 @
11f2cee9
<AppCheckboxList
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
:data=
"state.data"
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
...
...
@@ -25,7 +29,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/checkbox.hbs
浏览文件 @
11f2cee9
<AppCheckbox
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
{{/
eq
}}
...
...
@@ -11,7 +15,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/code.hbs
浏览文件 @
11f2cee9
<AppCode
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
{{/
eq
}}
...
...
@@ -11,7 +15,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
:context=
"state.context"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/data-picker-view.hbs
浏览文件 @
11f2cee9
<AppDataPickerView
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
:data=
"state.data"
{{#if
item
.
valueItemName
}}
valueItem=
"
{{
item
.
valueItemName
}}
"
...
...
@@ -29,7 +33,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/data-picker.hbs
浏览文件 @
11f2cee9
<AppDataPicker
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
:data=
"state.data"
{{#if
item
.
valueItemName
}}
valueItem=
"
{{
item
.
valueItemName
}}
"
...
...
@@ -52,7 +56,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/date-picker.hbs
浏览文件 @
11f2cee9
<AppDatePicker
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#if
item
.
psEditor
.
placeHolder
}}
placeholder=
"
{{
item
.
psEditor
.
placeHolder
}}
"
{{/if}}
...
...
@@ -50,7 +54,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/dropdown-list.hbs
浏览文件 @
11f2cee9
<AppDropdownList
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#if
item
.
psEditor
.
psAppCodeList
}}
codeListTag=
"
{{
item
.
psEditor
.
psAppCodeList
.
codeListTag
}}
"
codeListType=
"
{{
item
.
psEditor
.
psAppCodeList
.
codeListType
}}
"
...
...
@@ -33,7 +37,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
:data=
"record"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/input-ip.hbs
浏览文件 @
11f2cee9
<AppInputIp
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
{{/
eq
}}
...
...
@@ -11,7 +15,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/input.hbs
浏览文件 @
11f2cee9
<AppInput
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
{{/
eq
}}
...
...
@@ -44,7 +48,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/list-box.hbs
浏览文件 @
11f2cee9
<AppListBox
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
:data=
"state.data"
:server=
"state.controlService"
:deMajorField=
"state.appDeMajorFieldName"
...
...
@@ -41,7 +45,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/radio-group.hbs
浏览文件 @
11f2cee9
<AppRadioGroup
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
:data=
"state.data"
{{#if
item
.
psEditor
.
psAppCodeList
}}
codeListTag=
"
{{
item
.
psEditor
.
psAppCodeList
.
codeListTag
}}
"
...
...
@@ -25,7 +29,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/rating.hbs
浏览文件 @
11f2cee9
<AppRating
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
{{/
eq
}}
...
...
@@ -17,7 +21,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/raw.hbs
浏览文件 @
11f2cee9
<AppRaw
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
:date=
"state.data"
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
...
...
@@ -20,7 +24,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/rich-text.hbs
浏览文件 @
11f2cee9
<AppRichText
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
{{/
eq
}}
...
...
@@ -23,7 +27,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
:data=
"record"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/slider.hbs
浏览文件 @
11f2cee9
<AppSlider
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
:date=
"state.data"
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
...
...
@@ -21,7 +25,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/span.hbs
浏览文件 @
11f2cee9
<AppSpan
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
{{/
eq
}}
...
...
@@ -33,7 +37,7 @@
:value=
"state.data.
{{
item
.
psEditor
.
name
}}
"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
{{/
eq
}}
:context=
"state.context"
:viewParams=
"state.viewParams"
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/stepper.hbs
浏览文件 @
11f2cee9
<AppStepper
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
{{/
eq
}}
...
...
@@ -23,7 +27,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/switch.hbs
浏览文件 @
11f2cee9
<AppSwitch
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#
eq
ctrlType
'form'
}}
:disabled=
"state.detailsModel.
{{
item
.
codeName
}}
.disabled"
{{/
eq
}}
...
...
@@ -14,7 +18,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/editors/upload.hbs
浏览文件 @
11f2cee9
<AppUpload
{{#if
(
and
(
eq
ctrlType
'grid'
)
dataItemName
)
}}
name=
"
{{
dataItemName
}}
"
{{else}}
name=
"
{{
item
.
codeName
}}
"
{{/if}}
{{#if
item
.
psEditor
.
editorParams
.
method
}}
method=
"
{{
item
.
psEditor
.
editorParams
.
method
}}
"
{{/if}}
...
...
@@ -34,7 +38,7 @@
@
editorEvent=
"onEditorEvent"
{{/if}}
{{#
eq
ctrlType
'grid'
}}
:value=
"record.
{{
item
.
psEditor
.
name
}}
"
:value=
"record.
{{
#if
dataItemName
}}{{
dataItemName
}}{{else}}{{
item
.
psEditor
.
name
}}{{/if
}}
"
@
editorEvent=
"onEditorEvent($event,index)"
{{/
eq
}}
/>
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/front-end/widgets/grid-detail/grid-column.hbs
浏览文件 @
11f2cee9
{{#
*
inline
"COLUMNTEXT"
}}
{{#if
(
and
item
.
psAppCodeList
(
eq
item
.
cLConvertMode
'FRONT'
))
}}
<AppCodelist
name=
"
{{#if
item
.
dataItemName
}}{{
lowerCase
item
.
dataItemName
}}{{else}}{{
item
.
codeName
}}{{/if}}
"
codeListTag=
"
{{
item
.
psAppCodeList
.
codeListTag
}}
"
:context=
"state.context"
:data=
"record"
...
...
@@ -20,7 +21,7 @@
{{else}}
{{#if
item
.
valueFormat
}}
<AppSpan
name=
"
{{
lowerCase
item
.
codeName
}}
"
name=
"
{{
#if
item
.
dataItemName
}}{{
lowerCase
item
.
dataItemName
}}{{else}}{{
item
.
codeName
}}{{/if
}}
"
:value=
"text"
{{#if
item
.
psAppDEField
}}
:dataType=
"
{{
item
.
psAppDEField
.
stdDataType
}}
"
...
...
@@ -40,19 +41,19 @@
{{/
each
}}
{{else}}
{{#
unless
(
or
item
.
hideDefault
item
.
hiddenDataItem
)
}}
<div
v-if=
"Object.is(column.dataIndex, '
{{#if
item
.
dataItemName
}}{{
lowerCase
item
.
dataItemName
}}{{else}}{{
item
.
codeName
}}{{/if}}
')"
class=
"table-cell
{{#if
item
.
cellPSSysCss
}}
{{
item
.
cellPSSysCss
.
cssName
}}{{/if}}
"
>
<div
v-if=
"Object.is(column.dataIndex, '
{{#if
item
.
dataItemName
}}{{
lowerCase
item
.
dataItemName
}}{{else}}{{
item
.
codeName
}}{{/if}}
')"
class=
"table-cell
{{#if
item
.
cellPSSysCss
}}
{{
item
.
cellPSSysCss
.
cssName
}}{{/if}}
"
>
{{#if
(
eq
item
.
columnType
'DEFGRIDCOLUMN'
)
}}
{{#if
item
.
enableRowEdit
}}
<div
v-if=
"state.rowEditState"
class=
"editor-cell"
>
<AppFormItem
name=
"
{{
item
.
codeName
}}
"
:error=
"state.gridEditState.
{{
item
.
codeName
}}
?.[index]?.message"
name=
"
{{
#if
item
.
dataItemName
}}{{
lowerCase
item
.
dataItemName
}}{{else}}{{
item
.
codeName
}}{{/if
}}
"
:error=
"state.gridEditState.
{{
#if
item
.
dataItemName
}}{{
lowerCase
item
.
dataItemName
}}{{else}}{{
item
.
codeName
}}{{/if
}}
?.[index]?.message"
:rules=
"state.rules.
{{
item
.
codeName
}}
"
:showLabel=
"false"
>
{{#
each
ctrl
.
psDEGridEditItems
as
|
editColumn
|
}}
{{#if
(
eq
editColumn
.
codeName
item
.
codeName
)
}}
{{>
@macro
/
front-end
/
editors
/
include-editor
.
hbs
type
=
editColumn
.
psEditor
.
editorType
item
=
editColumn
ctrlType
=
"grid"
}}
{{>
@macro
/
front-end
/
editors
/
include-editor
.
hbs
type
=
editColumn
.
psEditor
.
editorType
item
=
editColumn
dataItemName
=
item
.
dataItemName
ctrlType
=
"grid"
}}
{{/if}}
{{/
each
}}
</AppFormItem>
...
...
@@ -80,8 +81,8 @@
{{else
if
(
eq
item
.
columnType
'UAGRIDCOLUMN'
)
}}
<AppToolbar
mode=
"link"
name=
"
{{
lowerCase
item
.
codeName
}}
"
:actionModel=
"record.
{{
lowerCase
item
.
codeName
}}
"
name=
"
{{
#if
item
.
dataItemName
}}{{
lowerCase
item
.
dataItemName
}}{{else}}{{
item
.
codeName
}}{{/if
}}
"
:actionModel=
"record.
{{
#if
item
.
dataItemName
}}{{
lowerCase
item
.
dataItemName
}}{{else}}{{
item
.
codeName
}}{{/if
}}
"
@
onToolbarEvent=
"onActionColEvent($event, record)"
/>
{{/if}}
</div>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/grid-control/grid-control-state.ts
浏览文件 @
11f2cee9
...
...
@@ -65,4 +65,11 @@ export interface GridControlState extends MDControlState {
*/
totalColumnWidth
:
number
;
/**
* @description 选择列宽度(默认50,存在聚合列时为100)
* @type {number}
* @memberof GridControlState
*/
selectColumnWidth
:
number
;
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/grid-control/grid-control.ts
浏览文件 @
11f2cee9
...
...
@@ -31,7 +31,7 @@ export class GridControl extends MDControl {
* @memberof GridControl
*/
public
useCustom
()
{
const
{
controlName
,
selectFirstDefault
,
rowEditState
,
rowActiveMode
,
isSingleSelect
,
totalColumnWidth
}
=
this
.
state
;
const
{
selectFirstDefault
,
rowEditState
,
selectColumnWidth
,
isSingleSelect
,
totalColumnWidth
}
=
this
.
state
;
// 滚动条配置
const
useScrollOption
=
computed
(()
=>
{
return
{
...
...
@@ -113,14 +113,14 @@ export class GridControl extends MDControl {
}
return
{
type
:
isSingleSelect
?
'radio'
:
'checkbox'
,
columnWidth
:
50
,
columnWidth
:
selectColumnWidth
,
selectedRowKeys
:
this
.
state
.
selectedRowKeys
,
checkStrictly
:
false
,
onSelect
:
(
record
:
IParam
,
selected
:
boolean
,
selectedRows
:
IParam
[],
$event
:
any
)
=>
{
if
(
selected
)
{
const
{
appDeKeyFieldName
}
=
this
.
state
;
const
selectedRowKey
:
string
=
record
[
appDeKeyFieldName
]
||
record
.
srfkey
;
const
index
:
number
=
useExpandedRowKeys
.
value
.
findIndex
((
key
:
string
)
=>
Object
.
is
(
key
,
selectedRowKey
))
const
index
:
number
=
useExpandedRowKeys
.
value
.
findIndex
((
key
:
string
)
=>
Object
.
is
(
key
,
selectedRowKey
))
if
(
Object
.
is
(
index
,
-
1
)
&&
record
.
children
&&
record
.
children
.
length
>
0
)
{
useExpandedRowKeys
.
value
.
push
(
selectedRowKey
);
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/utils/ui/index.ts
浏览文件 @
11f2cee9
...
...
@@ -3,3 +3,4 @@ export { UIUtil } from './ui-util';
export
{
UIActionUtil
}
from
'./uiaction-util'
;
export
{
ViewUtil
}
from
'./view-util'
;
export
{
DataTypes
}
from
'./data-types'
;
export
{
Verify
}
from
'./verify'
;
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/utils/ui/verify.ts
0 → 100644
浏览文件 @
11f2cee9
此差异已折叠。
点击以展开。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid-state.ts.hbs
浏览文件 @
11f2cee9
import { ControlVOBase, IParam, GridService } from '@core';
import { ControlVOBase, IParam, GridService
, isEmpty, Verify
} from '@core';
import {
{{
pascalCase
ctrl
.
psAppDataEntity
.
codeName
}}
Service } from '@api/
{{
spinalCase
ctrl
.
psAppDataEntity
.
codeName
}}
/
{{
spinalCase
ctrl
.
psAppDataEntity
.
codeName
}}
-service';
export class ControlVO extends ControlVOBase {
...
...
@@ -23,6 +23,7 @@ export const ctrlState = {
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlName: '
{{
ctrl
.
name
}}
',
totalColumnWidth:
{{
ctrl
.
totalColumnWidth
}}
,
selectColumnWidth:
{{#if
(
neq
ctrl
.
aggMode
'NONE'
)
}}
100
{{else}}
50
{{/if}}
,
appEntityCodeName: '
{{
ctrl
.
appEntity
.
codeName
}}
',
appDeCodeName:'
{{
ctrl
.
appEntity
.
codeName
}}
',
appDeKeyFieldName: '
{{#if
ctrl
.
appEntity
.
keyPSAppDEField
}}{{
ctrl
.
appEntity
.
keyPSAppDEField
.
codeName
}}{{/if}}
',
...
...
@@ -180,16 +181,38 @@ export const ctrlState = {
{{/if}}
rules:{
{{#
each
ctrl
.
psDEGridEditItemVRs
as
|
ruleItem
|
}}
{{#if
(
eq
ruleItem
.
valueRuleType
'SYSVALUERULE'
)
}}
{{
ruleItem
.
psDEGridEditItemName
}}
: [
{{#if
(
eq
ruleItem
.
valueRuleType
'SYSVALUERULE'
)
}}
{
trigger: ['change', 'blur'],
{{#
eq
ruleItem
.
psSysValueRule
.
ruleType
'REG'
}}
pattern: /
{{
ruleItem
.
psSysValueRule
.
regExCode
}}
/,
{{/
eq
}}
message:'
{{
ruleItem
.
psSysValueRule
.
ruleInfo
}}
'
}],
},
{{else
if
(
eq
ruleItem
.
valueRuleType
'DEFVALUERULE'
)
}}
{{#
each
ctrl
.
psDEGridEditItems
as
|
editItem
|
}}
{{#
eq
editItem
.
codeName
ruleItem
.
psDEGridEditItemName
}}
{
validator: (rule: any, value: any, callback: any, source: any) => {
if (isEmpty(source['
{{#if
editItem
.
valueItemName
}}{{
editItem
.
valueItemName
}}{{else}}{{
ruleItem
.
psDEGridEditItemName
}}{{/if}}
'])) {
return true;
}
const { isPast, infoMessage } = Verify.verifyDeRules(
'
{{#if
editItem
.
valueItemName
}}{{
editItem
.
valueItemName
}}{{else}}{{
ruleItem
.
psDEGridEditItemName
}}{{/if}}
',
source,
{{>
@macro
/
front-end
/
common
/
derules
.
hbs
item
=
ruleItem
.
psDEFValueRule
.
getPSDEFVRGroupCondition
}}
);
if (!isPast) {
callback(new Error(infoMessage || '
{{
ruleItem
.
psDEFValueRule
.
ruleInfo
}}
'));
}
return true;
}
}
{{/
eq
}}
{{/
each
}}
{{/if}}
],
{{/
each
}}
}
};
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录