Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
f248649f
提交
f248649f
编写于
1月 20, 2022
作者:
RedPig97
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add: 新增数据多选视图
上级
668f7ef1
变更
17
隐藏空白字符变更
内嵌
并排
正在显示
17 个修改的文件
包含
227 行增加
和
6 行删除
+227
-6
app-mpickup-view-layout.vue
...{apps}}/src/components/layout/app-mpickup-view-layout.vue
+0
-0
app-pickup-grid-view-layout.vue
...s}}/src/components/layout/app-pickup-grid-view-layout.vue
+0
-0
app-pickup-view-layout.vue
...{{apps}}/src/components/layout/app-pickup-view-layout.vue
+24
-0
index.ts
...ces/templ/r7/app_{{apps}}/src/core/modules/views/index.ts
+1
-0
index.ts
...app_{{apps}}/src/core/modules/views/mpickup-view/index.ts
+3
-0
mpickup-view-prop.ts
.../src/core/modules/views/mpickup-view/mpickup-view-prop.ts
+9
-0
mpickup-view-state.ts
...src/core/modules/views/mpickup-view/mpickup-view-state.ts
+11
-0
mpickup-view.ts
...pps}}/src/core/modules/views/mpickup-view/mpickup-view.ts
+60
-0
pickup-view.ts
...{apps}}/src/core/modules/views/pickup-view/pickup-view.ts
+0
-1
app-mpickup-view-layout.scss
.../src/style/components/layout/app-mpickup-view-layout.scss
+20
-0
app-pickup-view-layout.scss
...}/src/style/components/layout/app-pickup-view-layout.scss
+0
-0
index.scss
...pl/r7/app_{{apps}}/src/style/components/layout/index.scss
+2
-1
index.ts.hbs
...views/{{appModules}}/{{pages@DEMPICKUPVIEW}}/index.ts.hbs
+3
-0
{{pages@DEMPICKUPVIEW}}-state.ts.hbs
...ages@DEMPICKUPVIEW}}/{{pages@DEMPICKUPVIEW}}-state.ts.hbs
+3
-0
{{pages@DEMPICKUPVIEW}}.vue.hbs
...}/{{pages@DEMPICKUPVIEW}}/{{pages@DEMPICKUPVIEW}}.vue.hbs
+87
-0
{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
...ges@DEPICKUPGRIDVIEW}}/{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
+2
-2
{{pages@DEPICKUPVIEW}}.vue.hbs
...s}}/{{pages@DEPICKUPVIEW}}/{{pages@DEPICKUPVIEW}}.vue.hbs
+2
-2
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/app-
pick-
up-view-layout.vue
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/app-
mpick
up-view-layout.vue
浏览文件 @
f248649f
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/app-pick
-
up-grid-view-layout.vue
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/app-pickup-grid-view-layout.vue
浏览文件 @
f248649f
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/components/layout/app-pickup-view-layout.vue
0 → 100644
浏览文件 @
f248649f
<
script
setup
lang=
"ts"
></
script
>
<
template
>
<AppViewBaseLayout>
<template
v-slot:header-left
>
<slot
name=
"caption"
/>
</
template
>
<
template
v-slot:header-right
>
<slot
name=
"toolbar"
/>
</
template
>
<
template
v-slot:header-bottom
>
<slot
name=
"topMessage"
/>
<slot
name=
"searchForm"
/>
</
template
>
<
template
v-slot:body-top
>
<slot
name=
"bodyMessage"
/>
</
template
>
<slot
/>
<
template
v-slot:footer-content
>
<slot
name=
"bottomMessage"
/>
<slot
name=
"footer"
/>
</
template
>
</AppViewBaseLayout>
</template>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/index.ts
浏览文件 @
f248649f
...
@@ -6,5 +6,6 @@ export * from './edit-view'
...
@@ -6,5 +6,6 @@ export * from './edit-view'
export
*
from
'./index-view'
export
*
from
'./index-view'
export
*
from
'./grid-view'
export
*
from
'./grid-view'
export
*
from
'./pickup-view'
export
*
from
'./pickup-view'
export
*
from
'./mpickup-view'
export
*
from
'./pickup-grid-view'
export
*
from
'./pickup-grid-view'
export
*
from
'./tree-exp-view'
export
*
from
'./tree-exp-view'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/mpickup-view/index.ts
0 → 100644
浏览文件 @
f248649f
export
*
from
'./mpickup-view-prop'
export
*
from
'./mpickup-view-state'
export
*
from
'./mpickup-view'
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/mpickup-view/mpickup-view-prop.ts
0 → 100644
浏览文件 @
f248649f
import
{
PickupViewProps
}
from
"@core"
;
/**
* @description 多选视图props
* @export
* @interface MPickupViewProps
* @extends {PickupViewProps}
*/
export
interface
MPickupViewProps
extends
PickupViewProps
{
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/mpickup-view/mpickup-view-state.ts
0 → 100644
浏览文件 @
f248649f
import
{
PickupViewState
}
from
'@core'
;
/**
* @description 多选视图状态
* @export
* @interface MPickupViewState
* @extends {PickupViewState}
*/
export
interface
MPickupViewState
extends
PickupViewState
{
}
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/mpickup-view/mpickup-view.ts
0 → 100644
浏览文件 @
f248649f
import
{
IActionParam
,
IParam
,
PickupView
}
from
"@core"
;
import
{
MainView
}
from
"../main-view"
;
import
{
MPickupViewProps
}
from
"./mpickup-view-prop"
;
import
{
MPickupViewState
}
from
"./mpickup-view-state"
;
/**
* @description 多选视图
* @export
* @class MPickupView
* @extends {PickupView}
*/
export
class
MPickupView
extends
PickupView
{
/**
* @description 视图状态
* @type {MPickupViewState}
* @memberof PickupView
*/
public
declare
state
:
MPickupViewState
;
public
select
:
IParam
=
{};
public
useSelections
:
any
[]
=
[];
public
onMoveRight
()
{
this
.
useSelections
.
push
(
this
.
selectData
);
}
public
onMoveLeft
()
{
const
index
=
this
.
useSelections
.
findIndex
((
selection
:
any
)
=>
Object
.
is
(
this
.
select
.
srfkey
,
selection
.
srfkey
));
if
(
index
!==
-
1
)
{
this
.
useSelections
.
splice
(
index
,
1
);
}
}
public
onAllMoveRight
()
{
//todo
}
public
onAllMoveLeft
()
{
this
.
useSelections
=
[];
}
/**
* @description 安装视图所有功能模块的方法
* @return {*}
* @memberof PickupView
*/
public
moduleInstall
()
{
const
superParams
=
super
.
moduleInstall
();
return
{
...
superParams
,
useSelections
:
this
.
useSelections
,
onMoveRight
:
this
.
onMoveRight
.
bind
(
this
),
onMoveLeft
:
this
.
onMoveLeft
.
bind
(
this
),
onAllMoveRight
:
this
.
onAllMoveRight
.
bind
(
this
),
onAllMoveLeft
:
this
.
onAllMoveLeft
.
bind
(
this
),
};
}
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/views/pickup-view/pickup-view.ts
浏览文件 @
f248649f
...
@@ -73,7 +73,6 @@ export class PickupView extends MainView {
...
@@ -73,7 +73,6 @@ export class PickupView extends MainView {
const
superParams
=
super
.
moduleInstall
();
const
superParams
=
super
.
moduleInstall
();
return
{
return
{
...
superParams
,
...
superParams
,
selectData
:
this
.
selectData
,
onCancel
:
this
.
onCancel
.
bind
(
this
),
onCancel
:
this
.
onCancel
.
bind
(
this
),
onConfirm
:
this
.
onConfirm
.
bind
(
this
)
onConfirm
:
this
.
onConfirm
.
bind
(
this
)
};
};
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/components/layout/app-mpickup-view-layout.scss
0 → 100644
浏览文件 @
f248649f
.app-mpickup-view
{
padding
:
0
;
.app-pickup-grid-view
{
padding
:
0
;
}
.app-mpickup-view__split
{
.split__buttons
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.split__right
{
background-color
:
#f6f6f6
;
}
}
.app-view-layout__footer
{
padding
:
12px
0
;
justify-content
:
flex-end
;
}
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/components/layout/app-pick
-
up-view-layout.scss
→
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/components/layout/app-pickup-view-layout.scss
浏览文件 @
f248649f
文件已移动
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/components/layout/index.scss
浏览文件 @
f248649f
@use
'./app-view-base-layout.scss'
;
@use
'./app-view-base-layout.scss'
;
@use
'./app-index-view-base-layout.scss'
;
@use
'./app-index-view-base-layout.scss'
;
@use
'./app-default-index-view-base-layout.scss'
;
@use
'./app-default-index-view-base-layout.scss'
;
@use
'./app-pick-up-view-layout.scss'
;
@use
'./app-pickup-view-layout.scss'
;
\ No newline at end of file
@use
'./app-mpickup-view-layout.scss'
;
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEMPICKUPVIEW}}/index.ts.hbs
0 → 100644
浏览文件 @
f248649f
import
{{
page
.
codeName
}}
from "./
{{
spinalCase
page
.
codeName
}}
.vue";
export default
{{
page
.
codeName
}}
;
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEMPICKUPVIEW}}/{{pages@DEMPICKUPVIEW}}-state.ts.hbs
0 → 100644
浏览文件 @
f248649f
export const viewState = {
{{>
@macro
/
front-end
/
views
/
view-base-config
.
hbs
}}
};
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEMPICKUPVIEW}}/{{pages@DEMPICKUPVIEW}}.vue.hbs
0 → 100644
浏览文件 @
f248649f
<script
setup
lang=
"ts"
>
import
{
Subject
}
from
'rxjs'
;
import
{
RightOutlined
,
LeftOutlined
,
DoubleRightOutlined
,
DoubleLeftOutlined
}
from
'@ant-design/icons-vue'
;
import
{
MPickupView
,
IActionParam
,
IParam
,
IContext
}
from
'@core'
;
import
{
viewState
}
from
'./
{{
spinalCase
page
.
codeName
}}
-state'
;
{{#
page
.
ctrls
}}
{{#
eq
controlType
"PICKUPVIEWPANEL"
}}
import
{
{{
codeName
}}
PickupViewPanel
}
from
'@widgets/
{{
spinalCase
appEntity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-pickup-view-panel'
;
{{/
eq
}}
{{/
page
.
ctrls
}}
// props声明和默认值处理
interface
Props
{
context
?:
IContext
;
viewParams
?:
IParam
;
openType
?:
"ROUTE"
|
"MODAL"
|
"EMBED"
;
viewSubject
?:
Subject
<
IActionParam
>
;
}
const
props
=
withDefaults
(
defineProps
<
Props
>
(),
{
openType
:
'ROUTE'
,
viewSubject
:
()
=>
new
Subject
<
IActionParam
>
()
})
// emit声明
interface
ViewEmit
{
(
name
:
"viewEvent"
,
value
:
IActionParam
):
void
;
}
const
emit
=
defineEmits
<
ViewEmit
>
();
// 安装功能模块,提供状态和能力方法
const
{
state
,
onCancel
,
onConfirm
,
onCtrlEvent
,
useSelections
,
onMoveRight
,
onMoveLeft
,
onAllMoveRight
,
onAllMoveLeft
}
=
new
MPickupView
(
viewState
,
props
,
emit
).
moduleInstall
();
</script>
<template>
<AppMpickupViewLayout
:class=
"['app-mpickup-view', state.viewSysCss]"
>
<template
#
caption
>
<AppIconText
class=
"app-view__caption"
size=
"large"
:text=
"state.viewCaption"
/>
</template>
{{#
page
.
ctrls
}}
{{#
eq
controlType
"TOOLBAR"
}}
<template
v-slot:toolbar
>
<AppToolbar
mode=
"button"
name=
"
{{
lowerCase
codeName
}}
"
:actionModel=
"state.viewToolbarModel"
@
onToolbarEvent=
"onToolbarEvent"
/>
</template>
{{/
eq
}}
{{/
page
.
ctrls
}}
<a-row
class=
"app-mpickup-view__split"
>
<a-col
:span=
"18"
>
{{#
page
.
ctrls
}}
{{#
eq
controlType
"PICKUPVIEWPANEL"
}}
<
{{
codeName
}}
PickupViewPanel
:context=
"state.context"
:rowEditState=
"state.rowEditState"
:rowActiveMode=
"state.gridRowActiveMode"
:showBusyIndicator=
"true"
:viewParams=
"state.viewParams"
:controlAction=
"state.
{{
name
}}
.action"
:viewSubject=
"state.viewSubject"
@
onCtrlEvent=
"onCtrlEvent"
></
{{
codeName
}}
PickupViewPanel>
{{/
eq
}}
{{/
page
.
ctrls
}}
</a-col>
<a-col
:span=
"1"
class=
"split__buttons"
>
<a-space
direction=
"vertical"
>
<a-button
@
click=
"onMoveRight"
><right-outlined
/></a-button>
<a-button
@
click=
"onMoveLeft"
><left-outlined
/></a-button>
<a-button
@
click=
"onAllMoveRight"
><double-right-outlined
/></a-button>
<a-button
@
click=
"onAllMoveLeft"
><double-left-outlined
/></a-button>
</a-space>
</a-col>
<a-col
:span=
"5"
class=
"split__right"
>
<div
v-for=
"(item,index) in useSelections"
:key=
"index"
>
\{{item.srfmajortext}}
</div>
</a-col>
</a-row>
<template
v-slot:footer
>
<a-space
class=
"app-mpickup-view--footer"
>
<a-button
@
click=
"onConfirm"
>
确认
</a-button>
<a-button
@
click=
"onCancel"
>
取消
</a-button>
</a-space>
</template>
</AppMpickupViewLayout>
</template>
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEPICKUPGRIDVIEW}}/{{pages@DEPICKUPGRIDVIEW}}.vue.hbs
浏览文件 @
f248649f
...
@@ -36,7 +36,7 @@ const { state, confirm, onCtrlEvent } = new PickupGridView(viewState, props, emi
...
@@ -36,7 +36,7 @@ const { state, confirm, onCtrlEvent } = new PickupGridView(viewState, props, emi
</script>
</script>
<template>
<template>
<AppPick
U
pGridViewLayout
:class=
"['app-pickup-grid-view', state.viewSysCss]"
>
<AppPick
u
pGridViewLayout
:class=
"['app-pickup-grid-view', state.viewSysCss]"
>
<template
v-slot:header-left
>
<template
v-slot:header-left
>
<AppIconText
class=
"app-view__caption"
size=
"large"
:text=
"state.viewCaption"
/>
<AppIconText
class=
"app-view__caption"
size=
"large"
:text=
"state.viewCaption"
/>
</template>
</template>
...
@@ -54,5 +54,5 @@ const { state, confirm, onCtrlEvent } = new PickupGridView(viewState, props, emi
...
@@ -54,5 +54,5 @@ const { state, confirm, onCtrlEvent } = new PickupGridView(viewState, props, emi
></
{{
codeName
}}
Grid>
></
{{
codeName
}}
Grid>
{{/
eq
}}
{{/
eq
}}
{{/
page
.
ctrls
}}
{{/
page
.
ctrls
}}
</AppPick
U
pGridViewLayout>
</AppPick
u
pGridViewLayout>
</template>
</template>
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/views/{{appModules}}/{{pages@DEPICKUPVIEW}}/{{pages@DEPICKUPVIEW}}.vue.hbs
浏览文件 @
f248649f
...
@@ -32,7 +32,7 @@ const { state, onCancel, onConfirm, onCtrlEvent } = new PickupView(viewState, pr
...
@@ -32,7 +32,7 @@ const { state, onCancel, onConfirm, onCtrlEvent } = new PickupView(viewState, pr
</script>
</script>
<template>
<template>
<AppPick
U
pViewLayout
:class=
"['app-pickup-view', state.viewSysCss]"
>
<AppPick
u
pViewLayout
:class=
"['app-pickup-view', state.viewSysCss]"
>
<template
#
caption
>
<template
#
caption
>
<AppIconText
class=
"app-view__caption"
size=
"large"
:text=
"state.viewCaption"
/>
<AppIconText
class=
"app-view__caption"
size=
"large"
:text=
"state.viewCaption"
/>
</template>
</template>
...
@@ -65,5 +65,5 @@ const { state, onCancel, onConfirm, onCtrlEvent } = new PickupView(viewState, pr
...
@@ -65,5 +65,5 @@ const { state, onCancel, onConfirm, onCtrlEvent } = new PickupView(viewState, pr
<a-button
@
click=
"onCancel"
>
取消
</a-button>
<a-button
@
click=
"onCancel"
>
取消
</a-button>
</a-space>
</a-space>
</template>
</template>
</AppPick
U
pViewLayout>
</AppPick
u
pViewLayout>
</template>
</template>
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录