Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
44f4fe3c
提交
44f4fe3c
编写于
12月 01, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
b3e68ab4
变更
39
隐藏空白字符变更
内嵌
并排
正在显示
39 个修改的文件
包含
2689 行增加
和
75 行删除
+2689
-75
ibizorder_en_US.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
+54
-0
ibizorder_zh_CN.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
+54
-0
state.ts
app_Web/src/store/modules/view-action/state.ts
+1
-0
internal-func-grid-base.vue
...s/ibizbook/internal-func-grid/internal-func-grid-base.vue
+6
-6
main2-grid-base.vue
app_Web/src/widgets/ibizbook/main2-grid/main2-grid-base.vue
+6
-6
main3-grid-base.vue
app_Web/src/widgets/ibizbook/main3-grid/main3-grid-base.vue
+6
-6
main4-grid-base.vue
app_Web/src/widgets/ibizbook/main4-grid/main4-grid-base.vue
+6
-6
main5-grid-base.vue
app_Web/src/widgets/ibizbook/main5-grid/main5-grid-base.vue
+6
-6
new-default-grid-base.vue
...dgets/ibizbook/new-default-grid/new-default-grid-base.vue
+6
-6
row-edit-grid-base.vue
...src/widgets/ibizbook/row-edit-grid/row-edit-grid-base.vue
+6
-6
row-rules-grid-base.vue
...c/widgets/ibizbook/row-rules-grid/row-rules-grid-base.vue
+6
-6
tree-table-treegridex-base.vue
...book/tree-table-treegridex/tree-table-treegridex-base.vue
+5
-5
update-default-grid-base.vue
...ibizbook/update-default-grid/update-default-grid-base.vue
+6
-6
main-grid-base.vue
app_Web/src/widgets/ibizorder/main-grid/main-grid-base.vue
+2
-2
main2-grid-base.vue
app_Web/src/widgets/ibizorder/main2-grid/main2-grid-base.vue
+2
-2
portal-components-operation-portlet-base.vue
...tion-portlet/portal-components-operation-portlet-base.vue
+453
-0
portal-components-operation-portlet-model.ts
...tion-portlet/portal-components-operation-portlet-model.ts
+88
-0
portal-components-operation-portlet-service.ts
...on-portlet/portal-components-operation-portlet-service.ts
+11
-0
portal-components-operation-portlet.less
...peration-portlet/portal-components-operation-portlet.less
+63
-0
portal-components-operation-portlet.vue
...operation-portlet/portal-components-operation-portlet.vue
+15
-0
portal-components-tool-portlet-base.vue
...ents-tool-portlet/portal-components-tool-portlet-base.vue
+1135
-0
portal-components-tool-portlet-model.ts
...ents-tool-portlet/portal-components-tool-portlet-model.ts
+88
-0
portal-components-tool-portlet-service.ts
...ts-tool-portlet/portal-components-tool-portlet-service.ts
+11
-0
portal-components-tool-portlet.less
...mponents-tool-portlet/portal-components-tool-portlet.less
+64
-0
portal-components-tool-portlet.vue
...omponents-tool-portlet/portal-components-tool-portlet.vue
+15
-0
portal-components-web-portlet-base.vue
...onents-web-portlet/portal-components-web-portlet-base.vue
+325
-0
portal-components-web-portlet-model.ts
...onents-web-portlet/portal-components-web-portlet-model.ts
+88
-0
portal-components-web-portlet-service.ts
...ents-web-portlet/portal-components-web-portlet-service.ts
+11
-0
portal-components-web-portlet.less
...components-web-portlet/portal-components-web-portlet.less
+63
-0
portal-components-web-portlet.vue
...-components-web-portlet/portal-components-web-portlet.vue
+15
-0
uipart-0015-grid-base.vue
...gets/ibizorder/uipart-0015-grid/uipart-0015-grid-base.vue
+2
-2
uipart-0017-grid-base.vue
...gets/ibizorder/uipart-0017-grid/uipart-0017-grid-base.vue
+2
-2
uipart-0018-grid-base.vue
...gets/ibizorder/uipart-0018-grid/uipart-0018-grid-base.vue
+2
-2
usr-dashboard-base.vue
...rc/widgets/ibizorder/usr-dashboard/usr-dashboard-base.vue
+54
-0
usr-dashboard.vue
...Web/src/widgets/ibizorder/usr-dashboard/usr-dashboard.vue
+6
-0
IBIZBOOKDataImport.java
...va/cn/ibizlab/core/sample/mapping/IBIZBOOKDataImport.java
+3
-3
IBIZOrderImport.java
.../java/cn/ibizlab/core/sample/mapping/IBIZOrderImport.java
+1
-1
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+1
-1
view.xml
demo-core/src/main/resources/liquibase/view.xml
+1
-1
未找到文件。
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
浏览文件 @
44f4fe3c
...
...
@@ -1631,6 +1631,60 @@ export default {
tip
:
"Print"
,
},
},
dashboardviewdashboard_sysportlet4_toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"New"
,
tip
:
"New"
,
},
deuiaction2
:
{
caption
:
"Save"
,
tip
:
"Save"
,
},
tbitem4
:
{
caption
:
"Edit"
,
tip
:
"Edit {0}"
,
},
tbitem6
:
{
caption
:
"Copy"
,
tip
:
"Copy {0}"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"Remove"
,
tip
:
"Remove {0}"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"Export"
,
tip
:
"Export {0} Data To Excel"
,
},
deuiaction1
:
{
caption
:
"导入"
,
tip
:
"导入"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem16
:
{
caption
:
"其它"
,
tip
:
"其它"
,
},
tbitem21
:
{
caption
:
"Export Data Model"
,
tip
:
"导出数据模型"
,
},
tbitem23
:
{
caption
:
"数据导入"
,
tip
:
"数据导入"
,
},
},
odsp_d20_wfgridviewtoolbar_toolbar
:
{
tbitem26
:
{
caption
:
"New"
,
...
...
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
浏览文件 @
44f4fe3c
...
...
@@ -1630,6 +1630,60 @@ export default {
tip
:
"打印"
,
},
},
dashboardviewdashboard_sysportlet4_toolbar_toolbar
:
{
tbitem3
:
{
caption
:
"新建"
,
tip
:
"新建"
,
},
deuiaction2
:
{
caption
:
"保存"
,
tip
:
"保存"
,
},
tbitem4
:
{
caption
:
"编辑"
,
tip
:
"编辑"
,
},
tbitem6
:
{
caption
:
"拷贝"
,
tip
:
"拷贝"
,
},
tbitem7
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem8
:
{
caption
:
"删除"
,
tip
:
"删除"
,
},
tbitem9
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem13
:
{
caption
:
"导出"
,
tip
:
"导出"
,
},
deuiaction1
:
{
caption
:
"导入"
,
tip
:
"导入"
,
},
tbitem10
:
{
caption
:
"-"
,
tip
:
""
,
},
tbitem16
:
{
caption
:
"其它"
,
tip
:
"其它"
,
},
tbitem21
:
{
caption
:
"导出数据模型"
,
tip
:
"导出数据模型"
,
},
tbitem23
:
{
caption
:
"数据导入"
,
tip
:
"数据导入"
,
},
},
odsp_d20_wfgridviewtoolbar_toolbar
:
{
tbitem26
:
{
caption
:
"新建"
,
...
...
app_Web/src/store/modules/view-action/state.ts
浏览文件 @
44f4fe3c
...
...
@@ -852,6 +852,7 @@ export const viewstate: any = {
viewaction
:
''
,
viewdatachange
:
false
,
refviews
:
[
'f4cda6703c800c075704c5af5e58f2fc'
,
],
},
{
...
...
app_Web/src/widgets/ibizbook/internal-func-grid/internal-func-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1068,17 +1068,17 @@ export default class InternalFuncBase extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"
PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press
"
,
"order"
:
1000
},
"
CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate
"
,
"order"
:
1000
},
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
"UPDATEDATE"
:{
"headername"
:
"更新时间"
,
"isuniqueitem"
:
false
,
"name"
:
"updatedate"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"IBIZBOOKID"
:{
"headername"
:
"图书标识"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookid"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"TYPE"
:{
"headername"
:
"图书类型"
,
"isuniqueitem"
:
false
,
"name"
:
"type"
,
"order"
:
1000
},
"CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate"
,
"order"
:
1000
}
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizbook/main2-grid/main2-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1079,17 +1079,17 @@ export default class Main2Base extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"
PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press
"
,
"order"
:
1000
},
"
CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate
"
,
"order"
:
1000
},
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
"UPDATEDATE"
:{
"headername"
:
"更新时间"
,
"isuniqueitem"
:
false
,
"name"
:
"updatedate"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"IBIZBOOKID"
:{
"headername"
:
"图书标识"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookid"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"TYPE"
:{
"headername"
:
"图书类型"
,
"isuniqueitem"
:
false
,
"name"
:
"type"
,
"order"
:
1000
},
"CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate"
,
"order"
:
1000
}
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizbook/main3-grid/main3-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1079,17 +1079,17 @@ export default class Main3Base extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"
PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press
"
,
"order"
:
1000
},
"
CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate
"
,
"order"
:
1000
},
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
"UPDATEDATE"
:{
"headername"
:
"更新时间"
,
"isuniqueitem"
:
false
,
"name"
:
"updatedate"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"IBIZBOOKID"
:{
"headername"
:
"图书标识"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookid"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"TYPE"
:{
"headername"
:
"图书类型"
,
"isuniqueitem"
:
false
,
"name"
:
"type"
,
"order"
:
1000
},
"CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate"
,
"order"
:
1000
}
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizbook/main4-grid/main4-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1070,17 +1070,17 @@ export default class Main4Base extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"
PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press
"
,
"order"
:
1000
},
"
CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate
"
,
"order"
:
1000
},
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
"UPDATEDATE"
:{
"headername"
:
"更新时间"
,
"isuniqueitem"
:
false
,
"name"
:
"updatedate"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"IBIZBOOKID"
:{
"headername"
:
"图书标识"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookid"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"TYPE"
:{
"headername"
:
"图书类型"
,
"isuniqueitem"
:
false
,
"name"
:
"type"
,
"order"
:
1000
},
"CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate"
,
"order"
:
1000
}
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizbook/main5-grid/main5-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1086,17 +1086,17 @@ export default class Main5Base extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"
PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press
"
,
"order"
:
1000
},
"
CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate
"
,
"order"
:
1000
},
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
"UPDATEDATE"
:{
"headername"
:
"更新时间"
,
"isuniqueitem"
:
false
,
"name"
:
"updatedate"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"IBIZBOOKID"
:{
"headername"
:
"图书标识"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookid"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"TYPE"
:{
"headername"
:
"图书类型"
,
"isuniqueitem"
:
false
,
"name"
:
"type"
,
"order"
:
1000
},
"CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate"
,
"order"
:
1000
}
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizbook/new-default-grid/new-default-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1206,17 +1206,17 @@ export default class NewDefaultBase extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"
PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press
"
,
"order"
:
1000
},
"
CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate
"
,
"order"
:
1000
},
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
"UPDATEDATE"
:{
"headername"
:
"更新时间"
,
"isuniqueitem"
:
false
,
"name"
:
"updatedate"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"IBIZBOOKID"
:{
"headername"
:
"图书标识"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookid"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"TYPE"
:{
"headername"
:
"图书类型"
,
"isuniqueitem"
:
false
,
"name"
:
"type"
,
"order"
:
1000
},
"CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate"
,
"order"
:
1000
}
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizbook/row-edit-grid/row-edit-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1287,17 +1287,17 @@ export default class RowEditBase extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"
PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press
"
,
"order"
:
1000
},
"
CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate
"
,
"order"
:
1000
},
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
"UPDATEDATE"
:{
"headername"
:
"更新时间"
,
"isuniqueitem"
:
false
,
"name"
:
"updatedate"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"IBIZBOOKID"
:{
"headername"
:
"图书标识"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookid"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"TYPE"
:{
"headername"
:
"图书类型"
,
"isuniqueitem"
:
false
,
"name"
:
"type"
,
"order"
:
1000
},
"CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate"
,
"order"
:
1000
}
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizbook/row-rules-grid/row-rules-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1236,17 +1236,17 @@ export default class RowRulesBase extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"
PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press
"
,
"order"
:
1000
},
"
CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate
"
,
"order"
:
1000
},
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
"UPDATEDATE"
:{
"headername"
:
"更新时间"
,
"isuniqueitem"
:
false
,
"name"
:
"updatedate"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"IBIZBOOKID"
:{
"headername"
:
"图书标识"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookid"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"TYPE"
:{
"headername"
:
"图书类型"
,
"isuniqueitem"
:
false
,
"name"
:
"type"
,
"order"
:
1000
},
"CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate"
,
"order"
:
1000
}
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizbook/tree-table-treegridex/tree-table-treegridex-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -15,11 +15,6 @@
<template
slot=
"empty"
>
{{
$t
(
'entities.ibizbook.treetable_treegridex.nodata'
)
}}
</
template
>
<el-table-column
show-overflow-tooltip
prop=
"author"
label=
"作者"
:width=
"50"
:align=
"''"
>
<
template
v-slot=
"{ row }"
>
<span>
{{
getColumnValue
(
row
,
'author'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop=
"subtext"
label=
"图书描述"
:width=
"50"
:align=
"''"
>
<
template
v-slot=
"{ row }"
>
<span>
{{
getColumnValue
(
row
,
'subtext'
)
}}
</span>
...
...
@@ -30,6 +25,11 @@
<span>
{{
getColumnValue
(
row
,
'ibizbookname'
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
prop=
"author"
label=
"作者"
:width=
"50"
:align=
"''"
>
<
template
v-slot=
"{ row }"
>
<span>
{{
getColumnValue
(
row
,
'author'
)
}}
</span>
</
template
>
</el-table-column>
</el-table>
</template>
...
...
app_Web/src/widgets/ibizbook/update-default-grid/update-default-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1206,17 +1206,17 @@ export default class UpdateDefaultBase extends Vue implements ControlInterface {
serviceName
:
'ibizbook'
,
appDeLogicName
:
'图书'
,
importData
:{
"
PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press
"
,
"order"
:
1000
},
"
CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate
"
,
"order"
:
1000
},
"IBIZBOOKNAME"
:{
"headername"
:
"图书名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookname"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"UPDATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"更新人"
,
"isuniqueitem"
:
false
,
"name"
:
"updateman"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
},
"UPDATEDATE"
:{
"headername"
:
"更新时间"
,
"isuniqueitem"
:
false
,
"name"
:
"updatedate"
,
"order"
:
1000
},
"PRESS"
:{
"headername"
:
"图书出版社"
,
"isuniqueitem"
:
false
,
"name"
:
"press"
,
"order"
:
1000
},
"IBIZBOOKID"
:{
"headername"
:
"图书标识"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizbookid"
,
"order"
:
1000
},
"AUTHOR"
:{
"headername"
:
"图书作者"
,
"isuniqueitem"
:
false
,
"name"
:
"author"
,
"order"
:
1000
},
"PRICE"
:{
"headername"
:
"图书价格"
,
"isuniqueitem"
:
false
,
"name"
:
"price"
,
"order"
:
1000
},
"TYPE"
:{
"headername"
:
"图书类型"
,
"isuniqueitem"
:
false
,
"name"
:
"type"
,
"order"
:
1000
},
"CREATEDATE"
:{
"headername"
:
"建立时间"
,
"isuniqueitem"
:
false
,
"name"
:
"createdate"
,
"order"
:
1000
}
"BOOKNUMBER"
:{
"headername"
:
"图书数量"
,
"isuniqueitem"
:
false
,
"name"
:
"booknumber"
,
"order"
:
1000
},
"CREATEMAN"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"SysOperator"
,
"isnumber"
:
false
},
"headername"
:
"建立人"
,
"isuniqueitem"
:
false
,
"name"
:
"createman"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizorder/main-grid/main-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1072,8 +1072,8 @@ export default class MainBase extends Vue implements ControlInterface {
importData
:{
"ORDERTYPE"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"ORDERTYPE"
,
"isnumber"
:
false
},
"headername"
:
"订单类型"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertype"
,
"order"
:
1000
},
"ORDERTIME"
:{
"headername"
:
"订单时间"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertime"
,
"order"
:
1000
},
"
ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid
"
,
"order"
:
1000
},
"
IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername
"
,
"order"
:
1000
}
"
IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername
"
,
"order"
:
1000
},
"
ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid
"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizorder/main2-grid/main2-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1030,8 +1030,8 @@ export default class Main2Base extends Vue implements ControlInterface {
importData
:{
"ORDERTYPE"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"ORDERTYPE"
,
"isnumber"
:
false
},
"headername"
:
"订单类型"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertype"
,
"order"
:
1000
},
"ORDERTIME"
:{
"headername"
:
"订单时间"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertime"
,
"order"
:
1000
},
"
ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid
"
,
"order"
:
1000
},
"
IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername
"
,
"order"
:
1000
}
"
IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername
"
,
"order"
:
1000
},
"
ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid
"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizorder/portal-components-operation-portlet/portal-components-operation-portlet-base.vue
0 → 100644
浏览文件 @
44f4fe3c
<
template
>
<div
class=
'portlet portal-components-operation '
:style=
"
{'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,}">
<p
class=
'portlet-title'
>
<span>
操作栏
</span>
</p>
<el-divider
class=
"divider"
></el-divider>
<div
class=
"portlet-with-title"
>
<app-actionbar
:viewState=
"viewState"
:uiService=
"appUIService"
:items=
"actionBarModelData"
@
itemClick=
"handleItemClick"
></app-actionbar>
</div>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
,
ViewTool
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
PortalComponentsOperationService
from
'./portal-components-operation-portlet-service'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
import
UIService
from
'@/uiservice/ui-service'
;
import
{
Environment
}
from
'@/environments/environment'
;
@
Component
({
components
:
{
}
})
export
default
class
IBIZOrderPortalComponentsOperationBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof PortalComponentsOperationBase
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof PortalComponentsOperationBase
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof PortalComponentsOperationBase
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof PortalComponentsOperationBase
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof PortalComponentsOperationBase
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof PortalComponentsOperationBase
*/
public
getControlType
():
string
{
return
'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof PortalComponentsOperationBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 建构部件服务对象
*
* @type {PortalComponentsOperationService}
* @memberof PortalComponentsOperationBase
*/
public
service
:
PortalComponentsOperationService
=
new
PortalComponentsOperationService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof PortalComponentsOperationBase
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
$store
});
/**
* 界面UI服务对象
*
* @type {IBIZOrderUIService}
* @memberof PortalComponentsOperationBase
*/
public
appUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
(
this
.
$store
);
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet3_uf098274_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
const
curUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
();
curUIService
.
IBIZOrder_FUIAction1
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet3_u46ee884_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
const
curUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
();
curUIService
.
IBIZOrder_FUIAction2
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet3_u6a01fd4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
const
curUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
();
curUIService
.
IBIZOrder_FUIAction3
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 关闭视图
*
* @param {any} args
* @memberof PortalComponentsOperationBase
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof PortalComponentsOperationBase
*/
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
();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof PortalComponentsOperationBase
*/
@
Prop
()
public
height
?:
number
;
/**
* 宽度
*
* @type {number}
* @memberof PortalComponentsOperationBase
*/
@
Prop
()
public
width
?:
number
;
/**
* 门户部件类型
*
* @type {number}
* @memberof PortalComponentsOperationBase
*/
public
portletType
:
string
=
'actionbar'
;
/**
* 视图默认使用
*
* @type {string}
* @memberof PortalComponentsOperationBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 操作栏模型数据
*
* @returns {any[]}
* @memberof PortalComponentsOperationBase
*/
public
actionBarModelData
:
any
[]
=
[
{
viewlogicname
:
"dashboard_sysportlet3_uf098274_click"
,
actionName
:
"前台界面行为1"
,
icon
:
""
,
visabled
:
true
,
disabled
:
false
},
{
viewlogicname
:
"dashboard_sysportlet3_u46ee884_click"
,
actionName
:
"前台界面行为2"
,
icon
:
""
,
visabled
:
true
,
disabled
:
false
},
{
viewlogicname
:
"dashboard_sysportlet3_u6a01fd4_click"
,
actionName
:
"前台界面行为3"
,
icon
:
""
,
visabled
:
true
,
disabled
:
false
}
];
/**
* 触发界面行为
*
* @memberof PortalComponentsOperationBase
*/
public
handleItemClick
(
$event
:
any
){
let
data
:
any
=
$event
.
params
&&
Object
.
keys
(
$event
.
params
).
length
>
0
?
$event
.
params
:
null
;
if
(
Object
.
is
(
$event
.
tag
,
'dashboard_sysportlet3_uf098274_click'
)){
this
.
dashboard_sysportlet3_uf098274_click
(
data
,
$event
.
tag
,
$event
.
event
);
}
if
(
Object
.
is
(
$event
.
tag
,
'dashboard_sysportlet3_u46ee884_click'
)){
this
.
dashboard_sysportlet3_u46ee884_click
(
data
,
$event
.
tag
,
$event
.
event
);
}
if
(
Object
.
is
(
$event
.
tag
,
'dashboard_sysportlet3_u6a01fd4_click'
)){
this
.
dashboard_sysportlet3_u6a01fd4_click
(
data
,
$event
.
tag
,
$event
.
event
);
}
}
/**
* 界面行为模型数据
*
* @memberof PortalComponentsOperationBase
*/
public
uiactionModel
:
any
=
{
fuiaction1
:
{
name
:
'fuiaction1'
,
actiontarget
:
'NONE'
,
caption
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'FUIAction1'
,
target
:
'NONE'
}
},
fuiaction2
:
{
name
:
'fuiaction2'
,
actiontarget
:
'SINGLEKEY'
,
caption
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'FUIAction2'
,
target
:
'SINGLEKEY'
}
},
fuiaction3
:
{
name
:
'fuiaction3'
,
actiontarget
:
'MULTIKEY'
,
caption
:
''
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'FUIAction3'
,
target
:
'MULTIKEY'
}
},
}
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof PortalComponentsOperationBase
*/
@
Prop
({
default
:
false
})
public
isAdaptiveSize
!
:
boolean
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PortalComponentsOperationBase
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PortalComponentsOperationBase
*/
public
getData
():
any
{
return
{};
}
/**
* 获取高度
*
* @returns {any[]}
* @memberof PortalComponentsOperationBase
*/
get
getHeight
(){
if
(
!
this
.
$util
.
isEmpty
(
this
.
height
)
&&
!
this
.
$util
.
isNumberNaN
(
this
.
height
)){
if
(
this
.
height
==
0
){
return
'auto'
;
}
else
{
return
this
.
height
+
'px'
;
}
}
else
{
return
'200px'
;
}
}
/**
* 刷新
*
* @memberof PortalComponentsOperationBase
*/
public
refresh
(
args
?:
any
)
{
}
/**
* vue 生命周期
*
* @memberof PortalComponentsOperationBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof PortalComponentsOperationBase
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
Object
.
is
(
tag
,
"all-portlet"
)
&&
Object
.
is
(
action
,
'loadmodel'
)){
this
.
calcUIActionAuthState
(
data
);
}
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
const
refs
:
any
=
this
.
$refs
;
Object
.
keys
(
refs
).
forEach
((
_name
:
string
)
=>
{
this
.
viewState
.
next
({
tag
:
_name
,
action
:
action
,
data
:
data
});
});
});
}
}
/**
* vue 生命周期
*
* @memberof PortalComponentsOperationBase
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PortalComponentsOperationBase
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
/**
* 计算界面行为权限
*
* @memberof PortalComponentsOperationBase
*/
public
calcUIActionAuthState
(
data
:
any
=
{})
{
// 如果是操作栏,不计算权限
if
(
this
.
portletType
&&
Object
.
is
(
'actionbar'
,
this
.
portletType
))
{
return
;
}
let
_this
:
any
=
this
;
let
uiservice
:
any
=
_this
.
appUIService
?
_this
.
appUIService
:
new
UIService
(
_this
.
$store
);
if
(
_this
.
uiactionModel
){
ViewTool
.
calcActionItemAuthState
(
data
,
_this
.
uiactionModel
,
uiservice
);
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './portal-components-operation-portlet.less';
</
style
>
app_Web/src/widgets/ibizorder/portal-components-operation-portlet/portal-components-operation-portlet-model.ts
0 → 100644
浏览文件 @
44f4fe3c
/**
* PortalComponentsOperation 部件模型
*
* @export
* @class PortalComponentsOperationModel
*/
export
default
class
PortalComponentsOperationModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PortalComponentsOperationModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'tp'
,
},
{
name
:
'endtime'
,
},
{
name
:
'wfstate'
,
},
{
name
:
'createdate'
,
},
{
name
:
'opinion'
,
},
{
name
:
'updatedate'
,
},
{
name
:
'ordertype'
,
},
{
name
:
'detailnum'
,
},
{
name
:
'wfinstanceid'
,
},
{
name
:
'amount'
,
},
{
name
:
'orderuid'
,
},
{
name
:
'ibizorder'
,
prop
:
'ibizorderid'
,
},
{
name
:
'orderstate'
,
},
{
name
:
'starttime'
,
},
{
name
:
'updateman'
,
},
{
name
:
'wfstep'
,
},
{
name
:
'createman'
,
},
{
name
:
'ibizordername'
,
},
{
name
:
'ordertime'
,
},
{
name
:
'memo'
,
},
{
name
:
'ibizcustomername'
,
},
{
name
:
'ibizcustomerid'
,
},
]
}
}
app_Web/src/widgets/ibizorder/portal-components-operation-portlet/portal-components-operation-portlet-service.ts
0 → 100644
浏览文件 @
44f4fe3c
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* PortalComponentsOperation 部件服务对象
*
* @export
* @class PortalComponentsOperationService
*/
export
default
class
PortalComponentsOperationService
extends
ControlService
{
}
app_Web/src/widgets/ibizorder/portal-components-operation-portlet/portal-components-operation-portlet.less
0 → 100644
浏览文件 @
44f4fe3c
// this is less
.portlet{
height: 100%;
width: 100%;
> .portlet-title{
padding: 14px 16px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 52px;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
justify-content: space-between;
width:100%;
line-height: 22px;
font-size: 16px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #304265;
font-weight: 600;
i{
margin-right: 5px;
}
>.portlet-action{
margin-left: 12px;
font-size: 14px;
>a{
padding: 6px;
}
}
}
> .divider {
margin: 0px 0px 11px 0px;
}
> .portlet-with-title{
width:100%;
height:calc(100% - 52px);
overflow:auto;
padding:0px 12px;
}
> .portlet-without-title{
width:100%;
height:100%;
overflow:auto;
padding:0px 12px;
}
.app-charts{
height: 100%!important;
}
.toolbar-container {
button{
margin: 6px 0px 4px 16px;
}
.ivu-badge{
.ivu-badge-count{
top: 0;
}
}
}
}
app_Web/src/widgets/ibizorder/portal-components-operation-portlet/portal-components-operation-portlet.vue
0 → 100644
浏览文件 @
44f4fe3c
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZOrderPortalComponentsOperationBase
from
'./portal-components-operation-portlet-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
IBIZOrderPortalComponentsOperation
extends
IBIZOrderPortalComponentsOperationBase
{
}
</
script
>
app_Web/src/widgets/ibizorder/portal-components-tool-portlet/portal-components-tool-portlet-base.vue
0 → 100644
浏览文件 @
44f4fe3c
<
template
>
<div
class=
'portlet portal-components-tool '
:style=
"
{'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,}">
<p
class=
'portlet-title'
>
<span>
工具栏
</span>
</p>
<el-divider
class=
"divider"
></el-divider>
<div
class=
"portlet-with-title"
>
<!-- 测试 -->
<div
class=
'toolbar-container'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem3.visabled"
:disabled=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem3.disabled"
class=
' deepskyblueToolBar'
v-loading:i-button
@
click=
"dashboard_sysportlet4_toolbar_click(
{ tag: 'tbitem3' }, $event)">
<i
class=
'fa fa-file-text-o'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem3.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem3.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"dashboardviewdashboard_sysportlet4_toolbarModels.deuiaction2.visabled"
:disabled=
"dashboardviewdashboard_sysportlet4_toolbarModels.deuiaction2.disabled"
class=
''
v-loading:i-button
@
click=
"dashboard_sysportlet4_toolbar_click(
{ tag: 'deuiaction2' }, $event)">
<i
class=
'fa fa-save'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.deuiaction2.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.deuiaction2.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem4.visabled"
:disabled=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem4.disabled"
class=
''
v-loading:i-button
@
click=
"dashboard_sysportlet4_toolbar_click(
{ tag: 'tbitem4' }, $event)">
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem4.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem4.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem6.visabled"
:disabled=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem6.disabled"
class=
''
v-loading:i-button
@
click=
"dashboard_sysportlet4_toolbar_click(
{ tag: 'tbitem6' }, $event)">
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem6.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem6.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem8.visabled"
:disabled=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem8.disabled"
class=
''
v-loading:i-button
@
click=
"dashboard_sysportlet4_toolbar_click(
{ tag: 'tbitem8' }, $event)">
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem8.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem8.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<app-export-excel
:item=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem13"
:caption=
"$t('entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem13.caption')"
@
exportexcel=
"dashboard_sysportlet4_toolbar_click(
{ tag: 'tbitem13' }, $event)">
</app-export-excel>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem13.tip'
)
}}
</div>
</tooltip>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"dashboardviewdashboard_sysportlet4_toolbarModels.deuiaction1.visabled"
:disabled=
"dashboardviewdashboard_sysportlet4_toolbarModels.deuiaction1.disabled"
class=
''
v-loading:i-button
@
click=
"dashboard_sysportlet4_toolbar_click(
{ tag: 'deuiaction1' }, $event)">
<i
class=
'fa fa-upload'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.deuiaction1.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.deuiaction1.tip'
)
}}
</div>
</tooltip>
<span
class=
'seperator'
>
|
</span>
<dropdown
v-show=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem16.visabled"
trigger=
'click'
>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
class=
''
>
<i
class=
''
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem16.caption'
)
}}
</span>
<icon
type=
"ios-arrow-down"
></icon>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem16.tip'
)
}}
</div>
</tooltip>
<dropdown-menu
slot=
'list'
>
<dropdown-item>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem21.visabled"
:disabled=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem21.disabled"
class=
''
v-loading:i-button
@
click=
"dashboard_sysportlet4_toolbar_click(
{ tag: 'tbitem21' }, $event)">
<i
class=
'fa fa-download'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem21.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem21.tip'
)
}}
</div>
</tooltip>
</dropdown-item>
<dropdown-item>
<tooltip
:transfer=
"true"
:max-width=
"600"
>
<i-button
v-show=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem23.visabled"
:disabled=
"dashboardviewdashboard_sysportlet4_toolbarModels.tbitem23.disabled"
class=
''
v-loading:i-button
@
click=
"dashboard_sysportlet4_toolbar_click(
{ tag: 'tbitem23' }, $event)">
<i
class=
'fa fa-upload'
></i>
<span
class=
'caption'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem23.caption'
)
}}
</span>
</i-button>
<div
slot=
'content'
>
{{
$t
(
'entities.ibizorder.dashboardviewdashboard_sysportlet4_toolbar_toolbar.tbitem23.tip'
)
}}
</div>
</tooltip>
</dropdown-item>
</dropdown-menu>
</dropdown>
</div>
</div>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
,
ViewTool
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
PortalComponentsToolService
from
'./portal-components-tool-portlet-service'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
import
UIService
from
'@/uiservice/ui-service'
;
import
{
Environment
}
from
'@/environments/environment'
;
@
Component
({
components
:
{
}
})
export
default
class
IBIZOrderPortalComponentsToolBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof PortalComponentsToolBase
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof PortalComponentsToolBase
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof PortalComponentsToolBase
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof PortalComponentsToolBase
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof PortalComponentsToolBase
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof PortalComponentsToolBase
*/
public
getControlType
():
string
{
return
'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof PortalComponentsToolBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 建构部件服务对象
*
* @type {PortalComponentsToolService}
* @memberof PortalComponentsToolBase
*/
public
service
:
PortalComponentsToolService
=
new
PortalComponentsToolService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof PortalComponentsToolBase
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
$store
});
/**
* 界面UI服务对象
*
* @type {IBIZOrderUIService}
* @memberof PortalComponentsToolBase
*/
public
appUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
(
this
.
$store
);
/**
* dashboard_sysportlet4_toolbar 部件 click 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof PortalComponentsToolBase
*/
public
dashboard_sysportlet4_toolbar_click
(
$event
:
any
,
$event2
?:
any
)
{
if
(
Object
.
is
(
$event
.
tag
,
'tbitem3'
))
{
this
.
dashboard_sysportlet4_toolbar_tbitem3_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction2'
))
{
this
.
dashboard_sysportlet4_toolbar_deuiaction2_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem4'
))
{
this
.
dashboard_sysportlet4_toolbar_tbitem4_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem6'
))
{
this
.
dashboard_sysportlet4_toolbar_tbitem6_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction3'
))
{
this
.
dashboard_sysportlet4_toolbar_deuiaction3_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem24'
))
{
this
.
dashboard_sysportlet4_toolbar_tbitem24_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem25'
))
{
this
.
dashboard_sysportlet4_toolbar_tbitem25_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem8'
))
{
this
.
dashboard_sysportlet4_toolbar_tbitem8_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem13'
))
{
this
.
dashboard_sysportlet4_toolbar_tbitem13_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'deuiaction1'
))
{
this
.
dashboard_sysportlet4_toolbar_deuiaction1_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem11'
))
{
this
.
dashboard_sysportlet4_toolbar_tbitem11_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem21'
))
{
this
.
dashboard_sysportlet4_toolbar_tbitem21_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
if
(
Object
.
is
(
$event
.
tag
,
'tbitem23'
))
{
this
.
dashboard_sysportlet4_toolbar_tbitem23_click
(
null
,
'dashboard_sysportlet4_toolbar'
,
$event2
);
}
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
New
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_toolbar_deuiaction2_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Save
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Copy
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_toolbar_deuiaction3_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleFilter
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ToggleRowEdit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
NewRow
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ExportExcel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ImportExcel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Print
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
ExportModel
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 逻辑事件
*
* @param {*} [params={}]
* @param {*} [tag]
* @param {*} [$event]
* @memberof
*/
public
dashboard_sysportlet4_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
;
if
(
_this
.
getDatas
&&
_this
.
getDatas
instanceof
Function
)
{
datas
=
[...
_this
.
getDatas
()];
}
if
(
params
){
datas
=
[
params
];
}
// 界面行为
this
.
Import
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZOrder"
);
}
/**
* 新建
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderDashboardViewBase
*/
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 IBIZOrderDashboardViewBase
*/
public
Save
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
// 界面行为容器对象 _this
const
_this
:
any
=
this
;
if
(
xData
&&
xData
.
save
instanceof
Function
)
{
xData
.
save
().
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
return
;
}
_this
.
$emit
(
'viewdataschange'
,
[{
...
response
.
data
}]);
});
}
else
if
(
_this
.
save
&&
_this
.
save
instanceof
Function
)
{
_this
.
save
();
}
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderDashboardViewBase
*/
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
,
{
ibizorder
:
args
[
0
].
ibizorder
})
}
_this
.
opendata
([{
...
data
}],
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 IBIZOrderDashboardViewBase
*/
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
,
{
ibizorder
:
args
[
0
].
ibizorder
});
}
if
(
!
params
)
params
=
{};
Object
.
assign
(
params
,{
copymode
:
true
});
_this
.
opendata
([{
...
data
}],
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 IBIZOrderDashboardViewBase
*/
public
ToggleFilter
(
args
:
any
[],
contextJO
?:
any
,
params
?:
any
,
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
const
_this
:
any
=
this
;
if
(
_this
.
hasOwnProperty
(
'isExpandSearchForm'
))
{
_this
.
isExpandSearchForm
=
!
_this
.
isExpandSearchForm
;
}
}
/**
* 行编辑
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderDashboardViewBase
*/
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 IBIZOrderDashboardViewBase
*/
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 IBIZOrderDashboardViewBase
*/
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 IBIZOrderDashboardViewBase
*/
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} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public
async
ImportExcel
(
args
:
any
[],
context
:
any
=
{}
,
params
:
any
=
{},
$event
?:
any
,
xData
?:
any
,
actionContext
?:
any
,
srfParentDeName
?:
string
)
{
let
data
:
any
=
{};
let
parentContext
:
any
=
{};
let
parentViewParam
:
any
=
{};
const
_this
:
any
=
actionContext
;
const
_args
:
any
[]
=
Util
.
deepCopy
(
args
);
const
actionTarget
:
string
|
null
=
'NONE'
;
if
(
_this
.
context
){
parentContext
=
_this
.
context
;
}
if
(
_this
.
viewparams
){
parentViewParam
=
_this
.
viewparams
;
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
Object
.
assign
(
context
,
parentObj
);
const
openPopupApp
=
(
url
:
string
)
=>
{
window
.
open
(
url
,
'_blank'
);
return
null
;
}
const
url
=
`../../ibizutil/uploaddedataview.jsp?srfdeid=`
;
openPopupApp
(
url
);
}
/**
* 打印
*
* @param {any[]} args 当前数据
* @param {any} contextJO 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @memberof IBIZOrderDashboardViewBase
*/
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 IBIZOrderDashboardViewBase
*/
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 IBIZOrderDashboardViewBase
*/
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 PortalComponentsToolBase
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof PortalComponentsToolBase
*/
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
();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof PortalComponentsToolBase
*/
@
Prop
()
public
height
?:
number
;
/**
* 宽度
*
* @type {number}
* @memberof PortalComponentsToolBase
*/
@
Prop
()
public
width
?:
number
;
/**
* 门户部件类型
*
* @type {number}
* @memberof PortalComponentsToolBase
*/
public
portletType
:
string
=
'toolbar'
;
/**
* 视图默认使用
*
* @type {string}
* @memberof PortalComponentsToolBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 界面行为模型数据
*
* @memberof PortalComponentsToolBase
*/
public
uiactionModel
:
any
=
{
}
/**
* 工具栏模型
*
* @type {*}
* @memberof IBIZOrderDashboardView
*/
public
dashboardviewdashboard_sysportlet4_toolbarModels
:
any
=
{
tbitem3
:
{
name
:
'tbitem3'
,
actiontarget
:
'NONE'
,
caption
:
'新建'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'New'
,
target
:
''
}
},
deuiaction2
:
{
name
:
'deuiaction2'
,
actiontarget
:
'NONE'
,
caption
:
'保存'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Save'
,
target
:
''
}
},
tbitem4
:
{
name
:
'tbitem4'
,
actiontarget
:
'NONE'
,
caption
:
'编辑'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'Edit'
,
target
:
'SINGLEKEY'
}
},
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
:
''
}
},
deuiaction1
:
{
name
:
'deuiaction1'
,
actiontarget
:
'NONE'
,
caption
:
'导入'
,
disabled
:
false
,
type
:
'DEUIACTION'
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
''
,
uiaction
:
{
tag
:
'ImportExcel'
,
target
:
'NONE'
}
},
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
:
''
}
},
};
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof PortalComponentsToolBase
*/
@
Prop
({
default
:
false
})
public
isAdaptiveSize
!
:
boolean
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PortalComponentsToolBase
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PortalComponentsToolBase
*/
public
getData
():
any
{
return
{};
}
/**
* 获取高度
*
* @returns {any[]}
* @memberof PortalComponentsToolBase
*/
get
getHeight
(){
if
(
!
this
.
$util
.
isEmpty
(
this
.
height
)
&&
!
this
.
$util
.
isNumberNaN
(
this
.
height
)){
if
(
this
.
height
==
0
){
return
'auto'
;
}
else
{
return
this
.
height
+
'px'
;
}
}
else
{
return
'200px'
;
}
}
/**
* 刷新
*
* @memberof PortalComponentsToolBase
*/
public
refresh
(
args
?:
any
)
{
}
/**
* vue 生命周期
*
* @memberof PortalComponentsToolBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof PortalComponentsToolBase
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
Object
.
is
(
tag
,
"all-portlet"
)
&&
Object
.
is
(
action
,
'loadmodel'
)){
this
.
calcUIActionAuthState
(
data
);
}
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
const
refs
:
any
=
this
.
$refs
;
Object
.
keys
(
refs
).
forEach
((
_name
:
string
)
=>
{
this
.
viewState
.
next
({
tag
:
_name
,
action
:
action
,
data
:
data
});
});
});
}
}
/**
* vue 生命周期
*
* @memberof PortalComponentsToolBase
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PortalComponentsToolBase
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
/**
* 计算界面行为权限
*
* @memberof PortalComponentsToolBase
*/
public
calcUIActionAuthState
(
data
:
any
=
{})
{
// 如果是操作栏,不计算权限
if
(
this
.
portletType
&&
Object
.
is
(
'actionbar'
,
this
.
portletType
))
{
return
;
}
let
_this
:
any
=
this
;
let
uiservice
:
any
=
_this
.
appUIService
?
_this
.
appUIService
:
new
UIService
(
_this
.
$store
);
if
(
_this
.
uiactionModel
){
ViewTool
.
calcActionItemAuthState
(
data
,
_this
.
uiactionModel
,
uiservice
);
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './portal-components-tool-portlet.less';
</
style
>
app_Web/src/widgets/ibizorder/portal-components-tool-portlet/portal-components-tool-portlet-model.ts
0 → 100644
浏览文件 @
44f4fe3c
/**
* PortalComponentsTool 部件模型
*
* @export
* @class PortalComponentsToolModel
*/
export
default
class
PortalComponentsToolModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PortalComponentsToolModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'tp'
,
},
{
name
:
'endtime'
,
},
{
name
:
'wfstate'
,
},
{
name
:
'createdate'
,
},
{
name
:
'opinion'
,
},
{
name
:
'updatedate'
,
},
{
name
:
'ordertype'
,
},
{
name
:
'detailnum'
,
},
{
name
:
'wfinstanceid'
,
},
{
name
:
'amount'
,
},
{
name
:
'orderuid'
,
},
{
name
:
'ibizorder'
,
prop
:
'ibizorderid'
,
},
{
name
:
'orderstate'
,
},
{
name
:
'starttime'
,
},
{
name
:
'updateman'
,
},
{
name
:
'wfstep'
,
},
{
name
:
'createman'
,
},
{
name
:
'ibizordername'
,
},
{
name
:
'ordertime'
,
},
{
name
:
'memo'
,
},
{
name
:
'ibizcustomername'
,
},
{
name
:
'ibizcustomerid'
,
},
]
}
}
app_Web/src/widgets/ibizorder/portal-components-tool-portlet/portal-components-tool-portlet-service.ts
0 → 100644
浏览文件 @
44f4fe3c
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* PortalComponentsTool 部件服务对象
*
* @export
* @class PortalComponentsToolService
*/
export
default
class
PortalComponentsToolService
extends
ControlService
{
}
app_Web/src/widgets/ibizorder/portal-components-tool-portlet/portal-components-tool-portlet.less
0 → 100644
浏览文件 @
44f4fe3c
// this is less
.deepskyblueToolBar {color:white !important;background-color:#108cee !important;}
.portlet{
height: 100%;
width: 100%;
> .portlet-title{
padding: 14px 16px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 52px;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
justify-content: space-between;
width:100%;
line-height: 22px;
font-size: 16px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #304265;
font-weight: 600;
i{
margin-right: 5px;
}
>.portlet-action{
margin-left: 12px;
font-size: 14px;
>a{
padding: 6px;
}
}
}
> .divider {
margin: 0px 0px 11px 0px;
}
> .portlet-with-title{
width:100%;
height:calc(100% - 52px);
overflow:auto;
padding:0px 12px;
}
> .portlet-without-title{
width:100%;
height:100%;
overflow:auto;
padding:0px 12px;
}
.app-charts{
height: 100%!important;
}
.toolbar-container {
button{
margin: 6px 0px 4px 16px;
}
.ivu-badge{
.ivu-badge-count{
top: 0;
}
}
}
}
app_Web/src/widgets/ibizorder/portal-components-tool-portlet/portal-components-tool-portlet.vue
0 → 100644
浏览文件 @
44f4fe3c
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZOrderPortalComponentsToolBase
from
'./portal-components-tool-portlet-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
IBIZOrderPortalComponentsTool
extends
IBIZOrderPortalComponentsToolBase
{
}
</
script
>
app_Web/src/widgets/ibizorder/portal-components-web-portlet/portal-components-web-portlet-base.vue
0 → 100644
浏览文件 @
44f4fe3c
<
template
>
<div
class=
'portlet portal-components-web '
:style=
"
{'height': isAdaptiveSize ? 'calc(100% - 16px)' : getHeight,}">
<p
class=
'portlet-title'
>
<span>
网页部件
</span>
</p>
<el-divider
class=
"divider"
></el-divider>
<div
class=
"portlet-with-title"
>
<iframe
src=
"https://www.baidu.com/"
style=
"height: 500px;width: 100%;border-width: 1px;"
></iframe>
</div>
</div>
</
template
>
<
script
lang=
'tsx'
>
import
{
Vue
,
Component
,
Prop
,
Provide
,
Emit
,
Watch
,
Model
,
Inject
}
from
'vue-property-decorator'
;
import
{
CreateElement
}
from
'vue'
;
import
{
Subject
,
Subscription
}
from
'rxjs'
;
import
{
ControlInterface
}
from
'@/interface/control'
;
import
{
UIActionTool
,
Util
,
ViewTool
}
from
'@/utils'
;
import
NavDataService
from
'@/service/app/navdata-service'
;
import
IBIZOrderService
from
'@/service/ibizorder/ibizorder-service'
;
import
PortalComponentsWebService
from
'./portal-components-web-portlet-service'
;
import
IBIZOrderUIService
from
'@/uiservice/ibizorder/ibizorder-ui-service'
;
import
UIService
from
'@/uiservice/ui-service'
;
import
{
Environment
}
from
'@/environments/environment'
;
@
Component
({
components
:
{
}
})
export
default
class
IBIZOrderPortalComponentsWebBase
extends
Vue
implements
ControlInterface
{
/**
* 名称
*
* @type {string}
* @memberof PortalComponentsWebBase
*/
@
Prop
()
public
name
?:
string
;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof PortalComponentsWebBase
*/
@
Prop
()
public
viewState
!
:
Subject
<
ViewState
>
;
/**
* 应用上下文
*
* @type {*}
* @memberof PortalComponentsWebBase
*/
@
Prop
()
public
context
!
:
any
;
/**
* 视图参数
*
* @type {*}
* @memberof PortalComponentsWebBase
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof PortalComponentsWebBase
*/
public
viewStateEvent
:
Subscription
|
undefined
;
/**
* 获取部件类型
*
* @returns {string}
* @memberof PortalComponentsWebBase
*/
public
getControlType
():
string
{
return
'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof PortalComponentsWebBase
*/
public
counterServiceArray
:
Array
<
any
>
=
[];
/**
* 建构部件服务对象
*
* @type {PortalComponentsWebService}
* @memberof PortalComponentsWebBase
*/
public
service
:
PortalComponentsWebService
=
new
PortalComponentsWebService
({
$store
:
this
.
$store
});
/**
* 实体服务对象
*
* @type {IBIZOrderService}
* @memberof PortalComponentsWebBase
*/
public
appEntityService
:
IBIZOrderService
=
new
IBIZOrderService
({
$store
:
this
.
$store
});
/**
* 界面UI服务对象
*
* @type {IBIZOrderUIService}
* @memberof PortalComponentsWebBase
*/
public
appUIService
:
IBIZOrderUIService
=
new
IBIZOrderUIService
(
this
.
$store
);
/**
* 关闭视图
*
* @param {any} args
* @memberof PortalComponentsWebBase
*/
public
closeView
(
args
:
any
):
void
{
let
_this
:
any
=
this
;
_this
.
$emit
(
'closeview'
,
[
args
]);
}
/**
* 计数器刷新
*
* @memberof PortalComponentsWebBase
*/
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
();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof PortalComponentsWebBase
*/
@
Prop
()
public
height
?:
number
;
/**
* 宽度
*
* @type {number}
* @memberof PortalComponentsWebBase
*/
@
Prop
()
public
width
?:
number
;
/**
* 门户部件类型
*
* @type {number}
* @memberof PortalComponentsWebBase
*/
public
portletType
:
string
=
'html'
;
/**
* 视图默认使用
*
* @type {string}
* @memberof PortalComponentsWebBase
*/
@
Inject
({
from
:
'navModel'
,
default
:
'tab'
})
public
navModel
!
:
string
;
/**
* 界面行为模型数据
*
* @memberof PortalComponentsWebBase
*/
public
uiactionModel
:
any
=
{
}
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof PortalComponentsWebBase
*/
@
Prop
({
default
:
false
})
public
isAdaptiveSize
!
:
boolean
;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof PortalComponentsWebBase
*/
public
getDatas
():
any
[]
{
return
[];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof PortalComponentsWebBase
*/
public
getData
():
any
{
return
{};
}
/**
* 获取高度
*
* @returns {any[]}
* @memberof PortalComponentsWebBase
*/
get
getHeight
(){
if
(
!
this
.
$util
.
isEmpty
(
this
.
height
)
&&
!
this
.
$util
.
isNumberNaN
(
this
.
height
)){
if
(
this
.
height
==
0
){
return
'auto'
;
}
else
{
return
this
.
height
+
'px'
;
}
}
else
{
return
'500px'
;
}
}
/**
* 刷新
*
* @memberof PortalComponentsWebBase
*/
public
refresh
(
args
?:
any
)
{
}
/**
* vue 生命周期
*
* @memberof PortalComponentsWebBase
*/
public
created
()
{
this
.
afterCreated
();
}
/**
* 执行created后的逻辑
*
* @memberof PortalComponentsWebBase
*/
public
afterCreated
(){
if
(
this
.
viewState
)
{
this
.
viewStateEvent
=
this
.
viewState
.
subscribe
(({
tag
,
action
,
data
})
=>
{
if
(
Object
.
is
(
tag
,
"all-portlet"
)
&&
Object
.
is
(
action
,
'loadmodel'
)){
this
.
calcUIActionAuthState
(
data
);
}
if
(
!
Object
.
is
(
tag
,
this
.
name
))
{
return
;
}
const
refs
:
any
=
this
.
$refs
;
Object
.
keys
(
refs
).
forEach
((
_name
:
string
)
=>
{
this
.
viewState
.
next
({
tag
:
_name
,
action
:
action
,
data
:
data
});
});
});
}
}
/**
* vue 生命周期
*
* @memberof PortalComponentsWebBase
*/
public
destroyed
()
{
this
.
afterDestroy
();
}
/**
* 执行destroyed后的逻辑
*
* @memberof PortalComponentsWebBase
*/
public
afterDestroy
()
{
if
(
this
.
viewStateEvent
)
{
this
.
viewStateEvent
.
unsubscribe
();
}
}
/**
* 计算界面行为权限
*
* @memberof PortalComponentsWebBase
*/
public
calcUIActionAuthState
(
data
:
any
=
{})
{
// 如果是操作栏,不计算权限
if
(
this
.
portletType
&&
Object
.
is
(
'actionbar'
,
this
.
portletType
))
{
return
;
}
let
_this
:
any
=
this
;
let
uiservice
:
any
=
_this
.
appUIService
?
_this
.
appUIService
:
new
UIService
(
_this
.
$store
);
if
(
_this
.
uiactionModel
){
ViewTool
.
calcActionItemAuthState
(
data
,
_this
.
uiactionModel
,
uiservice
);
}
}
}
</
script
>
<
style
lang=
'less'
>
@import './portal-components-web-portlet.less';
</
style
>
app_Web/src/widgets/ibizorder/portal-components-web-portlet/portal-components-web-portlet-model.ts
0 → 100644
浏览文件 @
44f4fe3c
/**
* PortalComponentsWeb 部件模型
*
* @export
* @class PortalComponentsWebModel
*/
export
default
class
PortalComponentsWebModel
{
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof PortalComponentsWebModel
*/
public
getDataItems
():
any
[]
{
return
[
{
name
:
'tp'
,
},
{
name
:
'endtime'
,
},
{
name
:
'wfstate'
,
},
{
name
:
'createdate'
,
},
{
name
:
'opinion'
,
},
{
name
:
'updatedate'
,
},
{
name
:
'ordertype'
,
},
{
name
:
'detailnum'
,
},
{
name
:
'wfinstanceid'
,
},
{
name
:
'amount'
,
},
{
name
:
'orderuid'
,
},
{
name
:
'ibizorder'
,
prop
:
'ibizorderid'
,
},
{
name
:
'orderstate'
,
},
{
name
:
'starttime'
,
},
{
name
:
'updateman'
,
},
{
name
:
'wfstep'
,
},
{
name
:
'createman'
,
},
{
name
:
'ibizordername'
,
},
{
name
:
'ordertime'
,
},
{
name
:
'memo'
,
},
{
name
:
'ibizcustomername'
,
},
{
name
:
'ibizcustomerid'
,
},
]
}
}
app_Web/src/widgets/ibizorder/portal-components-web-portlet/portal-components-web-portlet-service.ts
0 → 100644
浏览文件 @
44f4fe3c
import
{
Http
}
from
'@/utils'
;
import
ControlService
from
'@/widgets/control-service'
;
/**
* PortalComponentsWeb 部件服务对象
*
* @export
* @class PortalComponentsWebService
*/
export
default
class
PortalComponentsWebService
extends
ControlService
{
}
app_Web/src/widgets/ibizorder/portal-components-web-portlet/portal-components-web-portlet.less
0 → 100644
浏览文件 @
44f4fe3c
// this is less
.portlet{
height: 100%;
width: 100%;
> .portlet-title{
padding: 14px 16px;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 52px;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
justify-content: space-between;
width:100%;
line-height: 22px;
font-size: 16px;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #304265;
font-weight: 600;
i{
margin-right: 5px;
}
>.portlet-action{
margin-left: 12px;
font-size: 14px;
>a{
padding: 6px;
}
}
}
> .divider {
margin: 0px 0px 11px 0px;
}
> .portlet-with-title{
width:100%;
height:calc(100% - 52px);
overflow:auto;
padding:0px 12px;
}
> .portlet-without-title{
width:100%;
height:100%;
overflow:auto;
padding:0px 12px;
}
.app-charts{
height: 100%!important;
}
.toolbar-container {
button{
margin: 6px 0px 4px 16px;
}
.ivu-badge{
.ivu-badge-count{
top: 0;
}
}
}
}
app_Web/src/widgets/ibizorder/portal-components-web-portlet/portal-components-web-portlet.vue
0 → 100644
浏览文件 @
44f4fe3c
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
IBIZOrderPortalComponentsWebBase
from
'./portal-components-web-portlet-base.vue'
;
@
Component
({
components
:
{
}
})
export
default
class
IBIZOrderPortalComponentsWeb
extends
IBIZOrderPortalComponentsWebBase
{
}
</
script
>
app_Web/src/widgets/ibizorder/uipart-0015-grid/uipart-0015-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1068,8 +1068,8 @@ export default class UIPART_0015Base extends Vue implements ControlInterface {
importData
:{
"ORDERTYPE"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"ORDERTYPE"
,
"isnumber"
:
false
},
"headername"
:
"订单类型"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertype"
,
"order"
:
1000
},
"ORDERTIME"
:{
"headername"
:
"订单时间"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertime"
,
"order"
:
1000
},
"
ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid
"
,
"order"
:
1000
},
"
IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername
"
,
"order"
:
1000
}
"
IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername
"
,
"order"
:
1000
},
"
ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid
"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizorder/uipart-0017-grid/uipart-0017-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1191,8 +1191,8 @@ export default class UIPART_0017Base extends Vue implements ControlInterface {
importData
:{
"ORDERTYPE"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"ORDERTYPE"
,
"isnumber"
:
false
},
"headername"
:
"订单类型"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertype"
,
"order"
:
1000
},
"ORDERTIME"
:{
"headername"
:
"订单时间"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertime"
,
"order"
:
1000
},
"
ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid
"
,
"order"
:
1000
},
"
IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername
"
,
"order"
:
1000
}
"
IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername
"
,
"order"
:
1000
},
"
ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid
"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizorder/uipart-0018-grid/uipart-0018-grid-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -1123,8 +1123,8 @@ export default class UIPART_0018Base extends Vue implements ControlInterface {
importData
:{
"ORDERTYPE"
:{
"codelist"
:{
"type"
:
"DYNAMIC"
,
"tag"
:
"ORDERTYPE"
,
"isnumber"
:
false
},
"headername"
:
"订单类型"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertype"
,
"order"
:
1000
},
"ORDERTIME"
:{
"headername"
:
"订单时间"
,
"isuniqueitem"
:
false
,
"name"
:
"ordertime"
,
"order"
:
1000
},
"
ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid
"
,
"order"
:
1000
},
"
IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername
"
,
"order"
:
1000
}
"
IBIZORDERNAME"
:{
"headername"
:
"订单名称"
,
"isuniqueitem"
:
false
,
"name"
:
"ibizordername
"
,
"order"
:
1000
},
"
ORDERUID"
:{
"headername"
:
"订单编号"
,
"isuniqueitem"
:
true
,
"name"
:
"orderuid
"
,
"order"
:
1000
}
}
}
if
(
Object
.
keys
(
importDataModel
).
length
==
0
){
...
...
app_Web/src/widgets/ibizorder/usr-dashboard/usr-dashboard-base.vue
浏览文件 @
44f4fe3c
...
...
@@ -9,6 +9,42 @@
<span>
<div
class=
'portlet-container dashboard-viewdashboard-container1 '
:style=
"
{}">
<row>
<i-col
:md=
"
{ span: 24, offset: 0 }" :lg="{ span: 12, offset: 0 }">
<div
class=
"portlet-without-title"
>
<card
class=
"portlet-card custom-card"
:bordered=
"false"
dis-hover
:padding=
"10"
>
<span>
<view
_dashboard_sysportlet3
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:height=
"200"
:width=
"0"
name=
"dashboard_sysportlet3"
ref=
'dashboard_sysportlet3'
@
closeview=
"closeView($event)"
>
</view
_dashboard_sysportlet3
>
</span>
</card>
</div>
</i-col>
<i-col
:md=
"
{ span: 24, offset: 0 }" :lg="{ span: 12, offset: 0 }">
<div
class=
"portlet-without-title"
>
<card
class=
"portlet-card custom-card"
:bordered=
"false"
dis-hover
:padding=
"10"
>
<span>
<view
_dashboard_sysportlet4
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:height=
"200"
:width=
"0"
name=
"dashboard_sysportlet4"
ref=
'dashboard_sysportlet4'
@
closeview=
"closeView($event)"
>
</view
_dashboard_sysportlet4
>
</span>
</card>
</div>
</i-col>
<i-col
:md=
"
{ span: 24, offset: 0 }" :lg="{ span: 12, offset: 0 }">
<div
class=
"portlet-without-title"
>
<card
class=
"portlet-card custom-card"
:bordered=
"false"
dis-hover
:padding=
"10"
>
...
...
@@ -45,6 +81,24 @@
</card>
</div>
</i-col>
<i-col
:md=
"
{ span: 24, offset: 0 }">
<div
class=
"portlet-without-title"
>
<card
class=
"portlet-card custom-card"
:bordered=
"false"
dis-hover
:padding=
"10"
>
<span>
<view
_dashboard_sysportlet5
:viewState=
"viewState"
:viewparams=
"viewparams"
:context=
"context"
:height=
"500"
:width=
"0"
name=
"dashboard_sysportlet5"
ref=
'dashboard_sysportlet5'
@
closeview=
"closeView($event)"
>
</view
_dashboard_sysportlet5
>
</span>
</card>
</div>
</i-col>
</row>
</div>
</span>
...
...
app_Web/src/widgets/ibizorder/usr-dashboard/usr-dashboard.vue
浏览文件 @
44f4fe3c
<
script
lang=
'tsx'
>
import
{
Component
}
from
'vue-property-decorator'
;
import
UsrBase
from
'./usr-dashboard-base.vue'
;
import
view_dashboard_sysportlet4
from
'@widgets/ibizorder/portal-components-tool-portlet/portal-components-tool-portlet.vue'
;
import
view_dashboard_sysportlet5
from
'@widgets/ibizorder/portal-components-web-portlet/portal-components-web-portlet.vue'
;
import
view_dashboard_sysportlet2
from
'@widgets/ibizorder-detail/portal-components-list3-portlet/portal-components-list3-portlet.vue'
;
import
view_dashboard_sysportlet3
from
'@widgets/ibizorder/portal-components-operation-portlet/portal-components-operation-portlet.vue'
;
import
view_dashboard_sysportlet1
from
'@widgets/ibizorder-detail/portal-components-histogram-portlet/portal-components-histogram-portlet.vue'
;
@
Component
({
components
:
{
view_dashboard_sysportlet4
,
view_dashboard_sysportlet5
,
view_dashboard_sysportlet2
,
view_dashboard_sysportlet3
,
view_dashboard_sysportlet1
,
}
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/mapping/IBIZBOOKDataImport.java
浏览文件 @
44f4fe3c
...
...
@@ -8,16 +8,16 @@ import java.util.List;
public
interface
IBIZBOOKDataImport
{
@Mappings
({
@Mapping
(
target
=
"ibizbookid"
,
source
=
"ibizbookid"
),
@Mapping
(
target
=
"createdate"
,
source
=
"createdate"
),
@Mapping
(
target
=
"press"
,
source
=
"press"
),
@Mapping
(
target
=
"ibizbookname"
,
source
=
"ibizbookname"
),
@Mapping
(
target
=
"author"
,
source
=
"author"
),
@Mapping
(
target
=
"
updateman"
,
source
=
"updateman
"
),
@Mapping
(
target
=
"
ibizbookname"
,
source
=
"ibizbookname
"
),
@Mapping
(
target
=
"price"
,
source
=
"price"
),
@Mapping
(
target
=
"updateman"
,
source
=
"updateman"
),
@Mapping
(
target
=
"booknumber"
,
source
=
"booknumber"
),
@Mapping
(
target
=
"createman"
,
source
=
"createman"
),
@Mapping
(
target
=
"updatedate"
,
source
=
"updatedate"
),
@Mapping
(
target
=
"type"
,
source
=
"type"
),
@Mapping
(
target
=
"createdate"
,
source
=
"createdate"
),
})
@BeanMapping
(
ignoreByDefault
=
true
)
IBIZBOOK
toDomain
(
IBIZBOOK
entity
);
...
...
demo-core/src/main/java/cn/ibizlab/core/sample/mapping/IBIZOrderImport.java
浏览文件 @
44f4fe3c
...
...
@@ -8,10 +8,10 @@ import java.util.List;
public
interface
IBIZOrderImport
{
@Mappings
({
@Mapping
(
target
=
"ibizorderid"
,
source
=
"ibizorderid"
),
@Mapping
(
target
=
"ibizordername"
,
source
=
"ibizordername"
),
@Mapping
(
target
=
"ordertype"
,
source
=
"ordertype"
),
@Mapping
(
target
=
"ordertime"
,
source
=
"ordertime"
),
@Mapping
(
target
=
"orderuid"
,
source
=
"orderuid"
),
@Mapping
(
target
=
"ibizordername"
,
source
=
"ibizordername"
),
})
@BeanMapping
(
ignoreByDefault
=
true
)
IBIZOrder
toDomain
(
IBIZOrder
entity
);
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
44f4fe3c
...
...
@@ -176,7 +176,7 @@
<!--输出实体[IBIZORDER]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorder-25
4
-9"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorder-25
5
-9"
>
<createTable
tableName=
"T_IBIZORDER"
>
<column
name=
"TP"
remarks=
""
type=
"TEXT(1048576)"
>
</column>
...
...
demo-core/src/main/resources/liquibase/view.xml
浏览文件 @
44f4fe3c
...
...
@@ -37,7 +37,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-25
4
-8"
runOnChange=
"true"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-25
5
-8"
runOnChange=
"true"
>
<createView
fullDefinition=
"false"
replaceIfExists=
"true"
viewName=
"V_IBIZORDER"
>
<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1 LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID ]]>
</createView>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录