Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
fa70912b
提交
fa70912b
编写于
12月 03, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Mosher 发布系统代码 [后台服务,演示应用]
上级
0522e8ca
变更
20
隐藏空白字符变更
内嵌
并排
正在显示
20 个修改的文件
包含
679 行增加
和
38 行删除
+679
-38
auth-service-register.ts
app_Web/src/authservice/auth-service-register.ts
+1
-0
ibizviewmess-auth-service-base.ts
...uthservice/ibizviewmess/ibizviewmess-auth-service-base.ts
+44
-0
ibizviewmess-auth-service.ts
...src/authservice/ibizviewmess/ibizviewmess-auth-service.ts
+24
-0
en-US.ts
app_Web/src/locale/lang/en-US.ts
+2
-0
zh-CN.ts
app_Web/src/locale/lang/zh-CN.ts
+2
-0
ibizviewmess_en_US.ts
...locale/lanres/entities/ibizviewmess/ibizviewmess_en_US.ts
+14
-0
ibizviewmess_zh_CN.ts
...locale/lanres/entities/ibizviewmess/ibizviewmess_zh_CN.ts
+13
-0
ibizviewmesss.ts
app_Web/src/mock/entity/ibizviewmesss/ibizviewmesss.ts
+175
-0
index.ts
app_Web/src/mock/index.ts
+1
-0
entity-service-register.ts
app_Web/src/service/entity-service-register.ts
+1
-0
ibizviewmess-service-base.ts
...Web/src/service/ibizviewmess/ibizviewmess-service-base.ts
+81
-0
ibizviewmess-service.ts
app_Web/src/service/ibizviewmess/ibizviewmess-service.ts
+25
-0
ibizviewmess-ui-service-base.ts
...rc/uiservice/ibizviewmess/ibizviewmess-ui-service-base.ts
+256
-0
ibizviewmess-ui-service.ts
...Web/src/uiservice/ibizviewmess/ibizviewmess-ui-service.ts
+21
-0
ui-service-register.ts
app_Web/src/uiservice/ui-service-register.ts
+1
-0
lnternal-func-list-list-base.vue
.../lnternal-func-list-list/lnternal-func-list-list-base.vue
+8
-8
usr-dataview-base.vue
...b/src/widgets/ibizbook/usr-dataview/usr-dataview-base.vue
+8
-8
config.xml
config.xml
+0
-5
Dockerfile
...provider/demo-provider-demoapi/src/main/docker/Dockerfile
+1
-1
demo-provider-demoapi.yaml
...ovider-demoapi/src/main/docker/demo-provider-demoapi.yaml
+1
-16
未找到文件。
app_Web/src/authservice/auth-service-register.ts
浏览文件 @
fa70912b
...
...
@@ -73,6 +73,7 @@ export class AuthServiceRegister {
this
.
allAuthService
.
set
(
'ibizsample0009'
,
()
=>
import
(
'@/authservice/ibizsample0009/ibizsample0009-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0013'
,
()
=>
import
(
'@/authservice/ibizsample0013/ibizsample0013-auth-service'
));
this
.
allAuthService
.
set
(
'ibizcustomer'
,
()
=>
import
(
'@/authservice/ibizcustomer/ibizcustomer-auth-service'
));
this
.
allAuthService
.
set
(
'ibizviewmess'
,
()
=>
import
(
'@/authservice/ibizviewmess/ibizviewmess-auth-service'
));
this
.
allAuthService
.
set
(
'ibizcustom'
,
()
=>
import
(
'@/authservice/ibizcustom/ibizcustom-auth-service'
));
this
.
allAuthService
.
set
(
'ibizsample0005'
,
()
=>
import
(
'@/authservice/ibizsample0005/ibizsample0005-auth-service'
));
this
.
allAuthService
.
set
(
'ibizuniproduct'
,
()
=>
import
(
'@/authservice/ibizuniproduct/ibizuniproduct-auth-service'
));
...
...
app_Web/src/authservice/ibizviewmess/ibizviewmess-auth-service-base.ts
0 → 100644
浏览文件 @
fa70912b
import
AuthService
from
'../auth-service'
;
/**
* 视图数据信息实体权限服务对象基类
*
* @export
* @class IBIZVIEWMESSAuthServiceBase
* @extends {AuthService}
*/
export
default
class
IBIZVIEWMESSAuthServiceBase
extends
AuthService
{
/**
* Creates an instance of IBIZVIEWMESSAuthServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZVIEWMESSAuthServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 根据当前数据获取实体操作标识
*
* @param {*} mainSateOPPrivs 传入数据操作标识
* @returns {any}
* @memberof IBIZVIEWMESSAuthServiceBase
*/
public
getOPPrivs
(
mainSateOPPrivs
:
any
):
any
{
let
curDefaultOPPrivs
:
any
=
this
.
getSysOPPrivs
();
let
copyDefaultOPPrivs
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
curDefaultOPPrivs
));
if
(
mainSateOPPrivs
){
Object
.
assign
(
curDefaultOPPrivs
,
mainSateOPPrivs
);
}
// 统一资源优先
Object
.
keys
(
curDefaultOPPrivs
).
forEach
((
name
:
string
)
=>
{
if
(
this
.
sysOPPrivsMap
.
get
(
name
)
&&
copyDefaultOPPrivs
[
name
]
===
0
){
curDefaultOPPrivs
[
name
]
=
copyDefaultOPPrivs
[
name
];
}
});
return
curDefaultOPPrivs
;
}
}
\ No newline at end of file
app_Web/src/authservice/ibizviewmess/ibizviewmess-auth-service.ts
0 → 100644
浏览文件 @
fa70912b
import
IBIZVIEWMESSAuthServiceBase
from
'./ibizviewmess-auth-service-base'
;
/**
* 视图数据信息实体权限服务对象
*
* @export
* @class IBIZVIEWMESSAuthService
* @extends {IBIZVIEWMESSAuthServiceBase}
*/
export
default
class
IBIZVIEWMESSAuthService
extends
IBIZVIEWMESSAuthServiceBase
{
/**
* Creates an instance of IBIZVIEWMESSAuthService.
*
* @param {*} [opts={}]
* @memberof IBIZVIEWMESSAuthService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/locale/lang/en-US.ts
浏览文件 @
fa70912b
...
...
@@ -32,6 +32,7 @@ import ibizsample0003_en_US from '@locale/lanres/entities/ibizsample0003/ibizsam
import
ibizsample0009_en_US
from
'@locale/lanres/entities/ibizsample0009/ibizsample0009_en_US'
;
import
ibizsample0013_en_US
from
'@locale/lanres/entities/ibizsample0013/ibizsample0013_en_US'
;
import
ibizcustomer_en_US
from
'@locale/lanres/entities/ibizcustomer/ibizcustomer_en_US'
;
import
ibizviewmess_en_US
from
'@locale/lanres/entities/ibizviewmess/ibizviewmess_en_US'
;
import
ibizcustom_en_US
from
'@locale/lanres/entities/ibizcustom/ibizcustom_en_US'
;
import
ibizsample0005_en_US
from
'@locale/lanres/entities/ibizsample0005/ibizsample0005_en_US'
;
import
ibizuniproduct_en_US
from
'@locale/lanres/entities/ibizuniproduct/ibizuniproduct_en_US'
;
...
...
@@ -442,6 +443,7 @@ export default {
ibizsample0009
:
ibizsample0009_en_US
,
ibizsample0013
:
ibizsample0013_en_US
,
ibizcustomer
:
ibizcustomer_en_US
,
ibizviewmess
:
ibizviewmess_en_US
,
ibizcustom
:
ibizcustom_en_US
,
ibizsample0005
:
ibizsample0005_en_US
,
ibizuniproduct
:
ibizuniproduct_en_US
,
...
...
app_Web/src/locale/lang/zh-CN.ts
浏览文件 @
fa70912b
...
...
@@ -32,6 +32,7 @@ import ibizsample0003_zh_CN from '@locale/lanres/entities/ibizsample0003/ibizsam
import
ibizsample0009_zh_CN
from
'@locale/lanres/entities/ibizsample0009/ibizsample0009_zh_CN'
;
import
ibizsample0013_zh_CN
from
'@locale/lanres/entities/ibizsample0013/ibizsample0013_zh_CN'
;
import
ibizcustomer_zh_CN
from
'@locale/lanres/entities/ibizcustomer/ibizcustomer_zh_CN'
;
import
ibizviewmess_zh_CN
from
'@locale/lanres/entities/ibizviewmess/ibizviewmess_zh_CN'
;
import
ibizcustom_zh_CN
from
'@locale/lanres/entities/ibizcustom/ibizcustom_zh_CN'
;
import
ibizsample0005_zh_CN
from
'@locale/lanres/entities/ibizsample0005/ibizsample0005_zh_CN'
;
import
ibizuniproduct_zh_CN
from
'@locale/lanres/entities/ibizuniproduct/ibizuniproduct_zh_CN'
;
...
...
@@ -441,6 +442,7 @@ export default {
ibizsample0009
:
ibizsample0009_zh_CN
,
ibizsample0013
:
ibizsample0013_zh_CN
,
ibizcustomer
:
ibizcustomer_zh_CN
,
ibizviewmess
:
ibizviewmess_zh_CN
,
ibizcustom
:
ibizcustom_zh_CN
,
ibizsample0005
:
ibizsample0005_zh_CN
,
ibizuniproduct
:
ibizuniproduct_zh_CN
,
...
...
app_Web/src/locale/lanres/entities/ibizviewmess/ibizviewmess_en_US.ts
0 → 100644
浏览文件 @
fa70912b
export
default
{
fields
:
{
ibizviewmessname
:
"视图数据信息实体名称"
,
ibizviewmessid
:
"视图数据信息实体标识"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
documentaddress
:
"文档地址"
,
instanceaddress
:
"视图实例地址"
,
viewtype
:
"视图类型"
,
},
};
\ No newline at end of file
app_Web/src/locale/lanres/entities/ibizviewmess/ibizviewmess_zh_CN.ts
0 → 100644
浏览文件 @
fa70912b
export
default
{
fields
:
{
ibizviewmessname
:
"视图数据信息实体名称"
,
ibizviewmessid
:
"视图数据信息实体标识"
,
createman
:
"建立人"
,
createdate
:
"建立时间"
,
updateman
:
"更新人"
,
updatedate
:
"更新时间"
,
documentaddress
:
"文档地址"
,
instanceaddress
:
"视图实例地址"
,
viewtype
:
"视图类型"
,
},
};
\ No newline at end of file
app_Web/src/mock/entity/ibizviewmesss/ibizviewmesss.ts
0 → 100644
浏览文件 @
fa70912b
import
qs
from
'qs'
;
import
{
MockAdapter
}
from
'@/mock/mock-adapter'
;
const
mock
=
MockAdapter
.
getInstance
();
// 模拟数据
const
mockDatas
:
Array
<
any
>
=
[
];
//getwflink
mock
.
onGet
(
new
RegExp
(
/^
\/
wfcore
\/
demosys-app-web
\/
ibizviewmesses
\/[
a-zA-Z0-9
\-\;]
+
\/
usertasks
\/[
a-zA-Z0-9
\-\;]
+
\/
ways$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizviewmess 方法: getwflink"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,[
{
"sequenceFlowId"
:
"dfdsfdsfdsfdsfds"
,
"sequenceFlowName"
:
"同意"
,
"taskId"
:
"aaaaddddccccddddd"
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processInstanceId"
:
"ddlfldldfldsfds"
,
"refViewKey"
:
""
},
{
"sequenceFlowId"
:
"ddssdfdfdfdfsfdf"
,
"sequenceFlowName"
:
"不同意"
,
"taskId"
:
"aaaaddddccccddddd"
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processInstanceId"
:
"ddfdsldlfdlldsf"
,
"refViewKey"
:
"workorder_ltform_editview"
}
]];
});
// getwfstep
mock
.
onGet
(
new
RegExp
(
/^
\/
wfcore
\/
demosys-app-web
\/
ibizviewmesses
\/
process-definitions-nodes$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizviewmess 方法: getwfstep"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
[
{
"userTaskId"
:
"sddfddfd-dfdf-fdfd-fdf-dfdfd"
,
"userTaskName"
:
"待审"
,
"cnt"
:
0
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processDefinitionName"
:
"工单审批流程v1"
},
{
"userTaskId"
:
"sddfddfd-dfdf-fdfd-fdf-87927"
,
"userTaskName"
:
"待分配"
,
"cnt"
:
3
,
"processDefinitionKey"
:
"support-workorders-approve-v1"
,
"processDefinitionName"
:
"工单审批流程v1"
}
]];
});
// createBatch
mock
.
onPost
(
new
RegExp
(
/^
\/
ibizviewmesses
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizviewmess 方法: createBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// updateBatch
mock
.
onPut
(
new
RegExp
(
/^
\/
ibizviewmesses
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizviewmess 方法: updateBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// removeBatch
mock
.
onDelete
(
new
RegExp
(
/^
\/
ibizviewmesses
\/
batch$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizviewmess 方法: removeBatch"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
console
.
groupEnd
();
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
{}];
}
return
[
status
,
{}];
});
// Select
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizviewmesses
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizviewmess 方法: Select"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizviewmessid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizviewmesses
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
ibizviewmessid
,
tempValue
.
ibizviewmessid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizviewmesses
\/
select$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizviewmess 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
mockDatas
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
mockDatas
?
mockDatas
:
[]];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizviewmesses
\/
select
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizviewmess 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
if
(
config
.
url
.
includes
(
'page'
)){
let
url
=
config
.
url
.
split
(
'?'
)[
1
];
let
params
=
qs
.
parse
(
url
);
Object
.
assign
(
config
,
params
);
}
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
let
total
=
mockDatas
.
length
;
let
records
:
Array
<
any
>
=
[];
if
(
!
config
.
page
||
!
config
.
size
){
records
=
mockDatas
;
}
else
{
if
((
config
.
page
-
1
)
*
config
.
size
<
total
){
records
=
mockDatas
.
slice
(
config
.
page
,
config
.
size
);
}
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
records
?
records
:
[]);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
records
?
records
:
[]];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
app_Web/src/mock/index.ts
浏览文件 @
fa70912b
...
...
@@ -41,6 +41,7 @@ import './entity/ibizsample0003s/ibizsample0003s';
import
'./entity/ibizsample0009s/ibizsample0009s'
;
import
'./entity/ibizsample0013s/ibizsample0013s'
;
import
'./entity/ibizcustomers/ibizcustomers'
;
import
'./entity/ibizviewmesss/ibizviewmesss'
;
import
'./entity/ibizcustoms/ibizcustoms'
;
import
'./entity/ibizsample0005s/ibizsample0005s'
;
import
'./entity/ibizuniproducts/ibizuniproducts'
;
app_Web/src/service/entity-service-register.ts
浏览文件 @
fa70912b
...
...
@@ -73,6 +73,7 @@ export class EntityServiceRegister {
this
.
allEntityService
.
set
(
'ibizsample0009'
,
()
=>
import
(
'@/service/ibizsample0009/ibizsample0009-service'
));
this
.
allEntityService
.
set
(
'ibizsample0013'
,
()
=>
import
(
'@/service/ibizsample0013/ibizsample0013-service'
));
this
.
allEntityService
.
set
(
'ibizcustomer'
,
()
=>
import
(
'@/service/ibizcustomer/ibizcustomer-service'
));
this
.
allEntityService
.
set
(
'ibizviewmess'
,
()
=>
import
(
'@/service/ibizviewmess/ibizviewmess-service'
));
this
.
allEntityService
.
set
(
'ibizcustom'
,
()
=>
import
(
'@/service/ibizcustom/ibizcustom-service'
));
this
.
allEntityService
.
set
(
'ibizsample0005'
,
()
=>
import
(
'@/service/ibizsample0005/ibizsample0005-service'
));
this
.
allEntityService
.
set
(
'ibizuniproduct'
,
()
=>
import
(
'@/service/ibizuniproduct/ibizuniproduct-service'
));
...
...
app_Web/src/service/ibizviewmess/ibizviewmess-service-base.ts
0 → 100644
浏览文件 @
fa70912b
import
{
Http
,
Util
}
from
'@/utils'
;
import
EntityService
from
'../entity-service'
;
/**
* 视图数据信息实体服务对象基类
*
* @export
* @class IBIZVIEWMESSServiceBase
* @extends {EntityServie}
*/
export
default
class
IBIZVIEWMESSServiceBase
extends
EntityService
{
/**
* Creates an instance of IBIZVIEWMESSServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZVIEWMESSServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础数据
*
* @memberof IBIZVIEWMESSServiceBase
*/
public
initBasicData
(){
this
.
APPLYDEKEY
=
'ibizviewmess'
;
this
.
APPDEKEY
=
'ibizviewmessid'
;
this
.
APPDENAME
=
'ibizviewmesses'
;
this
.
APPDETEXT
=
'ibizviewmessname'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'demosys'
;
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZVIEWMESSServiceBase
*/
public
async
Select
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
get
(
`/ibizviewmesses/
${
context
.
ibizviewmess
}
/select`
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZVIEWMESSServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
}
/**
* searchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZVIEWMESSServiceBase
*/
public
async
searchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/ibizviewmesses/searchdefault`
,
tempData
,
isloading
);
}
}
\ No newline at end of file
app_Web/src/service/ibizviewmess/ibizviewmess-service.ts
0 → 100644
浏览文件 @
fa70912b
import
{
Http
,
Util
}
from
'@/utils'
;
import
IBIZVIEWMESSServiceBase
from
'./ibizviewmess-service-base'
;
/**
* 视图数据信息实体服务对象
*
* @export
* @class IBIZVIEWMESSService
* @extends {IBIZVIEWMESSServiceBase}
*/
export
default
class
IBIZVIEWMESSService
extends
IBIZVIEWMESSServiceBase
{
/**
* Creates an instance of IBIZVIEWMESSService.
*
* @param {*} [opts={}]
* @memberof IBIZVIEWMESSService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/uiservice/ibizviewmess/ibizviewmess-ui-service-base.ts
0 → 100644
浏览文件 @
fa70912b
import
{
Environment
}
from
'@/environments/environment'
;
import
{
UIActionTool
,
Util
}
from
'@/utils'
;
import
UIService
from
'../ui-service'
;
import
{
Subject
}
from
'rxjs'
;
import
IBIZVIEWMESSService
from
'@/service/ibizviewmess/ibizviewmess-service'
;
import
IBIZVIEWMESSAuthService
from
'@/authservice/ibizviewmess/ibizviewmess-auth-service'
;
/**
* 视图数据信息实体UI服务对象基类
*
* @export
* @class IBIZVIEWMESSUIServiceBase
*/
export
default
class
IBIZVIEWMESSUIServiceBase
extends
UIService
{
/**
* 是否支持工作流
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
dataService
:
IBIZVIEWMESSService
=
new
IBIZVIEWMESSService
();
/**
* 所有关联视图
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
allViewMap
:
Map
<
string
,
Object
>
=
new
Map
();
/**
* 状态值
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
stateValue
:
number
=
0
;
/**
* 状态属性
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
stateField
:
string
=
""
;
/**
* 主状态属性集合
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
mainStateFields
:
Array
<
any
>
=
[];
/**
* 主状态集合Map
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
allDeMainStateMap
:
Map
<
string
,
string
>
=
new
Map
();
/**
* 主状态操作标识Map
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
allDeMainStateOPPrivsMap
:
Map
<
string
,
any
>
=
new
Map
();
/**
* Creates an instance of IBIZVIEWMESSUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBIZVIEWMESSUIServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
this
.
authService
=
new
IBIZVIEWMESSAuthService
(
opts
);
this
.
initViewMap
();
this
.
initDeMainStateMap
();
this
.
initDeMainStateOPPrivsMap
();
}
/**
* 初始化视图Map
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
initViewMap
(){
}
/**
* 初始化主状态集合
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
initDeMainStateMap
(){
}
/**
* 初始化主状态操作标识
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
initDeMainStateOPPrivsMap
(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
async
getRDAppView
(
srfkey
:
string
,
isEnableWorkflow
:
boolean
){
this
.
isEnableWorkflow
=
isEnableWorkflow
;
// 进行数据查询
let
result
:
any
=
await
this
.
dataService
.
Get
({
ibizviewmess
:
srfkey
});
const
curData
:
any
=
result
.
data
;
//判断当前数据模式,默认为true,todo
const
iRealDEModel
:
boolean
=
true
;
let
bDataInWF
:
boolean
=
false
;
let
bWFMode
:
any
=
false
;
// 计算数据模式
if
(
this
.
isEnableWorkflow
)
{
bDataInWF
=
await
this
.
dataService
.
testDataInWF
({
stateValue
:
this
.
stateValue
,
stateField
:
this
.
stateField
},
curData
);
if
(
bDataInWF
)
{
bDataInWF
=
true
;
bWFMode
=
await
this
.
dataService
.
testUserExistWorklist
(
null
,
curData
);
}
}
let
strPDTViewParam
:
string
=
await
this
.
getDESDDEViewPDTParam
(
curData
,
bDataInWF
,
bWFMode
);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return
this
.
allViewMap
.
get
(
strPDTViewParam
);
}
/**
* 获取实际的数据类型
*
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
getRealDEType
(
entity
:
any
){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
async
getDESDDEViewPDTParam
(
curData
:
any
,
bDataInWF
:
boolean
,
bWFMode
:
boolean
){
let
strPDTParam
:
string
=
''
;
if
(
bDataInWF
)
{
// 判断数据是否在流程中
}
//多表单,todo
const
multiFormDEField
:
string
|
null
=
null
;
if
(
multiFormDEField
)
{
const
objFormValue
:
string
=
curData
[
multiFormDEField
];
if
(
!
Environment
.
isAppMode
){
return
'MOBEDITVIEW:'
+
objFormValue
;
}
return
'EDITVIEW:'
+
objFormValue
;
}
if
(
!
Environment
.
isAppMode
){
if
(
this
.
getDEMainStateTag
(
curData
)){
return
`MOBEDITVIEW:MSTAG:
${
this
.
getDEMainStateTag
(
curData
)}
`
;
}
return
'MOBEDITVIEW:'
;
}
if
(
this
.
getDEMainStateTag
(
curData
)){
return
`EDITVIEW:MSTAG:
${
this
.
getDEMainStateTag
(
curData
)}
`
;
}
return
'EDITVIEW:'
;
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
getDEMainStateTag
(
curData
:
any
){
if
(
this
.
mainStateFields
.
length
===
0
)
return
null
;
this
.
mainStateFields
.
forEach
((
singleMainField
:
any
)
=>
{
if
(
!
(
singleMainField
in
curData
)){
console
.
warn
(
`当前数据对象不包含属性「
${
singleMainField
}
」,根据「
${
singleMainField
}
」属性进行的主状态计算默认为空值`
);
}
})
for
(
let
i
=
0
;
i
<=
1
;
i
++
)
{
let
strTag
:
string
=
(
curData
[
this
.
mainStateFields
[
0
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
0
]]
!==
""
)?(
i
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
0
]]}
`
:
""
:
""
;
if
(
this
.
mainStateFields
.
length
>=
2
)
{
for
(
let
j
=
0
;
j
<=
1
;
j
++
)
{
let
strTag2
:
string
=
(
curData
[
this
.
mainStateFields
[
1
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
1
]]
!==
""
)?
`
${
strTag
}
__
${(
j
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
1
]]}
`
:
""
}
`
:
strTag
;
if
(
this
.
mainStateFields
.
length
>=
3
)
{
for
(
let
k
=
0
;
k
<=
1
;
k
++
)
{
let
strTag3
:
string
=
(
curData
[
this
.
mainStateFields
[
2
]]
!=
null
&&
curData
[
this
.
mainStateFields
[
2
]]
!==
""
)?
`
${
strTag2
}
__
${(
k
==
0
)
?
`
${
curData
[
this
.
mainStateFields
[
2
]]}
`
:
""
}
`
:
strTag2
;
// 判断是否存在
return
this
.
allDeMainStateMap
.
get
(
strTag3
);
}
}
else
{
return
this
.
allDeMainStateMap
.
get
(
strTag2
);
}
}
}
else
{
return
this
.
allDeMainStateMap
.
get
(
strTag
);
}
}
return
null
;
}
/**
* 获取数据对象当前操作标识
*
* @param data 当前数据
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
getDEMainStateOPPrivs
(
data
:
any
){
if
(
this
.
getDEMainStateTag
(
data
)){
return
this
.
allDeMainStateOPPrivsMap
.
get
((
this
.
getDEMainStateTag
(
data
)
as
string
));
}
else
{
return
null
;
}
}
/**
* 获取数据对象所有的操作标识
*
* @param data 当前数据
* @memberof IBIZVIEWMESSUIServiceBase
*/
public
getAllOPPrivs
(
data
:
any
){
return
this
.
authService
.
getOPPrivs
(
this
.
getDEMainStateOPPrivs
(
data
));
}
}
\ No newline at end of file
app_Web/src/uiservice/ibizviewmess/ibizviewmess-ui-service.ts
0 → 100644
浏览文件 @
fa70912b
import
IBIZVIEWMESSUIServiceBase
from
'./ibizviewmess-ui-service-base'
;
/**
* 视图数据信息实体UI服务对象
*
* @export
* @class IBIZVIEWMESSUIService
*/
export
default
class
IBIZVIEWMESSUIService
extends
IBIZVIEWMESSUIServiceBase
{
/**
* Creates an instance of IBIZVIEWMESSUIService.
*
* @param {*} [opts={}]
* @memberof IBIZVIEWMESSUIService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/uiservice/ui-service-register.ts
浏览文件 @
fa70912b
...
...
@@ -73,6 +73,7 @@ export class UIServiceRegister {
this
.
allUIService
.
set
(
'ibizsample0009'
,
()
=>
import
(
'@/uiservice/ibizsample0009/ibizsample0009-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0013'
,
()
=>
import
(
'@/uiservice/ibizsample0013/ibizsample0013-ui-service'
));
this
.
allUIService
.
set
(
'ibizcustomer'
,
()
=>
import
(
'@/uiservice/ibizcustomer/ibizcustomer-ui-service'
));
this
.
allUIService
.
set
(
'ibizviewmess'
,
()
=>
import
(
'@/uiservice/ibizviewmess/ibizviewmess-ui-service'
));
this
.
allUIService
.
set
(
'ibizcustom'
,
()
=>
import
(
'@/uiservice/ibizcustom/ibizcustom-ui-service'
));
this
.
allUIService
.
set
(
'ibizsample0005'
,
()
=>
import
(
'@/uiservice/ibizsample0005/ibizsample0005-ui-service'
));
this
.
allUIService
.
set
(
'ibizuniproduct'
,
()
=>
import
(
'@/uiservice/ibizuniproduct/ibizuniproduct-ui-service'
));
...
...
app_Web/src/widgets/ibizbook/lnternal-func-list-list/lnternal-func-list-list-base.vue
浏览文件 @
fa70912b
...
...
@@ -294,7 +294,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public
list_memo1_u
8457362
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
list_memo1_u
693c051
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
...
...
@@ -310,7 +310,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
...
...
@@ -321,7 +321,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @param {*} [$event]
* @memberof
*/
public
list_memo1_u
693c051
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
list_memo1_u
8457362
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
...
...
@@ -337,7 +337,7 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
datas
=
[
params
];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
...
...
@@ -1098,8 +1098,8 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
* @memberof LnternalFuncListBase
*/
public
ActionModel
:
any
=
{
"Remove"
:{
name
:
"Remove"
,
icon
:
"fa fa-remove"
,
caption
:
"删除"
,
disabled
:
false
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
""
,
actiontarget
:
"MULTIKEY"
},
"Edit"
:{
name
:
"Edit"
,
icon
:
"fa fa-edit"
,
caption
:
"编辑"
,
disabled
:
false
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
""
,
actiontarget
:
"SINGLEKEY"
},
"Remove"
:{
name
:
"Remove"
,
icon
:
"fa fa-remove"
,
caption
:
"删除"
,
disabled
:
false
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
""
,
actiontarget
:
"MULTIKEY"
},
};
/**
...
...
@@ -1121,12 +1121,12 @@ export default class LnternalFuncListBase extends Vue implements ControlInterfac
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
list_batchtoolbar_deuiaction2_click
(
data
,
tag
,
$event
);
}
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
list_memo1_u8457362_click
(
data
,
tag
,
$event
);
}
if
(
Object
.
is
(
'Edit'
,
tag
))
{
this
.
list_memo1_u693c051_click
(
data
,
tag
,
$event
);
}
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
list_memo1_u8457362_click
(
data
,
tag
,
$event
);
}
}
}
...
...
app_Web/src/widgets/ibizbook/usr-dataview/usr-dataview-base.vue
浏览文件 @
fa70912b
...
...
@@ -294,7 +294,7 @@ export default class UsrBase extends Vue implements ControlInterface {
* @param {*} [$event]
* @memberof
*/
public
dataview_memo1_u
8457362
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
dataview_memo1_u
693c051
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
...
...
@@ -310,7 +310,7 @@ export default class UsrBase extends Vue implements ControlInterface {
datas
=
[
params
];
}
// 界面行为
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
...
...
@@ -321,7 +321,7 @@ export default class UsrBase extends Vue implements ControlInterface {
* @param {*} [$event]
* @memberof
*/
public
dataview_memo1_u
693c051
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
public
dataview_memo1_u
8457362
_click
(
params
:
any
=
{},
tag
?:
any
,
$event
?:
any
)
{
// 取数
let
datas
:
any
[]
=
[];
let
xData
:
any
=
null
;
...
...
@@ -337,7 +337,7 @@ export default class UsrBase extends Vue implements ControlInterface {
datas
=
[
params
];
}
// 界面行为
this
.
Edit
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
this
.
Remove
(
datas
,
contextJO
,
paramJO
,
$event
,
xData
,
this
,
"IBIZBOOK"
);
}
/**
...
...
@@ -637,8 +637,8 @@ export default class UsrBase extends Vue implements ControlInterface {
* @memberof UsrBase
*/
public
ActionModel
:
any
=
{
"Remove"
:{
name
:
"Remove"
,
icon
:
"fa fa-remove"
,
caption
:
"删除"
,
disabled
:
false
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
""
,
actiontarget
:
"MULTIKEY"
},
"Edit"
:{
name
:
"Edit"
,
icon
:
"fa fa-edit"
,
caption
:
"编辑"
,
disabled
:
false
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
""
,
actiontarget
:
"SINGLEKEY"
},
"Remove"
:{
name
:
"Remove"
,
icon
:
"fa fa-remove"
,
caption
:
"删除"
,
disabled
:
false
,
visabled
:
true
,
noprivdisplaymode
:
2
,
dataaccaction
:
""
,
actiontarget
:
"MULTIKEY"
},
};
/**
...
...
@@ -1234,12 +1234,12 @@ export default class UsrBase extends Vue implements ControlInterface {
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
dataview_batchtoolbar_deuiaction2_click
(
data
,
tag
,
$event
);
}
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
dataview_memo1_u8457362_click
(
data
,
tag
,
$event
);
}
if
(
Object
.
is
(
'Edit'
,
tag
))
{
this
.
dataview_memo1_u693c051_click
(
data
,
tag
,
$event
);
}
if
(
Object
.
is
(
'Remove'
,
tag
))
{
this
.
dataview_memo1_u8457362_click
(
data
,
tag
,
$event
);
}
}
}
...
...
config.xml
浏览文件 @
fa70912b
...
...
@@ -37,11 +37,6 @@
git clone -b master $para2 demosys/
export NODE_OPTIONS=--max-old-space-size=4096
cd demosys/
mvn clean package -Pdemoapi
cd demo-provider/demo-provider-demoapi
mvn -Pdemoapi docker:build
mvn -Pdemoapi docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/demo-provider-demoapi.yaml iBizDemo --with-registry-auth
</command>
</hudson.tasks.Shell>
</builders>
...
...
demo-provider/demo-provider-demoapi/src/main/docker/Dockerfile
浏览文件 @
fa70912b
...
...
@@ -12,6 +12,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /demo-provider-demoapi.jar
EXPOSE
51000
EXPOSE
8081
ADD
demo-provider-demoapi.jar /demo-provider-demoapi.jar
demo-provider/demo-provider-demoapi/src/main/docker/demo-provider-demoapi.yaml
浏览文件 @
fa70912b
...
...
@@ -3,24 +3,9 @@ services:
demo-provider-demoapi
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/demo-provider-demoapi:latest
ports
:
-
"
51000:51000
"
-
"
8081:8081
"
networks
:
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.240.110
-
SERVER_PORT=51000
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.240.110:8848
-
SPRING_REDIS_HOST=172.16.240.110
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_LAB01_df847bdfd
-
SPRING_DATASOURCE_PASSWORD=3d6@460A
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.186.185:3306/a_LAB01_df847bdfd?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_LAB01_df847bdfd
-
NACOS=172.16.240.110:8848
-
SEATA_REGISTRY_NACOS_SERVER-ADDR=172.16.240.110:8848
-
SEATA_ENABLED=true
deploy
:
resources
:
limits
:
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录