Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
d008398c
提交
d008398c
编写于
3月 09, 2022
作者:
Mosher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update:更新树导航部件、面板属性样式
上级
378884bc
变更
8
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
196 行增加
和
34 行删除
+196
-34
exp-bar-control.ts
...c/core/modules/widgets/exp-bar-control/exp-bar-control.ts
+0
-20
main-control.ts
...s}}/src/core/modules/widgets/main-control/main-control.ts
+3
-3
tree-control.ts
...s}}/src/core/modules/widgets/tree-control/tree-control.ts
+44
-0
tree-exp-bar-control.ts
...ules/widgets/tree-exp-bar-control/tree-exp-bar-control.ts
+39
-1
app-panel.scss
...es/templ/r7/app_{{apps}}/src/style/widgets/app-panel.scss
+7
-1
app-tree-exp-bar.scss
...l/r7/app_{{apps}}/src/style/widgets/app-tree-exp-bar.scss
+21
-0
{{ctrls@TREEEXPBAR}}-tree-exp-bar-state.ts.hbs
...ee-exp-bar/{{ctrls@TREEEXPBAR}}-tree-exp-bar-state.ts.hbs
+11
-0
{{ctrls@TREEEXPBAR}}-tree-exp-bar.vue.hbs
...}}-tree-exp-bar/{{ctrls@TREEEXPBAR}}-tree-exp-bar.vue.hbs
+71
-9
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/exp-bar-control/exp-bar-control.ts
浏览文件 @
d008398c
...
@@ -16,14 +16,6 @@ export class ExpBarControl extends MainControl {
...
@@ -16,14 +16,6 @@ export class ExpBarControl extends MainControl {
*/
*/
public
declare
state
:
ExpBarControlState
;
public
declare
state
:
ExpBarControlState
;
/**
* 当前视图表格部件
*
* @type {IParam}
* @memberof GridView
*/
public
declare
xData
:
IParam
;
/**
/**
* 通知状态
* 通知状态
*
*
...
@@ -41,7 +33,6 @@ export class ExpBarControl extends MainControl {
...
@@ -41,7 +33,6 @@ export class ExpBarControl extends MainControl {
* @memberof ExpBarControl
* @memberof ExpBarControl
*/
*/
protected
useExpCtrlInit
()
{
protected
useExpCtrlInit
()
{
this
.
xData
=
ref
(
null
);
onMounted
(()
=>
{
onMounted
(()
=>
{
const
xDataControl
=
this
.
getXDataCtrl
();
const
xDataControl
=
this
.
getXDataCtrl
();
if
(
xDataControl
)
{
if
(
xDataControl
)
{
...
@@ -111,16 +102,6 @@ export class ExpBarControl extends MainControl {
...
@@ -111,16 +102,6 @@ export class ExpBarControl extends MainControl {
}
}
}
}
/**
* @description 获取多数据部件
* @private
* @return {*}
* @memberof ExpBarControl
*/
private
getXDataCtrl
()
{
return
unref
(
this
.
xData
);
}
/**
/**
* @description 安装部件所有功能模块的方法
* @description 安装部件所有功能模块的方法
* @return {*}
* @return {*}
...
@@ -131,7 +112,6 @@ export class ExpBarControl extends MainControl {
...
@@ -131,7 +112,6 @@ export class ExpBarControl extends MainControl {
this
.
useExpCtrlInit
();
this
.
useExpCtrlInit
();
return
{
return
{
...
superParams
,
...
superParams
,
xData
:
this
.
xData
,
onCtrlEvent
:
this
.
onCtrlEvent
.
bind
(
this
)
onCtrlEvent
:
this
.
onCtrlEvent
.
bind
(
this
)
};
};
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/main-control/main-control.ts
浏览文件 @
d008398c
...
@@ -21,7 +21,7 @@ export class MainControl extends ControlBase {
...
@@ -21,7 +21,7 @@ export class MainControl extends ControlBase {
* @type {IParam}
* @type {IParam}
* @memberof MainControl
* @memberof MainControl
*/
*/
pr
ivate
declare
xData
:
IParam
;
pr
otected
declare
xData
:
IParam
;
/**
/**
* 界面行为服务
* 界面行为服务
...
@@ -72,8 +72,8 @@ export class MainControl extends ControlBase {
...
@@ -72,8 +72,8 @@ export class MainControl extends ControlBase {
* @return {*}
* @return {*}
* @memberof MainControl
* @memberof MainControl
*/
*/
p
ublic
getXDataCtrl
()
{
p
rotected
getXDataCtrl
()
{
return
this
.
xData
;
return
unref
(
this
.
xData
)
;
}
}
/**
/**
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/tree-control/tree-control.ts
浏览文件 @
d008398c
...
@@ -169,6 +169,37 @@ export class TreeControl extends MDControl {
...
@@ -169,6 +169,37 @@ export class TreeControl extends MDControl {
return
load
;
return
load
;
}
}
/**
* 使用搜索模块
*
* @memberof TreeControl
*/
public
useSearch
()
{
const
{
viewSubject
,
controlName
}
=
this
.
state
;
// 订阅viewSubject,监听search行为
if
(
viewSubject
)
{
let
subscription
=
viewSubject
.
subscribe
(({
tag
,
action
,
data
}:
IActionParam
)
=>
{
if
(
!
Object
.
is
(
controlName
,
tag
))
{
return
;
}
if
(
Object
.
is
(
"search"
,
action
))
{
this
.
state
.
srfnodefilter
=
data
?.
query
;
this
.
load
({},
true
);
}
})
// 部件卸载时退订viewSubject
onUnmounted
(()
=>
{
subscription
.
unsubscribe
();
})
}
}
/**
* 使用刷新模块
*
* @return {*}
* @memberof TreeControl
*/
public
useRefresh
()
{
public
useRefresh
()
{
const
{
viewSubject
,
controlName
}
=
this
.
state
;
const
{
viewSubject
,
controlName
}
=
this
.
state
;
...
@@ -209,6 +240,12 @@ export class TreeControl extends MDControl {
...
@@ -209,6 +240,12 @@ export class TreeControl extends MDControl {
return
refresh
;
return
refresh
;
}
}
/**
* 刷新父节点
*
* @protected
* @memberof TreeControl
*/
protected
refreshParent
()
{
protected
refreshParent
()
{
const
{
currentSelectedNode
}
=
this
.
state
;
const
{
currentSelectedNode
}
=
this
.
state
;
if
(
currentSelectedNode
&&
currentSelectedNode
.
parentNodeId
)
{
if
(
currentSelectedNode
&&
currentSelectedNode
.
parentNodeId
)
{
...
@@ -221,6 +258,12 @@ export class TreeControl extends MDControl {
...
@@ -221,6 +258,12 @@ export class TreeControl extends MDControl {
}
}
}
}
/**
* 刷新全部节点
*
* @protected
* @memberof TreeControl
*/
protected
refreshAll
()
{
protected
refreshAll
()
{
const
{
currentSelectedNode
}
=
this
.
state
;
const
{
currentSelectedNode
}
=
this
.
state
;
// this.load({}, true);
// this.load({}, true);
...
@@ -478,6 +521,7 @@ export class TreeControl extends MDControl {
...
@@ -478,6 +521,7 @@ export class TreeControl extends MDControl {
*/
*/
public
moduleInstall
()
{
public
moduleInstall
()
{
const
superParams
=
super
.
moduleInstall
();
const
superParams
=
super
.
moduleInstall
();
this
.
useSearch
();
return
{
return
{
...
superParams
,
...
superParams
,
onTreeNodeSelect
:
this
.
onTreeNodeSelect
.
bind
(
this
),
onTreeNodeSelect
:
this
.
onTreeNodeSelect
.
bind
(
this
),
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/core/modules/widgets/tree-exp-bar-control/tree-exp-bar-control.ts
浏览文件 @
d008398c
import
{
deepCopy
,
ExpBarControl
,
IActionParam
,
IParam
,
UIUtil
}
from
"@core"
;
import
{
deepCopy
,
ExpBarControl
,
IActionParam
,
IParam
,
UIUtil
}
from
"@core"
;
import
{
TreeExpBarControlProps
}
from
"./tree-exp-bar-control-prop"
;
import
{
TreeExpBarControlState
}
from
"./tree-exp-bar-control-state"
;
import
{
TreeExpBarControlState
}
from
"./tree-exp-bar-control-state"
;
/**
/**
...
@@ -15,6 +16,42 @@ export class TreeExpBarControl extends ExpBarControl {
...
@@ -15,6 +16,42 @@ export class TreeExpBarControl extends ExpBarControl {
*/
*/
public
declare
state
:
TreeExpBarControlState
;
public
declare
state
:
TreeExpBarControlState
;
/**
* 树导航部件输入参数
*
* @type {TreeExpBarControlProps}
* @memberof TreeExpBarControl
*/
public
declare
props
:
TreeExpBarControlProps
;
/**
* 搜索
*
* @param {*} value
* @param {MouseEvent} event
* @memberof TreeExpBarControl
*/
public
search
(
value
:
any
,
event
:
MouseEvent
)
{
}
/**
* 使用搜索模块
*
* @protected
* @return {*}
* @memberof TreeExpBarControl
*/
protected
useSearch
()
{
const
search
=
(
value
:
any
,
event
:
MouseEvent
)
=>
{
const
{
viewSubject
}
=
this
.
state
;
const
xData
=
this
.
getXDataCtrl
();
if
(
xData
)
{
viewSubject
.
next
({
tag
:
xData
.
name
,
action
:
'search'
,
data
:
{
query
:
value
}
});
}
}
this
.
search
=
search
;
return
search
;
}
/**
/**
* @description 选中数据变化
* @description 选中数据变化
* @protected
* @protected
...
@@ -150,7 +187,8 @@ export class TreeExpBarControl extends ExpBarControl {
...
@@ -150,7 +187,8 @@ export class TreeExpBarControl extends ExpBarControl {
const
superParams
=
super
.
moduleInstall
();
const
superParams
=
super
.
moduleInstall
();
this
.
useLoad
();
this
.
useLoad
();
return
{
return
{
...
superParams
...
superParams
,
search
:
this
.
useSearch
()
};
};
}
}
}
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/widgets/app-panel.scss
浏览文件 @
d008398c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
// 面板属性样式配置
// 面板属性样式配置
.app-panel-field
{
.app-panel-field
{
display
:
flex
;
display
:
flex
;
width
:
100%
;
padding
:
0
6px
;
}
}
.panel-field__label
{
.panel-field__label
{
height
:
32px
;
height
:
32px
;
...
@@ -17,4 +17,10 @@
...
@@ -17,4 +17,10 @@
line-height
:
32px
;
line-height
:
32px
;
flex-grow
:
1
;
flex-grow
:
1
;
}
}
// 面板容器
.panel-container-header
{
height
:
32px
;
line-height
:
32px
;
padding
:
0
6px
;
}
}
}
\ No newline at end of file
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/style/widgets/app-tree-exp-bar.scss
浏览文件 @
d008398c
...
@@ -8,6 +8,27 @@
...
@@ -8,6 +8,27 @@
.app-split
{
.app-split
{
background
:
#fff
;
background
:
#fff
;
}
}
// 搜索栏头部
.tree-exp-bar-header
{
display
:
flex
;
flex-direction
:
column
;
padding-left
:
12px
;
padding-bottom
:
6px
;
padding
:
0
6px
6px
12px
;
// 标题
.title
{
height
:
32px
;
line-height
:
32px
;
font-size
:
16px
;
font-weight
:
600
;
margin-bottom
:
4px
;
border-bottom
:
1px
solid
var
(
--
app-view-layout-header-border-bottom
);
}
// 搜索栏
.search
{
padding
:
6px
0
;
}
}
.tree-exp-bar-body
{
.tree-exp-bar-body
{
padding
:
6px
6px
6px
0
;
padding
:
6px
6px
6px
0
;
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEEXPBAR}}-tree-exp-bar/{{ctrls@TREEEXPBAR}}-tree-exp-bar-state.ts.hbs
浏览文件 @
d008398c
...
@@ -2,12 +2,23 @@ export const ctrlState = {
...
@@ -2,12 +2,23 @@ export const ctrlState = {
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlCodeName: '
{{
ctrl
.
codeName
}}
',
controlName: '
{{
ctrl
.
name
}}
',
controlName: '
{{
ctrl
.
name
}}
',
counter: 0,
counter: 0,
enableSearch:
{{
ctrl
.
enableSearch
}}
,
xDataControlName: '
{{
ctrl
.
xDataControlName
}}
',
xDataControlName: '
{{
ctrl
.
xDataControlName
}}
',
selection: {},
selection: {},
searchValue: '',
showTitleBar:
{{#if
ctrl
.
showTitleBar
}}
true
{{else}}
false
{{/if}}
,
showTitleBar:
{{#if
ctrl
.
showTitleBar
}}
true
{{else}}
false
{{/if}}
,
split: 0.2,
split: 0.2,
title: '
{{
ctrl
.
title
}}
',
title: '
{{
ctrl
.
title
}}
',
titleRes: '
{{#if
ctrl
.
titlePSLanguageRes
}}{{
ctrl
.
titlePSLanguageRes
.
lanResTag
}}{{/if}}
',
titleRes: '
{{#if
ctrl
.
titlePSLanguageRes
}}{{
ctrl
.
titlePSLanguageRes
.
lanResTag
}}{{/if}}
',
{{#
each
ctrl
.
psControls
as
|
childCtrl
|
}}
{{#
eq
childCtrl
.
controlType
'TOOLBAR'
}}
toolbar: [
{{#
childCtrl
.
psDEToolbarItems
}}
{ name:'
{{
name
}}
',caption:'
{{
caption
}}
',groupExtractMode:'
{{
groupExtractMode
}}
',itemType:'
{{
itemType
}}
',noPrivDisplayMode:'
{{
noPrivDisplayMode
}}
',showIcon:
{{
showIcon
}}
,showCaption:
{{
showCaption
}}
,tooltip:'
{{
tooltip
}}
',disabled: false, visible: true, imgPath: '
{{
imgPath
}}
',iconClass: '
{{
iconClass
}}
',xDataControlName:'
{{
xDataControlName
}}
',
{{#if
uIAction
}}
uIAction:{codeName:'
{{
uIAction
.
codeName
}}
',fullCodeName:'
{{
uIAction
.
fullCodeName
}}
',uIActionMode:'
{{
uIAction
.
uIActionMode
}}
',actionTarget:'
{{
uIAction
.
actionTarget
}}
',uIActionTag:'
{{
uIAction
.
uIActionTag
}}
',dataAccessAction:'
{{
uIAction
.
dataAccessAction
}}
',uIActionType:'
{{
uIAction
.
uIActionType
}}
'}
{{#if
uIAction
.
counterId
}}
,counterId: '
{{
uIAction
.
counterId
}}
'
{{/if}}{{/if}}
},
{{/
childCtrl
.
psDEToolbarItems
}}
],
{{/
eq
}}
{{/
each
}}
viewRefs: [
viewRefs: [
{{#
each
ctrl
.
psAppViewRefs
as
|
viewRef
|
}}
{{#
each
ctrl
.
psAppViewRefs
as
|
viewRef
|
}}
{
{
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/app_{{apps}}/src/widgets/{{appEntities}}/{{ctrls@TREEEXPBAR}}-tree-exp-bar/{{ctrls@TREEEXPBAR}}-tree-exp-bar.vue.hbs
浏览文件 @
d008398c
...
@@ -4,12 +4,31 @@ import { IActionParam, IParam, ControlAction, TreeExpBarControl, IContext } from
...
@@ -4,12 +4,31 @@ import { IActionParam, IParam, ControlAction, TreeExpBarControl, IContext } from
import
{
ctrlState
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-tree-exp-bar-state'
;
import
{
ctrlState
}
from
'./
{{
spinalCase
ctrl
.
codeName
}}
-tree-exp-bar-state'
;
{{#
ctrl
.
ctrls
}}
{{#
ctrl
.
ctrls
}}
{{#
eq
controlType
"TREEVIEW"
}}
{{#
eq
controlType
"TREEVIEW"
}}
import
{
{{
codeName
}}
Tree
}
from
'@widgets/
{{
spinalCase
app
Entity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-tree'
;
import
{
{{
codeName
}}
Tree
}
from
'@widgets/
{{
spinalCase
psAppData
Entity
.
codeName
}}
/
{{
spinalCase
codeName
}}
-tree'
;
{{/
eq
}}
{{/
eq
}}
{{/
ctrl
.
ctrls
}}
{{/
ctrl
.
ctrls
}}
{{#
each
ctrl
.
appViewRefs
as
|
viewRef
|
}}
{{#
each
ctrl
.
appViewRefs
as
|
viewRef
|
}}
{{#if
viewRef
.
refPSAppView
}}
{{#if
viewRef
.
refPSAppView
}}
{{#if
(
or
(
eq
viewRef
.
refPSAppView
.
viewType
'APPINDEXVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'APPPORTALVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEEDITVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEPANELVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEGRIDVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DELISTVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEMPICKUPVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEPICKUPGRIDVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEPICKUPVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DETREEVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DETREEEXPVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DETABEXPVIEW'
)
)
}}
import
{{
viewRef
.
refPSAppView
.
name
}}
from
'@views/
{{
spinalCase
viewRef
.
refPSAppView
.
psAppModule
.
codeName
}}
/
{{
spinalCase
viewRef
.
refPSAppView
.
codeName
}}
'
;
import
{{
viewRef
.
refPSAppView
.
name
}}
from
'@views/
{{
spinalCase
viewRef
.
refPSAppView
.
psAppModule
.
codeName
}}
/
{{
spinalCase
viewRef
.
refPSAppView
.
codeName
}}
'
;
{{else}}
//import
{{
viewRef
.
refPSAppView
.
name
}}
from
'@views/
{{
spinalCase
viewRef
.
refPSAppView
.
psAppModule
.
codeName
}}
/
{{
spinalCase
viewRef
.
refPSAppView
.
codeName
}}
'
;
{{/if}}
{{/if}}
{{/if}}
{{/
each
}}
{{/
each
}}
...
@@ -36,7 +55,7 @@ interface CtrlEmit {
...
@@ -36,7 +55,7 @@ interface CtrlEmit {
const
emit
=
defineEmits
<
CtrlEmit
>
();
const
emit
=
defineEmits
<
CtrlEmit
>
();
// 安装功能模块,提供状态和能力方法
// 安装功能模块,提供状态和能力方法
const
{
name
,
state
,
onCtrlEvent
,
xData
}
=
new
TreeExpBarControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
const
{
name
,
state
,
onCtrlEvent
,
xData
Ctrl
,
search
,
onToolbarEvent
}
=
new
TreeExpBarControl
(
ctrlState
,
props
,
emit
).
moduleInstall
();
// 暴露内部状态及能力
// 暴露内部状态及能力
defineExpose
({
name
,
state
});
defineExpose
({
name
,
state
});
...
@@ -46,14 +65,28 @@ defineExpose({ name, state });
...
@@ -46,14 +65,28 @@ defineExpose({ name, state });
<div
class=
"app-tree-exp-bar
{{#if
ctrl
.
psSysCss
}}
{{
ctrl
.
psSysCss
.
cssName
}}{{/if}}
"
>
<div
class=
"app-tree-exp-bar
{{#if
ctrl
.
psSysCss
}}
{{
ctrl
.
psSysCss
.
cssName
}}{{/if}}
"
>
<AppSplit
v-model=
"state.split"
>
<AppSplit
v-model=
"state.split"
>
<template
#
left
>
<template
#
left
>
<div
v-if=
"state.showTitleBar"
class=
"tree-exp-bar-title"
>
<div
v-if=
"state.enableSearch || state.toolbar || state.showTitleBar"
class=
"tree-exp-bar-header"
>
<span>
\{{ state.title }}
</span>
<div
class=
"title"
v-if=
"state.showTitleBar"
><span>
\{{ state.title }}
</span></div>
{{
~#
if
ctrl
.
enableSearch
}}
<a-input-search
class=
"tree-exp-bar__search"
v-model:value=
"state.searchValue"
@
search=
"search"
/>
{{/if}}
{{#
each
ctrl
.
psControls
as
|
childCtrl
|
}}
{{#
eq
childCtrl
.
controlType
'TOOLBAR'
}}
{{!-- TODO 计数器 --}}
<AppToolbar
mode=
"button"
name=
"
{{
lowerCase
childCtrl
.
codeName
}}
"
:actionModel=
"state.toolbar"
@
onToolbarEvent=
"onToolbarEvent"
>
</AppToolbar>
{{/
eq
}}
{{/
each
}}
</div>
</div>
<div
class=
"tree-exp-bar-body"
>
<div
class=
"tree-exp-bar-body"
>
{{#
ctrl
.
ctrls
}}
{{#
ctrl
.
ctrls
}}
{{#
eq
controlType
"TREEVIEW"
}}
{{#
eq
controlType
"TREEVIEW"
}}
<
{{
codeName
}}
Tree
<
{{
codeName
}}
Tree
ref=
"xData"
ref=
"xData
Ctrl
"
name=
"
{{
name
}}
"
name=
"
{{
name
}}
"
:context=
"state.context"
:context=
"state.context"
:viewParams=
"state.viewParams"
:viewParams=
"state.viewParams"
...
@@ -68,8 +101,24 @@ defineExpose({ name, state });
...
@@ -68,8 +101,24 @@ defineExpose({ name, state });
</div>
</div>
</template>
</template>
<template
#
right
>
<template
#
right
>
{{#
each
ctrl
.
psA
ppViewRefs
as
|
viewRef
|
}}
{{#
each
ctrl
.
a
ppViewRefs
as
|
viewRef
|
}}
{{#if
viewRef
.
refPSAppView
}}
{{#if
viewRef
.
refPSAppView
}}
{{#if
(
or
(
eq
viewRef
.
refPSAppView
.
viewType
'APPINDEXVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'APPPORTALVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEEDITVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEPANELVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEGRIDVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DELISTVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEMPICKUPVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEPICKUPGRIDVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DEPICKUPVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DETREEVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DETREEEXPVIEW'
)
(
eq
viewRef
.
refPSAppView
.
viewType
'DETABEXPVIEW'
)
)
}}
<
{{
viewRef
.
refPSAppView
.
name
}}
<
{{
viewRef
.
refPSAppView
.
name
}}
v-if
="
state
.
selection
.
viewName
&&
state
.
selection
.
viewName =
==
'
{{
viewRef
.
refPSAppView
.
name
}}
'"
v-if
="
state
.
selection
.
viewName
&&
state
.
selection
.
viewName =
==
'
{{
viewRef
.
refPSAppView
.
name
}}
'"
class=
"tree-exp__nav-view"
class=
"tree-exp__nav-view"
...
@@ -77,6 +126,19 @@ defineExpose({ name, state });
...
@@ -77,6 +126,19 @@ defineExpose({ name, state });
:context=
"state.selection.context"
:context=
"state.selection.context"
:viewParams=
"state.selection.viewParams"
>
:viewParams=
"state.selection.viewParams"
>
</
{{
viewRef
.
refPSAppView
.
name
}}
>
</
{{
viewRef
.
refPSAppView
.
name
}}
>
{{else}}
<!-- <
{{
viewRef
.
refPSAppView
.
name
}}
v-if="state.selection.viewName && state.selection.viewName === '
{{
viewRef
.
refPSAppView
.
name
}}
'"
class="tree-exp__nav-view"
:viewDefaultUsage="false"
:context="state.selection.context"
:viewParams="state.selection.viewParams">
</
{{
viewRef
.
refPSAppView
.
name
}}
> -->
{{/if}}
{{/if}}
{{/
each
}}
{{#
each
ctrl
.
psAppViewRefs
as
|
viewRef
|
}}
{{#if
viewRef
.
refPSAppView
}}
{{/if}}
{{/if}}
{{/
each
}}
{{/
each
}}
</template>
</template>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录