Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
d705786c
提交
d705786c
编写于
12月 30, 2021
作者:
Shine-zwj
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新表格
上级
8d935f84
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
47 行增加
和
23 行删除
+47
-23
grid-column.hbs
...ain/resources/templ/r7/@macro/grid-detail/grid-column.hbs
+3
-2
grid-control-state.ts
...z-core/modules/widgets/grid-control/grid-control-state.ts
+2
-2
grid-control.ts
...rc/ibiz-core/modules/widgets/grid-control/grid-control.ts
+16
-4
index.ts
...ources/templ/r7/app_{{apps}}/src/ibiz-core/utils/index.ts
+0
-1
{{ctrls@GRID}}-grid-config.ts.hbs
...s}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid-config.ts.hbs
+16
-6
{{ctrls@GRID}}-grid.vue.hbs
...ntities}}/{{ctrls@GRID}}-grid/{{ctrls@GRID}}-grid.vue.hbs
+10
-8
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/@macro/grid-detail/grid-column.hbs
浏览文件 @
d705786c
...
@@ -22,11 +22,12 @@
...
@@ -22,11 +22,12 @@
{{/if}}
{{/if}}
{{/if}}
{{/if}}
{{#if
(
eq
item
.
columnType
'UAGRIDCOLUMN'
)
}}
{{#if
(
eq
item
.
columnType
'UAGRIDCOLUMN'
)
}}
{{!-- <ibizToolbar
<ibizToolbar
mode=
"uiAction"
:toolbarModel=
"record.
{{
lowerCase
item
.
codeName
}}
"
:toolbarModel=
"record.
{{
lowerCase
item
.
codeName
}}
"
:context=
"state.context"
:context=
"state.context"
:viewParams=
"state.viewParams"
:viewParams=
"state.viewParams"
@toolbarEvent="($event
: ) => handleToolbarEvent()"/> --}}
@
toolbarEvent=
"($event
) => handleToolbarEvent(record, $event)"
/>
{{/if}}
{{/if}}
</div>
</div>
{{/if}}
{{/if}}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/grid-control/grid-control-state.ts
浏览文件 @
d705786c
...
@@ -23,11 +23,11 @@ export interface GridControlState extends MainControlState {
...
@@ -23,11 +23,11 @@ export interface GridControlState extends MainControlState {
columnsModel
:
IParam
[];
columnsModel
:
IParam
[];
/**
/**
* @description 表格
界面
行为模型
* @description 表格
操作列
行为模型
* @type {IParam}
* @type {IParam}
* @memberof GridControlState
* @memberof GridControlState
*/
*/
actio
nModel
:
IParam
;
UAColum
nModel
:
IParam
;
/**
/**
* @description 值规则
* @description 值规则
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/modules/widgets/grid-control/grid-control.ts
浏览文件 @
d705786c
...
@@ -53,10 +53,10 @@ export class GridControl extends MainControl {
...
@@ -53,10 +53,10 @@ export class GridControl extends MainControl {
* @memberof GridControl
* @memberof GridControl
*/
*/
public
getActionAuthState
(
rowData
:
IParam
)
{
public
getActionAuthState
(
rowData
:
IParam
)
{
const
{
UIService
,
actio
nModel
}
=
this
.
controlState
;
const
{
UIService
,
UAColum
nModel
}
=
this
.
controlState
;
let
temp
ActionModel
:
any
=
deepCopy
(
actio
nModel
);
let
temp
UAColumn
:
any
=
deepCopy
(
UAColum
nModel
);
calcActionItemAuthState
(
rowData
,
temp
ActionModel
,
UIService
);
calcActionItemAuthState
(
rowData
,
temp
UAColumn
.
items
,
UIService
);
return
temp
ActionModel
;
return
temp
UAColumn
;
}
}
/**
/**
...
@@ -435,6 +435,17 @@ export class GridControl extends MainControl {
...
@@ -435,6 +435,17 @@ export class GridControl extends MainControl {
}
}
}
}
/**
* @description 处理工具栏事件
* @param {IActionParam} actionParam 行为参数
* @param {IParam} [row] 表格行数据
* @memberof GridControl
*/
public
handleToolbarEvent
(
actionParam
:
IActionParam
,
row
?:
IParam
)
{
const
{
tag
,
action
,
data
}
=
actionParam
;
console
.
log
(
'触发界面行为'
,
actionParam
,
row
);
}
/**
/**
* @description 安装部件所有功能模块的方法
* @description 安装部件所有功能模块的方法
* @param {GridControlProps} props 传入的Props
* @param {GridControlProps} props 传入的Props
...
@@ -451,6 +462,7 @@ export class GridControl extends MainControl {
...
@@ -451,6 +462,7 @@ export class GridControl extends MainControl {
state
:
this
.
controlState
,
state
:
this
.
controlState
,
load
,
load
,
handleEditorEvent
:
this
.
handleEditorEvent
.
bind
(
this
),
handleEditorEvent
:
this
.
handleEditorEvent
.
bind
(
this
),
handleToolbarEvent
:
this
.
handleToolbarEvent
.
bind
(
this
),
};
};
}
}
}
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/ibiz-core/utils/index.ts
浏览文件 @
d705786c
export
*
from
'./util'
;
export
*
from
'./util'
;
export
*
from
'./view-util'
;
export
*
from
'./view-util'
;
export
*
from
'./view-tool'
;
export
{
Http
}
from
'./net/http'
;
export
{
Http
}
from
'./net/http'
;
\ 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-config.ts.hbs
浏览文件 @
d705786c
...
@@ -43,6 +43,20 @@ export const CtrlConfig = {
...
@@ -43,6 +43,20 @@ export const CtrlConfig = {
enablePagingBar: false,
enablePagingBar: false,
pagination: false,
pagination: false,
{{/if}}
{{/if}}
UAColumnModel:{
{{#
each
ctrl
.
psDEGridColumns
as
|
column
|
}}
{{#if
(
eq
column
.
columnType
'UAGRIDCOLUMN'
)
}}
name: "
{{
lowerCase
column
.
codeName
}}
",
items: [
{{#
each
column
.
psDEUIActionGroup
.
psUIActionGroupDetails
as
|
action
|
}}
{{#
action
}}
{ name: "
{{
name
}}
", caption: "
{{
psUIAction
.
caption
}}
", showIcon:
{{
showIcon
}}
, showCaption:
{{
showCaption
}}
, separator:
{{
addSeparator
}}
, uIActionTag: "
{{
psUIAction
.
uIActionTag
}}
", noPrivDisplayMode:
{{#if
psUIAction
.
noPrivDisplayMode
}}{{
psUIAction
.
noPrivDisplayMode
}}{{else}}
6
{{/if}}
, disabled: false, visabled: true,
{{#if
psUIAction
.
psSysImage
}}{{#if
psUIAction
.
psSysImage
.
imagePath
}}
imgPath: "
{{
psUIAction
.
psSysImage
.
imagePath
}}
",
{{/if}}{{#if
psUIAction
.
psSysImage
.
cssClass
}}
iconCls: "
{{
psUIAction
.
psSysImage
.
cssClass
}}
",
{{/if}}{{/if}}
},
{{/
action
}}
{{/
each
}}
],
{{/if}}
{{/
each
}}
},
columnsModel: [
columnsModel: [
{{#if
ctrl
.
enableGroup
}}
{{#if
ctrl
.
enableGroup
}}
{{#if
ctrl
.
groupPSAppDEField
}}
{{#if
ctrl
.
groupPSAppDEField
}}
...
@@ -58,11 +72,7 @@ export const CtrlConfig = {
...
@@ -58,11 +72,7 @@ export const CtrlConfig = {
{{/if}}
{{/if}}
{{/if}}
{{/if}}
{{#
each
ctrl
.
psDEGridColumns
as
|
column
|
}}
{{#
each
ctrl
.
psDEGridColumns
as
|
column
|
}}
{{#if
@last
}}
{{>
(
lookup
'COLUMNMODEL'
)
item
=
column
}}
{{>
(
lookup
'COLUMNMODEL'
)
item
=
column
lastColumn
=
true
}}
{{else}}
{{>
(
lookup
'COLUMNMODEL'
)
item
=
column
lastColumn
=
false
}}
{{/if}}
{{/
each
}}
{{/
each
}}
]
]
,
};
};
\ 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.vue.hbs
浏览文件 @
d705786c
...
@@ -32,7 +32,7 @@ interface CtrlEmit {
...
@@ -32,7 +32,7 @@ interface CtrlEmit {
}
}
const
emit
=
defineEmits
<
CtrlEmit
>
();
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
// 安装功能模块,提供状态和能力方法
const
{
state
,
load
,
handleEditorEvent
}
=
new
GridControl
(
CtrlConfig
).
moduleInstall
(
props
);
const
{
state
,
load
,
handleEditorEvent
,
handleToolbarEvent
}
=
new
GridControl
(
CtrlConfig
).
moduleInstall
(
props
);
// 表格滚动条配置
// 表格滚动条配置
const
gridScrollOption
=
computed
(()
=>
{
const
gridScrollOption
=
computed
(()
=>
{
return
{
return
{
...
@@ -72,7 +72,7 @@ const customRow = (record: IParam, index: number) => {
...
@@ -72,7 +72,7 @@ const customRow = (record: IParam, index: number) => {
}
}
// 表格选择功能配置
// 表格选择功能配置
const
rowSelectionOption
=
computed
(()
=>
{
const
rowSelectionOption
=
computed
(()
=>
{
if
(
props
.
rowEditState
||
props
.
selectFirstDefault
)
{
if
(
props
.
selectFirstDefault
)
{
return
false
;
return
false
;
}
}
return
{
return
{
...
@@ -139,12 +139,14 @@ const handleChange = (pagination: IParam, filters: IParam, sorter: IParam, data:
...
@@ -139,12 +139,14 @@ const handleChange = (pagination: IParam, filters: IParam, sorter: IParam, data:
</template>
</template>
{{#
neq
ctrl
.
aggMode
'NONE'
}}
{{#
neq
ctrl
.
aggMode
'NONE'
}}
<template
#
summary
>
<template
#
summary
>
<a-table-summary-row>
<a-table-summary>
<a-table-summary-cell>
数据聚合
</a-table-summary-cell>
<a-table-summary-row>
<a-table-summary-cell
v-for=
"(item, index) in state.dataAgg"
:key=
"index"
>
<a-table-summary-cell
align=
"center"
>
数据聚合
</a-table-summary-cell>
<span>
\{{item}}
</span>
<a-table-summary-cell
v-for=
"(item, index) in state.dataAgg"
:key=
"index"
>
</a-table-summary-cell>
<span>
\{{item}}
</span>
</a-table-summary-row>
</a-table-summary-cell>
</a-table-summary-row>
</a-table-summary>
</template>
</template>
{{/
neq
}}
{{/
neq
}}
</a-table>
</a-table>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录