Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
iBiz-Vue-R7-Res
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz-R7前端标准模板
iBiz-Vue-R7-Res
提交
32dfe5f3
提交
32dfe5f3
编写于
11月 01, 2022
作者:
Mosher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新
上级
2a5b03cf
变更
1
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
23 行增加
和
24 行删除
+23
-24
exp-view-engine.ts
src/engine/view/exp-view-engine.ts
+23
-24
未找到文件。
src/engine/view/exp-view-engine.ts
浏览文件 @
32dfe5f3
...
@@ -8,7 +8,6 @@ import ViewEngine from "./view-engine";
...
@@ -8,7 +8,6 @@ import ViewEngine from "./view-engine";
* @extends {ViewEngine}
* @extends {ViewEngine}
*/
*/
export
class
ExpViewEngine
extends
ViewEngine
{
export
class
ExpViewEngine
extends
ViewEngine
{
/**
/**
* 导航栏部件
* 导航栏部件
*
*
...
@@ -45,7 +44,7 @@ export class ExpViewEngine extends ViewEngine {
...
@@ -45,7 +44,7 @@ export class ExpViewEngine extends ViewEngine {
super
.
load
();
super
.
load
();
if
(
this
.
getExpBar
()
&&
this
.
isLoadDefault
)
{
if
(
this
.
getExpBar
()
&&
this
.
isLoadDefault
)
{
const
tag
=
this
.
getExpBar
().
name
;
const
tag
=
this
.
getExpBar
().
name
;
this
.
setViewState2
({
tag
:
tag
,
action
:
'load'
,
viewdata
:
this
.
view
.
viewparams
});
this
.
setViewState2
({
tag
:
tag
,
action
:
"load"
,
viewdata
:
this
.
view
.
viewparams
});
}
else
{
}
else
{
this
.
isLoadDefault
=
true
;
this
.
isLoadDefault
=
true
;
}
}
...
@@ -60,7 +59,7 @@ export class ExpViewEngine extends ViewEngine {
...
@@ -60,7 +59,7 @@ export class ExpViewEngine extends ViewEngine {
public
search
(
data
:
any
)
{
public
search
(
data
:
any
)
{
const
expBar
=
this
.
getExpBar
();
const
expBar
=
this
.
getExpBar
();
if
(
expBar
)
{
if
(
expBar
)
{
this
.
setViewState2
({
tag
:
expBar
.
name
,
action
:
'load'
,
viewdata
:
null
});
this
.
setViewState2
({
tag
:
expBar
.
name
,
action
:
"load"
,
viewdata
:
null
});
}
}
}
}
...
@@ -83,7 +82,7 @@ export class ExpViewEngine extends ViewEngine {
...
@@ -83,7 +82,7 @@ export class ExpViewEngine extends ViewEngine {
*/
*/
public
handleNavViewRefresh
(
tag
:
string
)
{
public
handleNavViewRefresh
(
tag
:
string
)
{
if
(
this
.
view
&&
this
.
view
.
viewState
&&
this
.
isRealSelected
)
{
if
(
this
.
view
&&
this
.
view
.
viewState
&&
this
.
isRealSelected
)
{
this
.
setViewState2
({
tag
,
action
:
'load'
,
viewdata
:
this
.
view
.
viewparams
});
this
.
setViewState2
({
tag
,
action
:
"load"
,
viewdata
:
this
.
view
.
viewparams
});
}
}
}
}
...
@@ -97,10 +96,10 @@ export class ExpViewEngine extends ViewEngine {
...
@@ -97,10 +96,10 @@ export class ExpViewEngine extends ViewEngine {
*/
*/
public
onCtrlEvent
(
ctrlName
:
string
,
eventName
:
string
,
args
:
any
)
{
public
onCtrlEvent
(
ctrlName
:
string
,
eventName
:
string
,
args
:
any
)
{
const
expBar
=
this
.
getExpBar
();
const
expBar
=
this
.
getExpBar
();
if
(
ctrlName
===
expBar
?
.
name
)
{
if
(
expBar
&&
ctrlName
===
expBar
.
name
)
{
this
.
handleExpBarEvents
(
eventName
,
args
);
this
.
handleExpBarEvents
(
eventName
,
args
);
}
}
if
(
ctrlName
===
expBar
?
.
xDataControlName
)
{
if
(
expBar
&&
ctrlName
===
expBar
.
xDataControlName
)
{
this
.
handleXDataControlEvents
(
eventName
,
args
);
this
.
handleXDataControlEvents
(
eventName
,
args
);
}
}
}
}
...
@@ -114,15 +113,15 @@ export class ExpViewEngine extends ViewEngine {
...
@@ -114,15 +113,15 @@ export class ExpViewEngine extends ViewEngine {
* @memberof ExpViewEngine
* @memberof ExpViewEngine
*/
*/
protected
handleExpBarEvents
(
eventName
:
string
,
args
:
any
)
{
protected
handleExpBarEvents
(
eventName
:
string
,
args
:
any
)
{
if
(
Object
.
is
(
eventName
,
'load'
))
{
if
(
Object
.
is
(
eventName
,
"load"
))
{
this
.
view
.
$emit
(
'viewload'
,
args
);
this
.
view
.
$emit
(
"viewload"
,
args
);
}
}
if
(
Object
.
is
(
eventName
,
'selectionchange'
))
{
if
(
Object
.
is
(
eventName
,
"selectionchange"
))
{
if
(
this
.
isCloseNavView
)
{
if
(
this
.
isCloseNavView
)
{
this
.
isCloseNavView
=
false
;
this
.
isCloseNavView
=
false
;
return
;
return
;
}
}
if
(
this
.
view
&&
args
&&
args
.
srfnavdata
&&
args
.
srfnavdata
.
context
&&
args
.
srfnavdata
.
context
.
viewpath
)
{
if
(
this
.
view
&&
args
&&
args
.
srfnavdata
&&
args
.
srfnavdata
.
context
)
{
this
.
view
.
navItem
=
args
;
this
.
view
.
navItem
=
args
;
if
(
this
.
view
.
backSplit
!==
0
)
{
if
(
this
.
view
.
backSplit
!==
0
)
{
this
.
view
.
split
=
this
.
view
.
backSplit
;
this
.
view
.
split
=
this
.
view
.
backSplit
;
...
@@ -131,20 +130,20 @@ export class ExpViewEngine extends ViewEngine {
...
@@ -131,20 +130,20 @@ export class ExpViewEngine extends ViewEngine {
if
(
args
&&
args
.
data
&&
args
.
data
[
0
])
{
if
(
args
&&
args
.
data
&&
args
.
data
[
0
])
{
const
selectedData
=
args
.
data
[
0
];
const
selectedData
=
args
.
data
[
0
];
const
result
=
Object
.
keys
(
selectedData
).
find
((
key
:
string
)
=>
{
const
result
=
Object
.
keys
(
selectedData
).
find
((
key
:
string
)
=>
{
return
selectedData
[
key
]
!==
null
&&
key
!==
'srfchecked'
;
return
selectedData
[
key
]
!==
null
&&
key
!==
"srfchecked"
;
})
})
;
if
(
result
)
{
if
(
result
)
{
this
.
isRealSelected
=
true
;
this
.
isRealSelected
=
true
;
}
else
{
}
else
{
this
.
isRealSelected
=
false
;
this
.
isRealSelected
=
false
;
}
}
}
}
this
.
view
.
$forceUpdate
();
//
this.view.$forceUpdate();
}
}
this
.
view
.
$emit
(
'viewdataschange'
,
args
?.
data
);
this
.
view
.
$emit
(
"viewdataschange"
,
args
&&
args
.
data
?
args
.
data
:
[]
);
}
}
if
(
Object
.
is
(
eventName
,
'activated'
))
{
if
(
Object
.
is
(
eventName
,
"activated"
))
{
this
.
view
.
$emit
(
'viewdatasactivated'
,
args
);
this
.
view
.
$emit
(
"viewdatasactivated"
,
args
);
}
}
}
}
...
@@ -157,7 +156,7 @@ export class ExpViewEngine extends ViewEngine {
...
@@ -157,7 +156,7 @@ export class ExpViewEngine extends ViewEngine {
* @memberof ExpViewEngine
* @memberof ExpViewEngine
*/
*/
protected
handleXDataControlEvents
(
eventName
:
string
,
args
:
any
)
{
protected
handleXDataControlEvents
(
eventName
:
string
,
args
:
any
)
{
if
(
Object
.
is
(
eventName
,
'beforeload'
))
{
if
(
Object
.
is
(
eventName
,
"beforeload"
))
{
this
.
handleBeforeLoad
(
args
);
this
.
handleBeforeLoad
(
args
);
}
}
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录