Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
c2765177
提交
c2765177
编写于
2年前
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tony001 发布系统代码 [后台服务,演示应用]
上级
adddcfa2
变更
34
显示空白字符变更
内嵌
并排
正在显示
34 个修改的文件
包含
4654 行增加
和
53 行删除
+4654
-53
view-config.json
app_Web/public/assets/json/view-config.json
+16
-0
ibizbook_BO_CN_base.ts
...rc/locale/lanres/entities/ibizbook/ibizbook_BO_CN_base.ts
+4
-0
ibizbook_en_US_base.ts
...rc/locale/lanres/entities/ibizbook/ibizbook_en_US_base.ts
+4
-0
ibizbook_zh_CN_base.ts
...rc/locale/lanres/entities/ibizbook/ibizbook_zh_CN_base.ts
+4
-0
ibizsample0021_BO_CN_base.ts
...nres/entities/ibizsample0021/ibizsample0021_BO_CN_base.ts
+55
-1
ibizsample0021_en_US_base.ts
...nres/entities/ibizsample0021/ibizsample0021_en_US_base.ts
+55
-1
ibizsample0021_zh_CN_base.ts
...nres/entities/ibizsample0021/ibizsample0021_zh_CN_base.ts
+55
-1
main-menu-appmenu.ts
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
+2
-2
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+16
-0
ibizbookcustom-view-layout-base.vue
...ookcustom-view-layout/ibizbookcustom-view-layout-base.vue
+784
-0
ibizbookcustom-view-layout.less
...bizbookcustom-view-layout/ibizbookcustom-view-layout.less
+3
-0
ibizbookcustom-view-layout.vue
...ibizbookcustom-view-layout/ibizbookcustom-view-layout.vue
+20
-0
ibizsample0021-grid-view-layout-base.vue
...grid-view-layout/ibizsample0021-grid-view-layout-base.vue
+1909
-0
ibizsample0021-grid-view-layout.less
...021-grid-view-layout/ibizsample0021-grid-view-layout.less
+3
-0
ibizsample0021-grid-view-layout.vue
...0021-grid-view-layout/ibizsample0021-grid-view-layout.vue
+24
-0
page-register.ts
app_Web/src/pages/sample/index/page-register.ts
+2
-0
router.ts
app_Web/src/pages/sample/index/router.ts
+54
-0
router.ts
app_Web/src/pages/ungroup/app-index-view/router.ts
+26
-0
state.ts
app_Web/src/store/modules/view-action/state.ts
+21
-0
ibizbook-ui-service-base.ts
app_Web/src/uiservice/ibizbook/ibizbook-ui-service-base.ts
+1
-0
ibizsample0021-ui-service-base.ts
...iservice/ibizsample0021/ibizsample0021-ui-service-base.ts
+1
-0
main-menu-appmenu-base.vue
.../widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
+52
-0
main-menu-appmenu-model.ts
.../widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
+26
-2
default-searchform-base.vue
...zappeditor/default-searchform/default-searchform-base.vue
+2
-2
default-searchform-base.vue
...s/ibizbook/default-searchform/default-searchform-base.vue
+2
-2
main-grid-base.vue
app_Web/src/widgets/ibizorder/main-grid/main-grid-base.vue
+7
-21
main-grid-model.ts
app_Web/src/widgets/ibizorder/main-grid/main-grid-model.ts
+0
-15
IBIZBOOK.json
...remotemodel/PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json
+6
-0
IBIZSample0021.json
...model/PSMODULES/Sample/PSDATAENTITIES/IBIZSample0021.json
+6
-0
IBIZBOOKCustomView_layout.json
...PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKCustomView_layout.json
+64
-0
IBIZSample0021GridView_layout.json
...SAPPS/Web/PSAPPDEVIEWS/IBIZSample0021GridView_layout.json
+1392
-0
index.json
...atic/remotemodel/PSSYSAPPS/Web/PSAPPINDEXVIEWS/index.json
+2
-2
MainMenu.json
...static/remotemodel/PSSYSAPPS/Web/PSAPPMENUS/MainMenu.json
+2
-2
PSSYSAPP.json
.../resources/static/remotemodel/PSSYSAPPS/Web/PSSYSAPP.json
+34
-2
未找到文件。
app_Web/public/assets/json/view-config.json
浏览文件 @
c2765177
...
...
@@ -2143,6 +2143,14 @@
"viewname"
:
"IBIZBOOKUiActionGridView"
,
"viewtag"
:
"ed78366e2eee279c793da8d909b2a85a"
},
"ibizsample0021gridview_layout"
:
{
"title"
:
"订单表格视图"
,
"caption"
:
"订单"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZSample0021GridView_layout"
,
"viewtag"
:
"ef0aa2f297f599cdbc14fc8393b78a1d"
},
"ibizorderpickupview"
:
{
"title"
:
"订单数据选择视图"
,
"caption"
:
"订单"
,
...
...
@@ -2239,6 +2247,14 @@
"viewname"
:
"IBIZBOOKUsr8GridView"
,
"viewtag"
:
"f775b5fa118588587f6f02af5f79ec1f"
},
"ibizbookcustomview_layout"
:
{
"title"
:
"实体自定义视图"
,
"caption"
:
"实体自定义视图"
,
"viewtype"
:
"DECUSTOMVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZBOOKCustomView_layout"
,
"viewtag"
:
"fa2731c1873f3c86aa065e73cff4667b"
},
"ibizbookusr9gridview"
:
{
"title"
:
"图书表格视图(主状态)"
,
"caption"
:
"图书"
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_BO_CN_base.ts
浏览文件 @
c2765177
...
...
@@ -322,6 +322,10 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
"表格列重置"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"表格列重置"
,
null
),
},
customview_layout
:
{
caption
:
commonLogic
.
appcommonhandle
(
"实体自定义视图"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体自定义视图"
,
null
),
},
usr9gridview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"图书"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"图书表格视图(主状态)"
,
null
),
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_en_US_base.ts
浏览文件 @
c2765177
...
...
@@ -322,6 +322,10 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
"Grid Column Reset"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"表格列重置"
,
null
),
},
customview_layout
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Custom View"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体自定义视图"
,
null
),
},
usr9gridview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Grid Main State"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"图书表格视图(主状态)"
,
null
),
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/ibizbook/ibizbook_zh_CN_base.ts
浏览文件 @
c2765177
...
...
@@ -322,6 +322,10 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
"表格列重置"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"表格列重置"
,
null
),
},
customview_layout
:
{
caption
:
commonLogic
.
appcommonhandle
(
"实体自定义视图"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"实体自定义视图"
,
null
),
},
usr9gridview
:
{
caption
:
commonLogic
.
appcommonhandle
(
"图书"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"图书表格视图(主状态)"
,
null
),
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/ibizsample0021/ibizsample0021_BO_CN_base.ts
浏览文件 @
c2765177
...
...
@@ -45,6 +45,10 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
" 实体工作流动态导航表格视图"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
" 实体工作流动态导航表格视图"
,
null
),
},
gridview_layout
:
{
caption
:
commonLogic
.
appcommonhandle
(
"订单"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单表格视图"
,
null
),
},
},
operationform_form
:
{
details
:
{
...
...
@@ -211,7 +215,7 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"导出"
,
null
),
},
},
gridviewtoolbar_toolbar
:
{
gridview
_layout
toolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"新建"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"新建"
,
null
),
...
...
@@ -283,6 +287,56 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"开始"
,
null
),
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"新建"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"新建"
,
null
),
},
tbitem4
:
{
caption
:
commonLogic
.
appcommonhandle
(
"编辑"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"编辑"
,
null
),
},
deuiaction1
:
{
caption
:
commonLogic
.
appcommonhandle
(
"刷新"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"刷新"
,
null
),
},
tbitem6
:
{
caption
:
commonLogic
.
appcommonhandle
(
"拷贝"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"拷贝"
,
null
),
},
tbitem7
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem8
:
{
caption
:
commonLogic
.
appcommonhandle
(
"删除"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"删除"
,
null
),
},
tbitem9
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem13
:
{
caption
:
commonLogic
.
appcommonhandle
(
"导出"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"导出"
,
null
),
},
tbitem10
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem16
:
{
caption
:
commonLogic
.
appcommonhandle
(
"其它"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"其它"
,
null
),
},
tbitem21
:
{
caption
:
commonLogic
.
appcommonhandle
(
"导出数据模型"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"导出数据模型"
,
null
),
},
tbitem23
:
{
caption
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
},
},
};
return
data
;
}
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/ibizsample0021/ibizsample0021_en_US_base.ts
浏览文件 @
c2765177
...
...
@@ -45,6 +45,10 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
"Workflow Dynamic Navigation View"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
" 实体工作流动态导航表格视图"
,
null
),
},
gridview_layout
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Workflow Start"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单表格视图"
,
null
),
},
},
operationform_form
:
{
details
:
{
...
...
@@ -211,7 +215,7 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"Export {0} Data To Excel"
,
null
),
},
},
gridviewtoolbar_toolbar
:
{
gridview
_layout
toolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"New"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"New"
,
null
),
...
...
@@ -283,6 +287,56 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"开始"
,
null
),
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"New"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"New"
,
null
),
},
tbitem4
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Edit"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Edit {0}"
,
null
),
},
deuiaction1
:
{
caption
:
commonLogic
.
appcommonhandle
(
"刷新"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"刷新"
,
null
),
},
tbitem6
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Copy"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Copy {0}"
,
null
),
},
tbitem7
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem8
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Remove"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Remove {0}"
,
null
),
},
tbitem9
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem13
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Export"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"Export {0} Data To Excel"
,
null
),
},
tbitem10
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem16
:
{
caption
:
commonLogic
.
appcommonhandle
(
"其它"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"其它"
,
null
),
},
tbitem21
:
{
caption
:
commonLogic
.
appcommonhandle
(
"Export Data Model"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"导出数据模型"
,
null
),
},
tbitem23
:
{
caption
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
},
},
};
return
data
;
}
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/locale/lanres/entities/ibizsample0021/ibizsample0021_zh_CN_base.ts
浏览文件 @
c2765177
...
...
@@ -45,6 +45,10 @@ function getLocaleResourceBase(){
caption
:
commonLogic
.
appcommonhandle
(
" 实体工作流动态导航表格视图"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
" 实体工作流动态导航表格视图"
,
null
),
},
gridview_layout
:
{
caption
:
commonLogic
.
appcommonhandle
(
"订单"
,
null
),
title
:
commonLogic
.
appcommonhandle
(
"订单表格视图"
,
null
),
},
},
operationform_form
:
{
details
:
{
...
...
@@ -211,7 +215,7 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"导出"
,
null
),
},
},
gridviewtoolbar_toolbar
:
{
gridview
_layout
toolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"新建"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"新建"
,
null
),
...
...
@@ -283,6 +287,56 @@ function getLocaleResourceBase(){
tip
:
commonLogic
.
appcommonhandle
(
"开始"
,
null
),
},
},
gridviewtoolbar_toolbar
:
{
tbitem3
:
{
caption
:
commonLogic
.
appcommonhandle
(
"新建"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"新建"
,
null
),
},
tbitem4
:
{
caption
:
commonLogic
.
appcommonhandle
(
"编辑"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"编辑"
,
null
),
},
deuiaction1
:
{
caption
:
commonLogic
.
appcommonhandle
(
"刷新"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"刷新"
,
null
),
},
tbitem6
:
{
caption
:
commonLogic
.
appcommonhandle
(
"拷贝"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"拷贝"
,
null
),
},
tbitem7
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem8
:
{
caption
:
commonLogic
.
appcommonhandle
(
"删除"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"删除"
,
null
),
},
tbitem9
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem13
:
{
caption
:
commonLogic
.
appcommonhandle
(
"导出"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"导出"
,
null
),
},
tbitem10
:
{
caption
:
commonLogic
.
appcommonhandle
(
"-"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
""
,
null
),
},
tbitem16
:
{
caption
:
commonLogic
.
appcommonhandle
(
"其它"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"其它"
,
null
),
},
tbitem21
:
{
caption
:
commonLogic
.
appcommonhandle
(
"导出数据模型"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"导出数据模型"
,
null
),
},
tbitem23
:
{
caption
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
tip
:
commonLogic
.
appcommonhandle
(
"数据导入"
,
null
),
},
},
};
return
data
;
}
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/mock/app/main-menu-appmenu/main-menu-appmenu.ts
浏览文件 @
c2765177
...
...
@@ -3605,7 +3605,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc
86
'
,
appfunctag
:
'AppFunc
123
'
,
resourcetag
:
''
,
},
{
...
...
@@ -3661,7 +3661,7 @@ mock.onGet('v7/main-menuappmenu').reply((config: any) => {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc
22
'
,
appfunctag
:
'AppFunc
124
'
,
resourcetag
:
''
,
},
],
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
c2765177
...
...
@@ -2151,6 +2151,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBIZBOOKUiActionGridView"
,
"viewtag"
:
"ed78366e2eee279c793da8d909b2a85a"
},
"ibizsample0021gridview_layout"
:
{
"title"
:
"订单表格视图"
,
"caption"
:
"订单"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZSample0021GridView_layout"
,
"viewtag"
:
"ef0aa2f297f599cdbc14fc8393b78a1d"
},
"ibizorderpickupview"
:
{
"title"
:
"订单数据选择视图"
,
"caption"
:
"订单"
,
...
...
@@ -2247,6 +2255,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname"
:
"IBIZBOOKUsr8GridView"
,
"viewtag"
:
"f775b5fa118588587f6f02af5f79ec1f"
},
"ibizbookcustomview_layout"
:
{
"title"
:
"实体自定义视图"
,
"caption"
:
"实体自定义视图"
,
"viewtype"
:
"DECUSTOMVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZBOOKCustomView_layout"
,
"viewtag"
:
"fa2731c1873f3c86aa065e73cff4667b"
},
"ibizbookusr9gridview"
:
{
"title"
:
"图书表格视图(主状态)"
,
"caption"
:
"图书"
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout-base.vue
0 → 100644
浏览文件 @
c2765177
<
template
>
<div
class=
"app-view-layout ibizbookcustom-view-layout"
:style=
"
{height: '100%', width: '100%', overflow: 'auto'}">
<app-standard-container
name=
"page_container"
:layoutModelDetails=
"layoutModelDetails"
>
</app-standard-container>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Inject
}
from
'vue-property-decorator'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
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
IBIZBOOKUIService
from
'@/uiservice/ibizbook/ibizbook-ui-service'
;
import
{
PanelContainerModel
,
PanelRawitemModel
,
PanelFieldModel
,
PanelControlModel
,
PanelButtonModel
,
PanelUserControlModel
,
PanelTabPanelModel
,
PanelTabPageModel
,
PanelCtrlPosModel
}
from
'@/model/panel-detail'
;
@
Component
({
components
:
{
},
})
export
default
class
IBIZBOOKCustomView_layoutBase
extends
Vue
{
/**
* 实体服务对象
*
* @type {IBIZBOOKService}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
appEntityService
:
IBIZBOOKService
=
new
IBIZBOOKService
;
/**
* 实体UI服务对象
*
* @type IBIZBOOKUIService
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
appUIService
:
IBIZBOOKUIService
=
new
IBIZBOOKUIService
();
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZBOOKCustomView_layoutBase
*/
@
Emit
()
public
viewDatasChange
(
val
:
any
):
any
{
return
val
;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZBOOKCustomView_layoutBase
*/
@
Prop
()
public
viewdata
!
:
string
;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZBOOKCustomView_layoutBase
*/
@
Prop
()
public
viewparam
!
:
string
;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZBOOKCustomView_layoutBase
*/
@
Prop
({
default
:
true
})
public
viewDefaultUsage
!
:
boolean
;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZBOOKCustomView_layoutBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
viewtag
:
string
=
'fa2731c1873f3c86aa065e73cff4667b'
;
/**
* 视图类型
*
* @type {string}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
viewType
:
string
=
'DECUSTOMVIEW'
;
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
customViewNavContexts
:
any
=
{
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
customViewParams
:
any
=
{
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
model
:
any
=
{
srfCaption
:
'entities.ibizbook.views.customview_layout.caption'
,
srfTitle
:
'entities.ibizbook.views.customview_layout.title'
,
srfSubTitle
:
'entities.ibizbook.views.customview_layout.subtitle'
,
dataInfo
:
''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZBOOKCustomView_layoutBase
*/
@
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 IBIZBOOKCustomView_layoutBase
*/
@
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 IBIZBOOKCustomView_layoutBase
*/
public
containerModel
:
any
=
{
};
/**
* 计数器刷新
*
* @memberof IBIZBOOKCustomView_layoutBase
*/
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 IBIZBOOKCustomView_layoutBase
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 视图布局顶级成员名称
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
rootLayoutDetailNames
:
string
[]
=
[
'page_container'
];
/**
* 视图布局面板项模型对象
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
layoutItems
:
any
=
{
page_container
:{
name
:
'page_container'
,
caption
:
'容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'FLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[]
,
dataRegionType
:
'INHERIT'
}
};
/**
* 视图布局是否加载
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
true
;
/**
* 视图布局数据
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
layoutData
:
any
=
{};
-
/**
* 视图布局面板模型对象
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
layoutModelDetails
:
any
=
{
page_container
:
new
PanelContainerModel
({
name
:
'page_container'
,
caption
:
'容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'FLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[]
,
dataRegionType
:
'INHERIT'
})
};
/**
* 初始化布局
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
async
initLayout
()
{
if
(
this
.
rootLayoutDetailNames
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
rootLayoutDetailNames
.
length
;
i
++
)
{
const
name
=
this
.
rootLayoutDetailNames
[
i
];
const
rootItem
=
this
.
layoutItems
[
name
];
if
(
!
rootItem
)
{
return
;
}
await
this
.
initLayoutItem
(
rootItem
);
}
}
return
true
;
}
/**
* 初始化布局项
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
layoutData
[
name
]
=
layoutModelDetail
.
getData
();
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
}
else
{
layoutModelDetail
.
setIndex
(
index
);
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
.
getData
());
}
if
(
layoutModelDetail
&&
layoutModelDetail
.
details
)
{
if
(
layoutModelDetail
.
dataRegionType
===
'MULTIDATA'
)
{
const
multiData
=
layoutModelDetail
.
getData
();
if
(
multiData
&&
multiData
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
multiData
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
layoutModelDetail
.
details
.
length
;
j
++
)
{
const
key
=
layoutModelDetail
.
details
[
j
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
i
);
}
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
layoutModelDetail
.
details
.
length
;
i
++
)
{
const
key
=
layoutModelDetail
.
details
[
i
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
}
}
/**
* 处理值改变
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
handleValueChange
(
$event
:
{
name
:
string
,
value
:
any
})
{
if
(
!
$event
||
!
$event
.
name
||
Object
.
is
(
$event
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
$event
.
name
))
{
return
;
}
this
.
layoutData
[
$event
.
name
]
=
$event
.
value
;
}
/**
* 获取按钮行为xData
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
getButtonXData
(
name
:
string
):
any
{
let
xData
=
null
;
let
curLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
==
name
)
{
curLayoutModel
=
layoutModel
;
}
})
// 获取数据容器
if
(
curLayoutModel
)
{
const
getDataArea
=
(
cLayoutModel
:
any
):
any
=>
{
let
dataArea
=
null
;
let
parentLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
pLayoutModel
:
any
)
=>
{
if
(
pLayoutModel
.
name
==
cLayoutModel
.
parentName
)
{
parentLayoutModel
=
pLayoutModel
;
if
(
parentLayoutModel
.
dataRegionType
==
'SINGLEDATA'
||
parentLayoutModel
.
dataRegionType
==
'MULTIDATA'
)
{
dataArea
=
parentLayoutModel
;
}
}
})
if
(
!
dataArea
&&
parentLayoutModel
)
{
dataArea
=
getDataArea
(
parentLayoutModel
);
}
return
dataArea
;
}
xData
=
getDataArea
(
curLayoutModel
);
}
// 获取当前视图
if
(
!
xData
)
{
xData
=
this
;
}
return
xData
;
}
/**
* 处理按钮点击
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
handleButtonClick
(
name
:
string
,
$event
?:
any
)
{
const
datas
:
any
[]
=
[
this
.
layoutData
];
const
xData
:
any
=
this
.
getButtonXData
(
name
);
const
paramJO
:
any
=
{};
const
contextJO
:
any
=
{};
const
_this
:
any
=
this
;
}
/**
* 引擎初始化
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
engineInit
():
void
{
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
navDataService
=
NavDataService
.
getInstance
();
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
serviceStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZBOOKCustomView_layoutBase
*/
@
Prop
()
public
portletState
?:
any
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
portletStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
formDruipartEvent
:
Subscription
|
undefined
;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
context
:
any
=
{};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
viewparams
:
any
=
{};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
viewCacheData
:
any
;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 解析视图参数
*
* @public
* @memberof IBIZBOOKCustomView_layoutBase
*/
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 IBIZBOOKCustomView_layoutBase
*/
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 IBIZBOOKCustomView_layoutBase
*/
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 IBIZBOOKCustomView_layoutBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavData
({
id
:
'ibizbookcustom-view-layout'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
ibizbook
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
initNavDataWithTab
(
data
:
any
=
null
,
isOnlyAdd
:
boolean
=
true
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
!
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavDataByOnly
({
id
:
'ibizbookcustom-view-layout'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
ibizbook
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
},
isOnlyAdd
);
}
}
/**
* Vue声明周期
*
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZBOOKCustomView_layoutBase
*/
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
,
'ibizbookcustom-view-layout'
)){
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
,
'IBIZBOOKCustomView_layout'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
_this
.
refresh
();
}
})
}
}
/**
* 销毁之前
*
* @memberof IBIZBOOKCustomView_layoutBase
*/
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
.
engine
)
{
_this
.
engine
.
destroy
();
}
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
afterMounted
(){
const
_this
:
any
=
this
;
_this
.
engineInit
();
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZBOOKCustomView_layoutBase
*/
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
);
}
}
/**
* 销毁视图回调
*
* @memberof IBIZBOOKCustomView_layoutBase
*/
public
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZBOOKCustomView_layoutBase
*/
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
.
serviceStateEvent
)
{
this
.
serviceStateEvent
.
unsubscribe
();
}
// 销毁计数器定时器
if
(
this
.
counterServiceArray
&&
this
.
counterServiceArray
.
length
>
0
){
this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
destroyCounter
&&
item
.
destroyCounter
instanceof
Function
){
item
.
destroyCounter
();
}
})
}
if
(
this
.
portletStateEvent
){
this
.
portletStateEvent
.
unsubscribe
();
}
if
(
this
.
formDruipartEvent
)
{
this
.
formDruipartEvent
.
unsubscribe
();
}
this
.
viewState
.
complete
();
}
}
</
script
>
<
style
lang=
'less'
>
@import './ibizbookcustom-view-layout.less';
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout.less
0 → 100644
浏览文件 @
c2765177
.ibizbookcustom-view-layout {
display: block;
}
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout.vue
0 → 100644
浏览文件 @
c2765177
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZBOOKCustomView_layoutBase
from
'./ibizbookcustom-view-layout-base.vue'
;
@
Component
({
components
:
{
},
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
IBIZBOOKCustomView_layout
extends
IBIZBOOKCustomView_layoutBase
{
}
</
script
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizsample0021-grid-view-layout/ibizsample0021-grid-view-layout-base.vue
0 → 100644
浏览文件 @
c2765177
<
template
>
<div
class=
"app-view-layout ibizsample0021-grid-view-layout"
:style=
"
{height: '100%', width: '100%', overflow: 'auto'}">
<app-standard-container
name=
"page_container"
:layoutModelDetails=
"layoutModelDetails"
>
<template
#
container_grid1
>
<app-simpleflex-container
name=
"container_grid1"
:layoutModelDetails=
"layoutModelDetails"
>
<template
#
container1
>
<app-simpleflex-container
name=
"container1"
:layoutModelDetails=
"layoutModelDetails"
>
<template
#
searchform
>
<app-ctrl-pos
name=
"searchform"
:layoutModelDetails=
"layoutModelDetails"
>
<view
_searchform
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:showBusyIndicator=
"true"
loaddraftAction=
"FilterGetDraft"
loadAction=
"FilterGet"
name=
"searchform"
ref=
'searchform'
@
search=
"searchform_search($event)"
@
load=
"searchform_load($event)"
@
save=
"searchform_save($event)"
@
closeview=
"closeView($event)"
>
</view
_searchform
>
</app-ctrl-pos>
</
template
>
</app-simpleflex-container>
</template>
<
template
#
container2
>
<app-simpleflex-container
name=
"container2"
:layoutModelDetails=
"layoutModelDetails"
>
<template
#
toolbar
>
<app-ctrl-pos
name=
"toolbar"
:layoutModelDetails=
"layoutModelDetails"
>
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem3.visabled"
:disabled=
"toolBarModels.tbitem3.disabled"
class=
' deepskyblueToolBar'
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem3' }, $event)">
<i
class=
'fa fa-file-text-o'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem3.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem3.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem4.visabled"
:disabled=
"toolBarModels.tbitem4.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem4' }, $event)">
<span
class=
'caption'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem4.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem4.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.deuiaction1.visabled"
:disabled=
"toolBarModels.deuiaction1.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'deuiaction1' }, $event)">
<i
class=
'fa fa-refresh'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.deuiaction1.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.deuiaction1.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem6.visabled"
:disabled=
"toolBarModels.tbitem6.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem6' }, $event)">
<span
class=
'caption'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem6.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem6.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem8.visabled"
:disabled=
"toolBarModels.tbitem8.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem8' }, $event)">
<span
class=
'caption'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem8.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem8.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<app-export-excel
:item=
"toolBarModels.tbitem13"
:caption=
"$t('entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem13.caption')"
@
exportexcel=
"toolbar_click(
{ tag: 'tbitem13' }, $event)">
</app-export-excel>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem13.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<dropdown
v-show=
"toolBarModels.tbitem16.visabled"
trigger=
'click'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
class=
''
>
<i
class=
''
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem16.caption'
)
}}
</span>
<icon
type=
"ios-arrow-down"
></icon>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem16.tip'
)
}}
</div>
</tooltip>
<dropdown-menu
slot=
'list'
>
<dropdown-item>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem21.visabled"
:disabled=
"toolBarModels.tbitem21.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem21' }, $event)">
<i
class=
'fa fa-download'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem21.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem21.tip'
)
}}
</div>
</tooltip>
</dropdown-item>
<dropdown-item>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"toolBarModels.tbitem23.visabled"
:disabled=
"toolBarModels.tbitem23.disabled"
class=
''
v-loading:i-button
@
click=
"toolbar_click(
{ tag: 'tbitem23' }, $event)">
<i
class=
'fa fa-upload'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem23.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizsample0021.gridview_layouttoolbar_toolbar.tbitem23.tip'
)
}}
</div>
</tooltip>
</dropdown-item>
</dropdown-menu>
</dropdown>
</div>
</app-ctrl-pos>
</
template
>
</app-simpleflex-container>
</template>
</app-simpleflex-container>
</template>
<
template
#
container3
>
<app-standard-container
name=
"container3"
:layoutModelDetails=
"layoutModelDetails"
>
<template
#
grid
>
<app-ctrl-pos
name=
"grid"
:layoutModelDetails=
"layoutModelDetails"
>
<view
_grid
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:isSingleSelect=
"isSingleSelect"
:showBusyIndicator=
"true"
:isOpenEdit=
"false"
:gridRowActiveMode=
"gridRowActiveMode"
:isformDruipart=
"isformDruipart"
@
save=
"onSave"
updateAction=
""
removeAction=
"Remove"
loaddraftAction=
""
loadAction=
""
createAction=
""
fetchAction=
"FetchDefault"
:newdata=
"newdata"
:opendata=
"opendata"
name=
"grid"
ref=
'grid'
@
rowdblclick=
"grid_rowdblclick($event)"
@
selectionchange=
"grid_selectionchange($event)"
@
remove=
"grid_remove($event)"
@
load=
"grid_load($event)"
@
beforeload=
"grid_beforeload($event)"
@
closeview=
"closeView($event)"
>
</view
_grid
>
</app-ctrl-pos>
</
template
>
</app-standard-container>
</template>
</app-standard-container>
</div>
</template>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Inject
}
from
'vue-property-decorator'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
IBIZSample0021Service
from
'@/service/ibizsample0021/ibizsample0021-service'
;
import
IBIZSample0021AuthService
from
'@/authservice/ibizsample0021/ibizsample0021-auth-service'
;
import
GridViewEngine
from
'@engine/view/grid-view-engine'
;
import
IBIZSample0021UIService
from
'@/uiservice/ibizsample0021/ibizsample0021-ui-service'
;
import
{
PanelContainerModel
,
PanelRawitemModel
,
PanelFieldModel
,
PanelControlModel
,
PanelButtonModel
,
PanelUserControlModel
,
PanelTabPanelModel
,
PanelTabPageModel
,
PanelCtrlPosModel
}
from
'@/model/panel-detail'
;
import
CodeListService
from
"@/codelist/codelist-service"
;
@
Component
({
components
:
{
},
})
export
default
class
IBIZSample0021GridView_layoutBase
extends
Vue
{
/**
* 实体服务对象
*
* @type {IBIZSample0021Service}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
appEntityService
:
IBIZSample0021Service
=
new
IBIZSample0021Service
;
/**
* 实体UI服务对象
*
* @type IBIZSample0021UIService
* @memberof IBIZSample0021GridView_layoutBase
*/
public
appUIService
:
IBIZSample0021UIService
=
new
IBIZSample0021UIService
();
/**
* 数据变化
*
* @param {*} val
* @returns {*}
* @memberof IBIZSample0021GridView_layoutBase
*/
@
Emit
()
public
viewDatasChange
(
val
:
any
):
any
{
return
val
;
}
/**
* 传入视图上下文
*
* @type {string}
* @memberof IBIZSample0021GridView_layoutBase
*/
@
Prop
()
public
viewdata
!
:
string
;
/**
* 传入视图参数
*
* @type {string}
* @memberof IBIZSample0021GridView_layoutBase
*/
@
Prop
()
public
viewparam
!
:
string
;
/**
* 视图默认使用
*
* @type {boolean}
* @memberof IBIZSample0021GridView_layoutBase
*/
@
Prop
({
default
:
true
})
public
viewDefaultUsage
!
:
boolean
;
/**
* 视图默认使用
*
* @type {string}
* @memberof IBIZSample0021GridView_layoutBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 视图标识
*
* @type {string}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
viewtag
:
string
=
'ef0aa2f297f599cdbc14fc8393b78a1d'
;
/**
* 视图类型
*
* @type {string}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
viewType
:
string
=
'DEGRIDVIEW'
;
/**
* 自定义视图导航上下文集合
*
* @type {*}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
customViewNavContexts
:
any
=
{
};
/**
* 自定义视图导航参数集合
*
* @type {*}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
customViewParams
:
any
=
{
};
/**
* 视图模型数据
*
* @type {*}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
model
:
any
=
{
srfCaption
:
'entities.ibizsample0021.views.gridview_layout.caption'
,
srfTitle
:
'entities.ibizsample0021.views.gridview_layout.title'
,
srfSubTitle
:
'entities.ibizsample0021.views.gridview_layout.subtitle'
,
dataInfo
:
''
}
/**
* 视图参数变化
*
* @param {*} newVal
* @param {*} oldVal
* @memberof IBIZSample0021GridView_layoutBase
*/
@
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 IBIZSample0021GridView_layoutBase
*/
@
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 IBIZSample0021GridView_layoutBase
*/
public
containerModel
:
any
=
{
view_searchform
:
{
name
:
'searchform'
,
type
:
'SEARCHFORM'
},
view_toolbar
:
{
name
:
'toolbar'
,
type
:
'TOOLBAR'
},
view_grid
:
{
name
:
'grid'
,
type
:
'GRID'
},
wflinks
:
[],
};
/**
* 视图刷新
*
* @param {*} args
* @memberof IBIZSample0021GridView_layoutBase
*/
public
refresh
(
args
?:
any
):
void
{
const
refs
:
any
=
this
.
$refs
;
if
(
refs
&&
refs
.
grid
)
{
refs
.
grid
.
refresh
();
}
}
/**
* 计数器刷新
*
* @memberof IBIZSample0021GridView_layoutBase
*/
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 IBIZSample0021GridView_layoutBase
*/
public
viewState
:
Subject
<
ViewState
>
=
new
Subject
();
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZSample0021GridView_layout
*/
public
toolBarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
actiontarget
:
'NONE'
,
caption
:
'新建'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
}
},
tbitem4
:
{
name
:
'tbitem4'
,
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
:
'Refresh'
,
target
:
''
}
},
tbitem6
:
{
name
:
'tbitem6'
,
actiontarget
:
'NONE'
,
caption
:
'拷贝'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Copy'
,
target
:
'SINGLEKEY'
}
},
tbitem7
:
{
name
:
'tbitem7'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem8
:
{
name
:
'tbitem8'
,
actiontarget
:
'NONE'
,
caption
:
'删除'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Remove'
,
target
:
'MULTIKEY'
}
},
tbitem9
:
{
name
:
'tbitem9'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem13
:
{
name
:
'tbitem13'
,
actiontarget
:
'NONE'
,
caption
:
'导出'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ExportExcel'
,
target
:
''
},
MaxRowCount
:
1000
},
tbitem10
:
{
name
:
'tbitem10'
,
type
:
'SEPERATOR'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem16
:
{
name
:
'tbitem16'
,
caption
:
'其它'
,
disabled
:
false
,
type
:
'ITEMS'
,
visabled
:
true
,
dataaccaction
:
''
,
uiaction
:
{
}
},
tbitem21
:
{
name
:
'tbitem21'
,
actiontarget
:
'NONE'
,
caption
:
'导出数据模型'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ExportModel'
,
target
:
''
}
},
tbitem23
:
{
name
:
'tbitem23'
,
actiontarget
:
'NONE'
,
caption
:
'数据导入'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Import'
,
target
:
''
}
},
};
/**
* 视图布局顶级成员名称
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
public
rootLayoutDetailNames
:
string
[]
=
[
'page_container'
];
/**
* 视图布局面板项模型对象
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
public
layoutItems
:
any
=
{
searchform
:{
name
:
'searchform'
,
caption
:
'搜索表单'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'CTRLPOS'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
},
container1
:{
name
:
'container1'
,
caption
:
'面板容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'SIMPLEFLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
6
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_grid1'
,
panel
:
this
,
details
:[
'searchform'
]
,
dataRegionType
:
'INHERIT'
},
toolbar
:{
name
:
'toolbar'
,
caption
:
'工具栏'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'CTRLPOS'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container2'
,
panel
:
this
},
container2
:{
name
:
'container2'
,
caption
:
'面板容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'SIMPLEFLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
6
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_grid1'
,
panel
:
this
,
details
:[
'toolbar'
]
,
dataRegionType
:
'INHERIT'
},
container_grid1
:{
name
:
'container_grid1'
,
caption
:
'栅格容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'SIMPLEFLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'page_container'
,
panel
:
this
,
details
:[
'container1'
,
'container2'
]
,
dataRegionType
:
'INHERIT'
},
grid
:{
name
:
'grid'
,
caption
:
'表格'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'CTRLPOS'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container3'
,
panel
:
this
},
container3
:{
name
:
'container3'
,
caption
:
'容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'FLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'page_container'
,
panel
:
this
,
details
:[
'grid'
]
,
dataRegionType
:
'INHERIT'
},
page_container
:{
name
:
'page_container'
,
caption
:
'容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'FLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[
'container_grid1'
,
'container3'
]
,
dataRegionType
:
'INHERIT'
}
};
/**
* 视图布局是否加载
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
public
isLayoutLoadding
:
boolean
=
true
;
/**
* 视图布局数据
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
public
layoutData
:
any
=
{};
-
/**
* 视图布局面板模型对象
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
public
layoutModelDetails
:
any
=
{
searchform
:
new
PanelCtrlPosModel
({
name
:
'searchform'
,
caption
:
'搜索表单'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'CTRLPOS'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container1'
,
panel
:
this
}),
container1
:
new
PanelContainerModel
({
name
:
'container1'
,
caption
:
'面板容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'SIMPLEFLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
6
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_grid1'
,
panel
:
this
,
details
:[
'searchform'
]
,
dataRegionType
:
'INHERIT'
}),
toolbar
:
new
PanelCtrlPosModel
({
name
:
'toolbar'
,
caption
:
'工具栏'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'CTRLPOS'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container2'
,
panel
:
this
}),
container2
:
new
PanelContainerModel
({
name
:
'container2'
,
caption
:
'面板容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'SIMPLEFLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
6
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container_grid1'
,
panel
:
this
,
details
:[
'toolbar'
]
,
dataRegionType
:
'INHERIT'
}),
container_grid1
:
new
PanelContainerModel
({
name
:
'container_grid1'
,
caption
:
'栅格容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'SIMPLEFLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'page_container'
,
panel
:
this
,
details
:[
'container1'
,
'container2'
]
,
dataRegionType
:
'INHERIT'
}),
grid
:
new
PanelCtrlPosModel
({
name
:
'grid'
,
caption
:
'表格'
,
isShowCaption
:
true
,
sysCss
:
''
,
itemType
:
'CTRLPOS'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
''
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'container3'
,
panel
:
this
}),
container3
:
new
PanelContainerModel
({
name
:
'container3'
,
caption
:
'容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'FLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
-
1
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
parentName
:
'page_container'
,
panel
:
this
,
details
:[
'grid'
]
,
dataRegionType
:
'INHERIT'
}),
page_container
:
new
PanelContainerModel
({
name
:
'page_container'
,
caption
:
'容器'
,
titleBarCloseMode
:
0
,
isShowCaption
:
false
,
sysCss
:
''
,
itemType
:
'CONTAINER'
,
itemStyle
:
'DEFAULT'
,
visible
:
true
,
disabled
:
false
,
layout
:
'FLEX'
,
layoutPos
:
''
,
layoutHeight
:
0
,
heightMode
:
''
,
layoutWidth
:
0
,
widthMode
:
''
,
spacingBottom
:
''
,
spacingLeft
:
''
,
spacingRight
:
''
,
spacingTop
:
''
,
hAlignSelf
:
''
,
vAlignSelf
:
''
,
flexGrow
:
0
,
flexParams
:{
align
:
''
,
dir
:
''
,
vAlign
:
''
},
panel
:
this
,
details
:[
'container_grid1'
,
'container3'
]
,
dataRegionType
:
'INHERIT'
})
};
/**
* 初始化布局
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
public
async
initLayout
()
{
if
(
this
.
rootLayoutDetailNames
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
this
.
rootLayoutDetailNames
.
length
;
i
++
)
{
const
name
=
this
.
rootLayoutDetailNames
[
i
];
const
rootItem
=
this
.
layoutItems
[
name
];
if
(
!
rootItem
)
{
return
;
}
await
this
.
initLayoutItem
(
rootItem
);
}
}
return
true
;
}
/**
* 初始化布局项
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
public
async
initLayoutItem
(
layoutModelItem
:
any
,
index
:
number
=
0
)
{
const
{
name
}
=
layoutModelItem
;
const
layoutModelDetail
=
Util
.
getLayoutItemInstance
(
layoutModelItem
);
if
(
!
index
)
{
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
layoutData
[
name
]
=
layoutModelDetail
.
getData
();
this
.
$set
(
this
.
layoutData
,
name
,
layoutModelDetail
.
getData
());
this
.
$set
(
this
.
layoutModelDetails
,
name
,
layoutModelDetail
);
}
else
{
layoutModelDetail
.
setIndex
(
index
);
await
layoutModelDetail
.
load
(
this
.
context
,
this
.
viewparams
);
this
.
$set
(
this
.
layoutModelDetails
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
);
this
.
$set
(
this
.
layoutData
,
`
${
name
}
_
${
index
}
`
,
layoutModelDetail
.
getData
());
}
if
(
layoutModelDetail
&&
layoutModelDetail
.
details
)
{
if
(
layoutModelDetail
.
dataRegionType
===
'MULTIDATA'
)
{
const
multiData
=
layoutModelDetail
.
getData
();
if
(
multiData
&&
multiData
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
multiData
.
length
;
i
++
)
{
for
(
let
j
=
0
;
j
<
layoutModelDetail
.
details
.
length
;
j
++
)
{
const
key
=
layoutModelDetail
.
details
[
j
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
i
);
}
}
}
}
}
else
{
for
(
let
i
=
0
;
i
<
layoutModelDetail
.
details
.
length
;
i
++
)
{
const
key
=
layoutModelDetail
.
details
[
i
];
if
(
this
.
layoutItems
[
key
])
{
await
this
.
initLayoutItem
(
this
.
layoutItems
[
key
],
index
);
}
}
}
}
}
/**
* 处理值改变
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
public
handleValueChange
(
$event
:
{
name
:
string
,
value
:
any
})
{
if
(
!
$event
||
!
$event
.
name
||
Object
.
is
(
$event
.
name
,
''
)
||
!
this
.
layoutData
.
hasOwnProperty
(
$event
.
name
))
{
return
;
}
this
.
layoutData
[
$event
.
name
]
=
$event
.
value
;
}
/**
* 获取按钮行为xData
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
public
getButtonXData
(
name
:
string
):
any
{
let
xData
=
null
;
let
curLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
==
name
)
{
curLayoutModel
=
layoutModel
;
}
})
// 获取数据容器
if
(
curLayoutModel
)
{
const
getDataArea
=
(
cLayoutModel
:
any
):
any
=>
{
let
dataArea
=
null
;
let
parentLayoutModel
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
pLayoutModel
:
any
)
=>
{
if
(
pLayoutModel
.
name
==
cLayoutModel
.
parentName
)
{
parentLayoutModel
=
pLayoutModel
;
if
(
parentLayoutModel
.
dataRegionType
==
'SINGLEDATA'
||
parentLayoutModel
.
dataRegionType
==
'MULTIDATA'
)
{
dataArea
=
parentLayoutModel
;
}
}
})
if
(
!
dataArea
&&
parentLayoutModel
)
{
dataArea
=
getDataArea
(
parentLayoutModel
);
}
return
dataArea
;
}
xData
=
getDataArea
(
curLayoutModel
);
// 获取激活部件
if
(
!
xData
)
{
const
xDataControlName
=
"grid"
;
let
xDataControl
=
null
;
Object
.
values
(
this
.
layoutModelDetails
).
forEach
((
layoutModel
:
any
)
=>
{
if
(
layoutModel
.
name
.
toLowerCase
()
==
xDataControlName
.
toLowerCase
())
{
xDataControl
=
layoutModel
;
return
}
})
xData
=
xDataControl
;
}
}
// 获取当前视图
if
(
!
xData
)
{
xData
=
this
;
}
return
xData
;
}
/**
* 处理按钮点击
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
public
handleButtonClick
(
name
:
string
,
$event
?:
any
)
{
const
datas
:
any
[]
=
[
this
.
layoutData
];
const
xData
:
any
=
this
.
getButtonXData
(
name
);
const
paramJO
:
any
=
{};
const
contextJO
:
any
=
{};
const
_this
:
any
=
this
;
}
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
engine
:
GridViewEngine
=
new
GridViewEngine
();
/**
* 引擎初始化
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
public
engineInit
():
void
{
this
.
engine
.
init
({
view
:
this
,
opendata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
opendata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
newdata
:
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
=>
{
this
.
newdata
(
args
,
fullargs
,
params
,
$event
,
xData
);
},
grid
:
this
.
$refs
.
grid
,
searchform
:
this
.
$refs
.
searchform
,
keyPSDEField
:
'ibizsample0021'
,
majorPSDEField
:
'ibizsample0021name'
,
isLoadDefault
:
true
,
});
}
/**
* 应用导航服务
*
* @type {*}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
navDataService
=
NavDataService
.
getInstance
();
/**
* 导航服务事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
serviceStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态对象
*
* @type {*}
* @memberof IBIZSample0021GridView_layoutBase
*/
@
Prop
()
public
portletState
?:
any
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
portletStateEvent
:
Subscription
|
undefined
;
/**
* 门户部件状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
formDruipartEvent
:
Subscription
|
undefined
;
/**
* 应用上下文
*
* @type {*}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
context
:
any
=
{};
/**
* 视图参数
*
* @type {*}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
viewparams
:
any
=
{};
/**
* 视图缓存数据
*
* @type {*}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
viewCacheData
:
any
;
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 解析视图参数
*
* @public
* @memberof IBIZSample0021GridView_layoutBase
*/
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
,{
'ibizsample0021'
:
inputvalue
});
}
//初始化视图唯一标识
Object
.
assign
(
this
.
context
,{
srfsessionid
:
this
.
$util
.
createUUID
()});
this
.
handleCustomViewData
();
//初始化导航数据
this
.
initNavDataWithRoute
();
}
/**
* 处理自定义视图数据
*
* @memberof IBIZSample0021GridView_layoutBase
*/
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 IBIZSample0021GridView_layoutBase
*/
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 IBIZSample0021GridView_layoutBase
*/
public
initNavDataWithRoute
(
data
:
any
=
null
,
isNew
:
boolean
=
false
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavData
({
id
:
'ibizsample0021-grid-view-layout'
,
tag
:
this
.
viewtag
,
srfkey
:
isNew
?
null
:
this
.
context
.
ibizsample0021
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
});
}
}
/**
* 初始化导航数据(分页模式)
*
* @memberof IBIZSample0021GridView_layoutBase
*/
public
initNavDataWithTab
(
data
:
any
=
null
,
isOnlyAdd
:
boolean
=
true
,
isAlways
:
boolean
=
false
){
if
(
isAlways
||
(
this
.
viewDefaultUsage
&&
!
Object
.
is
(
this
.
navModel
,
"route"
))
){
this
.
navDataService
.
addNavDataByOnly
({
id
:
'ibizsample0021-grid-view-layout'
,
tag
:
this
.
viewtag
,
srfkey
:
this
.
context
.
ibizsample0021
,
title
:
this
.
$t
(
this
.
model
.
srfCaption
),
data
:
data
,
context
:
this
.
context
,
viewparams
:
this
.
viewparams
,
path
:
this
.
$route
.
fullPath
},
isOnlyAdd
);
}
}
/**
* Vue声明周期
*
* @memberof IBIZSample0021GridView_layoutBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof IBIZSample0021GridView_layoutBase
*/
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
,
'ibizsample0021-grid-view-layout'
)){
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
,
'IBIZSample0021GridView_layout'
)){
return
;
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
_this
.
refresh
();
}
})
}
if
(
this
.
formDruipart
){
this
.
formDruipartEvent
=
this
.
formDruipart
.
subscribe
((
res
:
any
)
=>
{
if
(
Object
.
is
(
res
.
action
,
'save'
)){
this
.
viewState
.
next
({
tag
:
'grid'
,
action
:
'save'
,
data
:
this
.
viewparams
});
}
if
(
Object
.
is
(
res
.
action
,
'load'
)){
const
_this
:
any
=
this
;
_this
.
engine
.
load
(
res
.
data
,
true
);
}
});
}
}
/**
* 销毁之前
*
* @memberof IBIZSample0021GridView_layoutBase
*/
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
.
engine
)
{
_this
.
engine
.
destroy
();
}
}
/**
* Vue声明周期(组件初始化完毕)
*
* @memberof IBIZSample0021GridView_layoutBase
*/
public
mounted
()
{
this
.
afterMounted
();
}
/**
* 执行mounted后的逻辑
*
* @memberof IBIZSample0021GridView_layoutBase
*/
public
afterMounted
(){
const
_this
:
any
=
this
;
_this
.
engineInit
();
if
(
_this
.
loadModel
&&
_this
.
loadModel
instanceof
Function
)
{
_this
.
loadModel
();
}
}
/**
* searchform 部件 search 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0021GridView_layoutBase
*/
public
searchform_search
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'search'
,
$event
);
}
/**
* searchform 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0021GridView_layoutBase
*/
public
searchform_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'load'
,
$event
);
}
/**
* searchform 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0021GridView_layoutBase
*/
public
searchform_save
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'searchform'
,
'save'
,
$event
);
}
/**
* toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0021GridView_layoutBase
*/
public
toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
toolbar_tbitem3_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
toolbar_tbitem4_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
toolbar_deuiaction1_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem6'
))
{
this
.
toolbar_tbitem6_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem24'
))
{
this
.
toolbar_tbitem24_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
toolbar_tbitem25_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
toolbar_tbitem8_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem13'
))
{
this
.
toolbar_tbitem13_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem11'
))
{
this
.
toolbar_tbitem11_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem21'
))
{
this
.
toolbar_tbitem21_click
(
null
,
''
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem23'
))
{
this
.
toolbar_tbitem23_click
(
null
,
''
,
$event2
);
}
}
/**
* grid 部件 rowdblclick 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0021GridView_layoutBase
*/
public
grid_rowdblclick
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'rowdblclick'
,
$event
);
}
/**
* grid 部件 selectionchange 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0021GridView_layoutBase
*/
public
grid_selectionchange
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'selectionchange'
,
$event
);
}
/**
* grid 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0021GridView_layoutBase
*/
public
grid_remove
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'remove'
,
$event
);
}
/**
* grid 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0021GridView_layoutBase
*/
public
grid_load
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'load'
,
$event
);
}
/**
* grid 部件 beforeload 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IBIZSample0021GridView_layoutBase
*/
public
grid_beforeload
(
$event
:
any
,
$event2
?:
any
)
{
this
.
engine
.
onCtrlEvent
(
'grid'
,
'beforeload'
,
$event
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem3_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZSample0021"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem4_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZSample0021"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_deuiaction1_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Refresh
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZSample0021"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem6_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZSample0021"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem24_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZSample0021"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem25_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZSample0021"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem8_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZSample0021"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem13_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ExportExcel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZSample0021"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem11_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZSample0021"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem21_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ExportModel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZSample0021"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
toolbar_tbitem23_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 参数
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
// _this 指向容器对象
const
_this
:
any
=
this
;
let
paramJO
:
any
=
{};
let
contextJO
:
any
=
{};
xData
=
this
.
$refs
.
grid
;
if
(
xData
.
getDatas
&&
xData
.
getDatas
instanceof
Function
)
{
datas
=
[...
xData
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Import
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZSample0021"
);
}
/**
* 打开新建数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof IBIZSample0021GridView_layout
*/
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
}
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
delete
tempContext
.
ibizsample0021
;
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizsample0021s'
,
parameterName
:
'ibizsample0021'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
_data
:
any
=
{
w
:
(
new
Date
().
getTime
())
};
Object
.
assign
(
_data
,
data
);
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
_data
);
this
.
$router
.
push
(
routePath
);
}
openIndexViewTab
(
data
);
}
/**
* 打开编辑数据视图
*
* @param {any[]} args
* @param {*} [params]
* @param {*} [fullargs]
* @param {*} [$event]
* @param {*} [xData]
* @memberof IBIZSample0021GridView_layout
*/
public
opendata
(
args
:
any
[],
fullargs
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
if
(
!
this
.
viewDefaultUsage
){
if
(
Object
.
is
(
this
.
navModel
,
"route"
)){
this
.
initNavDataWithRoute
(
this
.
viewCacheData
,
false
,
true
);
}
else
{
this
.
initNavDataWithTab
(
this
.
viewCacheData
,
false
,
true
);
}
}
let
localContext
:
any
=
null
;
let
localViewParam
:
any
=
null
;
const
data
:
any
=
{};
let
tempContext
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
if
(
args
.
length
>
0
){
Object
.
assign
(
tempContext
,
args
[
0
]);
}
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizsample0021s'
,
parameterName
:
'ibizsample0021'
},
{
pathName
:
'editview'
,
parameterName
:
'editview'
},
];
const
_this
:
any
=
this
;
if
(
fullargs
&&
fullargs
.
length
>
0
)
{
const
_args
=
fullargs
[
0
];
if
(
_args
[
'srfprocessdefinitionkey'
]
&&
_args
[
'srftaskdefinitionkey'
])
{
Object
.
assign
(
data
,
{
processDefinitionKey
:
_args
[
'srfprocessdefinitionkey'
],
taskDefinitionKey
:
_args
[
'srftaskdefinitionkey'
]
});
if
(
_args
[
'srftaskid'
])
{
Object
.
assign
(
data
,
{
'srftaskid'
:
_args
[
'srftaskid'
]
});
}
}
}
if
(
fullargs
&&
fullargs
.
copymode
){
Object
.
assign
(
data
,{
copymode
:
true
});
}
const
openIndexViewTab
=
(
data
:
any
)
=>
{
const
routePath
=
this
.
$viewTool
.
buildUpRoutePath
(
this
.
$route
,
tempContext
,
deResParameters
,
parameters
,
args
,
data
);
this
.
$router
.
push
(
routePath
);
}
openIndexViewTab
(
data
);
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0021GridView_layoutBase
*/
public
New
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
newdata
&&
_this
.
newdata
instanceof
Function
)
{
const
data
:
any
=
{};
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newdata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0021GridView_layoutBase
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
const
_this
:
any
=
this
;
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
const
data
:
any
=
{
};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
ibizsample0021
:
args
[
0
].
ibizsample0021
})
}
_this
.
opendata
([{
...
data
}],
args
,
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 刷新
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0021GridView_layoutBase
*/
public
Refresh
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
refresh
&&
xData
.
refresh
instanceof
Function
)
{
xData
.
refresh
(
args
);
}
else
if
(
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
(
args
);
}
}
/**
* 拷贝
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0021GridView_layoutBase
*/
public
Copy
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
return
;
}
const
_this
:
any
=
this
;
if
(
_this
.
opendata
&&
_this
.
opendata
instanceof
Function
)
{
const
data
:
any
=
{
};
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
ibizsample0021
:
args
[
0
].
ibizsample0021
});
}
if
(
!
params
)
params
=
{};
Object
.
assign
(
args
,{
copymode
:
true
});
_this
.
opendata
([{
...
data
}],
args
,
params
,
$event
,
xData
);
}
else
{
Object
.
assign
(
this
.
viewparams
,{
copymode
:
true
});
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0021GridView_layoutBase
*/
public
ToggleRowEdit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
xData
.
actualIsOpenEdit
=
!
xData
.
actualIsOpenEdit
;
}
/**
* 新建行
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0021GridView_layoutBase
*/
public
NewRow
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
const
data
:
any
=
{};
if
(
_this
.
hasOwnProperty
(
'newRow'
)
&&
_this
.
newRow
instanceof
Function
)
{
_this
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
.
newRow
&&
xData
.
newRow
instanceof
Function
)
{
xData
.
newRow
([{
...
data
}],
params
,
$event
,
xData
);
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'newRow 视图处理逻辑不存在,请添加!'
});
}
}
/**
* 删除
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0021GridView_layoutBase
*/
public
Remove
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
remove
instanceof
Function
))
{
return
;
}
xData
.
remove
(
args
);
}
/**
* 导出
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0021GridView_layoutBase
*/
public
ExportExcel
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
exportExcel
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
exportExcel
(
$event
.
exportparms
);
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0021GridView_layoutBase
*/
public
Print
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
print
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
print
();
}
/**
* 导出数据模型
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0021GridView_layoutBase
*/
public
ExportModel
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'导出数据模型未支持'
});
}
/**
* 数据导入
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZSample0021GridView_layoutBase
*/
public
Import
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
!
xData
||
!
(
xData
.
importExcel
instanceof
Function
)
||
!
$event
)
{
return
;
}
xData
.
importExcel
(
params
);
}
/**
* 关闭视图
*
* @param {any[]} args
* @memberof IBIZSample0021GridView_layoutBase
*/
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
);
}
}
/**
* 销毁视图回调
*
* @memberof IBIZSample0021GridView_layoutBase
*/
public
destroyed
(){
this
.
afterDestroyed
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof IBIZSample0021GridView_layoutBase
*/
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
.
serviceStateEvent
)
{
this
.
serviceStateEvent
.
unsubscribe
();
}
// 销毁计数器定时器
if
(
this
.
counterServiceArray
&&
this
.
counterServiceArray
.
length
>
0
){
this
.
counterServiceArray
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
destroyCounter
&&
item
.
destroyCounter
instanceof
Function
){
item
.
destroyCounter
();
}
})
}
if
(
this
.
portletStateEvent
){
this
.
portletStateEvent
.
unsubscribe
();
}
if
(
this
.
formDruipartEvent
)
{
this
.
formDruipartEvent
.
unsubscribe
();
}
this
.
viewState
.
complete
();
}
/**
* 是否单选
*
* @type {boolean}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
isSingleSelect
:
boolean
=
false
;
/**
* 是否嵌入关系界面
*
* @type {boolean}
* @memberof IBIZSample0021GridView_layoutBase
*/
@
Prop
({
default
:
false
})
public
isformDruipart
?:
boolean
;
/**
* 界面关系通讯对象
*
* @type {Subject<ViewState>}
* @memberof IBIZSample0021GridView_layoutBase
*/
@
Prop
()
public
formDruipart
?:
Subject
<
ViewState
>
;
/**
* 搜索值
*
* @type {string}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
query
:
string
=
''
;
/**
* 是否展开搜索表单
*
* @type {boolean}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
isExpandSearchForm
:
boolean
=
false
;
/**
* 表格行数据默认激活模式
* 0 不激活
* 1 单击激活
* 2 双击激活
*
* @type {(number | 0 | 1 | 2)}
* @memberof IBIZSample0021GridView_layoutBase
*/
public
gridRowActiveMode
:
number
|
0
|
1
|
2
=
2
;
/**
* 快速搜索
*
* @param {*} $event
* @memberof IBIZSample0021GridView_layoutBase
*/
public
onSearch
(
$event
:
any
):
void
{
const
grid
:
any
=
this
.
$refs
.
grid
;
if
(
grid
)
{
grid
.
load
(
this
.
context
,
true
);
}
}
/**
* grid 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof ENTITYTEST1Usr2GridViewBase
*/
public
onSave
(
$event
:
any
)
{
this
.
$emit
(
'drdatasaved'
,
$event
);
}
/**
* 刷新数据
*
* @readonly
* @type {(number | null)}
* @memberof IBIZSample0021GridView_layoutBase
*/
get
refreshdata
():
number
|
null
{
return
this
.
$store
.
getters
[
'viewaction/getRefreshData'
](
this
.
viewtag
);
}
/**
* 监控数据变化
*
* @param {*} newVal
* @param {*} oldVal
* @returns
* @memberof IBIZSample0021GridView_layoutBase
*/
@
Watch
(
'refreshdata'
)
onRefreshData
(
newVal
:
any
,
oldVal
:
any
)
{
if
(
newVal
===
null
||
newVal
===
undefined
)
{
return
;
}
if
(
newVal
===
0
)
{
return
;
}
const
grid
:
any
=
this
.
$refs
.
grid
;
if
(
grid
)
{
grid
.
load
({});
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './ibizsample0021-grid-view-layout.less';
</
style
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizsample0021-grid-view-layout/ibizsample0021-grid-view-layout.less
0 → 100644
浏览文件 @
c2765177
.ibizsample0021-grid-view-layout {
display: block;
}
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/ibizsample0021-grid-view-layout/ibizsample0021-grid-view-layout.vue
0 → 100644
浏览文件 @
c2765177
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZSample0021GridView_layoutBase
from
'./ibizsample0021-grid-view-layout-base.vue'
;
import
view_searchform
from
'@widgets/ibizsample0021/default-searchform/default-searchform.vue'
;
import
view_grid
from
'@widgets/ibizsample0021/main-grid/main-grid.vue'
;
@
Component
({
components
:
{
view_searchform
,
view_grid
,
},
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
IBIZSample0021GridView_layout
extends
IBIZSample0021GridView_layoutBase
{
}
</
script
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/index/page-register.ts
浏览文件 @
c2765177
...
...
@@ -134,7 +134,9 @@ export const PageComponents = {
Vue
.
component
(
'ibizbookusr2-edit-view-layout'
,
()
=>
import
(
'@pages/sample/ibizbookusr2-edit-view-layout/ibizbookusr2-edit-view-layout.vue'
));
Vue
.
component
(
'ibizuniproduct-sgrid-view-layout'
,
()
=>
import
(
'@pages/sample/ibizuniproduct-sgrid-view-layout/ibizuniproduct-sgrid-view-layout.vue'
));
Vue
.
component
(
'ibizsample0021-wfdyna-exp-grid-view-layout'
,
()
=>
import
(
'@pages/sample/ibizsample0021-wfdyna-exp-grid-view-layout/ibizsample0021-wfdyna-exp-grid-view-layout.vue'
));
Vue
.
component
(
'ibizsample0021-grid-view-layout'
,
()
=>
import
(
'@pages/sample/ibizsample0021-grid-view-layout/ibizsample0021-grid-view-layout.vue'
));
Vue
.
component
(
'ibizsample0021-wfdyna-action-view-layout'
,
()
=>
import
(
'@pages/sample/ibizsample0021-wfdyna-action-view-layout/ibizsample0021-wfdyna-action-view-layout.vue'
));
Vue
.
component
(
'ibizbookcustom-view-layout'
,
()
=>
import
(
'@pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout.vue'
));
Vue
.
component
(
'ibizappviewgrid-view'
,
()
=>
import
(
'@pages/sample/ibizappviewgrid-view/ibizappviewgrid-view.vue'
));
Vue
.
component
(
'ibizappviewlist-view'
,
()
=>
import
(
'@pages/sample/ibizappviewlist-view/ibizappviewlist-view.vue'
));
Vue
.
component
(
'ibizappctrlgrid-view'
,
()
=>
import
(
'@pages/sample/ibizappctrlgrid-view/ibizappctrlgrid-view.vue'
));
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/sample/index/router.ts
浏览文件 @
c2765177
...
...
@@ -2042,6 +2042,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0021-wfdyna-exp-grid-view-layout/ibizsample0021-wfdyna-exp-grid-view-layout.vue'
),
},
{
path
:
'ibizsample0021s/:ibizsample0021?/gridview_layout/:gridview_layout?'
,
meta
:
{
caption
:
'entities.ibizsample0021.views.gridview_layout.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizsample0021s'
,
parameterName
:
'ibizsample0021'
},
{
pathName
:
'gridview_layout'
,
parameterName
:
'gridview_layout'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0021-grid-view-layout/ibizsample0021-grid-view-layout.vue'
),
},
{
path
:
'ibizsample0021s/:ibizsample0021?/wfdynaactionview_layout/:wfdynaactionview_layout?'
,
meta
:
{
...
...
@@ -2056,6 +2070,20 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0021-wfdyna-action-view-layout/ibizsample0021-wfdyna-action-view-layout.vue'
),
},
{
path
:
'ibizbooks/:ibizbook?/customview_layout/:customview_layout?'
,
meta
:
{
caption
:
'entities.ibizbook.views.customview_layout.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'index'
,
parameterName
:
'index'
},
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'customview_layout'
,
parameterName
:
'customview_layout'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout.vue'
),
},
{
path
:
'ibizappviews/:ibizappview?/gridview/:gridview?'
,
meta
:
{
...
...
@@ -6004,6 +6032,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0014-edit-view/ibizsample0014-edit-view.vue'
),
},
{
path
:
'/ibizsample0021s/:ibizsample0021?/gridview_layout/:gridview_layout?'
,
meta
:
{
caption
:
'entities.ibizsample0021.views.gridview_layout.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizsample0021s'
,
parameterName
:
'ibizsample0021'
},
{
pathName
:
'gridview_layout'
,
parameterName
:
'gridview_layout'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0021-grid-view-layout/ibizsample0021-grid-view-layout.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/pickupview/:pickupview?'
,
meta
:
{
...
...
@@ -6134,6 +6175,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr8-grid-view/ibizbookusr8-grid-view.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/customview_layout/:customview_layout?'
,
meta
:
{
caption
:
'entities.ibizbook.views.customview_layout.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'customview_layout'
,
parameterName
:
'customview_layout'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/usr9gridview/:usr9gridview?'
,
meta
:
{
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/pages/ungroup/app-index-view/router.ts
浏览文件 @
c2765177
...
...
@@ -2840,6 +2840,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0014-edit-view/ibizsample0014-edit-view.vue'
),
},
{
path
:
'/ibizsample0021s/:ibizsample0021?/gridview_layout/:gridview_layout?'
,
meta
:
{
caption
:
'entities.ibizsample0021.views.gridview_layout.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizsample0021s'
,
parameterName
:
'ibizsample0021'
},
{
pathName
:
'gridview_layout'
,
parameterName
:
'gridview_layout'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizsample0021-grid-view-layout/ibizsample0021-grid-view-layout.vue'
),
},
{
path
:
'/ibizorders/:ibizorder?/pickupview/:pickupview?'
,
meta
:
{
...
...
@@ -2970,6 +2983,19 @@ const router = new Router({
},
component
:
()
=>
import
(
'@pages/sample/ibizbookusr8-grid-view/ibizbookusr8-grid-view.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/customview_layout/:customview_layout?'
,
meta
:
{
caption
:
'entities.ibizbook.views.customview_layout.caption'
,
info
:
''
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'customview_layout'
,
parameterName
:
'customview_layout'
},
],
requireAuth
:
true
,
},
component
:
()
=>
import
(
'@pages/sample/ibizbookcustom-view-layout/ibizbookcustom-view-layout.vue'
),
},
{
path
:
'/ibizbooks/:ibizbook?/usr9gridview/:usr9gridview?'
,
meta
:
{
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
c2765177
...
...
@@ -916,7 +916,9 @@ export const viewstate: any = {
'250e5b8897b031e2ab4124c51a7efadd'
,
'1e5f6384a69035a45e28c2552fd485bc'
,
'c898d7238b770cd5350c8a37c312159b'
,
'ef0aa2f297f599cdbc14fc8393b78a1d'
,
'a6d2ee3618dcfb23c3db981c9dbc4340'
,
'fa2731c1873f3c86aa065e73cff4667b'
,
],
},
{
...
...
@@ -2177,6 +2179,16 @@ export const viewstate: any = {
'a2936c6b9623c39072407c14da37ba3c'
,
],
},
{
viewtag
:
'ef0aa2f297f599cdbc14fc8393b78a1d'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZSample0021GridView_layout'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'afffdfdd3ba8340fdf33581ad0171996'
,
],
},
{
viewtag
:
'efefe92eef97af14a35603f0324861cb'
,
viewmodule
:
'Sample'
,
...
...
@@ -2279,6 +2291,15 @@ export const viewstate: any = {
'58e37ccddda10feedac7c809d5cee02a'
,
],
},
{
viewtag
:
'fa2731c1873f3c86aa065e73cff4667b'
,
viewmodule
:
'Sample'
,
viewname
:
'IBIZBOOKCustomView_layout'
,
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
],
},
{
viewtag
:
'fbc25877298bbacf410c4d1a85bb053b'
,
viewmodule
:
'Sample'
,
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/uiservice/ibizbook/ibizbook-ui-service-base.ts
浏览文件 @
c2765177
...
...
@@ -168,6 +168,7 @@ export default class IBIZBOOKUIServiceBase extends UIService {
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr2gridview'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr2-grid-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'groupbycodelistlistview'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookgroup-by-codelist-list-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr8gridview'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr8-grid-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'customview_layout'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookcustom-view-layout'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'usr9gridview'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookusr9-grid-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'dashboardview_layout'
,
srfappde
:
'ibizbooks'
,
component
:
'ibizbookdashboard-view-layout'
});
}
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/uiservice/ibizsample0021/ibizsample0021-ui-service-base.ts
浏览文件 @
c2765177
...
...
@@ -103,6 +103,7 @@ export default class IBIZSample0021UIServiceBase extends UIService {
this
.
allViewMap
.
set
(
'MDATAVIEW:'
,{
viewname
:
'gridview'
,
srfappde
:
'ibizsample0021s'
,
component
:
'ibizsample0021-grid-view'
});
this
.
allViewMap
.
set
(
'EDITVIEW:'
,{
viewname
:
'editview'
,
srfappde
:
'ibizsample0021s'
,
component
:
'ibizsample0021-edit-view'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'wfdynaexpgridview_layout'
,
srfappde
:
'ibizsample0021s'
,
component
:
'ibizsample0021-wfdyna-exp-grid-view-layout'
});
this
.
allViewMap
.
set
(
':'
,{
viewname
:
'gridview_layout'
,
srfappde
:
'ibizsample0021s'
,
component
:
'ibizsample0021-grid-view-layout'
});
}
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-base.vue
浏览文件 @
c2765177
...
...
@@ -1006,9 +1006,15 @@ export default class MainMenuBase extends Vue implements ControlInterface {
case
'AppFunc121'
:
this
.
clickAppFunc121
(
item
);
return
;
case
'AppFunc123'
:
this
.
clickAppFunc123
(
item
);
return
;
case
'AppFunc122'
:
this
.
clickAppFunc122
(
item
);
return
;
case
'AppFunc124'
:
this
.
clickAppFunc124
(
item
);
return
;
default
:
console
.
warn
(
'未指定应用功能'
);
}
...
...
@@ -4140,6 +4146,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
})
}
/**
* 工作流启动(布局面板)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc123
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizsample0021s'
,
parameterName
:
'ibizsample0021'
},
{
pathName
:
'gridview_layout'
,
parameterName
:
'gridview_layout'
},
];
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
);
})
}
/**
* 工作流动态操作视图(布局面板)
*
...
...
@@ -4165,6 +4194,29 @@ export default class MainMenuBase extends Vue implements ControlInterface {
});
}
/**
* 自定义视图(布局面板)
*
* @param {*} [item={}]
* @memberof MainMenu
*/
public
clickAppFunc124
(
item
:
any
=
{})
{
const
viewparam
:
any
=
{};
Object
.
assign
(
viewparam
,
{});
const
deResParameters
:
any
[]
=
[];
const
parameters
:
any
[]
=
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'customview_layout'
,
parameterName
:
'customview_layout'
},
];
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
);
})
}
/**
* 数据加载
*
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/app/main-menu-appmenu/main-menu-appmenu-model.ts
浏览文件 @
c2765177
...
...
@@ -3804,7 +3804,7 @@ export default class MainMenuModel {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc
86
'
,
appfunctag
:
'AppFunc
123
'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem225'
,
},
...
...
@@ -3863,7 +3863,7 @@ export default class MainMenuModel {
iconcls
:
''
,
icon
:
''
,
textcls
:
''
,
appfunctag
:
'AppFunc
22
'
,
appfunctag
:
'AppFunc
124
'
,
resourcetag
:
''
,
authtag
:
'Web-MainMenu-menuitem230'
,
},
...
...
@@ -5508,6 +5508,18 @@ export default class MainMenuModel {
{
pathName
:
'wfdynaexpgridview_layout'
,
parameterName
:
'wfdynaexpgridview_layout'
},
],
},
{
appfunctag
:
'AppFunc123'
,
appfuncyype
:
'APPVIEW'
,
openmode
:
''
,
codename
:
'ibizsample0021gridview_layout'
,
deResParameters
:
[],
routepath
:
'/index/:index?/ibizsample0021s/:ibizsample0021?/gridview_layout/:gridview_layout?'
,
parameters
:
[
{
pathName
:
'ibizsample0021s'
,
parameterName
:
'ibizsample0021'
},
{
pathName
:
'gridview_layout'
,
parameterName
:
'gridview_layout'
},
],
},
{
appfunctag
:
'AppFunc122'
,
appfuncyype
:
'APPVIEW'
,
...
...
@@ -5520,6 +5532,18 @@ export default class MainMenuModel {
{
pathName
:
'wfdynaactionview_layout'
,
parameterName
:
'wfdynaactionview_layout'
},
],
},
{
appfunctag
:
'AppFunc124'
,
appfuncyype
:
'APPVIEW'
,
openmode
:
''
,
codename
:
'ibizbookcustomview_layout'
,
deResParameters
:
[],
routepath
:
'/index/:index?/ibizbooks/:ibizbook?/customview_layout/:customview_layout?'
,
parameters
:
[
{
pathName
:
'ibizbooks'
,
parameterName
:
'ibizbook'
},
{
pathName
:
'customview_layout'
,
parameterName
:
'customview_layout'
},
],
},
];
/**
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizappeditor/default-searchform/default-searchform-base.vue
浏览文件 @
c2765177
...
...
@@ -590,7 +590,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
if
(
!
this
.
loadAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loadAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -626,7 +626,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
Grid
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZAPPEDITOR
List
View'
+
(
this
.
$t
(
'app.searchForm.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizbook/default-searchform/default-searchform-base.vue
浏览文件 @
c2765177
...
...
@@ -663,7 +663,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{}):
void
{
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
;
}
const
arg
:
any
=
{
...
opt
};
...
...
@@ -699,7 +699,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
public
loadDraft
(
opt
:
any
=
{},
mode
?:
string
):
void
{
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
;
}
const
arg
:
any
=
{
...
opt
}
;
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/main-grid/main-grid-base.vue
浏览文件 @
c2765177
...
...
@@ -291,7 +291,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrder
SF1
GridViewBase
* @memberof IBIZOrder
Pickup
GridViewBase
*/
public
Edit
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
if
(
args
.
length
===
0
)
{
...
...
@@ -413,20 +413,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
this
.
selections
[
0
];
}
/**
* 打开新建数据视图
*
* @type {any}
* @memberof MainBase
*/
@
Prop
()
public
newdata
:
any
;
/**
* 打开编辑数据视图
*
* @type {any}
* @memberof MainBase
*/
@
Prop
()
public
opendata
:
any
;
/**
* 是否嵌入关系界面
...
...
@@ -959,7 +945,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
load
(
opt
:
any
=
{},
pageReset
:
boolean
=
false
):
void
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
return
;
}
if
(
pageReset
){
...
...
@@ -1054,7 +1040,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
async
remove
(
datas
:
any
[]):
Promise
<
any
>
{
if
(
!
this
.
removeAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.removeAction'
)
as
string
)
});
return
;
}
let
_datas
:
any
[]
=
[];
...
...
@@ -1160,7 +1146,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
addBatch
(
arg
:
any
=
{}):
void
{
if
(
!
this
.
fetchAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.fetchAction'
)
as
string
)
});
return
;
}
if
(
!
arg
){
...
...
@@ -2077,7 +2063,7 @@ export default class MainBase extends Vue implements ControlInterface {
try
{
if
(
Object
.
is
(
item
.
rowDataState
,
'create'
)){
if
(
!
this
.
createAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.createAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
let
response
=
await
this
.
service
.
add
(
this
.
createAction
,
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
)),
item
,
this
.
showBusyIndicator
);
...
...
@@ -2085,7 +2071,7 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
else
if
(
Object
.
is
(
item
.
rowDataState
,
'update'
)){
if
(
!
this
.
updateAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.updateAction'
)
as
string
)
});
}
else
{
Object
.
assign
(
item
,{
viewparams
:
this
.
viewparams
});
if
(
item
.
ibizorder
){
...
...
@@ -2152,7 +2138,7 @@ export default class MainBase extends Vue implements ControlInterface {
*/
public
newRow
(
args
:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
):
void
{
if
(
!
this
.
loaddraftAction
){
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
SF1
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
'IBIZOrder
Pickup
GridView'
+
(
this
.
$t
(
'app.gridpage.notConfig.loaddraftAction'
)
as
string
)
});
return
;
}
let
_this
=
this
;
...
...
This diff is collapsed.
Click to expand it.
app_Web/src/widgets/ibizorder/main-grid/main-grid-model.ts
浏览文件 @
c2765177
...
...
@@ -104,21 +104,6 @@ export default class MainModel {
prop
:
'n_ibizordername_like'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'n_orderstate_eq'
,
prop
:
'n_orderstate_eq'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'n_ordertime_gt'
,
prop
:
'n_ordertime_gt'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'n_ordertime_lt'
,
prop
:
'n_ordertime_lt'
,
dataType
:
'QUERYPARAM'
},
{
name
:
'size'
,
...
...
This diff is collapsed.
Click to expand it.
demo-boot/src/main/resources/static/remotemodel/PSMODULES/Sample/PSDATAENTITIES/IBIZBOOK.json
浏览文件 @
c2765177
...
...
@@ -4125,6 +4125,12 @@
"name"
:
"图书实体表格视图(选项操作)"
,
"realModelSubType"
:
"DEGRIDVIEW"
,
"realModelType"
:
"PSDEVIEWBASE"
},
{
"codeName"
:
"CustomView_layout"
,
"logicName"
:
"实体自定义视图(布局面板)"
,
"name"
:
"实体自定义视图(布局面板)"
,
"realModelSubType"
:
"DECUSTOMVIEW"
,
"realModelType"
:
"PSDEVIEWBASE"
},
{
"codeName"
:
"Usr4CalendarView"
,
"logicName"
:
"图书实体日历视图(自定义插件)"
,
...
...
This diff is collapsed.
Click to expand it.
demo-boot/src/main/resources/static/remotemodel/PSMODULES/Sample/PSDATAENTITIES/IBIZSample0021.json
浏览文件 @
c2765177
...
...
@@ -1509,6 +1509,12 @@
"name"
:
"订单实体编辑视图"
,
"realModelSubType"
:
"DEEDITVIEW"
,
"realModelType"
:
"PSDEVIEWBASE"
},
{
"codeName"
:
"GridView_layout"
,
"logicName"
:
"订单实体表格视图(布局面板)"
,
"name"
:
"订单实体表格视图(布局面板)"
,
"realModelSubType"
:
"DEGRIDVIEW"
,
"realModelType"
:
"PSDEVIEWBASE"
},
{
"codeName"
:
"approvedForm"
,
"logicName"
:
"部门领导审批通过操作表单"
,
...
...
This diff is collapsed.
Click to expand it.
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKCustomView_layout.json
0 → 100644
浏览文件 @
c2765177
{
"accUserMode"
:
2
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"MENUITEM.CAPTION.CUSTOMVIEW"
},
"caption"
:
"实体自定义视图"
,
"codeName"
:
"IBIZBOOKCustomView_layout"
,
"dynaModelFilePath"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKCustomView_layout.json"
,
"name"
:
"IBIZBOOKCustomView_layout"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSAppViewMsgGroup"
:
{
"modelref"
:
true
,
"id"
:
"VMGroup85"
},
"getPSDEViewCodeName"
:
"CustomView_layout"
,
"getPSDEViewId"
:
"8E256DEB-D2D3-4FA4-891E-309B320E93D8"
,
"getPSViewLayoutPanel"
:
{
"codeName"
:
"Layoutpanel"
,
"controlType"
:
"VIEWLAYOUTPANEL"
,
"layoutMode"
:
"TABLE_24COL"
,
"logicName"
:
"自定义视图"
,
"name"
:
"layoutpanel"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZBOOK.json"
},
"getPSControlParam"
:
{
},
"getPSLayout"
:
{
"columnCount"
:
24
,
"layout"
:
"TABLE_24COL"
},
"getRootPSPanelItems"
:
[
{
"caption"
:
"容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"name"
:
"page_container"
,
"getPSLayout"
:
{
"layout"
:
"FLEX"
},
"getPSLayoutPos"
:
{
"colMD"
:
24
,
"layout"
:
"TABLE_24COL"
}
}
],
"layoutBodyOnly"
:
true
,
"layoutPanel"
:
true
,
"useDefaultLayout"
:
false
,
"modelid"
:
"01998BC8-AF5A-46BD-BA0A-4E87605B3F52"
,
"modeltype"
:
"PSSYSVIEWLAYOUTPANEL"
},
"title"
:
"实体自定义视图"
,
"getTitlePSLanguageRes"
:
{
"lanResTag"
:
"PAGE.TITLE.IBIZBOOK.CUSTOMVIEW"
},
"viewStyle"
:
"DEFAULT"
,
"viewType"
:
"DECUSTOMVIEW"
,
"enableDP"
:
true
,
"showCaptionBar"
:
false
,
"modelid"
:
"fa2731c1873f3c86aa065e73cff4667b"
,
"modeltype"
:
"PSAPPDEVIEW"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0021GridView_layout.json
0 → 100644
浏览文件 @
c2765177
{
"accUserMode"
:
2
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"MENUITEM.CAPTION.WORKFLOWSTART"
},
"caption"
:
"订单"
,
"codeName"
:
"IBIZSample0021GridView_layout"
,
"dynaModelFilePath"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0021GridView_layout.json"
,
"gridRowActiveMode"
:
2
,
"name"
:
"IBIZSample0021GridView_layout"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
},
"getPSAppViewEngines"
:
[
{
"engineCat"
:
"VIEW"
,
"engineType"
:
"GridView"
,
"name"
:
"engine"
,
"getPSUIEngineParams"
:
[
{
"appViewLogicName"
:
"opendata"
,
"name"
:
"OPENDATA"
,
"paramType"
:
"LOGIC"
},
{
"appViewLogicName"
:
"newdata"
,
"name"
:
"NEWDATA"
,
"paramType"
:
"LOGIC"
},
{
"ctrlName"
:
"grid"
,
"name"
:
"GRID"
,
"paramType"
:
"CTRL"
},
{
"ctrlName"
:
"searchform"
,
"name"
:
"SEARCHFORM"
,
"paramType"
:
"CTRL"
}
]
}
],
"getPSAppViewLogics"
:
[
{
"eventArg"
:
"tbitem3"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"toolbar_tbitem3_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem3"
},
"getPSViewCtrlName"
:
"toolbar"
},
{
"eventArg"
:
"tbitem4"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"toolbar_tbitem4_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem4"
},
"getPSViewCtrlName"
:
"toolbar"
},
{
"eventArg"
:
"deuiaction1"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"toolbar_deuiaction1_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_deuiaction1"
},
"getPSViewCtrlName"
:
"toolbar"
},
{
"eventArg"
:
"tbitem6"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"toolbar_tbitem6_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem6"
},
"getPSViewCtrlName"
:
"toolbar"
},
{
"eventArg"
:
"tbitem24"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"toolbar_tbitem24_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem24"
},
"getPSViewCtrlName"
:
"toolbar"
},
{
"eventArg"
:
"tbitem25"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"toolbar_tbitem25_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem25"
},
"getPSViewCtrlName"
:
"toolbar"
},
{
"eventArg"
:
"tbitem8"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"toolbar_tbitem8_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem8"
},
"getPSViewCtrlName"
:
"toolbar"
},
{
"eventArg"
:
"tbitem13"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"toolbar_tbitem13_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem13"
},
"getPSViewCtrlName"
:
"toolbar"
},
{
"eventArg"
:
"tbitem11"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"toolbar_tbitem11_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem11"
},
"getPSViewCtrlName"
:
"toolbar"
},
{
"eventArg"
:
"tbitem21"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"toolbar_tbitem21_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem21"
},
"getPSViewCtrlName"
:
"toolbar"
},
{
"eventArg"
:
"tbitem23"
,
"eventNames"
:
"CLICK"
,
"logicTrigger"
:
"CTRLEVENT"
,
"logicType"
:
"APPVIEWUIACTION"
,
"name"
:
"toolbar_tbitem23_click"
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem23"
},
"getPSViewCtrlName"
:
"toolbar"
},
{
"logicTrigger"
:
"CUSTOM"
,
"logicType"
:
"SYSUILOGIC"
,
"name"
:
"newdata"
,
"getPSAppUILogic"
:
{
"actionAfterWizard"
:
"DEFAULT"
,
"logicType"
:
"PREDEFINED"
,
"name"
:
"新建数据"
,
"getNewDataPSAppView"
:
{
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0021EditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
},
"getPSAppUILogicRefViews"
:
[
{
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0021EditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
}
],
"viewLogicType"
:
"APP_NEWDATA"
,
"batchAddOnly"
:
false
,
"enableBatchAdd"
:
false
,
"enableWizardAdd"
:
false
}
},
{
"logicTrigger"
:
"CUSTOM"
,
"logicType"
:
"SYSUILOGIC"
,
"name"
:
"opendata"
,
"getPSAppUILogic"
:
{
"logicType"
:
"PREDEFINED"
,
"name"
:
"打开数据"
,
"getOpenDataPSAppView"
:
{
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0021EditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
},
"getPSAppUILogicRefViews"
:
[
{
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0021EditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
}
],
"viewLogicType"
:
"APP_OPENDATA"
,
"editMode"
:
true
}
}
],
"getPSAppViewMsgGroup"
:
{
"modelref"
:
true
,
"id"
:
"VMGroup92"
},
"getPSAppViewRefs"
:
[
{
"name"
:
"EDITDATA"
,
"realTitle"
:
"订单编辑视图"
,
"getRealTitlePSLanguageRes"
:
{
"lanResTag"
:
"PAGE.TITLE.IBIZSAMPLE0021.EDITVIEW"
},
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0021EditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
},
{
"name"
:
"NEWDATA"
,
"realTitle"
:
"订单编辑视图"
,
"getRealTitlePSLanguageRes"
:
{
"lanResTag"
:
"PAGE.TITLE.IBIZSAMPLE0021.EDITVIEW"
},
"getRefPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0021EditView.json"
,
"viewType"
:
"DEEDITVIEW"
}
}
],
"getPSAppViewUIActions"
:
[
{
"name"
:
"toolbar_tbitem3"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"New"
},
"xDataControlName"
:
"grid"
},
{
"name"
:
"toolbar_tbitem4"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"Edit"
},
"uIActionTarget"
:
"SINGLEKEY"
,
"xDataControlName"
:
"grid"
},
{
"name"
:
"toolbar_deuiaction1"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"Refresh"
},
"xDataControlName"
:
"grid"
},
{
"name"
:
"toolbar_tbitem6"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"Copy"
},
"uIActionTarget"
:
"SINGLEKEY"
,
"xDataControlName"
:
"grid"
},
{
"name"
:
"toolbar_tbitem24"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"ToggleRowEdit"
},
"xDataControlName"
:
"grid"
},
{
"name"
:
"toolbar_tbitem25"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"NewRow"
},
"xDataControlName"
:
"grid"
},
{
"name"
:
"toolbar_tbitem8"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"Remove"
},
"uIActionTarget"
:
"MULTIKEY"
,
"xDataControlName"
:
"grid"
},
{
"name"
:
"toolbar_tbitem13"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"ExportExcel"
},
"xDataControlName"
:
"grid"
},
{
"name"
:
"toolbar_tbitem11"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"Print"
},
"uIActionTarget"
:
"MULTIKEY"
,
"xDataControlName"
:
"grid"
},
{
"name"
:
"toolbar_tbitem21"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"ExportModel"
},
"xDataControlName"
:
"grid"
},
{
"name"
:
"toolbar_tbitem23"
,
"getPSUIAction"
:
{
"modelref"
:
true
,
"id"
:
"Import"
},
"xDataControlName"
:
"grid"
}
],
"getPSControls"
:
[
{
"codeName"
:
"Default"
,
"controlType"
:
"SEARCHFORM"
,
"dynaModelFilePath"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021/PSSEARCHFORMS/Default.json"
,
"hookEventNames"
:
[
"SEARCH"
,
"LOAD"
,
"SAVE"
],
"logicName"
:
"默认搜索表单"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
},
"getPSControlHandler"
:
{
"getPSHandlerActions"
:
[
{
"actionType"
:
"FILTERACTION"
,
"name"
:
"load"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"FilterGet"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
}
},
{
"actionType"
:
"FILTERACTION"
,
"name"
:
"loaddraft"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"FilterGetDraft"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
}
},
{
"actionType"
:
"FILTERACTION"
,
"name"
:
"search"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"FilterSearch"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
}
}
],
"enableDEFieldPrivilege"
:
false
,
"id"
:
"搜索表单处理器"
},
"getPSControlLogics"
:
[
{
"eventNames"
:
"SEARCH;LOAD;SAVE"
,
"logicTag"
:
"searchform"
,
"logicType"
:
"APPVIEWENGINE"
,
"name"
:
"engine_searchform"
,
"getPSAppViewEngine"
:
{
"modelref"
:
true
,
"id"
:
"engine"
}
}
],
"getPSControlParam"
:
{
"autoLoad"
:
true
,
"showBusyIndicator"
:
true
,
"id"
:
"SEARCHFORM"
},
"getPSDEFormPages"
:
[
{
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"CONTROL.DEFORM.IBIZSAMPLE0021.DEFAULT.FORMPAGE.FORMPAGE1"
},
"caption"
:
"常规条件"
,
"codeName"
:
"formpage1"
,
"detailStyle"
:
"DEFAULT"
,
"detailType"
:
"FORMPAGE"
,
"name"
:
"formpage1"
,
"getPSLayout"
:
{
"columnCount"
:
24
,
"layout"
:
"TABLE_24COL"
},
"infoGroupMode"
:
false
}
],
"getPSLayout"
:
{
"columnCount"
:
24
,
"layout"
:
"TABLE_24COL"
},
"searchButtonStyle"
:
"DEFAULT"
,
"tabHeaderPos"
:
"TOP"
,
"enableAdvanceSearch"
:
false
,
"enableAutoSearch"
:
false
,
"enableFilterSave"
:
false
,
"noTabHeader"
:
true
,
"name"
:
"searchform"
,
"modelid"
:
"7fbe991215e8b121190ab43e5a619142"
,
"modeltype"
:
"PSDEFORM_SEARCHFORM"
},
{
"codeName"
:
"GridView_layouttoolbar"
,
"controlType"
:
"TOOLBAR"
,
"hookEventNames"
:
[
"CLICK"
],
"logicName"
:
"工具栏模板(默认表格界面加刷新)"
,
"name"
:
"toolbar"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
},
"getPSControlLogics"
:
[
{
"eventArg"
:
"tbitem3"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"toolbar_tbitem3_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem3_click"
}
},
{
"eventArg"
:
"tbitem4"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"toolbar_tbitem4_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem4_click"
}
},
{
"eventArg"
:
"deuiaction1"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"toolbar_deuiaction1_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_deuiaction1_click"
}
},
{
"eventArg"
:
"tbitem6"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"toolbar_tbitem6_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem6_click"
}
},
{
"eventArg"
:
"tbitem24"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"toolbar_tbitem24_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem24_click"
}
},
{
"eventArg"
:
"tbitem25"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"toolbar_tbitem25_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem25_click"
}
},
{
"eventArg"
:
"tbitem8"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"toolbar_tbitem8_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem8_click"
}
},
{
"eventArg"
:
"tbitem13"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"toolbar_tbitem13_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem13_click"
}
},
{
"eventArg"
:
"tbitem11"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"toolbar_tbitem11_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem11_click"
}
},
{
"eventArg"
:
"tbitem21"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"toolbar_tbitem21_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem21_click"
}
},
{
"eventArg"
:
"tbitem23"
,
"eventNames"
:
"CLICK"
,
"logicTag"
:
"toolbar"
,
"logicType"
:
"APPVIEWLOGIC"
,
"name"
:
"toolbar_tbitem23_click"
,
"getPSAppViewLogic"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem23_click"
}
}
],
"getPSControlParam"
:
{
"id"
:
"TOOLBAR"
},
"getPSDEToolbarItems"
:
[
{
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.NEW"
},
"caption"
:
"新建"
,
"groupExtractMode"
:
"ITEM"
,
"itemType"
:
"DEUIACTION"
,
"name"
:
"tbitem3"
,
"noPrivDisplayMode"
:
2
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem3"
},
"getPSSysCss"
:
{
"cssName"
:
"deepskyblueToolBar"
},
"getPSSysImage"
:
{
"glyph"
:
"xf0f6@FontAwesome"
,
"cssClass"
:
"fa fa-file-text-o"
},
"getPSUIAction"
:
{
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.NEW"
},
"caption"
:
"新建"
,
"codeName"
:
"New"
,
"fullCodeName"
:
"New"
,
"name"
:
"表格界面_新建操作"
,
"getPSSysImage"
:
{
"glyph"
:
"xf0f6@FontAwesome"
,
"cssClass"
:
"fa fa-file-text-o"
},
"predefinedType"
:
"GRIDVIEW_NEWACTION"
,
"timeout"
:
60000
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.NEW"
},
"uIActionMode"
:
"SYS"
,
"uIActionTag"
:
"New"
,
"uIActionType"
:
"DEUIACTION"
},
"tooltip"
:
"新建"
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.NEW"
},
"showCaption"
:
true
,
"showIcon"
:
true
},
{
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.EDIT"
},
"caption"
:
"编辑"
,
"groupExtractMode"
:
"ITEM"
,
"itemType"
:
"DEUIACTION"
,
"name"
:
"tbitem4"
,
"noPrivDisplayMode"
:
2
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem4"
},
"getPSSysImage"
:
{
"glyph"
:
"xf044@FontAwesome"
,
"cssClass"
:
"fa fa-edit"
},
"getPSUIAction"
:
{
"actionTarget"
:
"SINGLEKEY"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.EDIT"
},
"caption"
:
"编辑"
,
"codeName"
:
"Edit"
,
"fullCodeName"
:
"Edit"
,
"name"
:
"表格界面_编辑操作"
,
"getPSSysImage"
:
{
"glyph"
:
"xf044@FontAwesome"
,
"cssClass"
:
"fa fa-edit"
},
"predefinedType"
:
"GRIDVIEW_EDITACTION"
,
"timeout"
:
60000
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.EDIT"
},
"uIActionMode"
:
"SYS"
,
"uIActionTag"
:
"Edit"
,
"uIActionType"
:
"DEUIACTION"
},
"tooltip"
:
"编辑"
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.EDIT"
},
"showCaption"
:
true
,
"showIcon"
:
false
},
{
"caption"
:
"刷新"
,
"groupExtractMode"
:
"ITEM"
,
"itemType"
:
"DEUIACTION"
,
"name"
:
"deuiaction1"
,
"noPrivDisplayMode"
:
2
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_deuiaction1"
},
"getPSSysImage"
:
{
"glyph"
:
"xf021@FontAwesome"
,
"cssClass"
:
"fa fa-refresh"
},
"getPSUIAction"
:
{
"caption"
:
"刷新"
,
"codeName"
:
"Refresh"
,
"fullCodeName"
:
"Refresh"
,
"name"
:
"表格界面_刷新操作"
,
"getPSSysImage"
:
{
"glyph"
:
"xf021@FontAwesome"
,
"cssClass"
:
"fa fa-refresh"
},
"predefinedType"
:
"GRIDVIEW_REFRESHACTION"
,
"timeout"
:
60000
,
"uIActionMode"
:
"SYS"
,
"uIActionTag"
:
"Refresh"
,
"uIActionType"
:
"DEUIACTION"
},
"tooltip"
:
"刷新"
,
"showCaption"
:
true
,
"showIcon"
:
true
},
{
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.COPY"
},
"caption"
:
"拷贝"
,
"groupExtractMode"
:
"ITEM"
,
"itemType"
:
"DEUIACTION"
,
"name"
:
"tbitem6"
,
"noPrivDisplayMode"
:
2
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem6"
},
"getPSSysImage"
:
{
"glyph"
:
"xf0c5@FontAwesome"
,
"cssClass"
:
"fa fa-copy"
},
"getPSUIAction"
:
{
"actionTarget"
:
"SINGLEKEY"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.COPY"
},
"caption"
:
"拷贝"
,
"codeName"
:
"Copy"
,
"fullCodeName"
:
"Copy"
,
"name"
:
"表格界面_拷贝操作"
,
"getPSSysImage"
:
{
"glyph"
:
"xf0c5@FontAwesome"
,
"cssClass"
:
"fa fa-copy"
},
"predefinedType"
:
"GRIDVIEW_COPYACTION"
,
"timeout"
:
60000
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.COPY"
},
"uIActionMode"
:
"SYS"
,
"uIActionTag"
:
"Copy"
,
"uIActionType"
:
"DEUIACTION"
},
"tooltip"
:
"拷贝"
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.COPY"
},
"showCaption"
:
true
,
"showIcon"
:
false
},
{
"itemType"
:
"SEPERATOR"
,
"name"
:
"tbitem7"
,
"spanMode"
:
false
},
{
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.REMOVE"
},
"caption"
:
"删除"
,
"groupExtractMode"
:
"ITEM"
,
"itemType"
:
"DEUIACTION"
,
"name"
:
"tbitem8"
,
"noPrivDisplayMode"
:
2
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem8"
},
"getPSSysImage"
:
{
"glyph"
:
"xf00d@FontAwesome"
,
"cssClass"
:
"fa fa-remove"
},
"getPSUIAction"
:
{
"actionTarget"
:
"MULTIKEY"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.REMOVE"
},
"caption"
:
"删除"
,
"codeName"
:
"Remove"
,
"fullCodeName"
:
"Remove"
,
"name"
:
"表格界面_删除操作"
,
"getPSSysImage"
:
{
"glyph"
:
"xf00d@FontAwesome"
,
"cssClass"
:
"fa fa-remove"
},
"predefinedType"
:
"GRIDVIEW_REMOVEACTION"
,
"timeout"
:
60000
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.REMOVE"
},
"uIActionMode"
:
"SYS"
,
"uIActionTag"
:
"Remove"
,
"uIActionType"
:
"DEUIACTION"
},
"tooltip"
:
"删除"
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.REMOVE"
},
"showCaption"
:
true
,
"showIcon"
:
false
},
{
"itemType"
:
"SEPERATOR"
,
"name"
:
"tbitem9"
,
"spanMode"
:
false
},
{
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.EXPORT"
},
"caption"
:
"导出"
,
"groupExtractMode"
:
"ITEM"
,
"itemType"
:
"DEUIACTION"
,
"name"
:
"tbitem13"
,
"noPrivDisplayMode"
:
2
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem13"
},
"getPSSysImage"
:
{
"glyph"
:
"xf1c3@FontAwesome"
,
"cssClass"
:
"fa fa-file-excel-o"
},
"getPSUIAction"
:
{
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TEXT.*.EXPORT"
},
"caption"
:
"导出"
,
"codeName"
:
"ExportExcel"
,
"fullCodeName"
:
"ExportExcel"
,
"name"
:
"表格界面_导出操作(Excel)"
,
"getPSSysImage"
:
{
"glyph"
:
"xf1c3@FontAwesome"
,
"cssClass"
:
"fa fa-file-excel-o"
},
"predefinedType"
:
"GRIDVIEW_EXPORTACTION"
,
"timeout"
:
60000
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.EXPORT"
},
"uIActionMode"
:
"SYS"
,
"uIActionTag"
:
"ExportExcel"
,
"uIActionType"
:
"DEUIACTION"
},
"tooltip"
:
"导出"
,
"getTooltipPSLanguageRes"
:
{
"lanResTag"
:
"TBB.TOOLTIP.*.EXPORT"
},
"showCaption"
:
true
,
"showIcon"
:
true
},
{
"itemType"
:
"SEPERATOR"
,
"name"
:
"tbitem10"
,
"spanMode"
:
false
},
{
"caption"
:
"其它"
,
"itemType"
:
"ITEMS"
,
"name"
:
"tbitem16"
,
"getPSDEToolbarItems"
:
[
{
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"MENUITEM.CAPTION.*.EXPORTSRF"
},
"caption"
:
"导出数据模型"
,
"groupExtractMode"
:
"ITEM"
,
"itemType"
:
"DEUIACTION"
,
"name"
:
"tbitem21"
,
"noPrivDisplayMode"
:
2
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem21"
},
"getPSSysImage"
:
{
"glyph"
:
"xf019@FontAwesome"
,
"cssClass"
:
"fa fa-download"
},
"getPSUIAction"
:
{
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"MENUITEM.CAPTION.*.EXPORTSRF"
},
"caption"
:
"导出数据模型"
,
"codeName"
:
"ExportModel"
,
"fullCodeName"
:
"ExportModel"
,
"name"
:
"表格界面_导出数据模型"
,
"getPSSysImage"
:
{
"glyph"
:
"xf019@FontAwesome"
,
"cssClass"
:
"fa fa-download"
},
"predefinedType"
:
"GRIDVIEW_EXPORTXMLACTION"
,
"timeout"
:
60000
,
"uIActionMode"
:
"SYS"
,
"uIActionTag"
:
"ExportModel"
,
"uIActionType"
:
"DEUIACTION"
},
"tooltip"
:
"导出数据模型"
,
"showCaption"
:
true
,
"showIcon"
:
true
},
{
"caption"
:
"数据导入"
,
"groupExtractMode"
:
"ITEM"
,
"itemType"
:
"DEUIACTION"
,
"name"
:
"tbitem23"
,
"noPrivDisplayMode"
:
2
,
"getPSAppViewUIAction"
:
{
"modelref"
:
true
,
"id"
:
"toolbar_tbitem23"
},
"getPSSysImage"
:
{
"glyph"
:
"xf093@FontAwesome"
,
"cssClass"
:
"fa fa-upload"
},
"getPSUIAction"
:
{
"caption"
:
"数据导入"
,
"codeName"
:
"Import"
,
"fullCodeName"
:
"Import"
,
"name"
:
"表格界面_数据导入栏"
,
"getPSSysImage"
:
{
"glyph"
:
"xf093@FontAwesome"
,
"cssClass"
:
"fa fa-upload"
},
"predefinedType"
:
"GRIDVIEW_IMPORTBAR"
,
"timeout"
:
60000
,
"uIActionMode"
:
"SYS"
,
"uIActionTag"
:
"Import"
,
"uIActionType"
:
"DEUIACTION"
},
"tooltip"
:
"数据导入"
,
"showCaption"
:
true
,
"showIcon"
:
true
}
],
"tooltip"
:
"其它"
,
"showCaption"
:
true
,
"showIcon"
:
true
}
],
"modelid"
:
"41ec2a0b8e2256c9eee112003a6acd60"
,
"modeltype"
:
"PSDETOOLBAR"
},
{
"aggMode"
:
"NONE"
,
"codeName"
:
"Main"
,
"columnEnableLink"
:
2
,
"controlType"
:
"GRID"
,
"dynaModelFilePath"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021/PSGRIDS/Main.json"
,
"getFetchPSControlAction"
:
{
"modelref"
:
true
,
"id"
:
"fetch"
},
"groupMode"
:
"NONE"
,
"hookEventNames"
:
[
"ROWDBLCLICK"
,
"SELECTIONCHANGE"
,
"REMOVE"
,
"LOAD"
,
"BEFORELOAD"
],
"logicName"
:
"主表格"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
},
"getPSControlHandler"
:
{
"getPSHandlerActions"
:
[
{
"actionName"
:
"Get"
,
"actionType"
:
"DEACTION"
,
"dataAccessAction"
:
"READ"
,
"name"
:
"load"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"Get"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
}
},
{
"actionName"
:
"Create"
,
"actionType"
:
"DEACTION"
,
"dataAccessAction"
:
"CREATE"
,
"name"
:
"create"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"Create"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
}
},
{
"actionName"
:
"Update"
,
"actionType"
:
"DEACTION"
,
"dataAccessAction"
:
"UPDATE"
,
"name"
:
"update"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"Update"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
}
},
{
"actionName"
:
"Remove"
,
"actionType"
:
"DEACTION"
,
"dataAccessAction"
:
"DELETE"
,
"name"
:
"remove"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"Remove"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
}
},
{
"actionName"
:
"GetDraft"
,
"actionType"
:
"DEACTION"
,
"dataAccessAction"
:
"CREATE"
,
"name"
:
"loaddraft"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"GetDraft"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
}
},
{
"actionType"
:
"DEDATASET"
,
"name"
:
"fetch"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"FetchDefault"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
}
}
],
"userDRAction"
:
"READ"
,
"enableDEFieldPrivilege"
:
false
,
"id"
:
"数据表格处理器"
},
"getPSControlLogics"
:
[
{
"eventNames"
:
"ROWDBLCLICK;SELECTIONCHANGE;REMOVE;LOAD;BEFORELOAD"
,
"logicTag"
:
"grid"
,
"logicType"
:
"APPVIEWENGINE"
,
"name"
:
"engine_grid"
,
"getPSAppViewEngine"
:
{
"modelref"
:
true
,
"id"
:
"engine"
}
}
],
"getPSControlParam"
:
{
"autoLoad"
:
true
,
"showBusyIndicator"
:
true
,
"id"
:
"GRID"
},
"getPSDEGridColumns"
:
[
{
"align"
:
"LEFT"
,
"cLConvertMode"
:
"NONE"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"DEF.LNAME.IBIZSAMPLE0021NAME"
},
"caption"
:
"订单名称"
,
"codeName"
:
"ibizsample0021name"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ibizsample0021name"
,
"excelCaption"
:
"订单名称"
,
"name"
:
"ibizsample0021name"
,
"noPrivDisplayMode"
:
1
,
"getPSAppDEField"
:
{
"name"
:
"IBIZSAMPLE0021NAME"
,
"codeName"
:
"IBIZSample0021Name"
},
"width"
:
200
,
"widthUnit"
:
"PX"
,
"enableSort"
:
true
},
{
"align"
:
"LEFT"
,
"cLConvertMode"
:
"NONE"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"DEF.LNAME.ORDERTIME"
},
"caption"
:
"订单时间"
,
"codeName"
:
"ordertime"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"ordertime"
,
"excelCaption"
:
"订单时间"
,
"name"
:
"ordertime"
,
"noPrivDisplayMode"
:
1
,
"getPSAppDEField"
:
{
"name"
:
"ORDERTIME"
,
"codeName"
:
"OrderTime"
},
"valueFormat"
:
"YYYY-MM-DD"
,
"width"
:
200
,
"widthUnit"
:
"PX"
,
"enableSort"
:
true
},
{
"align"
:
"LEFT"
,
"cLConvertMode"
:
"FRONT"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"DEF.LNAME.ORDERSTATE"
},
"caption"
:
"订单状态"
,
"codeName"
:
"orderstate"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"orderstate"
,
"excelCaption"
:
"订单状态"
,
"name"
:
"orderstate"
,
"noPrivDisplayMode"
:
1
,
"getPSAppCodeList"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPCODELISTS/ORDERSTATE.json"
},
"getPSAppDEField"
:
{
"name"
:
"ORDERSTATE"
,
"codeName"
:
"OrderState"
},
"width"
:
200
,
"widthUnit"
:
"PX"
,
"enableSort"
:
true
},
{
"align"
:
"LEFT"
,
"cLConvertMode"
:
"NONE"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"DEF.LNAME.MEMO"
},
"caption"
:
"备注"
,
"codeName"
:
"memo"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"memo"
,
"excelCaption"
:
"备注"
,
"name"
:
"memo"
,
"noPrivDisplayMode"
:
1
,
"getPSAppDEField"
:
{
"name"
:
"MEMO"
,
"codeName"
:
"Memo"
},
"width"
:
100
,
"widthUnit"
:
"PX"
,
"enableSort"
:
true
},
{
"align"
:
"LEFT"
,
"cLConvertMode"
:
"FRONT"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"DEF.LNAME.UPDATEMAN"
},
"caption"
:
"更新人"
,
"codeName"
:
"updateman"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"updateman"
,
"excelCaption"
:
"更新人"
,
"name"
:
"updateman"
,
"noPrivDisplayMode"
:
1
,
"getPSAppCodeList"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPCODELISTS/SysOperator.json"
},
"getPSAppDEField"
:
{
"name"
:
"UPDATEMAN"
,
"codeName"
:
"UpdateMan"
},
"width"
:
150
,
"widthUnit"
:
"PX"
,
"enableSort"
:
true
},
{
"align"
:
"LEFT"
,
"cLConvertMode"
:
"NONE"
,
"getCapPSLanguageRes"
:
{
"lanResTag"
:
"DEF.LNAME.UPDATEDATE"
},
"caption"
:
"更新时间"
,
"codeName"
:
"updatedate"
,
"columnType"
:
"DEFGRIDCOLUMN"
,
"dataItemName"
:
"updatedate"
,
"excelCaption"
:
"更新时间"
,
"name"
:
"updatedate"
,
"noPrivDisplayMode"
:
1
,
"getPSAppDEField"
:
{
"name"
:
"UPDATEDATE"
,
"codeName"
:
"UpdateDate"
},
"valueFormat"
:
"YYYY-MM-DD HH:mm:ss"
,
"width"
:
150
,
"widthUnit"
:
"PX"
,
"enableSort"
:
true
}
],
"getPSDEGridDataItems"
:
[
{
"dataType"
:
25
,
"name"
:
"ibizsample0021name"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZSAMPLE0021NAME"
,
"codeName"
:
"IBIZSample0021Name"
}
},
{
"format"
:
"YYYY-MM-DD"
,
"dataType"
:
5
,
"name"
:
"ordertime"
,
"getPSAppDEField"
:
{
"name"
:
"ORDERTIME"
,
"codeName"
:
"OrderTime"
}
},
{
"dataType"
:
25
,
"name"
:
"orderstate"
,
"getPSAppDEField"
:
{
"name"
:
"ORDERSTATE"
,
"codeName"
:
"OrderState"
}
},
{
"dataType"
:
25
,
"name"
:
"memo"
,
"getPSAppDEField"
:
{
"name"
:
"MEMO"
,
"codeName"
:
"Memo"
}
},
{
"dataType"
:
25
,
"name"
:
"updateman"
,
"getPSAppDEField"
:
{
"name"
:
"UPDATEMAN"
,
"codeName"
:
"UpdateMan"
}
},
{
"format"
:
"YYYY-MM-DD HH:mm:ss"
,
"dataType"
:
5
,
"name"
:
"updatedate"
,
"getPSAppDEField"
:
{
"name"
:
"UPDATEDATE"
,
"codeName"
:
"UpdateDate"
}
},
{
"dataType"
:
25
,
"name"
:
"ibizsample0021id"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZSAMPLE0021ID"
,
"codeName"
:
"IBIZSample0021Id"
}
},
{
"dataType"
:
25
,
"name"
:
"srfkey"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZSAMPLE0021ID"
,
"codeName"
:
"IBIZSample0021Id"
}
},
{
"dataType"
:
25
,
"name"
:
"srfdataaccaction"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZSAMPLE0021ID"
,
"codeName"
:
"IBIZSample0021Id"
},
"dataAccessAction"
:
true
},
{
"dataType"
:
25
,
"name"
:
"srfmajortext"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZSAMPLE0021NAME"
,
"codeName"
:
"IBIZSample0021Name"
}
},
{
"dataType"
:
25
,
"name"
:
"srfmstag"
}
],
"getPSDEGridEditItems"
:
[
{
"caption"
:
"订单标识"
,
"codeName"
:
"srfkey"
,
"enableCond"
:
3
,
"ignoreInput"
:
0
,
"name"
:
"srfkey"
,
"getPSAppDEField"
:
{
"name"
:
"IBIZSAMPLE0021ID"
,
"codeName"
:
"IBIZSample0021Id"
},
"getPSEditor"
:
{
"editorType"
:
"HIDDEN"
,
"name"
:
"srfkey"
},
"allowEmpty"
:
true
}
],
"pagingSize"
:
20
,
"getRemovePSControlAction"
:
{
"actionName"
:
"Remove"
,
"actionType"
:
"DEACTION"
,
"dataAccessAction"
:
"DELETE"
,
"name"
:
"remove"
,
"getPSAppDEMethod"
:
{
"modelref"
:
true
,
"id"
:
"Remove"
},
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
}
},
"sortMode"
:
"REMOTE"
,
"hasWFDataItems"
:
false
,
"enableColFilter"
:
false
,
"enableCustomized"
:
true
,
"enableGroup"
:
false
,
"enablePagingBar"
:
true
,
"enableRowEdit"
:
false
,
"enableRowEditOrder"
:
false
,
"enableRowNew"
:
false
,
"forceFit"
:
false
,
"hideHeader"
:
false
,
"noSort"
:
false
,
"singleSelect"
:
false
,
"name"
:
"grid"
,
"modelid"
:
"9830078dd42f5d0c28b46c4d32da459e"
,
"modeltype"
:
"PSDEGRID"
}
],
"getPSDEViewCodeName"
:
"GridView_layout"
,
"getPSDEViewId"
:
"F448AABD-5F08-4F6D-99C3-101842907C15"
,
"getPSViewLayoutPanel"
:
{
"codeName"
:
"Layoutpanel"
,
"controlType"
:
"VIEWLAYOUTPANEL"
,
"layoutMode"
:
"TABLE_24COL"
,
"logicName"
:
"工作流视图"
,
"name"
:
"layoutpanel"
,
"getPSAppDataEntity"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDATAENTITIES/IBIZSample0021.json"
},
"getPSControlParam"
:
{
},
"getPSLayout"
:
{
"columnCount"
:
24
,
"layout"
:
"TABLE_24COL"
},
"getRootPSPanelItems"
:
[
{
"caption"
:
"容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"name"
:
"page_container"
,
"getPSLayout"
:
{
"layout"
:
"FLEX"
},
"getPSLayoutPos"
:
{
"colMD"
:
24
,
"layout"
:
"TABLE_24COL"
},
"getPSPanelItems"
:
[
{
"caption"
:
"栅格容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"name"
:
"container_grid1"
,
"getPSLayout"
:
{
"layout"
:
"SIMPLEFLEX"
},
"getPSLayoutPos"
:
{
"grow"
:
-1
,
"layout"
:
"FLEX"
},
"getPSPanelItems"
:
[
{
"caption"
:
"面板容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"name"
:
"container1"
,
"getPSLayout"
:
{
"layout"
:
"SIMPLEFLEX"
},
"getPSLayoutPos"
:
{
"grow"
:
6
,
"layout"
:
"SIMPLEFLEX"
},
"getPSPanelItems"
:
[
{
"caption"
:
"搜索表单"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CTRLPOS"
,
"name"
:
"searchform"
,
"getPSLayoutPos"
:
{
"grow"
:
-1
,
"layout"
:
"SIMPLEFLEX"
},
"showCaption"
:
true
}
]
},
{
"caption"
:
"面板容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"name"
:
"container2"
,
"getPSLayout"
:
{
"layout"
:
"SIMPLEFLEX"
},
"getPSLayoutPos"
:
{
"grow"
:
6
,
"layout"
:
"SIMPLEFLEX"
},
"getPSPanelItems"
:
[
{
"caption"
:
"工具栏"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CTRLPOS"
,
"name"
:
"toolbar"
,
"getPSLayoutPos"
:
{
"grow"
:
-1
,
"layout"
:
"SIMPLEFLEX"
},
"showCaption"
:
true
}
]
}
]
},
{
"caption"
:
"容器"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CONTAINER"
,
"name"
:
"container3"
,
"getPSLayout"
:
{
"layout"
:
"FLEX"
},
"getPSLayoutPos"
:
{
"grow"
:
-1
,
"layout"
:
"FLEX"
},
"getPSPanelItems"
:
[
{
"caption"
:
"表格"
,
"itemStyle"
:
"DEFAULT"
,
"itemType"
:
"CTRLPOS"
,
"name"
:
"grid"
,
"getPSLayoutPos"
:
{
"grow"
:
-1
,
"layout"
:
"FLEX"
},
"showCaption"
:
true
}
]
}
]
}
],
"layoutBodyOnly"
:
true
,
"layoutPanel"
:
true
,
"useDefaultLayout"
:
false
,
"modelid"
:
"99ECC80D-6051-4F6E-B4B4-B018B25CD299"
,
"modeltype"
:
"PSSYSVIEWLAYOUTPANEL"
},
"title"
:
"订单表格视图"
,
"getTitlePSLanguageRes"
:
{
"lanResTag"
:
"PAGE.TITLE.IBIZSAMPLE0021.GRIDVIEW"
},
"viewStyle"
:
"DEFAULT"
,
"viewType"
:
"DEGRIDVIEW"
,
"xDataControlName"
:
"grid"
,
"enableDP"
:
true
,
"enableExport"
:
true
,
"enableFilter"
:
true
,
"enableImport"
:
true
,
"enableQuickSearch"
:
true
,
"enableRowEdit"
:
false
,
"enableSearch"
:
true
,
"rowEditDefault"
:
false
,
"showCaptionBar"
:
false
,
"modelid"
:
"ef0aa2f297f599cdbc14fc8393b78a1d"
,
"modeltype"
:
"PSAPPDEVIEW"
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPINDEXVIEWS/index.json
浏览文件 @
c2765177
...
...
@@ -4242,7 +4242,7 @@
"name"
:
"menuitem225"
,
"getPSAppFunc"
:
{
"modelref"
:
true
,
"id"
:
"AppFunc
86
"
"id"
:
"AppFunc
123
"
},
"getPSLayout"
:
{
"columnCount"
:
24
,
...
...
@@ -4293,7 +4293,7 @@
"name"
:
"menuitem230"
,
"getPSAppFunc"
:
{
"modelref"
:
true
,
"id"
:
"AppFunc
22
"
"id"
:
"AppFunc
124
"
},
"getPSLayout"
:
{
"columnCount"
:
24
,
...
...
This diff is collapsed.
Click to expand it.
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSAPPMENUS/MainMenu.json
浏览文件 @
c2765177
...
...
@@ -2345,7 +2345,7 @@
"name"
:
"menuitem225"
,
"getPSAppFunc"
:
{
"modelref"
:
true
,
"id"
:
"AppFunc
86
"
"id"
:
"AppFunc
123
"
},
"tooltip"
:
"工作流启动"
},
{
...
...
@@ -2372,7 +2372,7 @@
"name"
:
"menuitem230"
,
"getPSAppFunc"
:
{
"modelref"
:
true
,
"id"
:
"AppFunc
22
"
"id"
:
"AppFunc
124
"
},
"tooltip"
:
"自定义视图"
}
],
...
...
This diff is collapsed.
Click to expand it.
demo-boot/src/main/resources/static/remotemodel/PSSYSAPPS/Web/PSSYSAPP.json
浏览文件 @
c2765177
...
...
@@ -2007,6 +2007,16 @@
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderPieChartView.json"
,
"viewType"
:
"DECHARTVIEW"
}
},
{
"appFuncType"
:
"APPVIEW"
,
"codeName"
:
"AppFunc124"
,
"name"
:
"自定义视图(布局面板)"
,
"openMode"
:
"INDEXVIEWTAB"
,
"getPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKCustomView_layout.json"
,
"viewType"
:
"DECUSTOMVIEW"
}
},
{
"appFuncType"
:
"APPVIEW"
,
"codeName"
:
"Auto393"
,
...
...
@@ -2407,6 +2417,16 @@
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderSF3GridView.json"
,
"viewType"
:
"DEGRIDVIEW"
}
},
{
"appFuncType"
:
"APPVIEW"
,
"codeName"
:
"AppFunc123"
,
"name"
:
"工作流启动(布局面板)"
,
"openMode"
:
"INDEXVIEWTAB"
,
"getPSAppView"
:
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0021GridView_layout.json"
,
"viewType"
:
"DEGRIDVIEW"
}
},
{
"appFuncType"
:
"APPVIEW"
,
"codeName"
:
"AppFunc81"
,
...
...
@@ -14702,6 +14722,12 @@
"viewType"
:
"DEGRIDVIEW"
,
"resource"
:
"IBIZBOOK"
,
"view"
:
"UiActionGridView"
},
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZSample0021GridView_layout.json"
,
"viewType"
:
"DEGRIDVIEW"
,
"resource"
:
"IBIZSample0021"
,
"view"
:
"GridView_layout"
},
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZOrderPickupView.json"
,
...
...
@@ -14774,6 +14800,12 @@
"viewType"
:
"DEGRIDVIEW"
,
"resource"
:
"IBIZBOOK"
,
"view"
:
"Usr8GridView"
},
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKCustomView_layout.json"
,
"viewType"
:
"DECUSTOMVIEW"
,
"resource"
:
"IBIZBOOK"
,
"view"
:
"CustomView_layout"
},
{
"modelref"
:
true
,
"path"
:
"PSSYSAPPS/Web/PSAPPDEVIEWS/IBIZBOOKUsr9GridView.json"
,
...
...
@@ -19127,7 +19159,7 @@
"name"
:
"menuitem225"
,
"getPSAppFunc"
:
{
"modelref"
:
true
,
"id"
:
"AppFunc
86
"
"id"
:
"AppFunc
123
"
},
"getPSLayout"
:
{
"columnCount"
:
24
,
...
...
@@ -19178,7 +19210,7 @@
"name"
:
"menuitem230"
,
"getPSAppFunc"
:
{
"modelref"
:
true
,
"id"
:
"AppFunc
22
"
"id"
:
"AppFunc
124
"
},
"getPSLayout"
:
{
"columnCount"
:
24
,
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录