Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
ebd48b5b
提交
ebd48b5b
编写于
11月 01, 2022
作者:
Mosher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
上级
f664555a
变更
3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
24 行增加
和
261 行删除
+24
-261
calendar-exp-view-engine.ts
src/engine/view/calendar-exp-view-engine.ts
+7
-85
data-view-exp-view-engine.ts
src/engine/view/data-view-exp-view-engine.ts
+7
-86
tree-exp-view-engine.ts
src/engine/view/tree-exp-view-engine.ts
+10
-90
未找到文件。
src/engine/view/calendar-exp-view-engine.ts
浏览文件 @
ebd48b5b
import
ViewEngine
from
'./
view-engine'
;
import
{
ExpViewEngine
}
from
'./exp-
view-engine'
;
/**
* 日历导航视图界面引擎
...
...
@@ -7,24 +7,7 @@ import ViewEngine from './view-engine';
* @class CalendarExpViewEngine
* @extends {ViewEngine}
*/
export
default
class
CalendarExpViewEngine
extends
ViewEngine
{
/**
* 日历导航栏部件
*
* @type {*}
* @memberof CalendarExpViewEngine
*/
public
calendarExpBar
:
any
=
null
;
/**
* Creates an instance of CalendarExpViewEngine.
*
* @memberof CalendarExpViewEngine
*/
constructor
()
{
super
();
}
export
default
class
CalendarExpViewEngine
extends
ExpViewEngine
{
/**
* 初始化引擎
...
...
@@ -33,78 +16,17 @@ export default class CalendarExpViewEngine extends ViewEngine {
* @memberof CalendarExpViewEngine
*/
public
init
(
options
:
any
):
void
{
this
.
calendarE
xpBar
=
options
.
calendarexpbar
;
this
.
e
xpBar
=
options
.
calendarexpbar
;
super
.
init
(
options
);
}
/**
* 引擎加载
*
* @memberof CalendarExpViewEngine
*/
public
load
():
void
{
super
.
load
();
if
(
this
.
getCalendarExpBar
()
&&
this
.
isLoadDefault
)
{
const
tag
=
this
.
getCalendarExpBar
().
name
;
this
.
setViewState2
({
tag
:
tag
,
action
:
'load'
,
viewdata
:
this
.
view
.
viewparams
});
}
else
{
this
.
isLoadDefault
=
true
;
}
}
/**
* 部件事件机制
*
* @param {string} ctrlName
* @param {string} eventName
* @param {*} args
* @memberof CalendarExpViewEngine
*/
public
onCtrlEvent
(
ctrlName
:
string
,
eventName
:
string
,
args
:
any
):
void
{
super
.
onCtrlEvent
(
ctrlName
,
eventName
,
args
);
if
(
Object
.
is
(
ctrlName
,
'calendarexpbar'
))
{
this
.
calendarExpBarEvent
(
eventName
,
args
);
}
}
/**
* 日历导航事件
*
* @param {string} eventName
* @param {*} args
* @memberof CalendarExpViewEngine
*/
public
calendarExpBarEvent
(
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 CalendarExpViewEngine
*/
public
getCalendarExpBar
():
any
{
return
this
.
calendarExpBar
;
}
/**
* @description 销毁
* @description
视图
销毁
* @memberof CalendarExpViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
calendarE
xpBar
=
null
;
public
destroy
ed
()
{
super
.
destroy
ed
();
this
.
e
xpBar
=
null
;
}
}
\ No newline at end of file
src/engine/view/data-view-exp-view-engine.ts
浏览文件 @
ebd48b5b
import
ViewEngine
from
'./
view-engine'
;
import
{
ExpViewEngine
}
from
'./exp-
view-engine'
;
/**
* 卡片视图导航视图界面引擎
...
...
@@ -7,24 +7,7 @@ import ViewEngine from './view-engine';
* @class DataViewExpViewEngine
* @extends {ViewEngine}
*/
export
default
class
DataViewExpViewEngine
extends
ViewEngine
{
/**
* 卡片导航栏部件
*
* @type {*}
* @memberof DataViewExpViewEngine
*/
public
dataviewExpBar
:
any
=
null
;
/**
* Creates an instance of DataViewExpViewEngine.
*
* @memberof DataViewExpViewEngine
*/
constructor
()
{
super
();
}
export
default
class
DataViewExpViewEngine
extends
ExpViewEngine
{
/**
* 初始化引擎
...
...
@@ -33,79 +16,17 @@ export default class DataViewExpViewEngine extends ViewEngine {
* @memberof DataViewExpViewEngine
*/
public
init
(
options
:
any
):
void
{
this
.
dataviewE
xpBar
=
options
.
dataviewexpbar
;
this
.
e
xpBar
=
options
.
dataviewexpbar
;
super
.
init
(
options
);
}
/**
* 引擎加载
*
* @description 视图销毁
* @memberof DataViewExpViewEngine
*/
public
load
():
void
{
super
.
load
();
if
(
this
.
getDataviewExpBar
()
&&
this
.
isLoadDefault
)
{
const
tag
=
this
.
getDataviewExpBar
().
name
;
this
.
setViewState2
({
tag
:
tag
,
action
:
'load'
,
viewdata
:
this
.
view
.
viewparams
});
}
else
{
this
.
isLoadDefault
=
true
;
}
}
/**
* 部件事件机制
*
* @param {string} ctrlName
* @param {string} eventName
* @param {*} args
* @memberof DataViewExpViewEngine
*/
public
onCtrlEvent
(
ctrlName
:
string
,
eventName
:
string
,
args
:
any
):
void
{
super
.
onCtrlEvent
(
ctrlName
,
eventName
,
args
);
if
(
Object
.
is
(
ctrlName
,
'dataviewexpbar'
))
{
this
.
dataviewExpBarEvent
(
eventName
,
args
);
}
public
destroyed
()
{
super
.
destroyed
();
this
.
expBar
=
null
;
}
/**
* 卡片导航事件
*
* @param {string} eventName
* @param {*} args
* @memberof DataViewExpViewEngine
*/
public
dataviewExpBarEvent
(
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 DataViewExpViewEngine
*/
public
getDataviewExpBar
():
any
{
return
this
.
dataviewExpBar
;
}
/**
* @description 销毁
* @memberof DataViewExpViewEngine
*/
public
destroy
()
{
super
.
destroy
();
this
.
dataviewExpBar
=
null
;
}
}
\ No newline at end of file
src/engine/view/tree-exp-view-engine.ts
浏览文件 @
ebd48b5b
import
ViewEngine
from
'./
view-engine'
;
import
{
ExpViewEngine
}
from
'./exp-
view-engine'
;
/**
* 实体树导航视图界面引擎
*
* @export
* @class TreeExpView
* @class TreeExpView
Engine
* @extends {ViewEngine}
*/
export
default
class
TreeExpView
extends
ViewEngine
{
/**
* 选择视图面板
*
* @type {*}
* @memberof TreeExpView
*/
public
treeExpBar
:
any
=
null
;
/**
* Creates an instance of TreeExpView.
*
* @memberof TreeExpView
*/
constructor
()
{
super
();
}
export
default
class
TreeExpViewEngine
extends
ExpViewEngine
{
/**
* 初始化引擎
*
* @param {*} options
* @memberof TreeExpView
* @memberof TreeExpView
Engine
*/
public
init
(
options
:
any
):
void
{
this
.
treeE
xpBar
=
options
.
treeexpbar
;
this
.
e
xpBar
=
options
.
treeexpbar
;
super
.
init
(
options
);
}
/**
* 引擎加载
*
* @memberof TreeExpView
*/
public
load
():
void
{
super
.
load
();
if
(
this
.
getTreeExpBar
()
&&
this
.
isLoadDefault
)
{
const
tag
=
this
.
getTreeExpBar
().
name
;
this
.
setViewState2
({
tag
:
tag
,
action
:
'load'
,
viewdata
:
this
.
view
.
context
});
}
else
{
this
.
isLoadDefault
=
true
;
}
}
/**
* 部件事件机制
*
* @param {string} ctrlName
* @param {string} eventName
* @param {*} args
* @memberof TreeExpView
*/
public
onCtrlEvent
(
ctrlName
:
string
,
eventName
:
string
,
args
:
any
):
void
{
super
.
onCtrlEvent
(
ctrlName
,
eventName
,
args
);
if
(
Object
.
is
(
ctrlName
,
'treeexpbar'
))
{
this
.
treeExpBarEvent
(
eventName
,
args
);
}
}
/**
* 树导航事件
*
* @param {string} eventName
* @param {*} args
* @memberof TreeExpView
* @description 视图销毁
* @memberof TreeExpViewEngine
*/
public
treeExpBarEvent
(
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
);
public
destroyed
()
{
super
.
destroyed
();
this
.
expBar
=
null
;
}
}
/**
* 获取部件对象那
*
* @returns {*}
* @memberof TreeExpView
*/
public
getTreeExpBar
():
any
{
return
this
.
treeExpBar
;
}
/**
* @description 销毁
* @memberof TreeExpView
*/
public
destroy
()
{
super
.
destroy
();
this
.
treeExpBar
=
null
;
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录