Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
70977341
提交
70977341
编写于
11月 01, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
5d3de2e5
变更
6
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
174 行增加
和
358 行删除
+174
-358
list-exp-view-engine.ts
app_Web/src/engine/view/list-exp-view-engine.ts
+7
-84
ibizorder-grid-exp-view-base.vue
.../ibizorder-grid-exp-view/ibizorder-grid-exp-view-base.vue
+19
-19
ibizorder-list-exp-view-base.vue
.../ibizorder-list-exp-view/ibizorder-list-exp-view-base.vue
+79
-25
grid-exp-viewgridexpbar-gridexpbar-base.vue
...ar-gridexpbar/grid-exp-viewgridexpbar-gridexpbar-base.vue
+1
-1
list-exp-viewlistexpbar-listexpbar-base.vue
...ar-listexpbar/list-exp-viewlistexpbar-listexpbar-base.vue
+22
-103
list-exp-viewlistexpbar-listexpbar.less
...expbar-listexpbar/list-exp-viewlistexpbar-listexpbar.less
+46
-126
未找到文件。
app_Web/src/engine/view/list-exp-view-engine.ts
浏览文件 @
70977341
import
ViewEngine
from
'./
view-engine'
;
import
{
ExpViewEngine
}
from
'./exp-
view-engine'
;
/**
* 列表导航视图界面引擎
...
...
@@ -7,24 +7,7 @@ import ViewEngine from './view-engine';
* @class ListExpViewEngine
* @extends {ViewEngine}
*/
export
default
class
ListExpViewEngine
extends
ViewEngine
{
/**
* 列表导航栏部件
*
* @type {*}
* @memberof ListExpViewEngine
*/
public
listExpBar
:
any
=
null
;
/**
* Creates an instance of ListExpViewEngine.
*
* @memberof ListExpViewEngine
*/
constructor
()
{
super
();
}
export
class
ListExpViewEngine
extends
ExpViewEngine
{
/**
* 初始化引擎
...
...
@@ -33,77 +16,17 @@ export default class ListExpViewEngine extends ViewEngine {
* @memberof ListExpViewEngine
*/
public
init
(
options
:
any
):
void
{
this
.
listE
xpBar
=
options
.
listexpbar
;
this
.
e
xpBar
=
options
.
listexpbar
;
super
.
init
(
options
);
}
/**
* 引擎加载
*
* @description 视图销毁
* @memberof ListExpViewEngine
*/
public
load
():
void
{
super
.
load
();
if
(
this
.
getListExpBar
()
&&
this
.
isLoadDefault
)
{
const
tag
=
this
.
getListExpBar
().
name
;
this
.
setViewState2
({
tag
:
tag
,
action
:
'load'
,
viewdata
:
this
.
view
.
viewparams
});
}
else
{
this
.
isLoadDefault
=
true
;
}
public
destroyed
()
{
super
.
destroyed
();
this
.
expBar
=
null
;
}
/**
* 部件事件机制
*
* @param {string} ctrlName
* @param {string} eventName
* @param {*} args
* @memberof ListExpViewEngine
*/
public
onCtrlEvent
(
ctrlName
:
string
,
eventName
:
string
,
args
:
any
):
void
{
super
.
onCtrlEvent
(
ctrlName
,
eventName
,
args
);
if
(
Object
.
is
(
ctrlName
,
'listexpbar'
))
{
this
.
listExpBarEvent
(
eventName
,
args
);
}
}
/**
* 列表导航事件
*
* @param {string} eventName
* @param {*} args
* @memberof ListExpViewEngine
*/
public
listExpBarEvent
(
eventName
:
string
,
args
:
any
):
void
{
if
(
Object
.
is
(
eventName
,
'load'
))
{
this
.
view
.
$emit
(
'viewload'
,
args
);
}
if
(
Object
.
is
(
eventName
,
'selectionchange'
))
{
this
.
view
.
$emit
(
'viewdataschange'
,
args
);
}
if
(
Object
.
is
(
eventName
,
'activated'
))
{
this
.
view
.
$emit
(
'viewdatasactivated'
,
args
);
}
}
/**
* 获取部件对象
*
* @returns {*}
* @memberof ListExpViewEngine
*/
public
getListExpBar
():
any
{
return
this
.
listExpBar
;
}
/**
* @description 销毁
* @memberof ListExpViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
listExpBar
=
null
;
}
}
\ No newline at end of file
app_Web/src/pages/sample/ibizorder-grid-exp-view/ibizorder-grid-exp-view-base.vue
浏览文件 @
70977341
app_Web/src/pages/sample/ibizorder-list-exp-view/ibizorder-list-exp-view-base.vue
浏览文件 @
70977341
...
...
@@ -4,11 +4,11 @@
<div
class=
"view-container delistexpview ibizorder-list-exp-view"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizorderlistexpview"
></app-studioaction>
<card
class=
'view-card view-no-caption view-no-toolbar'
:dis-hover=
"true"
:bordered=
"false"
>
<div
class=
'view-top-messages'
>
<app-alert-group
position=
'TOP'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup45'
viewname=
'ibizorderlistexpview'
></app-alert-group>
</div>
<div
class=
"content-container"
>
<split
v-model=
"split"
mode=
"horizontal"
@
on-move-end=
"onSplitChange"
>
<template
slot=
"left"
>
<view
_listexpbar
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
@@ -24,6 +24,19 @@
@
activated=
"listexpbar_activated($event)"
@
closeview=
"closeView($event)"
>
</view
_listexpbar
>
</
template
>
<
template
slot=
"right"
>
<component
v-if=
"navItem && navItem.navView"
:is=
"navItem.navView"
:key=
"navItem.data && navItem.data.length ? navItem.data[0].srfkey : ''"
class=
"viewcontainer2"
:viewDefaultUsage=
"false"
:viewdata=
"JSON.stringify(navItem.srfnavdata.context)"
:viewparam=
"JSON.stringify(navItem.srfnavdata.viewparams)"
>
</component>
</
template
>
</split>
</div>
</card>
</div>
...
...
@@ -769,6 +782,47 @@ export default class IBIZOrderListExpViewBase extends Vue {
*/
public
viewUID
:
string
=
'sample-ibizorder-list-exp-view'
;
/**
* 分隔值
*
* @type {number}
* @memberof IBIZOrderListExpViewBase
*/
public
split
:
number
=
0.5
;
/**
* 导航项
*
* @type {*}
* @memberof IBIZOrderListExpViewBase
*/
public
navItem
:
any
=
{};
/**
* split值变化事件
*
* @memberof IBIZOrderListExpViewBase
*/
public
onSplitChange
()
{
if
(
this
.
split
)
{
this
.
$store
.
commit
(
"setViewSplit"
,
{
viewUID
:
this
.
viewUID
,
viewSplit
:
this
.
split
});
}
}
/**
* 初始化分隔值
*
* @memberof IBIZOrderListExpViewBase
*/
public
initSplit
()
{
if
(
this
.
$store
.
getters
.
getViewSplit
(
this
.
viewUID
))
{
this
.
split
=
this
.
$store
.
getters
.
getViewSplit
(
this
.
viewUID
);
}
else
{
const
containerWidth
=
(
this
.
$el
as
any
).
offsetWidth
;
this
.
split
=
500
/
containerWidth
;
this
.
$store
.
commit
(
"setViewSplit"
,
{
viewUID
:
this
.
viewUID
,
viewSplit
:
this
.
split
});
}
}
}
</
script
>
...
...
app_Web/src/widgets/ibizorder/grid-exp-viewgridexpbar-gridexpbar/grid-exp-viewgridexpbar-gridexpbar-base.vue
浏览文件 @
70977341
...
...
@@ -23,6 +23,7 @@
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.gridexpviewgridexpbar_toolbar_toolbar.deuiaction3.tip'
)
}}
</div>
</tooltip>
</div>
</div>
<div
class=
'grid-exp-bar-content'
>
<view
_gridexpbar_grid
:viewState=
"viewState"
...
...
@@ -47,7 +48,6 @@
</view
_gridexpbar_grid
>
</div>
</div>
</div>
</
template
>
...
...
app_Web/src/widgets/ibizorder/list-exp-viewlistexpbar-listexpbar/list-exp-viewlistexpbar-listexpbar-base.vue
浏览文件 @
70977341
<
template
>
<split
id=
"listexpviewlistexpbar"
class=
"app-list-exp-bar"
v-model=
"split"
mode=
"horizontal"
@
on-move-end=
"onSplitChange"
>
<div
slot=
'left'
>
<div
id=
"listexpviewlistexpbar"
class=
"app-list-exp-bar"
>
<div
class=
'list-exp-bar-header'
>
<div
class=
"list-exp-bar-title"
>
<icon
type=
'ios-home-outline'
/>
{{
$t
(
'app.listExpBar.title'
)
}}
</div>
</div>
<div
class=
"container-head
er"
>
<div
class=
"exp-bar-action-contain
er"
>
<div
class=
'search-container'
>
<i-input
:search=
"true"
@
on-change=
"($event) =>
{ this.searchText = $event.target.value; }"
...
...
@@ -46,17 +45,6 @@
</view
_listexpbar_list
>
</div>
</div>
<div
slot=
'right'
>
<component
v-if=
"selection.view && !Object.is(this.selection.view.viewname, '')"
:is=
"selection.view.viewname"
class=
"viewcontainer2"
:viewDefaultUsage=
"false"
:viewdata=
"JSON.stringify(selection.context)"
:viewparam=
"JSON.stringify(selection.viewparam)"
>
</component>
</div>
</split>
</
template
>
...
...
@@ -322,34 +310,9 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt
* @type {(boolean)}
* @memberof ListExpViewlistexpbarBase
*/
public
isSingleSelect
:
boolean
=
true
;
public
isSingleSelect
:
boolean
=
true
;
/**
* 呈现模式,可选值:horizontal或者vertical
*
* @public
* @type {(string)}
* @memberof ListExpViewlistexpbarBase
*/
public
showMode
:
string
=
"horizontal"
;
/**
* 控件宽度
*
* @type {number}
* @memberof ListExpViewlistexpbarBase
*/
public
ctrlWidth
:
number
=
500
;
/**
* 控件高度
*
* @type {number}
* @memberof ListExpViewlistexpbarBase
*/
public
ctrlHeight
:
number
=
0
;
/**
* 可搜索字段名称
*
...
...
@@ -366,7 +329,7 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt
* @type {(string)}
* @memberof ListExpViewlistexpbarBase
*/
public
searchText
:
string
=
""
;
public
searchText
:
string
=
""
;
/**
* 部件类型
...
...
@@ -377,14 +340,6 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt
*/
public
controlType
:
string
=
"listExpBar"
;
/**
* 分割宽度
*
* @type {number}
* @memberof ListExpViewlistexpbarBase
*/
public
split
:
number
=
0.5
;
/**
* 导航视图名称
...
...
@@ -475,25 +430,6 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt
return
null
;
}
/**
* 选中数据
*
* @type {*}
* @memberof ListExpViewlistexpbarBase
*/
public
selection
:
any
=
{};
/**
* split值变化事件
*
* @memberof ListExpViewlistexpbarBase
*/
public
onSplitChange
()
{
if
(
this
.
split
){
this
.
$store
.
commit
(
"setViewSplit"
,{
viewUID
:
this
.
viewUID
,
viewSplit
:
this
.
split
});
}
}
/**
* Vue声明周期(组件初始化完毕)
*
...
...
@@ -524,24 +460,7 @@ export default class ListExpViewlistexpbarBase extends Vue implements ControlInt
*
* @memberof ListExpViewlistexpbarBase
*/
public
afterMounted
(){
if
(
this
.
$store
.
getters
.
getViewSplit
(
this
.
viewUID
)){
this
.
split
=
this
.
$store
.
getters
.
getViewSplit
(
this
.
viewUID
);
}
else
{
let
containerWidth
:
number
=
(
document
.
getElementById
(
"listexpviewlistexpbar"
)
as
any
).
offsetWidth
;
let
containerHeight
:
number
=
(
document
.
getElementById
(
"listexpviewlistexpbar"
)
as
any
).
offsetHeight
;
if
(
Object
.
is
(
this
.
showMode
,
'horizontal'
)){
if
(
this
.
ctrlWidth
&&
containerWidth
!=
0
){
this
.
split
=
this
.
ctrlWidth
/
containerWidth
;
}
}
else
{
if
(
this
.
ctrlHeight
&&
containerHeight
!=
0
){
this
.
split
=
this
.
ctrlHeight
/
containerHeight
;
}
}
this
.
$store
.
commit
(
"setViewSplit"
,{
viewUID
:
this
.
viewUID
,
viewSplit
:
this
.
split
});
}
}
public
afterMounted
()
{
}
/**
* Vue声明周期(组件渲染完毕)
...
...
app_Web/src/widgets/ibizorder/list-exp-viewlistexpbar-listexpbar/list-exp-viewlistexpbar-listexpbar.less
浏览文件 @
70977341
.app-list-exp-bar {
> .ivu-split-horizontal {
> .ivu-split-trigger-con {
height: 100%;
width: 1px;
}
> .ivu-split-pane {
> div {
height: 100%;
overflow: auto;
display: flex;
flex-direction: column;
.list-exp-bar-header {
...
...
@@ -22,6 +14,10 @@
}
}
}
.exp-bar-action-container {
display: flex;
align-items: center;
}
.container-header{
display: flex;
justify-content: flex-start;
...
...
@@ -36,9 +32,6 @@
}
.toolbar-container{
padding: 4px;
display: flex;
flex-wrap: wrap;
align-items: center;
}
.quick-group-container {
padding-top: 8px;
...
...
@@ -46,81 +39,8 @@
}
}
.list-exp-bar-content {
height: calc(100% - 88px);
overflow: auto;
padding: 16px 0;
margin-bottom: 10px;
}
.list-exp-bar-content2 {
height: 100%;
overflow: auto;
flex-grow: 1;
}
}
}
> .right-pane.ivu-split-pane {
> div {
padding-left: 10px;
}
}
> .left-pane.ivu-split-pane {
padding-right: 10px;
}
}
> .ivu-split-vertical{
> .ivu-split-pane {
> div {
height: 100%;
overflow: auto;
display: flex;
flex-direction: column;
.list-exp-bar-header {
line-height: 50px;
border-bottom: 1px solid #ddd;
.list-exp-bar-title {
font-size: 18px;
padding-left: 8px;
i {
font-size: 20px;
margin-top: -2px;
}
}
}
.container-header{
display: flex;
justify-content: space-between;
align-items: center;
.search-container {
width: 30%;
height: 48px;
padding: 10px 10px 10px 0;
min-width: 200px;
max-width: 400px;
}
.toolbar-container{
padding: 4px;
}
}
.list-exp-bar-content {
height: calc(100% - 88px);
overflow: auto;
margin-bottom: 10px;
}
.list-exp-bar-content2 {
height: 100%;
overflow: auto;
flex-grow: 1;
}
}
}
> .top-pane.ivu-split-pane {
> div {
padding-bottom: 10px;
}
}
> .bottom-pane.ivu-split-pane {
padding-top: 10px;
}
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录