Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
c685ce7e
提交
c685ce7e
编写于
1月 18, 2022
作者:
zhujiamin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 提交搜索栏部件文件
上级
2f4cc689
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
161 行增加
和
1 行删除
+161
-1
app-grid-view-layout.vue
...p_{{apps}}/src/components/layout/app-grid-view-layout.vue
+1
-0
app-filter-tree.vue
...r7/app_{{apps}}/src/components/render/app-filter-tree.vue
+25
-0
index.ts
...s/templ/r7/app_{{apps}}/src/core/modules/widgets/index.ts
+2
-1
index.ts
...pps}}/src/core/modules/widgets/searchbar-control/index.ts
+3
-0
searchbar-control-prop.ts
...dules/widgets/searchbar-control/searchbar-control-prop.ts
+11
-0
searchbar-control-state.ts
...ules/widgets/searchbar-control/searchbar-control-state.ts
+11
-0
searchbar-control.ts
...re/modules/widgets/searchbar-control/searchbar-control.ts
+44
-0
{{pages@DEGRIDVIEW}}.vue.hbs
...dules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
+10
-0
index.ts.hbs
...{appEntities}}/{{ctrls@SEARCHBAR}}-searchBar/index.ts.hbs
+3
-0
{{ctrls@SEARCHBAR}}-searchBar-config.ts.hbs
...R}}-searchBar/{{ctrls@SEARCHBAR}}-searchBar-config.ts.hbs
+15
-0
{{ctrls@SEARCHBAR}}-searchBar.vue.hbs
...ARCHBAR}}-searchBar/{{ctrls@SEARCHBAR}}-searchBar.vue.hbs
+36
-0
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/app-grid-view-layout.vue
浏览文件 @
c685ce7e
...
...
@@ -20,6 +20,7 @@
<
template
v-slot:header-bottom
>
<slot
name=
"quickSearchForm"
/>
<slot
name=
"searchForm"
/>
<slot
name=
"searchBar"
/>
</
template
>
<
template
v-slot:body-top
>
<slot
name=
"bodyMessage"
/>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/render/app-filter-tree.vue
0 → 100644
浏览文件 @
c685ce7e
<
script
setup
lang=
"ts"
>
import
{
IActionParam
,
IParam
}
from
"@core"
;
interface
FilterTreeProps
{
datas
:
any
[]
fields
:
any
[]
}
const
props
=
withDefaults
(
defineProps
<
FilterTreeProps
>
(),
{
});
onMounted
(()
=>
{
console
.
log
(
props
)
});
</
script
>
<
template
>
<div
class=
"app-filter-tree"
>
暂未支持
</div>
</
template
>
<
style
lang=
"scss"
>
</
style
>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/index.ts
浏览文件 @
c685ce7e
...
...
@@ -9,4 +9,5 @@ export * from './pickup-view-panel-control'
export
*
from
'./tree-exp-bar-control'
export
*
from
'./tree-control'
export
*
from
'./search-form-control'
export
*
from
'./quick-search-form-control'
\ No newline at end of file
export
*
from
'./quick-search-form-control'
export
*
from
'./searchbar-control'
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/searchbar-control/index.ts
0 → 100644
浏览文件 @
c685ce7e
export
*
from
'./searchbar-control-prop'
export
*
from
'./searchbar-control-state'
export
*
from
'./searchbar-control'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/searchbar-control/searchbar-control-prop.ts
0 → 100644
浏览文件 @
c685ce7e
import
{
IParam
,
MainControlProps
}
from
"@core"
;
/**
* @description 搜索栏部件的props
* @export
* @interface SearchBarControlProps
* @extends {MainControlProps}
*/
export
interface
SearchBarControlProps
extends
MainControlProps
{
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/searchbar-control/searchbar-control-state.ts
0 → 100644
浏览文件 @
c685ce7e
import
{
IParam
,
MainControlState
}
from
'@core'
;
/**
* @description 搜索栏部件状态
* @export
* @interface SearchBarControlState
* @extends {MainControlState}
*/
export
interface
SearchBarControlState
extends
MainControlState
{
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/searchbar-control/searchbar-control.ts
0 → 100644
浏览文件 @
c685ce7e
import
{
UIUtil
,
deepCopy
,
IActionParam
,
IParam
,
MainControl
,
SearchBarControlState
,
SearchBarControlProps
}
from
'@core'
;
/**
* @description 搜索栏部件
* @export
* @class SearchBarControl
* @extends {MainControl}
*/
export
class
SearchBarControl
extends
MainControl
{
/**
* @description 部件状态
* @type {SearchBarControlState}
* @memberof SearchBarControl
*/
public
declare
state
:
SearchBarControlState
;
/**
* @description
* @param {SearchBarControlProps} props
* @memberof SearchBarControl
*/
public
setState
(
props
:
SearchBarControlState
)
{
super
.
setState
(
props
);
this
.
state
.
filterFields
=
Object
.
values
(
this
.
state
.
detailsModel
);
this
.
state
.
filterItems
=
[];
}
/**
* @description 安装部件所有功能模块的方法
* @param {SearchBarControlProps} props
* @param {Function} [emit]
* @return {*}
* @memberof SearchBarControl [emit] 事件
*/
public
moduleInstall
(
props
:
SearchBarControlProps
,
emit
?:
Function
)
{
const
superParams
=
super
.
moduleInstall
(
props
,
emit
);
return
{
...
superParams
,
state
:
this
.
state
,
};
}
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEGRIDVIEW}}/{{pages@DEGRIDVIEW}}.vue.hbs
浏览文件 @
c685ce7e
...
...
@@ -13,6 +13,9 @@ import { {{codeName}}SearchForm } from '@widgets/{{spinalCase appEntity.codeName
{{#if
(
and
(
eq
controlType
"SEARCHFORM"
)
(
eq
name
'quicksearchform'
))
}}
import
{
{{
codeName
}}
QuickSearchForm
}
from
'@widgets/
{{
spinalCase
appEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-quick-search-form'
;
{{/if}}
{{#
eq
controlType
"SEARCHBAR"
}}
import
{
{{
codeName
}}
SearchBar
}
from
'@widgets/
{{
spinalCase
appEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-searchBar'
;
{{/
eq
}}
{{/
page
.
ctrls
}}
// props声明和默认值处理
...
...
@@ -102,6 +105,13 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent } = new Grid
></
{{
codeName
}}
QuickSearchForm>
</template>
{{/if}}
{{#
eq
controlType
"SEARCHBAR"
}}
<template
v-slot:searchBar
>
<
{{
codeName
}}
SearchBar
:controlAction=
"state.
{{
camelCase
name
}}
.action"
:viewSubject=
"state.viewSubject"
/>
</template>
{{/
eq
}}
{{#
eq
controlType
"GRID"
}}
<
{{
codeName
}}
Grid
ref=
"grid"
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHBAR}}-searchBar/index.ts.hbs
0 → 100644
浏览文件 @
c685ce7e
import
{{
ctrl
.
codeName
}}
SearchBar from "./
{{
spinalCase
ctrl
.
codeName
}}
-searchBar.vue";
export {
{{
ctrl
.
codeName
}}
SearchBar };
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHBAR}}-searchBar/{{ctrls@SEARCHBAR}}-searchBar-config.ts.hbs
0 → 100644
浏览文件 @
c685ce7e
export const CtrlConfig = {
controlCodeName: "
{{
ctrl
.
codeName
}}
",
controlName: "
{{
ctrl
.
name
}}
",
detailsModel: {
{{#
each
ctrl
.
psSearchBarFilters
as
|
filter
|
}}
{{
filter
.
name
}}
: {
label: '
{{
filter
.
psAppDEField
.
logicName
}}
',
name: '
{{
filter
.
name
}}
',
prop: '
{{
lowerCase
filter
.
psAppDEField
.
codeName
}}
',
disabled: false,
{{#if
filter
.
psDEFSearchMode
}}
mode: '
{{
filter
.
psDEFSearchMode
.
valueOP
}}
',
{{/if}}
},
{{/
each
}}
},
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@SEARCHBAR}}-searchBar/{{ctrls@SEARCHBAR}}-searchBar.vue.hbs
0 → 100644
浏览文件 @
c685ce7e
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
CtrlConfig
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-searchBar-config'
;
import
{
SearchBarControl
,
IActionParam
,
IParam
,
IContext
,
ControlAction
,
deepCopy
}
from
'@core'
;
interface
Props
{
controlAction
:
ControlAction
;
viewSubject
:
Subject
<
IActionParam
>
;
}
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
})
// emit声明
interface
CtrlEmit
{
(
name
:
"ctrlEvent"
,
value
:
IActionParam
):
void
;
}
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
}
=
new
SearchBarControl
(
CtrlConfig
).
moduleInstall
(
props
,
emit
);
// 暴露内部状态及能力
defineExpose
({
state
,
name
:
'
{{
ctrl
.
name
}}
'
});
</script>
<template>
<div
class=
"search-bar"
>
<app-filter-tree
:datas=
"state.filterItems"
:fields=
"state.filterFields"
/>
</div>
</template>
<style
lang=
"scss"
>
</style>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录