Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
ac280c27
提交
ac280c27
编写于
12月 22, 2022
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 发布系统代码 [后台服务,演示应用]
上级
85a69ac5
变更
40
隐藏空白字符变更
内嵌
并排
正在显示
40 个修改的文件
包含
3703 行增加
和
91 行删除
+3703
-91
main-menu-appmenu.ts
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
+18
-0
router.ts
app_Web/src/pages/sample/app-index-view2/router.ts
+14
-0
ibizbookusr4-tree-view-base.vue
...le/ibizbookusr4-tree-view/ibizbookusr4-tree-view-base.vue
+748
-0
ibizbookusr4-tree-view.scss
...sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view.scss
+25
-0
ibizbookusr4-tree-view.vue
.../sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view.vue
+24
-0
page-register.ts
app_Web/src/pages/sample/index/page-register.ts
+1
-0
router.ts
app_Web/src/pages/sample/index/router.ts
+29
-0
page-register.ts
app_Web/src/pages/ungroup/app-index-view/page-register.ts
+1
-0
router.ts
app_Web/src/pages/ungroup/app-index-view/router.ts
+29
-0
state.ts
app_Web/src/store/modules/view-action/state.ts
+11
-0
ibizbook-ui-service-base.ts
app_Web/src/uiservice/ibizbook/ibizbook-ui-service-base.ts
+1
-0
main-menu-appmenu-base.vue
.../widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
+26
-0
main-menu-appmenu-model.ts
.../widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
+20
-0
default-searchform-base.vue
...s/ibizbook/default-searchform/default-searchform-base.vue
+2
-2
quicksearchform-searchform-base.vue
...searchform-searchform/quicksearchform-searchform-base.vue
+2
-2
treepug-treeview-base.vue
...dgets/ibizbook/treepug-treeview/treepug-treeview-base.vue
+1009
-0
treepug-treeview-model.ts
...dgets/ibizbook/treepug-treeview/treepug-treeview-model.ts
+116
-0
treepug-treeview-service.ts
...ets/ibizbook/treepug-treeview/treepug-treeview-service.ts
+483
-0
treepug-treeview.scss
...c/widgets/ibizbook/treepug-treeview/treepug-treeview.scss
+37
-0
treepug-treeview.vue
...rc/widgets/ibizbook/treepug-treeview/treepug-treeview.vue
+16
-0
usr2-dataview-base.vue
...src/widgets/ibizbook/usr2-dataview/usr2-dataview-base.vue
+52
-22
main-grid-base.vue
...src/widgets/ibizorder-detail/main-grid/main-grid-base.vue
+6
-6
grid-exp-viewgridexpbar-gridexpbar-base.vue
...ar-gridexpbar/grid-exp-viewgridexpbar-gridexpbar-base.vue
+2
-2
test-custom-layout-panel-grid-exp-viewgridexpbar-gridexpbar-base.vue
...-layout-panel-grid-exp-viewgridexpbar-gridexpbar-base.vue
+2
-2
IBIZBOOK.json
...remotemodel/PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json
+8
-0
IBIZBOOK.json
...remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json
+4
-0
Usr.json
...SSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK/PSGANTTS/Usr.json
+12
-12
TreeTable.json
.../PSAPPDATAENTITIES/IBIZBOOK/PSTREEGRIDICES/TreeTable.json
+12
-12
Treepug.json
...S/Web/PSAPPDATAENTITIES/IBIZBOOK/PSTREEVIEWS/Treepug.json
+116
-0
Main2.json
...YSAPPS/Web/PSAPPDATAENTITIES/IBIZOrder/PSGRIDS/Main2.json
+22
-0
IBIZBOOKGanttView.json
...temodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKGanttView.json
+12
-12
IBIZBOOKTreeGridExView.json
...el/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKTreeGridExView.json
+12
-12
IBIZBOOKUsr4TreeView.json
...odel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr4TreeView.json
+247
-0
IBIZOrderGridExpView.json
...odel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderGridExpView.json
+22
-0
IBIZOrderTestCustomLayoutPanelGridExpView.json
...APPDEVIEWS/IBIZOrderTestCustomLayoutPanelGridExpView.json
+22
-0
IBIZOrderTestGridExpView.json
.../PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderTestGridExpView.json
+460
-7
AppIndexView.json
...motemodel/PSSYSAPPS/Web/PSAPPINDEXVIEWS/AppIndexView.json
+16
-0
index.json
...atic/remotemodel/PSSYSAPPS/Web/PSAPPINDEXVIEWS/index.json
+16
-0
MainMenu.json
...static/remotemodel/PSSYSAPPS/Web/PSAPPMENUS/MainMenu.json
+10
-0
PSSYSAPP.json
.../resources/static/remotemodel/PSSYSAPPS/Web/PSSYSAPP.json
+38
-0
未找到文件。
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
浏览文件 @
ac280c27
...
@@ -4197,6 +4197,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
...
@@ -4197,6 +4197,24 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
textcls
:
''
,
textcls
:
''
,
appfunctag
:
'UsrAppFunc1207842515'
,
appfunctag
:
'UsrAppFunc1207842515'
,
resourcetag
:
''
,
resourcetag
:
''
,
},
{
id
:
'6CC5430B-9D49-4837-BBFB-0DD450E78A74'
,
name
:
'menuitem262'
,
text
:
'树'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'树'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc140'
,
resourcetag
:
''
,
},
},
{
{
id
:
'08821630-2C3A-4EB2-949A-1210C4778289'
,
id
:
'08821630-2C3A-4EB2-949A-1210C4778289'
,
...
...
app_Web/src/pages/sample/app-index-view2/router.ts
浏览文件 @
ac280c27
...
@@ -883,6 +883,20 @@ const router = new Router({
...
@@ -883,6 +883,20 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/sample/ibizappeditorlist-view/ibizappeditorlist-view.vue'
),
component
:
()
=>
import
(
'@pages/sample/ibizappeditorlist-view/ibizappeditorlist-view.vue'
),
},
},
{
path
:
'/ibizbooks/:ibizbook?/usr4treeview/:usr4treeview?'
,
meta
:
{
caption
:
'图书'
,
captionLanResTag
:
'DE.LNAME.IBIZBOOK'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr4treeview'
,
parameterName
:
'usr4treeview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view.vue'
),
},
{
{
path
:
'/ibizorders/:ibizorder?/f9editview/:f9editview?'
,
path
:
'/ibizorders/:ibizorder?/f9editview/:f9editview?'
,
meta
:
{
meta
:
{
...
...
app_Web/src/pages/sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view-base.vue
0 → 100644
浏览文件 @
ac280c27
<
template
>
<div
class=
'view-container detreeview ibizbookusr4-tree-view'
>
<card
class=
'view-card view-no-toolbar'
:dis-hover=
"true"
:bordered=
"false"
>
<div
slot=
'title'
class=
"header-container"
>
<span
class=
'caption-info'
>
{{
model
.
srfCaption
}}
</span>
</div>
<div
class=
"content-container"
>
<div
class=
"tree-contant"
>
<view
_tree
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:pViewCtx=
"viewCtx"
:showBusyIndicator=
"true"
loadAction=
'Get'
createAction=
'Create'
updateAction=
'Update'
removeAction=
'Remove'
name=
"tree"
ref=
'tree'
@
selectionchange=
"tree_selectionchange($event)"
@
load=
"tree_load($event)"
@
closeview=
"closeView($event)"
>
</view
_tree
>
</div>
</div>
</card>
</div>
</
template
>
// 基于 @VIEW/实体树视图/VIEW-BASE.vue.ftl 生成
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Inject
}
from
'vue-property-decorator'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
axios
from
'axios'
;
import
{
AppMessageBox
}
from
'@/utils/app-message-box/app-message-box'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
IBIZBOOKService
from
'@/service/ibizbook/ibizbook-service'
;
import
IBIZBOOKAuthService
from
'@/authservice/ibizbook/ibizbook-auth-service'
;
import
TreeViewEngine
from
'@engine/view/tree-view-engine'
;
import
IBIZBOOKUIService
from
'@/uiservice/ibizbook/ibizbook-ui-service'
;
@
Component
({
components
:
{
},
})
export
default
class
IBIZBOOKUsr4TreeViewBase
extends
Vue
{
/**
* 实体服务对象
*
* @type {IBIZBOOKService}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
appEntityService
:
IBIZBOOKService
=
new
IBIZBOOKService
();
/**
* 实体UI服务对象
*
* @type IBIZBOOKUIService
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
();
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
@
Emit
()
public
viewDatasChange
(
val
:
any
):
any
{
return
val
;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
@
Prop
()
public
viewdata
!
:
string
;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
@
Prop
()
public
viewparam
!
:
string
;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
@
Prop
({
default
:
true
})
public
viewDefaultUsage
!
:
boolean
;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 打开方式
*
* @type {'ROUTE' | 'EMBED' | 'MODAL'}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
@
Prop
({
default
:
'ROUTE'
})
public
openType
!
:
'ROUTE'
|
'EMBED'
|
'MODAL'
;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
viewtag
:
string
=
'22299f593480c67108c96ce5202eeb8c'
;
/**
* 视图类型
*
* @type {string}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
viewType
:
string
=
'DETREEVIEW'
;
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
customViewNavContexts
:
any
=
{
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
customViewParams
:
any
=
{
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
model
:
any
=
{
srfCaption
:
this
.
$t
(
'DE.LNAME.IBIZBOOK'
,
'图书'
),
srfTitle
:
'图书树视图'
,
srfSubTitle
:
''
,
dataInfo
:
''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZBOOKUsr4TreeViewBase
*/
@
Watch
(
'viewparam'
,{
immediate
:
true
,
deep
:
true
})
onParamData
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
){
this
.
viewparams
=
{};
if
(
typeof
newVal
==
'string'
)
{
Object
.
assign
(
this
.
viewparams
,
JSON
.
parse
(
this
.
viewparam
));
}
else
{
this
.
viewparams
=
Util
.
deepCopy
(
this
.
viewparam
);
}
}
}
/**
* 处理应用上下文变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZBOOKUsr4TreeViewBase
*/
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
engine
.
load
();
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
}
}
/**
* 容器模型
*
* @type {*}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
containerModel
:
any
=
{
view_tree
:
{
name
:
'tree'
,
type
:
'TREEVIEW'
},
};
/**
* 视图操作参数
*
* @type {*}
* @readonly
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
viewCtx
:
any
=
{};
/**
* 视图刷新
*
* @param {*} args
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
refresh
(
args
?:
any
):
void
{
const
refs
:
any
=
this
.
$refs
;
if
(
refs
&&
refs
.
tree
)
{
refs
.
tree
.
refresh
();
}
}
/**
* 计数器刷新
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 视图状态订阅对象
*
* @public
* @type {Subject<{action: string, data: any}>}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
engine
:
TreeViewEngine
=
new
TreeViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
tree
:
this
.
$refs
.
tree
,
keyPSDEField
:
'ibizbook'
,
majorPSDEField
:
'ibizbookname'
,
isLoadDefault
:
true
,
});
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
navDataService
=
NavDataService
.
getInstance
();
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
serviceStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
@
Prop
()
public
portletState
?:
any
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
portletStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
formDruipartEvent
:
Subscription
|
undefined
;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
context
:
any
=
{};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
viewparams
:
any
=
{};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
viewCacheData
:
any
;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 解析视图参数
*
* @public
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
parseViewParam
(
inputvalue
:
any
=
null
):
void
{
for
(
let
key
in
this
.
context
){
delete
this
.
context
[
key
];
}
if
(
this
.
$store
.
getters
.
getAppData
()
&&
this
.
$store
.
getters
.
getAppData
().
context
){
Object
.
assign
(
this
.
context
,
this
.
$store
.
getters
.
getAppData
().
context
);
}
if
(
!
this
.
viewDefaultUsage
&&
this
.
viewdata
&&
!
Object
.
is
(
this
.
viewdata
,
''
))
{
if
(
typeof
this
.
viewdata
==
'string'
)
{
Object
.
assign
(
this
.
context
,
JSON
.
parse
(
this
.
viewdata
));
}
if
(
this
.
context
&&
this
.
context
.
srfparentdename
){
Object
.
assign
(
this
.
viewparams
,{
srfparentdename
:
this
.
context
.
srfparentdename
});
}
if
(
this
.
context
&&
this
.
context
.
srfparentkey
){
Object
.
assign
(
this
.
viewparams
,{
srfparentkey
:
this
.
context
.
srfparentkey
});
}
this
.
handleCustomViewData
();
return
;
}
const
path
=
(
this
.
$route
.
matched
[
this
.
$route
.
matched
.
length
-
1
]).
path
;
const
keys
:
Array
<
any
>
=
[];
const
curReg
=
this
.
$pathToRegExp
.
pathToRegexp
(
path
,
keys
);
const
matchArray
=
curReg
.
exec
(
this
.
$route
.
path
);
let
tempValue
:
Object
=
{};
keys
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
if
(
matchArray
[
index
+
1
]){
Object
.
defineProperty
(
tempValue
,
item
.
name
,
{
enumerable
:
true
,
value
:
decodeURIComponent
(
matchArray
[
index
+
1
])
});
}
});
this
.
$viewTool
.
formatRouteParams
(
tempValue
,
this
.
$route
,
this
.
context
,
this
.
viewparams
);
if
(
inputvalue
){
Object
.
assign
(
this
.
context
,{
'ibizbook'
:
inputvalue
});
}
//初始化视图唯一标识
Object
.
assign
(
this
.
context
,{
srfsessionid
:
this
.
$util
.
createUUID
()});
this
.
handleCustomViewData
();
//初始化导航数据
this
.
initNavDataWithRoute
();
}
/**
* 处理自定义视图数据
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
handleCustomViewData
(){
if
(
Object
.
keys
(
this
.
customViewNavContexts
).
length
>
0
){
Object
.
keys
(
this
.
customViewNavContexts
).
forEach
((
item
:
any
)
=>
{
let
tempContext
:
any
=
{};
let
curNavContext
:
any
=
this
.
customViewNavContexts
[
item
];
this
.
handleCustomDataLogic
(
curNavContext
,
tempContext
,
item
);
Object
.
assign
(
this
.
context
,
tempContext
);
})
}
if
(
Object
.
keys
(
this
.
customViewParams
).
length
>
0
){
Object
.
keys
(
this
.
customViewParams
).
forEach
((
item
:
any
)
=>
{
let
tempParam
:
any
=
{};
let
curNavParam
:
any
=
this
.
customViewParams
[
item
];
this
.
handleCustomDataLogic
(
curNavParam
,
tempParam
,
item
);
Object
.
assign
(
this
.
viewparams
,
tempParam
);
})
}
}
/**
* 处理自定义视图数据逻辑
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
handleCustomDataLogic
(
curNavData
:
any
,
tempData
:
any
,
item
:
string
){
// 直接值直接赋值
if
(
curNavData
.
isRawValue
){
if
(
Object
.
is
(
curNavData
.
value
,
"null"
)
||
Object
.
is
(
curNavData
.
value
,
""
)){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
curNavData
.
value
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
else
{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if
(
this
.
context
[(
curNavData
.
value
).
toLowerCase
()]
!=
null
){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
this
.
context
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
if
(
this
.
viewparams
[(
curNavData
.
value
).
toLowerCase
()]
!=
null
){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
this
.
viewparams
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
}
}
/**
* 初始化导航数据(路由模式)
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavData
({
id
:
'ibizbookusr4-tree-view'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
ibizbook
,
title
:
this
.
model
.
srfCaption
,
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
initNavDataWithTab
(
data
:
any
=
null
,
isOnlyAdd
:
boolean
=
true
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
!
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavDataByOnly
({
id
:
'ibizbookusr4-tree-view'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
ibizbook
,
title
:
this
.
model
.
srfCaption
,
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
},
isOnlyAdd
);
}
}
/**
* Vue声明周期
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
afterCreated
(){
let
_this
:
any
=
this
;
const
secondtag
=
_this
.
$util
.
createUUID
();
_this
.
$store
.
commit
(
'viewaction/createdView'
,
{
viewtag
:
_this
.
viewtag
,
secondtag
:
secondtag
});
_this
.
viewtag
=
secondtag
;
_this
.
parseViewParam
();
_this
.
serviceStateEvent
=
_this
.
navDataService
.
serviceState
.
subscribe
(({
action
,
name
,
data
}:{
action
:
string
,
name
:
any
,
data
:
any
})
=>
{
if
(
!
Object
.
is
(
name
,
'ibizbookusr4-tree-view'
)){
return
;
}
if
(
Object
.
is
(
action
,
'viewrefresh'
))
{
_this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
(
data
);
if
(
_this
.
engine
){
_this
.
engine
.
load
();
}
});
}
});
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'IBIZBOOKUsr4TreeView'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
_this
.
refresh
();
}
})
}
_this
.
initViewCtx
();
}
/**
* 初始化视图操作参数
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
initViewCtx
()
{
Object
.
assign
(
this
.
viewCtx
,
{
app
:
this
.
$root
,
view
:
this
,
viewGlobal
:
{},
viewNavData
:
{},
viewNavContext
:
this
.
context
,
viewNavParam
:
this
.
viewparams
,
messagebox
:
AppMessageBox
.
getInstance
(),
});
Object
.
assign
(
this
.
viewCtx
,
{
appGlobal
:
this
.
$store
.
getters
.
getAppGlobal
()
});
if
(
this
.
$store
.
getters
.
getRouteViewGlobal
(
this
.
context
.
srfsessionid
))
{
Object
.
assign
(
this
.
viewCtx
,
{
routeViewGlobal
:
this
.
$store
.
getters
.
getRouteViewGlobal
(
this
.
context
.
srfsessionid
)
});
}
else
{
this
.
$store
.
commit
(
'addRouteViewGlobal'
,
{
tag
:
this
.
context
.
srfsessionid
,
param
:
{}
});
Object
.
assign
(
this
.
viewCtx
,
{
routeViewGlobal
:
this
.
$store
.
getters
.
getRouteViewGlobal
(
this
.
context
.
srfsessionid
)
});
}
if
(
!
this
.
viewDefaultUsage
&&
this
.
viewdata
&&
!
Object
.
is
(
this
.
viewdata
,
''
))
{
// 嵌入视图
Object
.
assign
(
this
.
viewCtx
,
{
topview
:
this
.
$store
.
getters
.
getView
(
this
.
context
.
srfsessionid
)
});
}
else
{
// 顶层视图
this
.
$store
.
commit
(
'addView'
,
{
tag
:
this
.
context
.
srfsessionid
,
param
:
this
});
Object
.
assign
(
this
.
viewCtx
,
{
topview
:
this
});
}
}
/**
* 销毁之前
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
beforeDestroy
()
{
this
.
$store
.
commit
(
'viewaction/removeView'
,
this
.
viewtag
);
let
_this
:
any
=
this
if
(
_this
.
serviceStateEvent
)
{
_this
.
serviceStateEvent
.
unsubscribe
();
}
if
(
_this
.
portletStateEvent
)
{
_this
.
portletStateEvent
.
unsubscribe
();
}
if
(
_this
.
formDruipartEvent
)
{
_this
.
formDruipartEvent
.
unsubscribe
();
}
if
(
_this
.
engine
)
{
_this
.
engine
.
destroy
();
}
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
afterMounted
(){
const
_this
:
any
=
this
;
_this
.
engineInit
();
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
}
/**
* tree 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
tree_selectionchange
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'tree'
,
'selectionchange'
,
$event
);
}
/**
* tree 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
tree_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'tree'
,
'load'
,
$event
);
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
closeView
(
args
:
any
[]):
void
{
let
_view
:
any
=
this
;
if
(
_view
.
viewdata
)
{
_view
.
$emit
(
'viewdataschange'
,
Array
.
isArray
(
args
)?
args
:[
args
]);
_view
.
$emit
(
'close'
,
Array
.
isArray
(
args
)?
args
:[
args
]);
}
else
if
(
_view
.
$tabPageExp
)
{
_view
.
$tabPageExp
.
onClose
(
_view
.
$route
.
fullPath
);
}
else
{
_view
.
$router
.
back
();
}
}
/**
* 销毁视图回调
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
afterDestroyed
(){
if
(
this
.
viewDefaultUsage
)
{
let
localStoreLength
=
Object
.
keys
(
localStorage
);
if
(
localStoreLength
.
length
>
0
){
localStoreLength
.
forEach
((
item
:
string
)
=>
{
if
(
item
.
startsWith
(
this
.
context
.
srfsessionid
)){
localStorage
.
removeItem
(
item
);
}
})
}
if
(
Object
.
is
(
this
.
navModel
,
"tab"
)){
this
.
navDataService
.
removeNavDataByTag
(
this
.
viewtag
);
}
}
// 销毁计数器定时器
if
(
this
.
counterServiceArray
&&
this
.
counterServiceArray
.
length
>
0
){
this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
destroyCounter
&&
item
.
destroyCounter
instanceof
Function
){
item
.
destroyCounter
();
}
})
}
}
/**
* 节点过滤值
*
* @type {string}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
srfnodefilter
:
string
=
''
;
/**
* 快速搜索
*
* @returns {void}
* @memberof IBIZBOOKUsr4TreeViewBase
*/
public
onSearch
():
void
{
if
(
!
this
.
viewState
)
{
return
;
}
this
.
viewState
.
next
({
tag
:
'tree'
,
action
:
'filter'
,
data
:
{
srfnodefilter
:
this
.
srfnodefilter
}
});
}
}
</
script
>
<
style
lang=
'scss'
>
@import
'./ibizbookusr4-tree-view.scss'
;
</
style
>
\ No newline at end of file
app_Web/src/pages/sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view.scss
0 → 100644
浏览文件 @
ac280c27
// 基于 @VIEW/实体树视图/VIEW.scss.ftl 生成
.view-card
{
>
.ivu-card-extra
{
top
:
5px
;
right
:
0px
;
}
}
.search-contant
{
height
:
40px
;
.ivu-input-wrapper
{
max-width
:
400px
;
padding-top
:
6px
;
}
}
.tree-contant
{
height
:
100%
;
margin
:
0px
0px
16px
0
;
overflow
:
auto
;
}
.ibizbookusr4-tree-view
{
position
:
relative
;
}
app_Web/src/pages/sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view.vue
0 → 100644
浏览文件 @
ac280c27
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZBOOKUsr4TreeViewBase
from
'./ibizbookusr4-tree-view-base.vue'
;
import
view_tree
from
'@widgets/ibizbook/treepug-treeview/treepug-treeview.vue'
;
// 基于 @VIEW/实体树视图/VIEW.vue.ftl 生成
@
Component
({
components
:
{
view_tree
,
},
beforeRouteEnter
:
(
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
next
((
vm
:
any
)
=>
{
if
(
!
Object
.
is
(
vm
.
navModel
,
"route"
)){
vm
.
initNavDataWithTab
(
vm
.
viewCacheData
);
}
vm
.
$store
.
commit
(
'addCurPageViewtag'
,
{
fullPath
:
to
.
fullPath
,
viewtag
:
vm
.
viewtag
});
});
},
})
export
default
class
IBIZBOOKUsr4TreeView
extends
IBIZBOOKUsr4TreeViewBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
ac280c27
...
@@ -159,6 +159,7 @@ export const PageComponents = {
...
@@ -159,6 +159,7 @@ export const PageComponents = {
Vue
.
component
(
'ibizbookusr-list-view-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-list-view-plugin/ibizbookusr-list-view-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-list-view-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-list-view-plugin/ibizbookusr-list-view-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-tree-view-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-tree-view-plugin/ibizbookusr-tree-view-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-tree-view-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-tree-view-plugin/ibizbookusr-tree-view-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-edit-view-ctrl-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-edit-view-ctrl-plugin/ibizbookusr-edit-view-ctrl-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-edit-view-ctrl-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-edit-view-ctrl-plugin/ibizbookusr-edit-view-ctrl-plugin.vue'
));
Vue
.
component
(
'ibizbookusr4-tree-view'
,
()
=>
import
(
'@pages/sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view.vue'
));
Vue
.
component
(
'ibizbookusr-grid-view-ctrl-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-grid-view-ctrl-plugin/ibizbookusr-grid-view-ctrl-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-grid-view-ctrl-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-grid-view-ctrl-plugin/ibizbookusr-grid-view-ctrl-plugin.vue'
));
Vue
.
component
(
'ibizbookusr7-list-view-list-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr7-list-view-list-plugin/ibizbookusr7-list-view-list-plugin.vue'
));
Vue
.
component
(
'ibizbookusr7-list-view-list-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr7-list-view-list-plugin/ibizbookusr7-list-view-list-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-grid-view-col-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-grid-view-col-plugin/ibizbookusr-grid-view-col-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-grid-view-col-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-grid-view-col-plugin/ibizbookusr-grid-view-col-plugin.vue'
));
...
...
app_Web/src/pages/sample/index/router.ts
浏览文件 @
ac280c27
...
@@ -2558,6 +2558,21 @@ const router = new Router({
...
@@ -2558,6 +2558,21 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr-edit-view-ctrl-plugin/ibizbookusr-edit-view-ctrl-plugin.vue'
),
component
:
()
=>
import
(
'@pages/sample/ibizbookusr-edit-view-ctrl-plugin/ibizbookusr-edit-view-ctrl-plugin.vue'
),
},
},
{
path
:
'ibizbooks/:ibizbook?/usr4treeview/:usr4treeview?'
,
meta
:
{
caption
:
'图书'
,
captionLanResTag
:
'DE.LNAME.IBIZBOOK'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr4treeview'
,
parameterName
:
'usr4treeview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view.vue'
),
},
{
{
path
:
'ibizbooks/:ibizbook?/usrgridview_ctrlplugin/:usrgridview_ctrlplugin?'
,
path
:
'ibizbooks/:ibizbook?/usrgridview_ctrlplugin/:usrgridview_ctrlplugin?'
,
meta
:
{
meta
:
{
...
@@ -4895,6 +4910,20 @@ const router = new Router({
...
@@ -4895,6 +4910,20 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/sample/ibizappeditorlist-view/ibizappeditorlist-view.vue'
),
component
:
()
=>
import
(
'@pages/sample/ibizappeditorlist-view/ibizappeditorlist-view.vue'
),
},
},
{
path
:
'/ibizbooks/:ibizbook?/usr4treeview/:usr4treeview?'
,
meta
:
{
caption
:
'图书'
,
captionLanResTag
:
'DE.LNAME.IBIZBOOK'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr4treeview'
,
parameterName
:
'usr4treeview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view.vue'
),
},
{
{
path
:
'/ibizorders/:ibizorder?/f9editview/:f9editview?'
,
path
:
'/ibizorders/:ibizorder?/f9editview/:f9editview?'
,
meta
:
{
meta
:
{
...
...
app_Web/src/pages/ungroup/app-index-view/page-register.ts
浏览文件 @
ac280c27
...
@@ -159,6 +159,7 @@ export const PageComponents = {
...
@@ -159,6 +159,7 @@ export const PageComponents = {
Vue
.
component
(
'ibizbookusr-list-view-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-list-view-plugin/ibizbookusr-list-view-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-list-view-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-list-view-plugin/ibizbookusr-list-view-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-tree-view-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-tree-view-plugin/ibizbookusr-tree-view-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-tree-view-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-tree-view-plugin/ibizbookusr-tree-view-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-edit-view-ctrl-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-edit-view-ctrl-plugin/ibizbookusr-edit-view-ctrl-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-edit-view-ctrl-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-edit-view-ctrl-plugin/ibizbookusr-edit-view-ctrl-plugin.vue'
));
Vue
.
component
(
'ibizbookusr4-tree-view'
,
()
=>
import
(
'@pages/sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view.vue'
));
Vue
.
component
(
'ibizbookusr-grid-view-ctrl-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-grid-view-ctrl-plugin/ibizbookusr-grid-view-ctrl-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-grid-view-ctrl-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-grid-view-ctrl-plugin/ibizbookusr-grid-view-ctrl-plugin.vue'
));
Vue
.
component
(
'ibizbookusr7-list-view-list-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr7-list-view-list-plugin/ibizbookusr7-list-view-list-plugin.vue'
));
Vue
.
component
(
'ibizbookusr7-list-view-list-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr7-list-view-list-plugin/ibizbookusr7-list-view-list-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-grid-view-col-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-grid-view-col-plugin/ibizbookusr-grid-view-col-plugin.vue'
));
Vue
.
component
(
'ibizbookusr-grid-view-col-plugin'
,
()
=>
import
(
'@pages/sample/ibizbookusr-grid-view-col-plugin/ibizbookusr-grid-view-col-plugin.vue'
));
...
...
app_Web/src/pages/ungroup/app-index-view/router.ts
浏览文件 @
ac280c27
...
@@ -2557,6 +2557,21 @@ const router = new Router({
...
@@ -2557,6 +2557,21 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr-edit-view-ctrl-plugin/ibizbookusr-edit-view-ctrl-plugin.vue'
),
component
:
()
=>
import
(
'@pages/sample/ibizbookusr-edit-view-ctrl-plugin/ibizbookusr-edit-view-ctrl-plugin.vue'
),
},
},
{
path
:
'ibizbooks/:ibizbook?/usr4treeview/:usr4treeview?'
,
meta
:
{
caption
:
'图书'
,
captionLanResTag
:
'DE.LNAME.IBIZBOOK'
,
info
:
''
,
parameters
:
[
{
pathName
:
'appindexview'
,
parameterName
:
'appindexview'
},
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr4treeview'
,
parameterName
:
'usr4treeview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view.vue'
),
},
{
{
path
:
'ibizbooks/:ibizbook?/usrgridview_ctrlplugin/:usrgridview_ctrlplugin?'
,
path
:
'ibizbooks/:ibizbook?/usrgridview_ctrlplugin/:usrgridview_ctrlplugin?'
,
meta
:
{
meta
:
{
...
@@ -4894,6 +4909,20 @@ const router = new Router({
...
@@ -4894,6 +4909,20 @@ const router = new Router({
},
},
component
:
()
=>
import
(
'@pages/sample/ibizappeditorlist-view/ibizappeditorlist-view.vue'
),
component
:
()
=>
import
(
'@pages/sample/ibizappeditorlist-view/ibizappeditorlist-view.vue'
),
},
},
{
path
:
'/ibizbooks/:ibizbook?/usr4treeview/:usr4treeview?'
,
meta
:
{
caption
:
'图书'
,
captionLanResTag
:
'DE.LNAME.IBIZBOOK'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr4treeview'
,
parameterName
:
'usr4treeview'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr4-tree-view/ibizbookusr4-tree-view.vue'
),
},
{
{
path
:
'/ibizorders/:ibizorder?/f9editview/:f9editview?'
,
path
:
'/ibizorders/:ibizorder?/f9editview/:f9editview?'
,
meta
:
{
meta
:
{
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
ac280c27
...
@@ -431,6 +431,15 @@ export const viewstate: any = {
...
@@ -431,6 +431,15 @@ export const viewstate: any = {
'6d3a1e5d74674f7d9ba445e4708216e0'
,
'6d3a1e5d74674f7d9ba445e4708216e0'
,
],
],
},
},
{
viewtag
:
'22299f593480c67108c96ce5202eeb8c'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZBOOKUsr4TreeView'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
{
viewtag
:
'231651109e4b11477dcf988577d43c3e'
,
viewtag
:
'231651109e4b11477dcf988577d43c3e'
,
viewmodule
:
'Sample'
,
viewmodule
:
'Sample'
,
...
@@ -1125,6 +1134,7 @@ export const viewstate: any = {
...
@@ -1125,6 +1134,7 @@ export const viewstate: any = {
'D4BB9A85-DE51-4CB3-810D-D33DF0B1F8AA'
,
'D4BB9A85-DE51-4CB3-810D-D33DF0B1F8AA'
,
'8779C32C-B962-4AB7-9B90-E3181B16E4E7'
,
'8779C32C-B962-4AB7-9B90-E3181B16E4E7'
,
'793FE7EC-5E69-4D5E-85A0-23ED5F868084'
,
'793FE7EC-5E69-4D5E-85A0-23ED5F868084'
,
'22299f593480c67108c96ce5202eeb8c'
,
'CBB075E1-BDC9-4F6A-BCF4-09EC4D7370EE'
,
'CBB075E1-BDC9-4F6A-BCF4-09EC4D7370EE'
,
'87ee895b3ae9461006598f7943e34712'
,
'87ee895b3ae9461006598f7943e34712'
,
'611B670D-30A4-44D8-A0F7-DD1266265CD6'
,
'611B670D-30A4-44D8-A0F7-DD1266265CD6'
,
...
@@ -3116,6 +3126,7 @@ export const viewstate: any = {
...
@@ -3116,6 +3126,7 @@ export const viewstate: any = {
'D4BB9A85-DE51-4CB3-810D-D33DF0B1F8AA'
,
'D4BB9A85-DE51-4CB3-810D-D33DF0B1F8AA'
,
'8779C32C-B962-4AB7-9B90-E3181B16E4E7'
,
'8779C32C-B962-4AB7-9B90-E3181B16E4E7'
,
'793FE7EC-5E69-4D5E-85A0-23ED5F868084'
,
'793FE7EC-5E69-4D5E-85A0-23ED5F868084'
,
'22299f593480c67108c96ce5202eeb8c'
,
'CBB075E1-BDC9-4F6A-BCF4-09EC4D7370EE'
,
'CBB075E1-BDC9-4F6A-BCF4-09EC4D7370EE'
,
'87ee895b3ae9461006598f7943e34712'
,
'87ee895b3ae9461006598f7943e34712'
,
'611B670D-30A4-44D8-A0F7-DD1266265CD6'
,
'611B670D-30A4-44D8-A0F7-DD1266265CD6'
,
...
...
app_Web/src/uiservice/ibizbook/ibizbook-ui-service-base.ts
浏览文件 @
ac280c27
...
@@ -121,6 +121,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
...
@@ -121,6 +121,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr1110030546customview'
,
viewType
:
'DECUSTOMVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr1110030546-custom-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr1110030546customview'
,
viewType
:
'DECUSTOMVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr1110030546-custom-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'formloadcustomview'
,
viewType
:
'DECUSTOMVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookform-load-custom-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'formloadcustomview'
,
viewType
:
'DECUSTOMVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookform-load-custom-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr2listview'
,
viewType
:
'DELISTVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr2-list-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr2listview'
,
viewType
:
'DELISTVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr2-list-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr4treeview'
,
viewType
:
'DETREEVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr4-tree-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr10editview'
,
viewType
:
'DEEDITVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr10-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr10editview'
,
viewType
:
'DEEDITVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr10-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr2editview_layout'
,
viewType
:
'DEEDITVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr2-edit-view-layout'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr2editview_layout'
,
viewType
:
'DEEDITVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr2-edit-view-layout'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr2pickupview'
,
viewType
:
'DEPICKUPVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr2-pickup-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr2pickupview'
,
viewType
:
'DEPICKUPVIEW'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr2-pickup-view'
});
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
浏览文件 @
ac280c27
...
@@ -944,6 +944,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
...
@@ -944,6 +944,9 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'UsrAppFunc1207842515'
:
case
'UsrAppFunc1207842515'
:
this
.
clickUsrAppFunc1207842515
(
item
);
this
.
clickUsrAppFunc1207842515
(
item
);
return
;
return
;
case
'AppFunc140'
:
this
.
clickAppFunc140
(
item
);
return
;
case
'UsrAppFunc1206983666'
:
case
'UsrAppFunc1206983666'
:
this
.
clickUsrAppFunc1206983666
(
item
);
this
.
clickUsrAppFunc1206983666
(
item
);
return
;
return
;
...
@@ -4676,6 +4679,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
...
@@ -4676,6 +4679,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
})
}
}
/**
* vue3树插件
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc140
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'usr4treeview'
,
parameterName
:
'usr4treeview'
},
];
const
path
:
string
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
{},
deResParameters
,
parameters
,
[],
viewparam
);
if
(
Object
.
is
(
this
.
$route
.
fullPath
,
path
)){
return
;
}
this
.
$nextTick
(
function
(){
this
.
$router
.
push
(
path
);
})
}
/**
/**
* 表格部件插件(vue3)
* 表格部件插件(vue3)
*
*
...
...
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
浏览文件 @
ac280c27
...
@@ -4658,6 +4658,26 @@ export default class MainMenuModel {
...
@@ -4658,6 +4658,26 @@ export default class MainMenuModel {
resourcetag
:
''
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem252'
,
authtag
:
'Web-MainMenu-menuitem252'
,
cappslanguageres
:
''
,
cappslanguageres
:
''
,
},
{
id
:
'6CC5430B-9D49-4837-BBFB-0DD450E78A74'
,
name
:
'menuitem262'
,
text
:
'树'
,
type
:
'MENUITEM'
,
counterid
:
''
,
tooltip
:
'树'
,
expanded
:
false
,
separator
:
false
,
hidden
:
false
,
hidesidebar
:
false
,
opendefault
:
false
,
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc140'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem262'
,
cappslanguageres
:
''
,
},
},
{
{
id
:
'08821630-2C3A-4EB2-949A-1210C4778289'
,
id
:
'08821630-2C3A-4EB2-949A-1210C4778289'
,
...
...
app_Web/src/widgets/ibizbook/default-searchform/default-searchform-base.vue
浏览文件 @
ac280c27
...
@@ -712,7 +712,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -712,7 +712,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
*/
public
load
(
opt
:
any
=
{}):
void
{
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
5Data
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
9Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{
...
opt
};
const
arg
:
any
=
{
...
opt
};
...
@@ -748,7 +748,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -748,7 +748,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
*/
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
){
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
5Data
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOKUsr
9Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{
...
opt
}
;
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizbook/quicksearchform-searchform/quicksearchform-searchform-base.vue
浏览文件 @
ac280c27
...
@@ -670,7 +670,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
...
@@ -670,7 +670,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
*/
public
load
(
opt
:
any
=
{}):
void
{
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Calendar
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{
...
opt
};
const
arg
:
any
=
{
...
opt
};
...
@@ -706,7 +706,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
...
@@ -706,7 +706,7 @@ export default class QUICKSEARCHFORMBase extends Vue implements ControlInterface
*/
*/
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
public
async
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
Promise
<
any
>
{
if
(
!
this
.
loaddraftAction
){
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Calendar
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{
...
opt
}
;
const
arg
:
any
=
{
...
opt
}
;
...
...
app_Web/src/widgets/ibizbook/treepug-treeview/treepug-treeview-base.vue
0 → 100644
浏览文件 @
ac280c27
<
template
>
<div
class=
"design-tree-container"
>
<context-menu-container>
<el-tree
v-if=
"inited"
ref=
"tree"
class=
"design-tree"
node-key=
"id"
lazy
:show-checkbox=
"!isSingleSelect"
:check-on-click-node=
"!isSingleSelect"
:default-expanded-keys=
"expandedKeys"
:props=
"
{
label: 'text',
isLeaf: 'leaf',
children: 'children'
}"
:load="load"
:highlight-current="true"
:expand-on-click-node="false"
@check="onCheck"
@current-change="selectionChange"
:filter-node-method="filterNode"
:empty-text="'暂无数据'"
>
<template
slot-scope=
"
{ node, data }">
<context-menu
:ref=
'data.id'
:isBlocked=
"true"
:contextMenuStyle=
"
{width: '100%'}" :data="node" :renderContent="renderContextMenu" @showContext="showContext(data,$event)">
<tooltip
transfer
style=
"width: 100%;"
max-width=
"2000"
placement=
"right"
>
<div
class=
"tree-node"
@
dblclick=
"doDefaultAction(node)"
>
<span
class=
"icon"
>
<i
v-if=
" data.iconcls && !Object.is(data.iconcls, '')"
:class=
"data.iconcls"
></i>
<img
v-else-if=
"data.icon && !Object.is(data.icon, '')"
:src=
"data.icon"
/>
<icon
v-else-if=
"isOutputIconDefault"
type=
"ios-paper-outline"
></icon>
</span>
<span
class=
"text"
>
<span
v-if=
"data.html"
v-html=
"data.html"
></span>
<span
v-else
>
{{
data
.
isUseLangRes
?
$t
(
data
.
text
)
:
data
.
text
}}
</span>
</span>
</div>
<template
slot=
"content"
>
<span
v-if=
"data.html"
v-html=
"data.html"
></span>
<span
v-else
>
{{
data
.
isUseLangRes
?
$t
(
data
.
text
)
:
data
.
text
}}
</span>
</
template
>
</tooltip>
</context-menu>
</template>
</el-tree>
</context-menu-container>
</div>
</template>
// 基于 @CONTROL/树视图/CONTROL-BASE.vue.ftl 生成
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
,
ViewTool
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
AppCenterService
from
"@service/app/app-center-service"
;
import
IBIZBOOKEntityService
from
'@/service/ibizbook/ibizbook-service'
;
import
TreepugService
from
'./treepug-treeview-service'
;
import
IBIZBOOKUIService
from
'@/uiservice/ibizbook/ibizbook-ui-service'
;
import
{
Environment
}
from
'@/environments/environment'
;
import
UIService
from
'@/uiservice/ui-service'
;
@
Component
({
components
:
{
}
})
export
default
class
TreepugBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof TreepugBase
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof TreepugBase
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof TreepugBase
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof TreepugBase
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图操作参数(父级)
*
* @type {*}
* @memberof TreepugBase
*/
@
Prop
()
public
pViewCtx
!
:
any
;
/**
* 视图操作参数
*
* @type {*}
* @memberof TreepugBase
*/
public
viewCtx
:
any
=
{};
/**
* 监听视图操作参数变化
*
* @type {*}
* @memberof TreepugBase
*/
@
Watch
(
'pViewCtx'
,
{
immediate
:
true
})
public
onViewCtxChange
(
newVal
:
any
,
oldVal
:
any
)
{
Object
.
assign
(
this
.
viewCtx
,
newVal
,
{
xData
:
this
,
ctrl
:
this
});
}
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof TreepugBase
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof TreepugBase
*/
public
getControlType
():
string
{
return
'TREEVIEW'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof TreepugBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 建构部件服务对象
*
* @type {TreepugService}
* @memberof TreepugBase
*/
public
service
:
TreepugService
=
new
TreepugService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZBOOKService}
* @memberof TreepugBase
*/
public
appEntityService
:
IBIZBOOKEntityService
=
new
IBIZBOOKEntityService
({
$store
:
this
.
$store
});
/**
* 转化数据
*
* @param {any} args
* @memberof TreepugBase
*/
public
transformData
(
args
:
any
)
{
let
_this
:
any
=
this
;
if
(
_this
.
service
&&
_this
.
service
.
handleRequestData
instanceof
Function
&&
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)){
return
_this
.
service
.
handleRequestData
(
'transform'
,
_this
.
context
,
args
)[
'data'
];
}
}
/**
* 关闭视图
*
* @param {any} args
* @memberof TreepugBase
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof TreepugBase
*/
public
counterRefresh
(){
const
_this
:
any
=
this
;
if
(
_this
.
counterServiceArray
&&
_this
.
counterServiceArray
.
length
>
0
){
_this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
refreshData
&&
item
.
refreshData
instanceof
Function
){
item
.
refreshData
();
}
})
}
}
/**
* 处理部件事件
*
* @memberof TreepugBase
*/
public
async
handleCtrlEvents
(
eventName
:
string
,
args
:
any
=
{}):
Promise
<
boolean
>
{
const
actionData
=
{
data
:
this
.
getData
()
||
{},
context
:
Util
.
deepCopy
(
this
.
context
),
viewparams
:
Util
.
deepCopy
(
this
.
viewparams
),
xData
:
this
}
let
result
:
boolean
=
true
;
Object
.
assign
(
actionData
,
args
);
if
(
!
result
)
{
return
false
;
}
this
.
$emit
(
eventName
,
actionData
);
return
true
;
}
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof TreepugBase
*/
public
getDatas
():
any
[]
{
return
[
this
.
currentselectedNode
];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof TreepugBase
*/
public
getData
():
any
{
return
this
.
currentselectedNode
;
}
/**
* 是否单选
*
* @type {boolean}
* @memberof TreepugBase
*/
@
Prop
({
default
:
true
})
public
isSingleSelect
!
:
boolean
;
/**
* 是否默认选中第一条数据
*
* @type {boolean}
* @memberof TreepugBase
*/
@
Prop
({
default
:
false
})
public
isSelectFirstDefault
!
:
boolean
;
/**
* 枝干节点是否可用(具有数据能力,可抛出)
*
* @type {string}
* @memberof TreepugBase
*/
@
Prop
({
default
:
true
})
public
isBranchAvailable
!
:
boolean
;
/**
* 显示处理提示
*
* @type {boolean}
* @memberof TreepugBase
*/
@
Prop
({
default
:
true
})
public
showBusyIndicator
?:
boolean
;
/**
* 初始化完成
*
* @type {boolean}
* @memberof TreepugBase
*/
public
inited
:
boolean
=
false
;
/**
* 已选中数据集合
*
* @type {*}
* @memberof TreepugBase
*/
public
selectedNodes
:
any
=
[];
/**
* 当前选中数据项
*
* @type {*}
* @memberof TreepugBase
*/
public
currentselectedNode
:
any
=
{};
/**
* 选中数据字符串
*
* @type {string}
* @memberof TreepugBase
*/
@
Prop
()
public
selectedData
!
:
string
;
/**
* 选中值变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof TreepugBase
*/
@
Watch
(
'selectedData'
)
public
onValueChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
echoselectedNodes
=
newVal
?
this
.
isSingleSelect
?
[
JSON
.
parse
(
newVal
)[
0
]]
:
JSON
.
parse
(
newVal
)
:
[];
this
.
selectedNodes
=
[];
if
(
this
.
echoselectedNodes
.
length
>
0
){
let
AllnodesObj
=
(
this
.
$refs
.
treeexpbar_tree
as
any
).
store
.
nodesMap
;
let
AllnodesArray
:
any
[]
=
[];
for
(
const
key
in
AllnodesObj
)
{
if
(
AllnodesObj
.
hasOwnProperty
(
key
))
{
AllnodesArray
.
push
(
AllnodesObj
[
key
].
data
);
}
}
this
.
setDefaultSelection
(
AllnodesArray
);
}
}
/**
* 回显选中数据集合
*
* @type {*}
* @memberof TreepugBase
*/
public
echoselectedNodes
:
any
[]
=
this
.
selectedData
?
(
this
.
isSingleSelect
?
[
JSON
.
parse
(
this
.
selectedData
)[
0
]]
:
JSON
.
parse
(
this
.
selectedData
))
:
[];
/**
* 部件行为--update
*
* @type {string}
* @memberof TreepugBase
*/
@
Prop
()
public
updateAction
!
:
string
;
/**
* 部件行为--fetch
*
* @type {string}
* @memberof TreepugBase
*/
@
Prop
()
public
fetchAction
!
:
string
;
/**
* 部件行为--remove
*
* @type {string}
* @memberof TreepugBase
*/
@
Prop
()
public
removeAction
!
:
string
;
/**
* 部件行为--load
*
* @type {string}
* @memberof TreepugBase
*/
@
Prop
()
public
loadAction
!
:
string
;
/**
* 部件行为--create
*
* @type {string}
* @memberof TreepugBase
*/
@
Prop
()
public
createAction
!
:
string
;
/**
* 过滤属性
*
* @type {string}
* @memberof TreepugBase
*/
public
srfnodefilter
:
string
=
''
;
/**
* 默认输出图标
*
* @type {boolean}
* @memberof TreepugBase
*/
public
isOutputIconDefault
:
boolean
=
true
;
/**
* 数据展开主键
*
* @type {string[]}
* @memberof TreepugBase
*/
@
Provide
()
public
expandedKeys
:
string
[]
=
[];
/**
* 应用状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof TreepugBase
*/
public
appStateEvent
:
Subscription
|
undefined
;
/**
* 树节点上下文菜单集合
*
* @type {string[]}
* @memberof TreepugBase
*/
public
actionModel
:
any
=
{
}
/**
* 备份树节点上下文菜单
*
* @type any
* @memberof MainTreeBase
*/
public
copyActionModel
:
any
;
/**
* 选中数据变更事件
*
* @public
* @param {*} data
* @param {*} data 当前节点对应传入对象
* @param {*} checkedState 树目前选中状态对象
* @memberof TreepugBase
*/
public
onCheck
(
data
:
any
,
checkedState
:
any
)
{
// 处理多选数据
if
(
!
this
.
isSingleSelect
){
let
leafNodes
=
checkedState
.
checkedNodes
.
filter
((
item
:
any
)
=>
item
.
leaf
);
const
selectedNodes
=
JSON
.
parse
(
JSON
.
stringify
(
leafNodes
));
this
.
handleCtrlEvents
(
'onselectionchange'
,
{
action
:
'SelectionChange'
,
data
:
selectedNodes
}).
then
((
res
:
boolean
)
=>
{
if
(
res
)
{
this
.
selectedNodes
=
selectedNodes
;
this
.
$emit
(
'selectionchange'
,
this
.
selectedNodes
);
}
})
}
}
/**
* 选中数据变更事件
*
* @public
* @param {*} data 节点对应传入对象
* @param {*} node 节点对应node对象
* @memberof TreepugBase
*/
public
selectionChange
(
data
:
any
,
node
:
any
)
{
// 禁用项处理
if
(
data
.
disabled
){
node
.
isCurrent
=
false
;
return
;
}
// 只处理最底层子节点
if
(
this
.
isBranchAvailable
||
data
.
leaf
)
{
this
.
handleCtrlEvents
(
'onselectionchange'
,
{
action
:
'SelectionChange'
,
data
:
data
}).
then
((
res
:
boolean
)
=>
{
if
(
!
res
)
{
return
;
}
this
.
currentselectedNode
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 单选直接替换
if
(
this
.
isSingleSelect
){
this
.
selectedNodes
=
[
this
.
currentselectedNode
];
this
.
$emit
(
'selectionchange'
,
this
.
selectedNodes
);
}
// 多选用check方法
});
}
}
/**
* Vue声明周期(处理组件的输入属性)
*
* @memberof TreepugBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof TreepugBase
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
if
(
Object
.
is
(
'load'
,
action
))
{
this
.
inited
=
false
;
this
.
$nextTick
(()
=>
{
this
.
inited
=
true
;
});
}
if
(
Object
.
is
(
'filter'
,
action
))
{
this
.
srfnodefilter
=
data
.
srfnodefilter
;
this
.
refresh_all
();
}
if
(
Object
.
is
(
'refresh_parent'
,
action
))
{
this
.
refresh_parent
();
}
if
(
Object
.
is
(
'refresh_current'
,
action
))
{
this
.
refresh_current
();
}
});
}
if
(
AppCenterService
&&
AppCenterService
.
getMessageCenter
()){
this
.
appStateEvent
=
AppCenterService
.
getMessageCenter
().
subscribe
(({
name
,
action
,
data
})
=>
{
if
(
!
Object
.
is
(
name
,
"IBIZBOOK"
)){
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
this
.
refresh
([
data
]);
}
})
}
}
/**
* 对树节点进行筛选操作
* @memberof OrderTree
*/
public
filterNode
(
value
:
any
,
data
:
any
)
{
if
(
!
value
)
return
true
;
return
data
.
text
.
indexOf
(
value
)
!==
-
1
;
}
/**
* vue 生命周期
*
* @memberof TreepugBase
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof TreepugBase
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
if
(
this
.
appStateEvent
){
this
.
appStateEvent
.
unsubscribe
();
}
}
/**
* 刷新数据
*
* @memberof TreepugBase
*/
public
refresh_all
():
void
{
this
.
inited
=
false
;
this
.
$nextTick
(()
=>
{
this
.
inited
=
true
;
});
}
/**
* 刷新当前节点
*
* @memberof TreepugBase
*/
public
refresh_current
():
void
{
if
(
Object
.
keys
(
this
.
currentselectedNode
).
length
===
0
)
{
return
;
}
const
tree
:
any
=
this
.
$refs
.
tree
;
const
node
:
any
=
tree
.
getNode
(
this
.
currentselectedNode
.
id
);
if
(
!
node
||
!
node
.
parent
)
{
return
;
}
let
curNode
:
any
=
{};
curNode
=
Util
.
deepObjectMerge
(
curNode
,
node
);
let
tempContext
:
any
=
{};
if
(
curNode
.
data
&&
curNode
.
data
.
srfappctx
){
Object
.
assign
(
tempContext
,
curNode
.
data
.
srfappctx
);
}
else
{
Object
.
assign
(
tempContext
,
this
.
context
);
}
const
id
:
string
=
node
.
key
?
node
.
key
:
'#'
;
const
param
:
any
=
{
srfnodeid
:
id
};
this
.
refresh_node
(
tempContext
,
param
,
false
);
}
/**
* 刷新父节点
*
* @memberof TreepugBase
*/
public
refresh_parent
():
void
{
if
(
Object
.
keys
(
this
.
currentselectedNode
).
length
===
0
)
{
return
;
}
const
tree
:
any
=
this
.
$refs
.
tree
;
const
node
:
any
=
tree
.
getNode
(
this
.
currentselectedNode
.
id
);
if
(
!
node
||
!
node
.
parent
)
{
return
;
}
let
curNode
:
any
=
{};
const
{
parent
:
_parent
}
=
node
;
curNode
=
Util
.
deepObjectMerge
(
curNode
,
_parent
);
let
tempContext
:
any
=
{};
if
(
curNode
.
data
&&
curNode
.
data
.
srfappctx
){
Object
.
assign
(
tempContext
,
curNode
.
data
.
srfappctx
);
}
else
{
Object
.
assign
(
tempContext
,
this
.
context
);
}
const
id
:
string
=
_parent
.
key
?
_parent
.
key
:
'#'
;
const
param
:
any
=
{
srfnodeid
:
id
};
this
.
refresh_node
(
tempContext
,
param
,
true
);
}
/**
* 数据加载
*
* @param {*} node
* @memberof TreepugBase
*/
public
load
(
node
:
any
=
{},
resolve
?:
any
)
{
if
(
node
.
data
&&
node
.
data
.
children
)
{
resolve
(
node
.
data
.
children
);
return
;
}
const
params
:
any
=
{
srfnodeid
:
node
.
data
&&
node
.
data
.
id
?
node
.
data
.
id
:
"#"
,
srfnodefilter
:
this
.
srfnodefilter
};
let
tempViewParams
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
viewparams
));
let
curNode
:
any
=
{};
curNode
=
Util
.
deepObjectMerge
(
curNode
,
node
);
let
tempContext
:
any
=
this
.
computecurNodeContext
(
curNode
);
if
(
curNode
.
data
&&
curNode
.
data
.
srfparentdename
){
Object
.
assign
(
tempContext
,{
srfparentdename
:
curNode
.
data
.
srfparentdename
});
Object
.
assign
(
tempViewParams
,{
srfparentdename
:
curNode
.
data
.
srfparentdename
});
}
if
(
curNode
.
data
&&
curNode
.
data
.
srfparentkey
){
Object
.
assign
(
tempContext
,{
srfparentkey
:
curNode
.
data
.
srfparentkey
});
Object
.
assign
(
tempViewParams
,{
srfparentkey
:
curNode
.
data
.
srfparentkey
});
}
Object
.
assign
(
params
,{
viewparams
:
tempViewParams
});
this
.
handleCtrlEvents
(
'onbeforeload'
,
{
data
:
node
.
data
}).
then
((
beforeLoadResult
:
boolean
)
=>
{
if
(
!
beforeLoadResult
)
{
return
;
}
this
.
service
.
getNodes
(
tempContext
,
params
).
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
data
:
node
.
data
}).
then
((
loadErrorResult
:
boolean
)
=>
{
if
(
!
loadErrorResult
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
info
});
resolve
([]);
return
;
})
}
this
.
handleCtrlEvents
(
'onloaderror'
,
{
data
:
node
.
data
}).
then
((
loadSuccessResult
:
boolean
)
=>
{
if
(
!
loadSuccessResult
)
{
resolve
([]);
return
;
}
const
_items
=
response
.
data
;
this
.
formatExpanded
(
_items
);
resolve
([...
_items
]);
let
isRoot
=
Object
.
is
(
node
.
level
,
0
);
let
isSelectedAll
=
node
.
checked
;
this
.
setDefaultSelection
(
_items
,
isRoot
,
isSelectedAll
);
this
.
$emit
(
"load"
,
_items
);
});
}).
catch
((
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'onloaderror'
,
{
data
:
node
.
data
}).
then
((
loadErrorResult
:
boolean
)
=>
{
if
(
!
loadErrorResult
)
{
return
;
}
resolve
([]);
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
info
});
});
});
})
}
/**
* 计算当前节点的上下文
*
* @param {*} curNode 当前节点
* @memberof TreepugBase
*/
public
computecurNodeContext
(
curNode
:
any
){
let
tempContext
:
any
=
{};
if
(
curNode
&&
curNode
.
data
&&
curNode
.
data
.
srfappctx
){
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
curNode
.
data
.
srfappctx
));
}
else
{
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
}
return
tempContext
;
}
/**
* 刷新功能
*
* @param {any} args
* @memberof TreepugBase
*/
public
refresh
(
args
?:
any
):
void
{
this
.
refresh_all
();
}
/**
* 刷新节点
*
* @public
* @param {*} [curContext] 当前节点上下文
* @param {*} [arg={}] 当前节点附加参数
* @param {boolean} parentnode 是否是刷新父节点
* @memberof TreepugBase
*/
public
refresh_node
(
curContext
:
any
,
arg
:
any
=
{},
parentnode
:
boolean
):
void
{
const
{
srfnodeid
:
id
}
=
arg
;
Object
.
assign
(
arg
,
{
viewparams
:
this
.
viewparams
});
this
.
handleCtrlEvents
(
'onbeforerefreshnode'
,
{
data
:
arg
}).
then
((
beforeRefreshRes
:
boolean
)
=>
{
if
(
!
beforeRefreshRes
)
{
return
;
}
const
get
:
Promise
<
any
>
=
this
.
service
.
getNodes
(
JSON
.
parse
(
JSON
.
stringify
(
curContext
)),
arg
);
get
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
handleCtrlEvents
(
'onrefreshnodeerror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
{}
}).
then
((
errorRes
:
boolean
)
=>
{
if
(
!
errorRes
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
info
});
return
;
})
}
const
_items
=
[...
response
.
data
];
this
.
handleCtrlEvents
(
'onrefreshnodesuccess'
,
{
data
:
_items
}).
then
((
successRes
:
boolean
)
=>
{
if
(
!
successRes
)
{
return
;
}
this
.
formatExpanded
(
_items
);
const
tree
:
any
=
this
.
$refs
.
tree
;
tree
.
updateKeyChildren
(
id
,
_items
);
if
(
parentnode
)
{
this
.
currentselectedNode
=
{};
}
this
.
$forceUpdate
();
this
.
setDefaultSelection
(
_items
);
})
}).
catch
((
response
:
any
)
=>
{
this
.
handleCtrlEvents
(
'onrefreshnodeerror'
,
{
data
:
response
&&
response
.
data
?
response
.
data
:
{}
}).
then
((
errorRes
:
boolean
)
=>
{
if
(
!
errorRes
)
{
return
;
}
if
(
response
&&
response
.
status
===
401
)
{
return
;
}
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
info
});
})
});
})
}
/**
* 默认展开节点
*
* @public
* @param {any[]} items
* @returns {any[]}
* @memberof TreepugBase
*/
public
formatExpanded
(
items
:
any
[]):
any
[]
{
const
data
:
any
[]
=
[];
items
.
forEach
((
item
)
=>
{
if
(
item
.
expanded
||
(
item
.
children
&&
item
.
children
.
length
>
0
))
{
this
.
expandedKeys
.
push
(
item
.
id
);
}
});
return
data
;
}
/**
* 设置默认选中,回显数项,选中所有子节点
*
* @param {any[]} items 当前节点所有子节点集合
* @param {boolean} isRoot 是否是加载根节点
* @param {boolean} isSelectedAll 是否选中所有子节点
* @memberof TreepugBase
*/
public
setDefaultSelection
(
items
:
any
[],
isRoot
:
boolean
=
false
,
isSelectedAll
:
boolean
=
false
):
void
{
if
(
items
.
length
==
0
){
return
;
}
let
defaultData
:
any
;
//在导航视图中,如已有选中数据,则右侧展开已选中数据的视图,如无选中数据则默认选中第一条
if
(
this
.
isSelectFirstDefault
){
if
(
this
.
isSingleSelect
){
let
index
:
number
=
-
1
;
if
(
this
.
selectedNodes
&&
this
.
selectedNodes
.
length
>
0
){
this
.
selectedNodes
.
forEach
((
select
:
any
)
=>
{
index
=
items
.
findIndex
((
item
:
any
)
=>
Object
.
is
(
select
.
srfkey
,
item
.
srfkey
));
});
}
if
(
index
===
-
1
)
{
if
(
isRoot
){
index
=
0
;
}
else
{
return
;
}
}
defaultData
=
items
[
index
];
this
.
setTreeNodeHighLight
(
defaultData
);
this
.
currentselectedNode
=
JSON
.
parse
(
JSON
.
stringify
(
defaultData
));
if
(
this
.
isBranchAvailable
||
defaultData
.
leaf
){
this
.
selectedNodes
=
[
this
.
currentselectedNode
];
this
.
$emit
(
'selectionchange'
,
this
.
selectedNodes
);
}
}
}
// 已选数据的回显
if
(
this
.
echoselectedNodes
&&
this
.
echoselectedNodes
.
length
>
0
){
let
checkedNodes
=
items
.
filter
((
item
:
any
)
=>
{
return
this
.
echoselectedNodes
.
some
((
val
:
any
)
=>
{
if
(
Object
.
is
(
item
.
srfkey
,
val
.
srfkey
)
&&
Object
.
is
(
item
.
srfmajortext
,
val
.
srfmajortext
)){
val
.
used
=
true
;
this
.
selectedNodes
.
push
(
val
);
this
.
$emit
(
'selectionchange'
,
this
.
selectedNodes
);
return
true
;
}
});
});
if
(
checkedNodes
.
length
>
0
){
this
.
echoselectedNodes
=
this
.
echoselectedNodes
.
filter
((
item
:
any
)
=>
!
item
.
used
);
// 父节点选中时,不需要执行这段,会选中所有子节点
if
(
!
isSelectedAll
){
if
(
this
.
isSingleSelect
){
this
.
setTreeNodeHighLight
(
checkedNodes
[
0
]);
this
.
currentselectedNode
=
JSON
.
parse
(
JSON
.
stringify
(
checkedNodes
[
0
]));
this
.
selectedNodes
=
[
this
.
currentselectedNode
];
}
else
{
this
.
selectedNodes
=
this
.
selectedNodes
.
concat
(
checkedNodes
);
const
tree
:
any
=
this
.
$refs
.
tree
;
tree
.
setCheckedNodes
(
this
.
selectedNodes
);
}
}
}
}
// 父节点选中时,选中所有子节点
if
(
isSelectedAll
){
let
leafNodes
=
items
.
filter
((
item
:
any
)
=>
item
.
leaf
);
this
.
selectedNodes
=
this
.
selectedNodes
.
concat
(
leafNodes
);
this
.
$emit
(
'selectionchange'
,
this
.
selectedNodes
);
}
}
/**
* 绘制右击菜单
*
* @param {*} node
* @returns
* @memberof TreepugBase
*/
public
renderContextMenu
(
node
:
any
)
{
let
content
;
if
(
node
&&
node
.
data
)
{
const
data
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
node
.
data
));
this
.
currentselectedNode
=
{
...
data
};
const
tags
:
string
[]
=
data
.
id
.
split
(
';'
);
let
copyActionModel
:
any
=
Util
.
deepCopy
(
this
.
actionModel
);
}
return
content
;
}
/**
* 显示上下文菜单
*
* @param data 节点数据
* @param event 事件源
* @memberof TreepugBase
*/
public
showContext
(
data
:
any
,
event
:
any
){
let
_this
:
any
=
this
;
this
.
copyActionModel
=
{};
const
tags
:
string
[]
=
data
.
id
.
split
(
';'
);
Object
.
values
(
this
.
actionModel
).
forEach
((
item
:
any
)
=>
{
if
(
Object
.
is
(
item
.
nodeOwner
,
tags
[
0
])){
this
.
copyActionModel
[
item
.
name
]
=
item
;
}
})
if
(
Object
.
keys
(
this
.
copyActionModel
).
length
===
0
){
return
;
}
this
.
computeNodeState
(
data
,
data
.
nodeType
,
data
.
appEntityName
).
then
((
result
:
any
)
=>
{
let
flag
:
boolean
=
false
;
if
(
Object
.
values
(
result
).
length
>
0
){
flag
=
Object
.
values
(
result
).
some
((
item
:
any
)
=>
{
return
item
.
visabled
===
true
;
})
}
if
(
flag
){
(
_this
.
$refs
[
data
.
id
]
as
any
).
showContextMenu
(
event
.
clientX
,
event
.
clientY
);
}
});
}
/**
* 计算节点右键权限
*
* @param {*} node 节点数据
* @param {*} nodeType 节点类型
* @param {*} appEntityName 应用实体名称
* @returns
* @memberof TreepugBase
*/
public
async
computeNodeState
(
node
:
any
,
nodeType
:
string
,
appEntityName
:
string
)
{
if
(
Object
.
is
(
nodeType
,
"STATIC"
)){
return
this
.
copyActionModel
;
}
let
service
:
any
=
await
this
.
appEntityService
.
getService
(
appEntityName
);
if
(
this
.
copyActionModel
&&
Object
.
keys
(
this
.
copyActionModel
).
length
>
0
)
{
if
(
service
[
'Get'
]
&&
service
[
'Get'
]
instanceof
Function
){
let
tempContext
:
any
=
Util
.
deepCopy
(
this
.
context
);
tempContext
[
appEntityName
]
=
node
.
srfkey
;
let
targetData
=
await
service
.
Get
(
tempContext
,{},
false
);
let
uiservice
:
any
=
await
new
UIService
().
getService
(
appEntityName
);
let
result
:
any
[]
=
ViewTool
.
calcActionItemAuthState
(
targetData
.
data
,
this
.
copyActionModel
,
uiservice
);
return
this
.
copyActionModel
;
}
else
{
console
.
warn
(
"获取数据异常"
);
return
this
.
copyActionModel
;
}
}
}
/**
* 设置选中高亮
*
* @param {*} data
* @memberof TreepugBase
*/
public
setTreeNodeHighLight
(
data
:
any
):
void
{
const
tree
:
any
=
this
.
$refs
.
tree
;
tree
.
setCurrentKey
(
data
.
id
);
}
/**
* 执行默认界面行为
*
* @param {*} node
* @memberof TreepugBase
*/
public
doDefaultAction
(
node
:
any
)
{
if
(
node
&&
node
.
data
)
{
const
data
:
any
=
node
.
data
;
const
tags
:
string
[]
=
data
.
id
.
split
(
';'
);
}
this
.
$emit
(
'nodedblclick'
,
this
.
selectedNodes
);
}
}
</
script
>
<
style
lang=
'scss'
>
@import
'./treepug-treeview.scss'
;
</
style
>
\ No newline at end of file
app_Web/src/widgets/ibizbook/treepug-treeview/treepug-treeview-model.ts
0 → 100644
浏览文件 @
ac280c27
// 基于 @CONTROL/树视图/MODEL.ts.ftl 生成
/**
* Treepug 部件模型
*
* @export
* @class TreepugModel
*/
export
default
class
TreepugModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof TreepugModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'createman'
,
},
{
name
:
'ibizbookname'
,
},
{
name
:
'ibizbook'
,
prop
:
'ibizbookid'
,
},
{
name
:
'createdate'
,
},
{
name
:
'updateman'
,
},
{
name
:
'updatedate'
,
},
{
name
:
'author'
,
},
{
name
:
'price'
,
},
{
name
:
'press'
,
},
{
name
:
'type'
,
},
{
name
:
'booknumber'
,
},
{
name
:
'subtext'
,
},
{
name
:
'lendouttime'
,
},
{
name
:
'returntime'
,
},
{
name
:
'icon'
,
},
{
name
:
'sailstate'
,
},
{
name
:
'borrowstatus'
,
},
{
name
:
'stepstatus'
,
},
{
name
:
'borrower'
,
},
{
name
:
'borrowway'
,
},
{
name
:
'returnlib'
,
},
{
name
:
'borrowerid'
,
},
{
name
:
'borrower1'
,
},
{
name
:
'borrower1_id'
,
},
{
name
:
'borrower2'
,
},
{
name
:
'borrower2_id'
,
},
{
name
:
'borrower3'
,
},
{
name
:
'borrower3_id'
,
},
{
name
:
'tag'
,
},
{
name
:
'orgid'
,
},
{
name
:
'deptid'
,
},
]
}
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/treepug-treeview/treepug-treeview-service.ts
0 → 100644
浏览文件 @
ac280c27
// 基于 @CONTROL/树视图/SERVICE.ts.ftl 生成
import
{
Http
,
Util
,
Errorlog
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
import
IBIZBOOKService
from
'@/service/ibizbook/ibizbook-service'
;
import
TreepugModel
from
'./treepug-treeview-model'
;
import
CodeListService
from
"@/codelist/codelist-service"
;
import
i18n
from
'@/locale'
;
/**
* Treepug 部件服务对象
*
* @export
* @class TreepugService
*/
export
default
class
TreepugService
extends
ControlService
{
/**
* 图书服务对象
*
* @type {IBIZBOOKService}
* @memberof TreepugService
*/
public
appEntityService
:
IBIZBOOKService
=
new
IBIZBOOKService
();
/**
* 设置从数据模式
*
* @type {boolean}
* @memberof TreepugService
*/
public
setTempMode
(){
this
.
isTempMode
=
false
;
}
/**
* Creates an instance of TreepugService.
*
* @param {*} [opts={}]
* @memberof TreepugService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
model
=
new
TreepugModel
();
}
/**
* 代码表服务对象
*
* @type {CodeListService}
* @memberof TreepugService
*/
public
codeListService
:
CodeListService
=
new
CodeListService
();
/**
* 节点分隔符号
*
* @public
* @type {string}
* @memberof TreepugService
*/
public
TREENODE_SEPARATOR
:
string
=
';'
;
/**
* 测试1节点分隔符号
*
* @public
* @type {string}
* @memberof TreepugService
*/
public
TREENODE_TEST1
:
string
=
'test1'
;
/**
* 默认根节点节点分隔符号
*
* @public
* @type {string}
* @memberof TreepugService
*/
public
TREENODE_ROOT
:
string
=
'ROOT'
;
/**
* 获取节点数据
*
* @param {string} action
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof TreepugService
*/
@
Errorlog
public
async
getNodes
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
{
srfparentkey
,
srfcat
,
srfnodeid
,
srfnodefilter
,
query
}:
{
srfparentkey
:
string
,
srfcat
:
string
,
srfnodeid
:
string
,
srfnodefilter
:
string
,
query
:
string
}
=
data
;
srfnodefilter
=
query
?
query
:
srfnodefilter
;
let
list
:
any
[]
=
[];
let
filter
:
any
=
{};
if
(
!
srfnodeid
||
Object
.
is
(
srfnodeid
,
'#'
))
{
srfnodeid
=
this
.
TREENODE_ROOT
;
}
let
strTreeNodeId
:
string
=
srfnodeid
;
let
strRealNodeId
:
string
=
''
;
let
bRootSelect
:
boolean
=
false
;
let
strNodeType
:
string
|
null
=
null
;
let
strRootSelectNode
:
string
=
''
;
if
(
Object
.
is
(
strTreeNodeId
,
this
.
TREENODE_ROOT
))
{
strNodeType
=
this
.
TREENODE_ROOT
;
if
(
srfparentkey
)
{
strRealNodeId
=
srfparentkey
;
}
}
else
{
let
nPos
=
strTreeNodeId
.
indexOf
(
this
.
TREENODE_SEPARATOR
);
if
(
nPos
===
-
1
)
{
return
Promise
.
reject
({
status
:
500
,
data
:
{
title
:
'失败'
,
message
:
`树节点
${
strTreeNodeId
}
标识无效`
}
});
}
strNodeType
=
strTreeNodeId
.
substring
(
0
,
nPos
);
strRealNodeId
=
strTreeNodeId
.
substring
(
nPos
+
1
);
}
Object
.
assign
(
filter
,
{
srfparentkey
:
srfparentkey
,
srfcat
:
srfcat
,
srfnodefilter
:
srfnodefilter
,
strRealNodeId
:
strRealNodeId
,
srfnodeid
:
srfnodeid
,
strNodeType
:
strNodeType
,
viewparams
:
JSON
.
parse
(
JSON
.
stringify
(
data
)).
viewparams
}
);
// 分解节点标识
let
nodeid
:
string
[]
=
strRealNodeId
.
split
(
this
.
TREENODE_SEPARATOR
);
for
(
let
i
=
0
;
i
<
nodeid
.
length
;
i
++
)
{
switch
(
i
)
{
case
0
:
Object
.
assign
(
filter
,
{
nodeid
:
nodeid
[
0
]
});
break
;
case
1
:
Object
.
assign
(
filter
,
{
nodeid2
:
nodeid
[
1
]
});
break
;
case
2
:
Object
.
assign
(
filter
,
{
nodeid3
:
nodeid
[
2
]
});
break
;
case
3
:
Object
.
assign
(
filter
,
{
nodeid4
:
nodeid
[
3
]
});
break
;
default
:
break
;
}
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_TEST1
))
{
await
this
.
fillTest1NodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
if
(
Object
.
is
(
strNodeType
,
this
.
TREENODE_ROOT
))
{
await
this
.
fillRootNodeChilds
(
context
,
filter
,
list
);
return
Promise
.
resolve
({
status
:
200
,
data
:
list
});
}
return
Promise
.
resolve
({
status
:
500
,
data
:
{
title
:
'失败'
,
message
:
`树节点
${
strTreeNodeId
}
标识无效`
}
});
}
/**
* 填充 树视图节点[测试1]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TreepugService
*/
@
Errorlog
public
fillTest1Nodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
'测试1'
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'test1'
;
// 没有指定节点值,直接使用父节点值
Object
.
assign
(
treeNode
,
{
srfkey
:
filter
.
strRealNodeId
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
filter
.
strRealNodeId
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
true
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
Object
.
assign
(
treeNode
,
{
nodeType
:
"STATIC"
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[测试1]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TreepugService
*/
@
Errorlog
public
async
fillTest1NodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
}
else
{
}
}
/**
* 填充 树视图节点[默认根节点]
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @param {*} rsNavContext
* @param {*} rsNavParams
* @param {*} rsParams
* @returns {Promise<any>}
* @memberof TreepugService
*/
@
Errorlog
public
fillRootNodes
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[],
rsNavContext
?:
any
,
rsNavParams
?:
any
,
rsParams
?:
any
):
Promise
<
any
>
{
context
=
this
.
handleResNavContext
(
context
,
filter
,
rsNavContext
);
filter
=
this
.
handleResNavParams
(
context
,
filter
,
rsNavParams
,
rsParams
);
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
treeNode
:
any
=
{};
Object
.
assign
(
treeNode
,
{
text
:
'默认根节点'
});
Object
.
assign
(
treeNode
,
{
isUseLangRes
:
true
});
Object
.
assign
(
treeNode
,{
srfappctx
:
context
});
Object
.
assign
(
treeNode
,
{
srfmajortext
:
treeNode
.
text
});
let
strNodeId
:
string
=
'ROOT'
;
Object
.
assign
(
treeNode
,
{
srfkey
:
'root'
});
strNodeId
+=
this
.
TREENODE_SEPARATOR
;
strNodeId
+=
'root'
;
Object
.
assign
(
treeNode
,
{
id
:
strNodeId
});
Object
.
assign
(
treeNode
,
{
expanded
:
filter
.
isAutoexpand
});
Object
.
assign
(
treeNode
,
{
leaf
:
false
});
Object
.
assign
(
treeNode
,
{
nodeid
:
treeNode
.
srfkey
});
Object
.
assign
(
treeNode
,
{
nodeid2
:
filter
.
strRealNodeId
});
Object
.
assign
(
treeNode
,
{
nodeType
:
"STATIC"
});
list
.
push
(
treeNode
);
resolve
(
list
);
});
}
/**
* 填充 树视图节点[默认根节点]子节点
*
* @public
* @param {any{}} context
* @param {*} filter
* @param {any[]} list
* @returns {Promise<any>}
* @memberof TreepugService
*/
@
Errorlog
public
async
fillRootNodeChilds
(
context
:
any
=
{},
filter
:
any
,
list
:
any
[]):
Promise
<
any
>
{
if
(
filter
.
srfnodefilter
&&
!
Object
.
is
(
filter
.
srfnodefilter
,
""
))
{
// 填充测试1
let
Test1RsNavContext
:
any
=
{};
let
Test1RsNavParams
:
any
=
{};
let
Test1RsParams
:
any
=
{};
await
this
.
fillTest1Nodes
(
context
,
filter
,
list
,
Test1RsNavContext
,
Test1RsNavParams
,
Test1RsParams
);
}
else
{
// 填充测试1
let
Test1RsNavContext
:
any
=
{};
let
Test1RsNavParams
:
any
=
{};
let
Test1RsParams
:
any
=
{};
await
this
.
fillTest1Nodes
(
context
,
filter
,
list
,
Test1RsNavContext
,
Test1RsNavParams
,
Test1RsParams
);
}
}
/**
* 处理代码表返回数据(树状结构)
*
* @param result 返回数组
* @param context 应用上下文
* @param callBack 回调
* @memberof TreepugService
*/
public
handleDataSet
(
result
:
Array
<
any
>
,
context
:
any
,
callBack
:
any
){
let
list
:
Array
<
any
>
=
[];
if
(
result
.
length
===
0
){
return
list
;
}
result
.
forEach
((
codeItem
:
any
)
=>
{
if
(
!
codeItem
.
pvalue
){
let
valueField
:
string
=
codeItem
.
value
;
this
.
setChildCodeItems
(
valueField
,
result
,
codeItem
);
list
.
push
(
codeItem
);
}
})
this
.
setNodeData
(
list
,
context
,
callBack
);
return
list
;
}
/**
* 处理非根节点数据
*
* @param result 返回数组
* @param context 应用上下文
* @param callBack 回调
* @memberof TreepugService
*/
public
setChildCodeItems
(
pValue
:
string
,
result
:
Array
<
any
>
,
codeItem
:
any
){
result
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
pvalue
==
pValue
){
let
valueField
:
string
=
item
.
value
;
this
.
setChildCodeItems
(
valueField
,
result
,
item
);
if
(
!
codeItem
.
children
){
codeItem
.
children
=
[];
}
codeItem
.
children
.
push
(
item
);
}
})
}
/**
* 设置节点UI数据
*
* @param result 返回数组
* @param context 应用上下文
* @param callBack 回调
* @memberof TreepugService
*/
public
setNodeData
(
result
:
Array
<
any
>
,
context
:
any
,
callBack
:
any
){
result
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
children
){
item
.
leaf
=
false
;
this
.
setNodeData
(
item
.
children
,
context
,
callBack
);
}
else
{
item
.
leaf
=
true
;
}
callBack
(
context
,
item
);
})
}
/**
* 处理节点关系导航上下文
*
* @param context 应用上下文
* @param filter 参数
* @param resNavContext 节点关系导航上下文
*
* @memberof TreepugService
*/
public
handleResNavContext
(
context
:
any
,
filter
:
any
,
resNavContext
:
any
){
if
(
resNavContext
&&
Object
.
keys
(
resNavContext
).
length
>
0
){
let
tempContextData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
tempViewParams
:
any
=
{};
if
(
filter
&&
filter
.
viewparams
){
tempViewParams
=
filter
.
viewparams
;
}
Object
.
keys
(
resNavContext
).
forEach
((
item
:
any
)
=>
{
let
curDataObj
:
any
=
resNavContext
[
item
];
this
.
handleCustomDataLogic
(
context
,
tempViewParams
,
curDataObj
,
tempContextData
,
item
);
})
return
tempContextData
;
}
else
{
return
context
;
}
}
/**
* 处理关系导航参数
*
* @param context 应用上下文
* @param filter 参数
* @param resNavParams 节点关系导航参数
* @param resParams 节点关系参数
*
* @memberof TreepugService
*/
public
handleResNavParams
(
context
:
any
,
filter
:
any
,
resNavParams
:
any
,
resParams
:
any
){
if
((
resNavParams
&&
Object
.
keys
(
resNavParams
).
length
>
0
)
||
(
resParams
&&
Object
.
keys
(
resParams
).
length
>
0
)){
let
tempViewParamData
:
any
=
{};
let
tempViewParams
:
any
=
{};
if
(
filter
&&
filter
.
viewparams
){
tempViewParams
=
filter
.
viewparams
;
tempViewParamData
=
JSON
.
parse
(
JSON
.
stringify
(
filter
.
viewparams
));
}
if
(
Object
.
keys
(
resNavParams
).
length
>
0
){
Object
.
keys
(
resNavParams
).
forEach
((
item
:
any
)
=>
{
let
curDataObj
:
any
=
resNavParams
[
item
];
this
.
handleCustomDataLogic
(
context
,
tempViewParams
,
curDataObj
,
tempViewParamData
,
item
);
})
}
if
(
Object
.
keys
(
resParams
).
length
>
0
){
Object
.
keys
(
resParams
).
forEach
((
item
:
any
)
=>
{
let
curDataObj
:
any
=
resParams
[
item
];
tempViewParamData
[
item
.
toLowerCase
()]
=
curDataObj
.
value
;
})
}
Object
.
assign
(
filter
,{
viewparams
:
tempViewParamData
});
return
filter
;
}
else
{
return
filter
;
}
}
/**
* 处理自定义节点关系导航数据
*
* @param context 应用上下文
* @param viewparams 参数
* @param curNavData 节点关系导航参数对象
* @param tempData 返回数据
* @param item 节点关系导航参数键值
*
* @memberof TreepugService
*/
public
handleCustomDataLogic
(
context
:
any
,
viewparams
:
any
,
curNavData
:
any
,
tempData
:
any
,
item
:
string
){
// 直接值直接赋值
if
(
curNavData
.
isRawValue
){
if
(
Object
.
is
(
curNavData
.
value
,
"null"
)
||
Object
.
is
(
curNavData
.
value
,
""
)){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
curNavData
.
value
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
else
{
// 先从导航上下文取数,没有再从导航参数(URL)取数,如果导航上下文和导航参数都没有则为null
if
(
context
[(
curNavData
.
value
).
toLowerCase
()]
!=
null
){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
context
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
if
(
viewparams
[(
curNavData
.
value
).
toLowerCase
()]
!=
null
){
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
viewparams
[(
curNavData
.
value
).
toLowerCase
()],
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
else
{
Object
.
defineProperty
(
tempData
,
item
.
toLowerCase
(),
{
value
:
null
,
writable
:
true
,
enumerable
:
true
,
configurable
:
true
});
}
}
}
}
}
\ No newline at end of file
app_Web/src/widgets/ibizbook/treepug-treeview/treepug-treeview.scss
0 → 100644
浏览文件 @
ac280c27
// 基于 @CONTROL/树视图/CONTROL.scss.ftl 生成
.tree-right-menu
{
.ivu-divider-horizontal
{
width
:
100%
;
min-width
:
100%
;
margin
:
0
auto
;
}
.ivu-dropdown-item
{
position
:
relative
;
padding-left
:
32px
;
>
i
{
position
:
absolute
;
left
:
16px
;
top
:
10px
;
}
.ivu-icon-ios-arrow-forward
{
left
:
initial
;
right
:
4px
;
}
}
.ivu-dropdown
{
.ivu-select-dropdown
{
margin
:
0
;
}
}
}
.el-tree
.context-menu-component
.tree-node
{
width
:
calc
(
100%
-
15px
);
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
overflow
:
hidden
;
.icon
{
padding-right
:
10px
;
}
}
// this is scss
app_Web/src/widgets/ibizbook/treepug-treeview/treepug-treeview.vue
0 → 100644
浏览文件 @
ac280c27
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
TreepugBase
from
'./treepug-treeview-base.vue'
;
// 基于 @CONTROL/树视图/CONTROL.vue.ftl 生成
@
Component
({
components
:
{
}
})
export
default
class
Treepug
extends
TreepugBase
{
}
</
script
>
\ No newline at end of file
app_Web/src/widgets/ibizbook/usr2-dataview/usr2-dataview-base.vue
浏览文件 @
ac280c27
...
@@ -48,14 +48,14 @@
...
@@ -48,14 +48,14 @@
<div
v-show=
"flag"
class=
"batch-toolbar"
>
<div
v-show=
"flag"
class=
"batch-toolbar"
>
<div
class=
'toolbar-container'
>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"
usr2dataviewdataview_batchtoolbarModels.deuiaction1.visabled"
:disabled=
"usr2dataviewdataview_batchtoolbarModels.deuiaction1.disabled"
class=
' srfactionlevel100'
v-button-loading:i-button
@
click=
"
dataview_batchtoolbar_click({ tag: 'deuiaction1' }, $event)"
>
<i-button
v-show=
"
dataviewexpviewdataviewexpbar_dataview_batchtoolbarModels.deuiaction1.visabled"
:disabled=
"dataviewexpviewdataviewexpbar_dataview_batchtoolbarModels.deuiaction1.disabled"
class=
' srfactionlevel100'
v-button-loading:i-button
@
click=
"dataviewexpbar_
dataview_batchtoolbar_click({ tag: 'deuiaction1' }, $event)"
>
<i
class=
'fa fa-edit'
></i>
<i
class=
'fa fa-edit'
></i>
<span
class=
'caption'
>
{{$t('TBB.TEXT.*.EDIT', '编辑')}}
</span>
<span
class=
'caption'
>
{{$t('TBB.TEXT.*.EDIT', '编辑')}}
</span>
</i-button>
</i-button>
<div
slot=
'content'
>
{{$t('TBB.TEXT.*.EDIT', '编辑')}}
</div>
<div
slot=
'content'
>
{{$t('TBB.TEXT.*.EDIT', '编辑')}}
</div>
</tooltip>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"
usr2dataviewdataview_batchtoolbarModels.deuiaction2.visabled"
:disabled=
"usr2dataviewdataview_batchtoolbarModels.deuiaction2.disabled"
class=
' srfactionlevel100'
v-button-loading:i-button
@
click=
"
dataview_batchtoolbar_click({ tag: 'deuiaction2' }, $event)"
>
<i-button
v-show=
"
dataviewexpviewdataviewexpbar_dataview_batchtoolbarModels.deuiaction2.visabled"
:disabled=
"dataviewexpviewdataviewexpbar_dataview_batchtoolbarModels.deuiaction2.disabled"
class=
' srfactionlevel100'
v-button-loading:i-button
@
click=
"dataviewexpbar_
dataview_batchtoolbar_click({ tag: 'deuiaction2' }, $event)"
>
<i
class=
'fa fa-remove'
></i>
<i
class=
'fa fa-remove'
></i>
<span
class=
'caption'
>
{{$t('TBB.TEXT.*.REMOVE', '删除')}}
</span>
<span
class=
'caption'
>
{{$t('TBB.TEXT.*.REMOVE', '删除')}}
</span>
</i-button>
</i-button>
...
@@ -202,18 +202,18 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -202,18 +202,18 @@ export default class Usr2Base extends Vue implements ControlInterface {
public
appEntityService
:
IBIZBOOKEntityService
=
new
IBIZBOOKEntityService
({
$store
:
this
.
$store
});
public
appEntityService
:
IBIZBOOKEntityService
=
new
IBIZBOOKEntityService
({
$store
:
this
.
$store
});
/**
/**
* dataview_batchtoolbar 部件 click 事件
* dataview
expbar_dataview
_batchtoolbar 部件 click 事件
*
*
* @param {*} [args={}]
* @param {*} [args={}]
* @param {*} $event
* @param {*} $event
* @memberof Usr2Base
* @memberof Usr2Base
*/
*/
public
dataview_batchtoolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
public
dataview
expbar_dataview
_batchtoolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
dataview
_batchtoolbar_deuiaction1_click
(
null
,
'
dataview_batchtoolbar'
,
$event2
);
this
.
dataview
expbar_dataview_batchtoolbar_deuiaction1_click
(
null
,
'dataviewexpbar_
dataview_batchtoolbar'
,
$event2
);
}
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
dataview
_batchtoolbar_deuiaction2_click
(
null
,
'
dataview_batchtoolbar'
,
$event2
);
this
.
dataview
expbar_dataview_batchtoolbar_deuiaction2_click
(
null
,
'dataviewexpbar_
dataview_batchtoolbar'
,
$event2
);
}
}
}
}
...
@@ -226,7 +226,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -226,7 +226,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
dataview_batchtoolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
dataview
expbar_dataview
_batchtoolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -254,7 +254,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -254,7 +254,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
dataview_batchtoolbar_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
dataview
expbar_dataview
_batchtoolbar_deuiaction2_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 参数
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
...
@@ -282,7 +282,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -282,7 +282,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
dataview_memo1_u37f11a8_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
dataview
expbar_dataview
_memo1_u37f11a8_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
let
xData
:
any
=
null
;
...
@@ -309,7 +309,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -309,7 +309,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event]
* @param {*} [$event]
* @memberof
* @memberof
*/
*/
public
dataview_memo1_uc365542_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
dataview
expbar_dataview
_memo1_uc365542_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 取数
// 取数
let
datas
:
any
[]
=
[];
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
let
xData
:
any
=
null
;
...
@@ -337,7 +337,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -337,7 +337,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event] 事件源
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOK
Usr2Data
ViewBase
* @memberof IBIZBOOK
DataViewExp
ViewBase
*/
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
if
(
args
.
length
===
0
)
{
...
@@ -363,7 +363,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -363,7 +363,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
* @param {*} [$event] 事件源
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZBOOK
Usr2Data
ViewBase
* @memberof IBIZBOOK
DataViewExp
ViewBase
*/
*/
public
Remove
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
public
Remove
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
...
@@ -427,6 +427,12 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -427,6 +427,12 @@ export default class Usr2Base extends Vue implements ControlInterface {
}
}
let
result
:
boolean
=
true
;
let
result
:
boolean
=
true
;
Object
.
assign
(
actionData
,
args
);
Object
.
assign
(
actionData
,
args
);
if
(
'selectionchange'
.
indexOf
(
eventName
)
!==
-
1
)
{
result
=
await
this
.
execute_dataviewexpbar_selectionchange_ctrl_logic
(
actionData
)
&&
result
;
}
if
(
'load'
.
indexOf
(
eventName
)
!==
-
1
)
{
result
=
await
this
.
execute_dataviewexpbar_load_ctrl_logic
(
actionData
)
&&
result
;
}
if
(
!
result
)
{
if
(
!
result
)
{
return
false
;
return
false
;
}
}
...
@@ -434,6 +440,30 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -434,6 +440,30 @@ export default class Usr2Base extends Vue implements ControlInterface {
return
true
;
return
true
;
}
}
/**
* 部件逻辑 -- dataviewexpbar_selectionchange
*
* @param {string} eventName 部件事件名称
* @param {any[]} data 数据
* @param {*} event 源事件对象
* @memberof Usr2Base
*/
public
async
execute_dataviewexpbar_selectionchange_ctrl_logic
(
actionData
:
any
):
Promise
<
boolean
>
{
console
.
log
(
'暂未支持 CUSTOM 类型'
);
return
true
;
}
/**
* 部件逻辑 -- dataviewexpbar_load
*
* @param {string} eventName 部件事件名称
* @param {any[]} data 数据
* @param {*} event 源事件对象
* @memberof Usr2Base
*/
public
async
execute_dataviewexpbar_load_ctrl_logic
(
actionData
:
any
):
Promise
<
boolean
>
{
console
.
log
(
'暂未支持 CUSTOM 类型'
);
return
true
;
}
...
@@ -678,9 +708,9 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -678,9 +708,9 @@ export default class Usr2Base extends Vue implements ControlInterface {
* 工具栏模型
* 工具栏模型
*
*
* @type {*}
* @type {*}
* @memberof IBIZBOOK
Usr2Data
View
* @memberof IBIZBOOK
DataViewExp
View
*/
*/
public
usr2dataview
dataview_batchtoolbarModels
:
any
=
{
public
dataviewexpviewdataviewexpbar_
dataview_batchtoolbarModels
:
any
=
{
deuiaction1
:
{
name
:
'deuiaction1'
,
actiontarget
:
'NONE'
,
caption
:
'编辑'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
}
},
deuiaction1
:
{
name
:
'deuiaction1'
,
actiontarget
:
'NONE'
,
caption
:
'编辑'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
}
},
deuiaction2
:
{
name
:
'deuiaction2'
,
actiontarget
:
'NONE'
,
caption
:
'删除'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
}
},
deuiaction2
:
{
name
:
'deuiaction2'
,
actiontarget
:
'NONE'
,
caption
:
'删除'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
}
},
...
@@ -1013,7 +1043,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -1013,7 +1043,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
*/
*/
public
async
load
(
opt
:
any
=
{},
isReset
:
boolean
=
false
):
Promise
<
any
>
{
public
async
load
(
opt
:
any
=
{},
isReset
:
boolean
=
false
):
Promise
<
any
>
{
if
(
!
this
.
fetchAction
){
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr2Data
View'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
DataViewExp
View'
+
(
this
.
$t
(
'app.list.notConfig.fetchAction'
)
as
string
)
});
return
;
return
;
}
}
const
arg
:
any
=
{...
opt
};
const
arg
:
any
=
{...
opt
};
...
@@ -1108,7 +1138,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -1108,7 +1138,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
*/
*/
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
if
(
!
this
.
removeAction
){
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr2Data
View'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
DataViewExp
View'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
return
;
}
}
let
_datas
:
any
[]
=
[];
let
_datas
:
any
[]
=
[];
...
@@ -1225,7 +1255,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -1225,7 +1255,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
try
{
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
!
this
.
createAction
){
if
(
!
this
.
createAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr2Data
View'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
DataViewExp
View'
+
(
this
.
$t
(
'app.list.notConfig.createAction'
)
as
string
)
});
}
else
{
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
let
response
=
await
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
let
response
=
await
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
...
@@ -1233,7 +1263,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -1233,7 +1263,7 @@ export default class Usr2Base extends Vue implements ControlInterface {
}
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
){
if
(
!
this
.
updateAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
Usr2Data
View'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZBOOK
DataViewExp
View'
+
(
this
.
$t
(
'app.list.notConfig.updateAction'
)
as
string
)
});
}
else
{
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizbook
){
if
(
item
.
ibizbook
){
...
@@ -1335,16 +1365,16 @@ export default class Usr2Base extends Vue implements ControlInterface {
...
@@ -1335,16 +1365,16 @@ export default class Usr2Base extends Vue implements ControlInterface {
public
uiAction
(
data
:
any
,
tag
:
any
,
$event
:
any
)
{
public
uiAction
(
data
:
any
,
tag
:
any
,
$event
:
any
)
{
$event
.
stopPropagation
();
$event
.
stopPropagation
();
if
(
Object
.
is
(
'Edit'
,
tag
))
{
if
(
Object
.
is
(
'Edit'
,
tag
))
{
this
.
dataview_batchtoolbar_deuiaction1_click
(
data
,
tag
,
$event
);
this
.
dataview
expbar_dataview
_batchtoolbar_deuiaction1_click
(
data
,
tag
,
$event
);
}
}
if
(
Object
.
is
(
'Remove'
,
tag
))
{
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
dataview_batchtoolbar_deuiaction2_click
(
data
,
tag
,
$event
);
this
.
dataview
expbar_dataview
_batchtoolbar_deuiaction2_click
(
data
,
tag
,
$event
);
}
}
if
(
Object
.
is
(
'Edit'
,
tag
))
{
if
(
Object
.
is
(
'Edit'
,
tag
))
{
this
.
dataview_memo1_u37f11a8_click
(
data
,
tag
,
$event
);
this
.
dataview
expbar_dataview
_memo1_u37f11a8_click
(
data
,
tag
,
$event
);
}
}
if
(
Object
.
is
(
'Remove'
,
tag
))
{
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
dataview_memo1_uc365542_click
(
data
,
tag
,
$event
);
this
.
dataview
expbar_dataview
_memo1_uc365542_click
(
data
,
tag
,
$event
);
}
}
}
}
...
...
app_Web/src/widgets/ibizorder-detail/main-grid/main-grid-base.vue
浏览文件 @
ac280c27
...
@@ -933,7 +933,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -933,7 +933,7 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
this
.
fetchAction
)
{
if
(
!
this
.
fetchAction
)
{
this
.
$Notice
.
error
({
this
.
$Notice
.
error
({
title
:
this
.
$t
(
"app.commonWords.wrong"
)
as
string
,
title
:
this
.
$t
(
"app.commonWords.wrong"
)
as
string
,
desc
:
"IBIZOrderDetail
GridView9
"
+
(
this
.
$t
(
"app.gridpage.notConfig.fetchAction"
)
as
string
),
desc
:
"IBIZOrderDetail
SGridView
"
+
(
this
.
$t
(
"app.gridpage.notConfig.fetchAction"
)
as
string
),
});
});
return
;
return
;
}
}
...
@@ -1073,7 +1073,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1073,7 +1073,7 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
this
.
removeAction
)
{
if
(
!
this
.
removeAction
)
{
this
.
$Notice
.
error
({
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
});
return
;
return
;
}
}
...
@@ -1187,7 +1187,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1187,7 +1187,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
*/
public
addBatch
(
arg
:
any
=
{}):
void
{
public
addBatch
(
arg
:
any
=
{}):
void
{
if
(
!
this
.
fetchAction
){
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
return
;
return
;
}
}
if
(
!
arg
){
if
(
!
arg
){
...
@@ -2082,7 +2082,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -2082,7 +2082,7 @@ export default class MainBase extends Vue implements ControlInterface {
try
{
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
))
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
))
{
if
(
!
this
.
createAction
)
{
if
(
!
this
.
createAction
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
}
else
{
}
else
{
Object
.
assign
(
item
,
{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
item
,
{
viewparams
:
this
.
viewparams
});
const
tempContext
=
Util
.
deepCopy
(
this
.
context
);
const
tempContext
=
Util
.
deepCopy
(
this
.
context
);
...
@@ -2091,7 +2091,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -2091,7 +2091,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
)
{
if
(
!
this
.
updateAction
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
}
else
{
}
else
{
Object
.
assign
(
item
,
{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
item
,
{
viewparams
:
this
.
viewparams
});
const
tempContext
=
Util
.
deepCopy
(
this
.
context
);
const
tempContext
=
Util
.
deepCopy
(
this
.
context
);
...
@@ -2167,7 +2167,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -2167,7 +2167,7 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
this
.
loaddraftAction
){
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrderDetail
GridView9
'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
desc
:
'IBIZOrderDetail
SGridView
'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
});
});
return
;
return
;
}
}
...
...
app_Web/src/widgets/ibizorder/grid-exp-viewgridexpbar-gridexpbar/grid-exp-viewgridexpbar-gridexpbar-base.vue
浏览文件 @
ac280c27
...
@@ -414,7 +414,7 @@ export default class GridExpViewgridexpbarBase extends Vue implements ControlInt
...
@@ -414,7 +414,7 @@ export default class GridExpViewgridexpbarBase extends Vue implements ControlInt
* @type {*}
* @type {*}
* @memberof GridExpViewgridexpbarBase
* @memberof GridExpViewgridexpbarBase
*/
*/
public
navigateContext
:
any
=
null
;
public
navigateContext
:
any
=
{
CTXPARAM2
:
"%orderstate%"
,
CTXPARAM1
:
"xxx2"
}
;
/**
/**
* 导航视图参数
* 导航视图参数
...
@@ -422,7 +422,7 @@ export default class GridExpViewgridexpbarBase extends Vue implements ControlInt
...
@@ -422,7 +422,7 @@ export default class GridExpViewgridexpbarBase extends Vue implements ControlInt
* @type {*}
* @type {*}
* @memberof GridExpViewgridexpbarBase
* @memberof GridExpViewgridexpbarBase
*/
*/
public
navigateParams
:
any
=
null
;
public
navigateParams
:
any
=
{
param2
:
"%ibizordername%"
,
param1
:
"param3"
}
;
/**
/**
* 显示处理提示
* 显示处理提示
...
...
app_Web/src/widgets/ibizorder/test-custom-layout-panel-grid-exp-viewgridexpbar-gridexpbar/test-custom-layout-panel-grid-exp-viewgridexpbar-gridexpbar-base.vue
浏览文件 @
ac280c27
...
@@ -330,7 +330,7 @@ export default class TestCustomLayoutPanelGridExpViewgridexpbarBase extends Vue
...
@@ -330,7 +330,7 @@ export default class TestCustomLayoutPanelGridExpViewgridexpbarBase extends Vue
* @type {*}
* @type {*}
* @memberof TestCustomLayoutPanelGridExpViewgridexpbarBase
* @memberof TestCustomLayoutPanelGridExpViewgridexpbarBase
*/
*/
public
navigateContext
:
any
=
null
;
public
navigateContext
:
any
=
{
CTXPARAM2
:
"%orderstate%"
,
CTXPARAM1
:
"xxx2"
}
;
/**
/**
* 导航视图参数
* 导航视图参数
...
@@ -338,7 +338,7 @@ export default class TestCustomLayoutPanelGridExpViewgridexpbarBase extends Vue
...
@@ -338,7 +338,7 @@ export default class TestCustomLayoutPanelGridExpViewgridexpbarBase extends Vue
* @type {*}
* @type {*}
* @memberof TestCustomLayoutPanelGridExpViewgridexpbarBase
* @memberof TestCustomLayoutPanelGridExpViewgridexpbarBase
*/
*/
public
navigateParams
:
any
=
null
;
public
navigateParams
:
any
=
{
param2
:
"%ibizordername%"
,
param1
:
"param3"
}
;
/**
/**
* 显示处理提示
* 显示处理提示
...
...
demo-boot/src/main/resources/static/remotemodel/PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json
浏览文件 @
ac280c27
...
@@ -5592,6 +5592,14 @@
...
@@ -5592,6 +5592,14 @@
"rTMOSFilePath"
:
"psmodeldata$psdataentities/Usr3DataView"
,
"rTMOSFilePath"
:
"psmodeldata$psdataentities/Usr3DataView"
,
"realModelSubType"
:
"DEDATAVIEW"
,
"realModelSubType"
:
"DEDATAVIEW"
,
"realModelType"
:
"PSDEVIEWBASE"
"realModelType"
:
"PSDEVIEWBASE"
},
{
"codeName"
:
"Usr4TreeView"
,
"logicName"
:
"树插件"
,
"mOSFilePath"
:
"psmodeldata$psdataentities/Usr4TreeView"
,
"name"
:
"树插件"
,
"rTMOSFilePath"
:
"psmodeldata$psdataentities/Usr4TreeView"
,
"realModelSubType"
:
"DETREEVIEW"
,
"realModelType"
:
"PSDEVIEWBASE"
},
{
},
{
"codeName"
:
"InterFuncTreeView"
,
"codeName"
:
"InterFuncTreeView"
,
"logicName"
:
"图书实体树视图(树表格)"
,
"logicName"
:
"图书实体树视图(树表格)"
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json
浏览文件 @
ac280c27
...
@@ -7611,6 +7611,10 @@
...
@@ -7611,6 +7611,10 @@
"modelref"
:
true
,
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr2ListView.json"
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr2ListView.json"
,
"viewType"
:
"DELISTVIEW"
"viewType"
:
"DELISTVIEW"
},
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr4TreeView.json"
,
"viewType"
:
"DETREEVIEW"
},
{
},
{
"modelref"
:
true
,
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr10EditView.json"
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr10EditView.json"
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK/PSGANTTS/Usr.json
浏览文件 @
ac280c27
...
@@ -12,18 +12,6 @@
...
@@ -12,18 +12,6 @@
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
},
"getPSDETreeColumns"
:
[
{
"getPSDETreeColumns"
:
[
{
"caption"
:
"图书名称"
,
"codeName"
:
"ibizbookname"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ibizbookname"
,
"mOSFilePath"
:
"psdetreecols/ibizbookname"
,
"name"
:
"ibizbookname"
,
"rTMOSFilePath"
:
"psdetreecols/ibizbookname"
,
"width"
:
200
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"归还日期"
,
"caption"
:
"归还日期"
,
"codeName"
:
"returntime"
,
"codeName"
:
"returntime"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
...
@@ -71,6 +59,18 @@
...
@@ -71,6 +59,18 @@
"widthUnit"
:
"px"
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableExpand"
:
false
,
"enableSort"
:
false
"enableSort"
:
false
},
{
"caption"
:
"图书名称"
,
"codeName"
:
"ibizbookname"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ibizbookname"
,
"mOSFilePath"
:
"psdetreecols/ibizbookname"
,
"name"
:
"ibizbookname"
,
"rTMOSFilePath"
:
"psdetreecols/ibizbookname"
,
"width"
:
200
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
}
],
}
],
"getPSDETreeNodeRSs"
:
[
{
"getPSDETreeNodeRSs"
:
[
{
"getChildPSDETreeNode"
:
{
"getChildPSDETreeNode"
:
{
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK/PSTREEGRIDICES/TreeTable.json
浏览文件 @
ac280c27
...
@@ -20,6 +20,18 @@
...
@@ -20,6 +20,18 @@
}
}
}
],
}
],
"getPSDETreeColumns"
:
[
{
"getPSDETreeColumns"
:
[
{
"caption"
:
"作者"
,
"codeName"
:
"author"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"author"
,
"mOSFilePath"
:
"psdetreecols/author"
,
"name"
:
"author"
,
"rTMOSFilePath"
:
"psdetreecols/author"
,
"width"
:
50
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"图书描述"
,
"caption"
:
"图书描述"
,
"codeName"
:
"subtext"
,
"codeName"
:
"subtext"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
...
@@ -43,18 +55,6 @@
...
@@ -43,18 +55,6 @@
"widthUnit"
:
"px"
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableExpand"
:
false
,
"enableSort"
:
false
"enableSort"
:
false
},
{
"caption"
:
"作者"
,
"codeName"
:
"author"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"author"
,
"mOSFilePath"
:
"psdetreecols/author"
,
"name"
:
"author"
,
"rTMOSFilePath"
:
"psdetreecols/author"
,
"width"
:
50
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
}
],
}
],
"getPSDETreeNodeRSs"
:
[
{
"getPSDETreeNodeRSs"
:
[
{
"getChildPSDETreeNode"
:
{
"getChildPSDETreeNode"
:
{
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK/PSTREEVIEWS/Treepug.json
0 → 100644
浏览文件 @
ac280c27
{
"codeName"
:
"Treepug"
,
"controlType"
:
"TREEVIEW"
,
"getCreatePSControlAction"
:
{
"modelref"
:
true
,
"id"
:
"create"
},
"dynaModelFilePath"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK/PSTREEVIEWS/Treepug.json"
,
"getFetchPSControlAction"
:
{
"modelref"
:
true
,
"id"
:
"fetch"
},
"getGetPSControlAction"
:
{
"modelref"
:
true
,
"id"
:
"load"
},
"hookEventNames"
:
[
"SELECTIONCHANGE"
,
"LOAD"
],
"logicName"
:
"树插件"
,
"mOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZBOOK/psdetreeviews/Treepug"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSControlLogics"
:
[
{
"eventNames"
:
"SELECTIONCHANGE;LOAD"
,
"logicTag"
:
"tree"
,
"logicType"
:
"APPVIEWENGINE"
,
"name"
:
"engine_tree"
,
"getPSAppViewEngine"
:
{
"modelref"
:
true
,
"id"
:
"engine"
}
}
],
"getPSDEDataImport"
:
{
"modelref"
:
true
,
"id"
:
"DataImport"
},
"getPSDETreeNodeRSs"
:
[
{
"getChildPSDETreeNode"
:
{
"modelref"
:
true
,
"id"
:
"test1"
},
"name"
:
"默认根节点 - 测试1"
,
"getParentPSDETreeNode"
:
{
"modelref"
:
true
,
"id"
:
"ROOT"
},
"parentValueLevel"
:
1
,
"searchMode"
:
3
}
],
"getPSDETreeNodes"
:
[
{
"counterMode"
:
0
,
"name"
:
"测试1"
,
"nodeType"
:
"test1"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"text"
:
"测试1"
,
"treeNodeType"
:
"STATIC"
,
"hasPSDETreeNodeRSs"
:
false
,
"appendPNodeId"
:
false
,
"disableSelect"
:
false
,
"enableCheck"
:
false
,
"enableEditData"
:
false
,
"enableNewData"
:
false
,
"enableQuickCreate"
:
false
,
"enableQuickSearch"
:
false
,
"enableRemoveData"
:
false
,
"enableViewData"
:
false
,
"expandFirstOnly"
:
false
,
"expanded"
:
false
,
"rootNode"
:
false
,
"selectFirstOnly"
:
false
,
"selected"
:
false
,
"id"
:
"test1"
},
{
"counterMode"
:
0
,
"name"
:
"默认根节点"
,
"nodeType"
:
"ROOT"
,
"nodeValue"
:
"root"
,
"text"
:
"默认根节点"
,
"treeNodeType"
:
"STATIC"
,
"hasPSDETreeNodeRSs"
:
true
,
"appendPNodeId"
:
false
,
"disableSelect"
:
false
,
"enableCheck"
:
false
,
"enableEditData"
:
false
,
"enableNewData"
:
false
,
"enableQuickCreate"
:
false
,
"enableQuickSearch"
:
false
,
"enableRemoveData"
:
false
,
"enableViewData"
:
false
,
"expandFirstOnly"
:
false
,
"expanded"
:
false
,
"rootNode"
:
true
,
"selectFirstOnly"
:
false
,
"selected"
:
false
,
"id"
:
"ROOT"
}
],
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZBOOKUsr4TreeView/psappviewctrls/tree"
,
"getRemovePSControlAction"
:
{
"modelref"
:
true
,
"id"
:
"remove"
},
"treeGridMode"
:
0
,
"getUpdatePSControlAction"
:
{
"modelref"
:
true
,
"id"
:
"update"
},
"enableRootSelect"
:
false
,
"outputIconDefault"
:
true
,
"rootVisible"
:
false
,
"modelid"
:
"19826ED0-0E34-4E0B-804E-41588A4F8CA4"
,
"modeltype"
:
"PSDETREEVIEW"
}
\ No newline at end of file
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZOrder/PSGRIDS/Main2.json
浏览文件 @
ac280c27
...
@@ -264,6 +264,28 @@
...
@@ -264,6 +264,28 @@
"rTMOSFilePath"
:
"psdegridcols/srfkey"
,
"rTMOSFilePath"
:
"psdegridcols/srfkey"
,
"allowEmpty"
:
true
"allowEmpty"
:
true
}
],
}
],
"getPSNavigateContexts"
:
[
{
"key"
:
"CTXPARAM2"
,
"name"
:
"CTXPARAM2"
,
"value"
:
"orderstate"
,
"rawValue"
:
false
},
{
"key"
:
"CTXPARAM1"
,
"name"
:
"CTXPARAM1"
,
"value"
:
"xxx2"
,
"rawValue"
:
true
}
],
"getPSNavigateParams"
:
[
{
"key"
:
"param2"
,
"name"
:
"param2"
,
"value"
:
"ibizordername"
,
"rawValue"
:
false
},
{
"key"
:
"param1"
,
"name"
:
"param1"
,
"value"
:
"param3"
,
"rawValue"
:
true
}
],
"pagingSize"
:
20
,
"pagingSize"
:
20
,
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderGridExpView/psappviewctrls/gridexpbar_grid"
,
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderGridExpView/psappviewctrls/gridexpbar_grid"
,
"getRemovePSControlAction"
:
{
"getRemovePSControlAction"
:
{
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKGanttView.json
浏览文件 @
ac280c27
...
@@ -42,18 +42,6 @@
...
@@ -42,18 +42,6 @@
"id"
:
"GANTT"
"id"
:
"GANTT"
},
},
"getPSDETreeColumns"
:
[
{
"getPSDETreeColumns"
:
[
{
"caption"
:
"图书名称"
,
"codeName"
:
"ibizbookname"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ibizbookname"
,
"mOSFilePath"
:
"psdetreecols/ibizbookname"
,
"name"
:
"ibizbookname"
,
"rTMOSFilePath"
:
"psdetreecols/ibizbookname"
,
"width"
:
200
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"归还日期"
,
"caption"
:
"归还日期"
,
"codeName"
:
"returntime"
,
"codeName"
:
"returntime"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
...
@@ -101,6 +89,18 @@
...
@@ -101,6 +89,18 @@
"widthUnit"
:
"px"
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableExpand"
:
false
,
"enableSort"
:
false
"enableSort"
:
false
},
{
"caption"
:
"图书名称"
,
"codeName"
:
"ibizbookname"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ibizbookname"
,
"mOSFilePath"
:
"psdetreecols/ibizbookname"
,
"name"
:
"ibizbookname"
,
"rTMOSFilePath"
:
"psdetreecols/ibizbookname"
,
"width"
:
200
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
}
],
}
],
"getPSDETreeNodeRSs"
:
[
{
"getPSDETreeNodeRSs"
:
[
{
"getChildPSDETreeNode"
:
{
"getChildPSDETreeNode"
:
{
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKTreeGridExView.json
浏览文件 @
ac280c27
...
@@ -88,6 +88,18 @@
...
@@ -88,6 +88,18 @@
"id"
:
"TREEGRIDEX"
"id"
:
"TREEGRIDEX"
},
},
"getPSDETreeColumns"
:
[
{
"getPSDETreeColumns"
:
[
{
"caption"
:
"作者"
,
"codeName"
:
"author"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"author"
,
"mOSFilePath"
:
"psdetreecols/author"
,
"name"
:
"author"
,
"rTMOSFilePath"
:
"psdetreecols/author"
,
"width"
:
50
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
},
{
"caption"
:
"图书描述"
,
"caption"
:
"图书描述"
,
"codeName"
:
"subtext"
,
"codeName"
:
"subtext"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
...
@@ -111,18 +123,6 @@
...
@@ -111,18 +123,6 @@
"widthUnit"
:
"px"
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableExpand"
:
false
,
"enableSort"
:
false
"enableSort"
:
false
},
{
"caption"
:
"作者"
,
"codeName"
:
"author"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"author"
,
"mOSFilePath"
:
"psdetreecols/author"
,
"name"
:
"author"
,
"rTMOSFilePath"
:
"psdetreecols/author"
,
"width"
:
50
,
"widthUnit"
:
"px"
,
"enableExpand"
:
false
,
"enableSort"
:
false
}
],
}
],
"getPSDETreeNodeRSs"
:
[
{
"getPSDETreeNodeRSs"
:
[
{
"getChildPSDETreeNode"
:
{
"getChildPSDETreeNode"
:
{
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr4TreeView.json
0 → 100644
浏览文件 @
ac280c27
{
"accUserMode"
:
2
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"DE.LNAME.IBIZBOOK"
,
"mOSFilePath"
:
"pslanguageres/Auto395"
,
"rTMOSFilePath"
:
"pslanguageres/Auto395"
},
"caption"
:
"图书"
,
"codeName"
:
"IBIZBOOKUsr4TreeView"
,
"dynaModelFilePath"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr4TreeView.json"
,
"mDCtrlActiveMode"
:
2
,
"mOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZBOOKUsr4TreeView"
,
"name"
:
"IBIZBOOKUsr4TreeView"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSAppModule"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPMODULES/Sample.json"
},
"getPSAppViewEngines"
:
[
{
"engineCat"
:
"VIEW"
,
"engineType"
:
"TreeView"
,
"mOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZBOOKUsr4TreeView/psappviewengines/engine"
,
"name"
:
"engine"
,
"getPSUIEngineParams"
:
[
{
"ctrlName"
:
"tree"
,
"name"
:
"TREE"
,
"paramType"
:
"CTRL"
}
]
}
],
"getPSControls"
:
[
{
"codeName"
:
"Treepug"
,
"controlType"
:
"TREEVIEW"
,
"getCreatePSControlAction"
:
{
"modelref"
:
true
,
"id"
:
"create"
},
"dynaModelFilePath"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK/PSTREEVIEWS/Treepug.json"
,
"getFetchPSControlAction"
:
{
"modelref"
:
true
,
"id"
:
"fetch"
},
"getGetPSControlAction"
:
{
"modelref"
:
true
,
"id"
:
"load"
},
"hookEventNames"
:
[
"SELECTIONCHANGE"
,
"LOAD"
],
"logicName"
:
"树插件"
,
"mOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZBOOK/psdetreeviews/Treepug"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSControlHandler"
:
{
"getPSHandlerActions"
:
[
{
"actionName"
:
"Get"
,
"actionType"
:
"DEACTION"
,
"dataAccessAction"
:
"READ"
,
"name"
:
"load"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"Get"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
},
{
"actionName"
:
"Create"
,
"actionType"
:
"DEACTION"
,
"dataAccessAction"
:
"CREATE"
,
"name"
:
"create"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"Create"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
},
{
"actionName"
:
"Update"
,
"actionType"
:
"DEACTION"
,
"dataAccessAction"
:
"UPDATE"
,
"name"
:
"update"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"Update"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
},
{
"actionName"
:
"Remove"
,
"actionType"
:
"DEACTION"
,
"dataAccessAction"
:
"DELETE"
,
"name"
:
"remove"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"Remove"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
},
{
"actionType"
:
"DEDATASET"
,
"name"
:
"fetch"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
}
}
],
"userDRAction"
:
"READ"
,
"enableDEFieldPrivilege"
:
false
,
"id"
:
"树视图处理器"
},
"getPSControlLogics"
:
[
{
"eventNames"
:
"SELECTIONCHANGE;LOAD"
,
"logicTag"
:
"tree"
,
"logicType"
:
"APPVIEWENGINE"
,
"name"
:
"engine_tree"
,
"getPSAppViewEngine"
:
{
"modelref"
:
true
,
"id"
:
"engine"
}
}
],
"getPSControlParam"
:
{
"autoLoad"
:
true
,
"showBusyIndicator"
:
true
,
"id"
:
"TREE"
},
"getPSDEDataImport"
:
{
"modelref"
:
true
,
"id"
:
"DataImport"
},
"getPSDETreeNodeRSs"
:
[
{
"getChildPSDETreeNode"
:
{
"modelref"
:
true
,
"id"
:
"test1"
},
"name"
:
"默认根节点 - 测试1"
,
"getParentPSDETreeNode"
:
{
"modelref"
:
true
,
"id"
:
"ROOT"
},
"parentValueLevel"
:
1
,
"searchMode"
:
3
}
],
"getPSDETreeNodes"
:
[
{
"counterMode"
:
0
,
"name"
:
"测试1"
,
"nodeType"
:
"test1"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"text"
:
"测试1"
,
"treeNodeType"
:
"STATIC"
,
"hasPSDETreeNodeRSs"
:
false
,
"appendPNodeId"
:
false
,
"disableSelect"
:
false
,
"enableCheck"
:
false
,
"enableEditData"
:
false
,
"enableNewData"
:
false
,
"enableQuickCreate"
:
false
,
"enableQuickSearch"
:
false
,
"enableRemoveData"
:
false
,
"enableViewData"
:
false
,
"expandFirstOnly"
:
false
,
"expanded"
:
false
,
"rootNode"
:
false
,
"selectFirstOnly"
:
false
,
"selected"
:
false
,
"id"
:
"test1"
},
{
"counterMode"
:
0
,
"name"
:
"默认根节点"
,
"nodeType"
:
"ROOT"
,
"nodeValue"
:
"root"
,
"text"
:
"默认根节点"
,
"treeNodeType"
:
"STATIC"
,
"hasPSDETreeNodeRSs"
:
true
,
"appendPNodeId"
:
false
,
"disableSelect"
:
false
,
"enableCheck"
:
false
,
"enableEditData"
:
false
,
"enableNewData"
:
false
,
"enableQuickCreate"
:
false
,
"enableQuickSearch"
:
false
,
"enableRemoveData"
:
false
,
"enableViewData"
:
false
,
"expandFirstOnly"
:
false
,
"expanded"
:
false
,
"rootNode"
:
true
,
"selectFirstOnly"
:
false
,
"selected"
:
false
,
"id"
:
"ROOT"
}
],
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZBOOKUsr4TreeView/psappviewctrls/tree"
,
"getRemovePSControlAction"
:
{
"modelref"
:
true
,
"id"
:
"remove"
},
"treeGridMode"
:
0
,
"getUpdatePSControlAction"
:
{
"modelref"
:
true
,
"id"
:
"update"
},
"enableRootSelect"
:
false
,
"outputIconDefault"
:
true
,
"rootVisible"
:
false
,
"name"
:
"tree"
,
"modelid"
:
"19826ED0-0E34-4E0B-804E-41588A4F8CA4"
,
"modeltype"
:
"PSDETREEVIEW"
}
],
"getPSDEViewCodeName"
:
"Usr4TreeView"
,
"getPSDEViewId"
:
"DECBBA8D-5F95-4DD5-A846-24F20AAFE7D8"
,
"getPSViewLayoutPanel"
:
{
"codeName"
:
"Layoutpanel"
,
"controlStyle"
:
"APPDETREEVIEW"
,
"controlType"
:
"VIEWLAYOUTPANEL"
,
"mOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZBOOK/pssysviewlayoutpanels/Layoutpanel"
,
"name"
:
"layoutpanel"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSControlParam"
:
{
},
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZBOOKUsr4TreeView/psappviewctrls/layoutpanel"
,
"layoutBodyOnly"
:
true
,
"layoutPanel"
:
true
,
"useDefaultLayout"
:
true
},
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZBOOKUsr4TreeView"
,
"title"
:
"图书树视图"
,
"viewStyle"
:
"DEFAULT"
,
"viewType"
:
"DETREEVIEW"
,
"xDataControlName"
:
"tree"
,
"enableDP"
:
true
,
"enableFilter"
:
false
,
"modelid"
:
"22299f593480c67108c96ce5202eeb8c"
,
"modeltype"
:
"PSAPPDEVIEW"
}
\ No newline at end of file
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderGridExpView.json
浏览文件 @
ac280c27
...
@@ -543,6 +543,28 @@
...
@@ -543,6 +543,28 @@
"rTMOSFilePath"
:
"psdegridcols/srfkey"
,
"rTMOSFilePath"
:
"psdegridcols/srfkey"
,
"allowEmpty"
:
true
"allowEmpty"
:
true
}
],
}
],
"getPSNavigateContexts"
:
[
{
"key"
:
"CTXPARAM2"
,
"name"
:
"CTXPARAM2"
,
"value"
:
"orderstate"
,
"rawValue"
:
false
},
{
"key"
:
"CTXPARAM1"
,
"name"
:
"CTXPARAM1"
,
"value"
:
"xxx2"
,
"rawValue"
:
true
}
],
"getPSNavigateParams"
:
[
{
"key"
:
"param2"
,
"name"
:
"param2"
,
"value"
:
"ibizordername"
,
"rawValue"
:
false
},
{
"key"
:
"param1"
,
"name"
:
"param1"
,
"value"
:
"param3"
,
"rawValue"
:
true
}
],
"pagingSize"
:
20
,
"pagingSize"
:
20
,
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderGridExpView/psappviewctrls/gridexpbar_grid"
,
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderGridExpView/psappviewctrls/gridexpbar_grid"
,
"getRemovePSControlAction"
:
{
"getRemovePSControlAction"
:
{
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderTestCustomLayoutPanelGridExpView.json
浏览文件 @
ac280c27
...
@@ -454,6 +454,28 @@
...
@@ -454,6 +454,28 @@
"rTMOSFilePath"
:
"psdegridcols/srfkey"
,
"rTMOSFilePath"
:
"psdegridcols/srfkey"
,
"allowEmpty"
:
true
"allowEmpty"
:
true
}
],
}
],
"getPSNavigateContexts"
:
[
{
"key"
:
"CTXPARAM2"
,
"name"
:
"CTXPARAM2"
,
"value"
:
"orderstate"
,
"rawValue"
:
false
},
{
"key"
:
"CTXPARAM1"
,
"name"
:
"CTXPARAM1"
,
"value"
:
"xxx2"
,
"rawValue"
:
true
}
],
"getPSNavigateParams"
:
[
{
"key"
:
"param2"
,
"name"
:
"param2"
,
"value"
:
"ibizordername"
,
"rawValue"
:
false
},
{
"key"
:
"param1"
,
"name"
:
"param1"
,
"value"
:
"param3"
,
"rawValue"
:
true
}
],
"pagingSize"
:
20
,
"pagingSize"
:
20
,
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderTestCustomLayoutPanelGridExpView/psappviewctrls/gridexpbar_grid"
,
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderTestCustomLayoutPanelGridExpView/psappviewctrls/gridexpbar_grid"
,
"getRemovePSControlAction"
:
{
"getRemovePSControlAction"
:
{
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderTestGridExpView.json
浏览文件 @
ac280c27
...
@@ -37,6 +37,24 @@
...
@@ -37,6 +37,24 @@
"actionAfterWizard"
:
"DEFAULT"
,
"actionAfterWizard"
:
"DEFAULT"
,
"logicType"
:
"PREDEFINED"
,
"logicType"
:
"PREDEFINED"
,
"name"
:
"新建数据"
,
"name"
:
"新建数据"
,
"getNewDataPSAppView"
:
{
"mOSFilePath"
:
"psappviewlogicrefviews/IBIZOrderEditView"
,
"rTMOSFilePath"
:
"psappviewlogicrefviews/IBIZOrderEditView"
,
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderEditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
},
"getPSAppUILogicRefViews"
:
[
{
"mOSFilePath"
:
"psappviewlogicrefviews/IBIZOrderEditView"
,
"rTMOSFilePath"
:
"psappviewlogicrefviews/IBIZOrderEditView"
,
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderEditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
}
],
"viewLogicType"
:
"APP_NEWDATA"
,
"viewLogicType"
:
"APP_NEWDATA"
,
"batchAddOnly"
:
false
,
"batchAddOnly"
:
false
,
"enableBatchAdd"
:
false
,
"enableBatchAdd"
:
false
,
...
@@ -49,10 +67,55 @@
...
@@ -49,10 +67,55 @@
"getPSAppUILogic"
:
{
"getPSAppUILogic"
:
{
"logicType"
:
"PREDEFINED"
,
"logicType"
:
"PREDEFINED"
,
"name"
:
"打开数据"
,
"name"
:
"打开数据"
,
"getOpenDataPSAppView"
:
{
"mOSFilePath"
:
"psappviewlogicrefviews/IBIZOrderEditView"
,
"rTMOSFilePath"
:
"psappviewlogicrefviews/IBIZOrderEditView"
,
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderEditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
},
"getPSAppUILogicRefViews"
:
[
{
"mOSFilePath"
:
"psappviewlogicrefviews/IBIZOrderEditView"
,
"rTMOSFilePath"
:
"psappviewlogicrefviews/IBIZOrderEditView"
,
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderEditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
}
],
"viewLogicType"
:
"APP_OPENDATA"
,
"viewLogicType"
:
"APP_OPENDATA"
,
"editMode"
:
true
"editMode"
:
true
}
}
}
],
}
],
"getPSAppViewRefs"
:
[
{
"name"
:
"EDITDATA"
,
"realTitle"
:
"订单编辑视图"
,
"getRealTitlePSLanguageRes"
:
{
"lanResTag"
:
"PAGE.TITLE.IBIZORDER.EDITVIEW"
,
"mOSFilePath"
:
"pslanguageres/Auto882"
,
"rTMOSFilePath"
:
"pslanguageres/Auto882"
},
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderEditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
},
{
"name"
:
"NEWDATA"
,
"realTitle"
:
"订单编辑视图"
,
"getRealTitlePSLanguageRes"
:
{
"lanResTag"
:
"PAGE.TITLE.IBIZORDER.EDITVIEW"
,
"mOSFilePath"
:
"pslanguageres/Auto882"
,
"rTMOSFilePath"
:
"pslanguageres/Auto882"
},
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderEditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
}
],
"getPSControls"
:
[
{
"getPSControls"
:
[
{
"codeName"
:
"TestGridExpViewgridexpbar"
,
"codeName"
:
"TestGridExpViewgridexpbar"
,
"controlType"
:
"GRIDEXPBAR"
,
"controlType"
:
"GRIDEXPBAR"
,
...
@@ -63,6 +126,46 @@
...
@@ -63,6 +126,46 @@
"modelref"
:
true
,
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZOrder.json"
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZOrder.json"
},
},
"getPSAppViewLogics"
:
[
{
"eventArg"
:
"deuiaction3"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"gridexpbar_toolbar_deuiaction3_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"gridexpbar_toolbar_deuiaction3"
},
"getPSViewCtrlName"
:
"gridexpbar_toolbar"
}
],
"getPSAppViewRefs"
:
[
{
"name"
:
"EXPITEM:DEFAULT"
,
"parentDataJO"
:
{
"srfparentdefname"
:
"ibizordername"
,
"srfparentdename"
:
"IBIZORDER"
,
"srfparentmode"
:
"DER1N_IBIZORDERDETAIL_IBIZORDER_IBIZORDERID"
},
"realTitle"
:
"订单明细表格视图"
,
"getRealTitlePSLanguageRes"
:
{
"lanResTag"
:
"PAGE.TITLE.IBIZORDERDETAIL.GRIDVIEW9"
,
"mOSFilePath"
:
"pslanguageres/Auto445"
,
"rTMOSFilePath"
:
"pslanguageres/Auto445"
},
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderDetailGridView9.json"
,
"viewType"
:
"DEGRIDVIEW9"
}
}
],
"getPSAppViewUIActions"
:
[
{
"name"
:
"gridexpbar_toolbar_deuiaction3"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"Edit"
},
"uIActionTarget"
:
"SINGLEKEY"
,
"xDataControlName"
:
"gridexpbar_grid"
}
],
"getPSControlHandler"
:
{
"getPSControlHandler"
:
{
"enableDEFieldPrivilege"
:
false
,
"enableDEFieldPrivilege"
:
false
,
"id"
:
"gridexpbar"
"id"
:
"gridexpbar"
...
@@ -84,17 +187,77 @@
...
@@ -84,17 +187,77 @@
},
},
"getPSControls"
:
[
{
"getPSControls"
:
[
{
"aggMode"
:
"NONE"
,
"aggMode"
:
"NONE"
,
"codeName"
:
"
Gridexpbar_grid
"
,
"codeName"
:
"
Main2
"
,
"columnEnableLink"
:
2
,
"columnEnableLink"
:
2
,
"controlType"
:
"GRID"
,
"controlType"
:
"GRID"
,
"dynaModelFilePath"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZOrder/PSGRIDS/
Gridexpbar_grid
.json"
,
"dynaModelFilePath"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZOrder/PSGRIDS/
Main2
.json"
,
"getFetchPSControlAction"
:
{
"getFetchPSControlAction"
:
{
"modelref"
:
true
,
"modelref"
:
true
,
"id"
:
"fetch"
"id"
:
"fetch"
},
},
"groupMode"
:
"NONE"
,
"groupMode"
:
"NONE"
,
"hookEventNames"
:
[
"SELECTIONCHANGE"
,
"LOAD"
],
"hookEventNames"
:
[
"SELECTIONCHANGE"
,
"LOAD"
],
"mOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDER/psdegrids/Gridexpbar_grid"
,
"logicName"
:
"表格导航"
,
"mOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDER/psdegrids/Main2"
,
"navFilter"
:
"ibizordername"
,
"getNavPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderDetailGridView9.json"
,
"viewType"
:
"DEGRIDVIEW9"
},
"getNavPSDER"
:
{
"cloneOrder"
:
10
,
"codeName"
:
"IBIZORDER"
,
"dERType"
:
"DER1N"
,
"dynaModelFilePath"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZOrderDetail/PSDERS/DER1N_IBIZORDERDETAIL_IBIZORDER_IBIZORDERID.json"
,
"fKeyName"
:
"F96BEAA4E35F59F65A"
,
"mOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/minorpsders/DER1N_IBIZORDERDETAIL_IBIZORDER_IBIZORDERID"
,
"getMajorPSDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZOrder.json"
},
"masterOrder"
:
-1
,
"masterRS"
:
0
,
"minorCodeName"
:
"IBIZORDERDETAILS"
,
"getMinorPSDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSMODULES/Sample/PSDATAENTITIES/IBIZOrderDetail.json"
},
"name"
:
"DER1N_IBIZORDERDETAIL_IBIZORDER_IBIZORDERID"
,
"orderValue"
:
100
,
"getPSDER1NDEFieldMaps"
:
[
{
"getMajorPSDEField"
:
{
"name"
:
"AMOUNT"
,
"codeName"
:
"Amount"
},
"mapType"
:
"SUM"
,
"getMinorPSDEField"
:
{
"name"
:
"AMOUNT"
,
"codeName"
:
"Amount"
},
"name"
:
"计算订单合计"
},
{
"getMajorPSDEField"
:
{
"name"
:
"DETAILNUM"
,
"codeName"
:
"DetailNum"
},
"mapType"
:
"COUNT"
,
"name"
:
"计算订单明细数"
}
],
"getPSPickupDEField"
:
{
"name"
:
"IBIZORDERID"
,
"codeName"
:
"IBIZOrderId"
},
"getPSPickupTextDEField"
:
{
"name"
:
"IBIZORDERNAME"
,
"codeName"
:
"IBIZOrderName"
},
"pickupDEFName"
:
"IBIZORDERID"
,
"rTMOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDERDETAIL/minorpsders/DER1N_IBIZORDERDETAIL_IBIZORDER_IBIZORDERID"
,
"removeActionType"
:
3
,
"removeOrder"
:
0
,
"cloneRS"
:
true
},
"getPSAppDataEntity"
:
{
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZOrder.json"
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZOrder.json"
...
@@ -201,6 +364,202 @@
...
@@ -201,6 +364,202 @@
"modelref"
:
true
,
"modelref"
:
true
,
"id"
:
"Import"
"id"
:
"Import"
},
},
"getPSDEGridColumns"
:
[
{
"align"
:
"LEFT"
,
"cLConvertMode"
:
"NONE"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"DEF.LNAME.IBIZORDERNAME"
,
"mOSFilePath"
:
"pslanguageres/Auto751"
,
"rTMOSFilePath"
:
"pslanguageres/Auto751"
},
"caption"
:
"订单名称"
,
"codeName"
:
"ibizordername"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ibizordername"
,
"excelCaption"
:
"订单名称"
,
"mOSFilePath"
:
"psdegridcols/ibizordername"
,
"name"
:
"ibizordername"
,
"noPrivDisplayMode"
:
1
,
"getPSAppDEField"
:
{
"name"
:
"IBIZORDERNAME"
,
"codeName"
:
"IBIZOrderName"
},
"rTMOSFilePath"
:
"psdegridcols/ibizordername"
,
"width"
:
150
,
"widthUnit"
:
"PX"
,
"enableSort"
:
true
},
{
"align"
:
"LEFT"
,
"cLConvertMode"
:
"FRONT"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"DEF.LNAME.ORDERTYPE"
,
"mOSFilePath"
:
"pslanguageres/Auto647"
,
"rTMOSFilePath"
:
"pslanguageres/Auto647"
},
"caption"
:
"订单类型"
,
"codeName"
:
"ordertype"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ordertype"
,
"excelCaption"
:
"订单类型"
,
"mOSFilePath"
:
"psdegridcols/ordertype"
,
"name"
:
"ordertype"
,
"noPrivDisplayMode"
:
1
,
"getPSAppCodeList"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPCODELISTS/DYNAORDERTYPE.json"
},
"getPSAppDEField"
:
{
"name"
:
"ORDERTYPE"
,
"codeName"
:
"OrderType"
},
"rTMOSFilePath"
:
"psdegridcols/ordertype"
,
"width"
:
150
,
"widthUnit"
:
"PX"
,
"enableSort"
:
true
},
{
"align"
:
"LEFT"
,
"cLConvertMode"
:
"FRONT"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"DEF.LNAME.ORDERSTATE"
,
"mOSFilePath"
:
"pslanguageres/Auto1017"
,
"rTMOSFilePath"
:
"pslanguageres/Auto1017"
},
"caption"
:
"订单状态"
,
"codeName"
:
"orderstate"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"orderstate"
,
"excelCaption"
:
"订单状态"
,
"mOSFilePath"
:
"psdegridcols/orderstate"
,
"name"
:
"orderstate"
,
"noPrivDisplayMode"
:
1
,
"getPSAppCodeList"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPCODELISTS/ORDERSTATE.json"
},
"getPSAppDEField"
:
{
"name"
:
"ORDERSTATE"
,
"codeName"
:
"OrderState"
},
"rTMOSFilePath"
:
"psdegridcols/orderstate"
,
"width"
:
100
,
"widthUnit"
:
"STAR"
,
"enableSort"
:
true
}
],
"getPSDEGridDataItems"
:
[
{
"dataType"
:
25
,
"name"
:
"ibizordername"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZORDERNAME"
,
"codeName"
:
"IBIZOrderName"
}
},
{
"dataType"
:
25
,
"name"
:
"ordertype"
,
"getPSAppDEField"
:
{
"name"
:
"ORDERTYPE"
,
"codeName"
:
"OrderType"
}
},
{
"dataType"
:
25
,
"name"
:
"orderstate"
,
"getPSAppDEField"
:
{
"name"
:
"ORDERSTATE"
,
"codeName"
:
"OrderState"
}
},
{
"dataType"
:
25
,
"name"
:
"orderuid"
,
"getPSAppDEField"
:
{
"name"
:
"ORDERUID"
,
"codeName"
:
"OrderUID"
}
},
{
"dataType"
:
25
,
"name"
:
"ibizorderid"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZORDERID"
,
"codeName"
:
"IBIZOrderId"
}
},
{
"dataType"
:
25
,
"name"
:
"srfkey"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZORDERID"
,
"codeName"
:
"IBIZOrderId"
}
},
{
"dataType"
:
25
,
"name"
:
"srfdataaccaction"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZORDERID"
,
"codeName"
:
"IBIZOrderId"
},
"dataAccessAction"
:
true
},
{
"dataType"
:
25
,
"name"
:
"ibizcustomerid"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZCUSTOMERID"
,
"codeName"
:
"IBIZCustomerId"
}
},
{
"dataType"
:
25
,
"name"
:
"srfmajortext"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZORDERNAME"
,
"codeName"
:
"IBIZOrderName"
}
},
{
"dataType"
:
25
,
"name"
:
"wfstep"
,
"getPSAppDEField"
:
{
"name"
:
"WFSTEP"
,
"codeName"
:
"WFStep"
}
},
{
"dataType"
:
25
,
"name"
:
"srfmstag"
}
],
"getPSDEGridEditItems"
:
[
{
"caption"
:
"订单标识"
,
"codeName"
:
"srfkey"
,
"enableCond"
:
3
,
"ignoreInput"
:
0
,
"mOSFilePath"
:
"psdegridcols/srfkey"
,
"name"
:
"srfkey"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZORDERID"
,
"codeName"
:
"IBIZOrderId"
},
"getPSEditor"
:
{
"editorType"
:
"HIDDEN"
,
"name"
:
"srfkey"
},
"rTMOSFilePath"
:
"psdegridcols/srfkey"
,
"allowEmpty"
:
true
}
],
"getPSNavigateContexts"
:
[
{
"key"
:
"CTXPARAM2"
,
"name"
:
"CTXPARAM2"
,
"value"
:
"orderstate"
,
"rawValue"
:
false
},
{
"key"
:
"CTXPARAM1"
,
"name"
:
"CTXPARAM1"
,
"value"
:
"xxx2"
,
"rawValue"
:
true
}
],
"getPSNavigateParams"
:
[
{
"key"
:
"param2"
,
"name"
:
"param2"
,
"value"
:
"ibizordername"
,
"rawValue"
:
false
},
{
"key"
:
"param1"
,
"name"
:
"param1"
,
"value"
:
"param3"
,
"rawValue"
:
true
}
],
"pagingSize"
:
20
,
"pagingSize"
:
20
,
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderTestGridExpView/psappviewctrls/gridexpbar_grid"
,
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderTestGridExpView/psappviewctrls/gridexpbar_grid"
,
"getRemovePSControlAction"
:
{
"getRemovePSControlAction"
:
{
...
@@ -222,19 +581,108 @@
...
@@ -222,19 +581,108 @@
"enableColFilter"
:
false
,
"enableColFilter"
:
false
,
"enableCustomized"
:
true
,
"enableCustomized"
:
true
,
"enableGroup"
:
false
,
"enableGroup"
:
false
,
"enablePagingBar"
:
fals
e
,
"enablePagingBar"
:
tru
e
,
"enableRowEdit"
:
false
,
"enableRowEdit"
:
false
,
"enableRowEditOrder"
:
false
,
"enableRowEditOrder"
:
false
,
"enableRowNew"
:
false
,
"enableRowNew"
:
false
,
"forceFit"
:
fals
e
,
"forceFit"
:
tru
e
,
"hideHeader"
:
false
,
"hideHeader"
:
false
,
"noSort"
:
false
,
"noSort"
:
false
,
"singleSelect"
:
false
,
"singleSelect"
:
false
,
"name"
:
"gridexpbar_grid"
,
"name"
:
"gridexpbar_grid"
,
"modelid"
:
"
d98e54e4abc3bb0f21e0b594a7caf095_gridexpbar_gri
d"
,
"modelid"
:
"
faf0c0b338c3b17a02a3455cabb84f1
d"
,
"modeltype"
:
"PSDEGRID"
"modeltype"
:
"PSDEGRID"
},
{
"codeName"
:
"TestGridExpViewgridexpbar_toolbar"
,
"controlType"
:
"TOOLBAR"
,
"hookEventNames"
:
[
"CLICK"
],
"logicName"
:
"导航工具栏"
,
"mOSFilePath"
:
"psmodules/Sample/psdataentities/IBIZORDER/psdetoolbars/TestGridExpViewgridexpbar_toolbar"
,
"name"
:
"gridexpbar_toolbar"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZOrder.json"
},
"getPSControlLogics"
:
[
{
"eventArg"
:
"deuiaction3"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"gridexpbar_toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"gridexpbar_toolbar_deuiaction3_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"gridexpbar_toolbar_deuiaction3_click"
}
}
],
"getPSControlParam"
:
{
"id"
:
"gridexpbar_toolbar"
},
"getPSDEToolbarItems"
:
[
{
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.EDIT"
,
"mOSFilePath"
:
"pslanguageres/Auto1585"
,
"rTMOSFilePath"
:
"pslanguageres/Auto1585"
},
"caption"
:
"编辑"
,
"groupExtractMode"
:
"ITEM"
,
"itemType"
:
"DEUIACTION"
,
"name"
:
"deuiaction3"
,
"noPrivDisplayMode"
:
2
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"gridexpbar_toolbar_deuiaction3"
},
"getPSSysImage"
:
{
"glyph"
:
"xf044@FontAwesome"
,
"cssClass"
:
"fa fa-edit"
},
"getPSUIAction"
:
{
"actionTarget"
:
"SINGLEKEY"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.EDIT"
,
"mOSFilePath"
:
"pslanguageres/Auto1585"
,
"rTMOSFilePath"
:
"pslanguageres/Auto1585"
},
"caption"
:
"编辑"
,
"codeName"
:
"Edit"
,
"fullCodeName"
:
"Edit"
,
"mOSFilePath"
:
"pssysapps/Web/pssysappdeuiactions/Edit"
,
"name"
:
"表格界面_编辑操作"
,
"getPSSysImage"
:
{
"glyph"
:
"xf044@FontAwesome"
,
"cssClass"
:
"fa fa-edit"
},
"predefinedType"
:
"GRIDVIEW_EDITACTION"
,
"rTMOSFilePath"
:
"pssysapps/Web/pssysappdeuiactions/Edit"
,
"timeout"
:
60000
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.EDIT"
,
"mOSFilePath"
:
"pslanguageres/Auto834"
,
"rTMOSFilePath"
:
"pslanguageres/Auto834"
},
"uIActionMode"
:
"SYS"
,
"uIActionTag"
:
"Edit"
,
"uIActionType"
:
"DEUIACTION"
},
"tooltip"
:
"编辑"
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.EDIT"
,
"mOSFilePath"
:
"pslanguageres/Auto834"
,
"rTMOSFilePath"
:
"pslanguageres/Auto834"
},
"showCaption"
:
true
,
"showIcon"
:
true
}
],
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderTestGridExpView/psappviewctrls/gridexpbar_toolbar"
,
"modelid"
:
"ccc80bd11c6bc1789aa0e05fd5ede0b7"
,
"modeltype"
:
"PSDETOOLBAR"
}
],
}
],
"getPSSysImage"
:
{
"glyph"
:
"xf036@FontAwesome"
,
"cssClass"
:
"fa fa-align-left"
},
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderTestGridExpView/psappviewctrls/gridexpbar"
,
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderTestGridExpView/psappviewctrls/gridexpbar"
,
"title"
:
"我是导航"
,
"xDataControlName"
:
"gridexpbar_grid"
,
"xDataControlName"
:
"gridexpbar_grid"
,
"enableCounter"
:
true
,
"enableCounter"
:
true
,
"enableSearch"
:
false
,
"enableSearch"
:
false
,
...
@@ -268,14 +716,19 @@
...
@@ -268,14 +716,19 @@
"modelref"
:
true
,
"modelref"
:
true
,
"path"
:
"PSWORKFLOWS/ODSP.json"
"path"
:
"PSWORKFLOWS/ODSP.json"
},
},
"getQuickGroupPSCodeList"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPCODELISTS/OrderType.json"
},
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderTestGridExpView"
,
"rTMOSFilePath"
:
"pssysapps/Web/psappdeviews/IBIZOrderTestGridExpView"
,
"refFlag"
:
false
,
"refFlag"
:
false
,
"sideBarLayout"
:
"
LEFT
"
,
"sideBarLayout"
:
"
TOP
"
,
"title"
:
"订单表格导航视图"
,
"title"
:
"订单表格导航视图"
,
"viewStyle"
:
"DEFAULT"
,
"viewStyle"
:
"DEFAULT"
,
"viewType"
:
"DEGRIDEXPVIEW"
,
"viewType"
:
"DEGRIDEXPVIEW"
,
"enableDP"
:
true
,
"enableDP"
:
true
,
"enableFilter"
:
false
,
"enableFilter"
:
false
,
"enableQuickGroup"
:
true
,
"enableQuickSearch"
:
true
,
"enableQuickSearch"
:
true
,
"showDataInfoBar"
:
true
,
"showDataInfoBar"
:
true
,
"modelid"
:
"d98e54e4abc3bb0f21e0b594a7caf095"
,
"modelid"
:
"d98e54e4abc3bb0f21e0b594a7caf095"
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPINDEXVIEWS/AppIndexView.json
浏览文件 @
ac280c27
...
@@ -5224,6 +5224,22 @@
...
@@ -5224,6 +5224,22 @@
"layout"
:
"TABLE"
"layout"
:
"TABLE"
},
},
"tooltip"
:
"表单"
"tooltip"
:
"表单"
},
{
"accUserMode"
:
2
,
"caption"
:
"树"
,
"itemType"
:
"MENUITEM"
,
"name"
:
"menuitem262"
,
"getPSAppFunc"
:
{
"modelref"
:
true
,
"id"
:
"AppFunc140"
},
"getPSLayout"
:
{
"layout"
:
"TABLE"
},
"getPSLayoutPos"
:
{
"layout"
:
"TABLE"
},
"tooltip"
:
"树"
},
{
},
{
"accUserMode"
:
2
,
"accUserMode"
:
2
,
"caption"
:
"表格"
,
"caption"
:
"表格"
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPINDEXVIEWS/index.json
浏览文件 @
ac280c27
...
@@ -4345,6 +4345,22 @@
...
@@ -4345,6 +4345,22 @@
"layout"
:
"TABLE"
"layout"
:
"TABLE"
},
},
"tooltip"
:
"表单"
"tooltip"
:
"表单"
},
{
"accUserMode"
:
2
,
"caption"
:
"树"
,
"itemType"
:
"MENUITEM"
,
"name"
:
"menuitem262"
,
"getPSAppFunc"
:
{
"modelref"
:
true
,
"id"
:
"AppFunc140"
},
"getPSLayout"
:
{
"layout"
:
"TABLE"
},
"getPSLayoutPos"
:
{
"layout"
:
"TABLE"
},
"tooltip"
:
"树"
},
{
},
{
"accUserMode"
:
2
,
"accUserMode"
:
2
,
"caption"
:
"表格"
,
"caption"
:
"表格"
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPMENUS/MainMenu.json
浏览文件 @
ac280c27
...
@@ -2962,6 +2962,16 @@
...
@@ -2962,6 +2962,16 @@
"id"
:
"UsrAppFunc1207842515"
"id"
:
"UsrAppFunc1207842515"
},
},
"tooltip"
:
"表单"
"tooltip"
:
"表单"
},
{
"accUserMode"
:
2
,
"caption"
:
"树"
,
"itemType"
:
"MENUITEM"
,
"name"
:
"menuitem262"
,
"getPSAppFunc"
:
{
"modelref"
:
true
,
"id"
:
"AppFunc140"
},
"tooltip"
:
"树"
},
{
},
{
"accUserMode"
:
2
,
"accUserMode"
:
2
,
"caption"
:
"表格"
,
"caption"
:
"表格"
,
...
...
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSSYSAPP.json
浏览文件 @
ac280c27
...
@@ -2798,6 +2798,18 @@
...
@@ -2798,6 +2798,18 @@
"viewType" : "DEEDITVIEW4"
"viewType" : "DEEDITVIEW4"
},
},
"rTMOSFilePath" : "pssysapps/Web/psappfuncs/AppFunc105"
"rTMOSFilePath" : "pssysapps/Web/psappfuncs/AppFunc105"
}, {
"appFuncType" : "APPVIEW",
"codeName" : "AppFunc140",
"mOSFilePath" : "pssysapps/Web/psappfuncs/AppFunc140",
"name" : "vue3树插件",
"openMode" : "INDEXVIEWTAB",
"getPSAppView" : {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr4TreeView.json",
"viewType" : "DETREEVIEW"
},
"rTMOSFilePath" : "pssysapps/Web/psappfuncs/AppFunc140"
}, {
}, {
"appFuncType" : "APPVIEW",
"appFuncType" : "APPVIEW",
"codeName" : "AppFunc6",
"codeName" : "AppFunc6",
...
@@ -16506,6 +16518,12 @@
...
@@ -16506,6 +16518,12 @@
"viewType" : "DELISTVIEW",
"viewType" : "DELISTVIEW",
"resource" : "IBIZAPPEDITOR",
"resource" : "IBIZAPPEDITOR",
"view" : "ListView"
"view" : "ListView"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr4TreeView.json",
"viewType" : "DETREEVIEW",
"resource" : "IBIZBOOK",
"view" : "Usr4TreeView"
}, {
}, {
"modelref" : true,
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0003SF3EditView.json",
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0003SF3EditView.json",
...
@@ -22755,6 +22773,22 @@
...
@@ -22755,6 +22773,22 @@
"layout" : "TABLE"
"layout" : "TABLE"
},
},
"tooltip" : "表单"
"tooltip" : "表单"
}, {
"accUserMode" : 2,
"caption" : "树",
"itemType" : "MENUITEM",
"name" : "menuitem262",
"getPSAppFunc" : {
"modelref" : true,
"id" : "AppFunc140"
},
"getPSLayout" : {
"layout" : "TABLE"
},
"getPSLayoutPos" : {
"layout" : "TABLE"
},
"tooltip" : "树"
}, {
}, {
"accUserMode" : 2,
"accUserMode" : 2,
"caption" : "表格",
"caption" : "表格",
...
@@ -36710,6 +36744,10 @@
...
@@ -36710,6 +36744,10 @@
"modelref" : true,
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr2ListView.json",
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr2ListView.json",
"viewType" : "DELISTVIEW"
"viewType" : "DELISTVIEW"
}, {
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr4TreeView.json",
"viewType" : "DETREEVIEW"
}, {
}, {
"modelref" : true,
"modelref" : true,
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr10EditView.json",
"path" : "PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr10EditView.json",
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录