Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
3035f0eb
提交
3035f0eb
编写于
5月 18, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
b6091e93
变更
33
显示空白字符变更
内嵌
并排
正在显示
33 个修改的文件
包含
259 行增加
和
73 行删除
+259
-73
CHANGELOG.md
app_web/CHANGELOG.md
+43
-0
app-form-druipart.vue
...eb/src/components/app-form-druipart/app-form-druipart.vue
+3
-1
app-user.vue
app_web/src/components/app-user/app-user.vue
+10
-3
ibzdepartment-edit-view-base.vue
.../ibzdepartment-edit-view/ibzdepartment-edit-view-base.vue
+3
-3
ibzdepartment-grid-view-base.vue
.../ibzdepartment-grid-view/ibzdepartment-grid-view-base.vue
+6
-3
ibzemployee-edit-view-base.vue
...s/ou/ibzemployee-edit-view/ibzemployee-edit-view-base.vue
+3
-3
ibzemployee-grid-view-base.vue
...s/ou/ibzemployee-grid-view/ibzemployee-grid-view-base.vue
+6
-3
ibzorganization-edit-view-base.vue
...organization-edit-view/ibzorganization-edit-view-base.vue
+3
-3
ibzorganization-grid-view-base.vue
...organization-grid-view/ibzorganization-grid-view-base.vue
+6
-3
getters.ts
app_web/src/store/getters.ts
+13
-0
mutations.ts
app_web/src/store/mutations.ts
+12
-0
state.ts
app_web/src/store/state.ts
+1
-0
main-form-base.vue
...eb/src/widgets/ibzdepartment/main-form/main-form-base.vue
+17
-3
new-form-form-base.vue
...idgets/ibzdepartment/new-form-form/new-form-form-base.vue
+17
-3
change-pw-form-base.vue
...idgets/ibzemployee/change-pw-form/change-pw-form-base.vue
+17
-3
main-form-base.vue
app_web/src/widgets/ibzemployee/main-form/main-form-base.vue
+17
-3
new-form-form-base.vue
.../widgets/ibzemployee/new-form-form/new-form-form-base.vue
+17
-3
main-form-base.vue
.../src/widgets/ibzorganization/main-form/main-form-base.vue
+17
-3
new-form-form-base.vue
...gets/ibzorganization/new-form-form/new-form-form-base.vue
+17
-3
ibzou-app-web.yaml
ibzou-app/ibzou-app-web/src/main/docker/ibzou-app-web.yaml
+2
-1
IBZDepartment.java
...rc/main/java/cn/ibizlab/core/ou/domain/IBZDepartment.java
+4
-4
IBZEmployee.java
.../src/main/java/cn/ibizlab/core/ou/domain/IBZEmployee.java
+4
-4
IBZOrganization.java
.../main/java/cn/ibizlab/core/ou/domain/IBZOrganization.java
+4
-4
IBZDepartmentServiceImpl.java
...bizlab/core/ou/service/impl/IBZDepartmentServiceImpl.java
+1
-1
IBZEmployeeServiceImpl.java
.../ibizlab/core/ou/service/impl/IBZEmployeeServiceImpl.java
+1
-1
IBZOrganizationServiceImpl.java
...zlab/core/ou/service/impl/IBZOrganizationServiceImpl.java
+1
-1
ibzou-provider-api.yaml
...bzou-provider-api/src/main/docker/ibzou-provider-api.yaml
+2
-1
CaffeineCacheConfig.java
.../main/java/cn/ibizlab/util/cache/CaffeineCacheConfig.java
+2
-2
RedisCacheConfig.java
...src/main/java/cn/ibizlab/util/cache/RedisCacheConfig.java
+2
-2
CaffeineCacheManager.java
...ibizlab/util/cache/cacheManager/CaffeineCacheManager.java
+2
-2
LayeringCacheManager.java
...ibizlab/util/cache/cacheManager/LayeringCacheManager.java
+2
-2
RedisMessageListener.java
.../cn/ibizlab/util/cache/listener/RedisMessageListener.java
+2
-2
application-sys.yml
ibzou-util/src/main/resources/application-sys.yml
+2
-3
未找到文件。
app_web/CHANGELOG.md
浏览文件 @
3035f0eb
## v7.0.0-alpha.4 [2020-5-14]
### Bug修复
修复代码表代码项图标和数据
修复数据多项选择视图UI逻辑不匹配
修复列表高度异常
修复树节点上下文
修复表格(视图)高度,滚动条问题
修复表单loaddraft服务仿真主键丢失修复
修复user显示名称逻辑
修复issue地址为正式环境地址
### 功能新增及优化
#### 模板
模态时视图样式调整
增加菜单权限
增加快速分组搜索或快速搜索表单功能
增加表格内置工具栏
代码表多选控件分割符从分号转化为逗号
#### 基础文件
增加数据选择类插件表格呈现插件
## v7.0.0-alpha.3 [2020-5-10]
## v7.0.0-alpha.3 [2020-5-10]
### Bug修复
### Bug修复
...
@@ -65,3 +106,5 @@
...
@@ -65,3 +106,5 @@
## v7.0.0-alpha.1 [2020-4-29]
## v7.0.0-alpha.1 [2020-4-29]
初始化文件
初始化文件
app_web/src/components/app-form-druipart/app-form-druipart.vue
浏览文件 @
3035f0eb
...
@@ -263,7 +263,9 @@ export default class AppFormDRUIPart extends Vue {
...
@@ -263,7 +263,9 @@ export default class AppFormDRUIPart extends Vue {
}
}
}
}
if
(
!
this
.
isForbidLoad
){
if
(
!
this
.
isForbidLoad
){
this
.
$nextTick
(()
=>
{
this
.
formDruipart
.
next
({
action
:
'load'
,
data
:{
srfparentdename
:
this
.
parentName
,
srfparentkey
:
_paramitem
}});
this
.
formDruipart
.
next
({
action
:
'load'
,
data
:{
srfparentdename
:
this
.
parentName
,
srfparentkey
:
_paramitem
}});
});
}
}
}
}
...
...
app_web/src/components/app-user/app-user.vue
浏览文件 @
3035f0eb
...
@@ -81,10 +81,17 @@ export default class AppUser extends Vue {
...
@@ -81,10 +81,17 @@ export default class AppUser extends Vue {
* @memberof AppUser
* @memberof AppUser
*/
*/
public
logout
()
{
public
logout
()
{
const
get
:
Promise
<
any
>
=
this
.
$http
.
get
(
'v7/logout'
);
get
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
localStorage
.
removeItem
(
'user'
);
localStorage
.
removeItem
(
'user'
);
localStorage
.
removeItem
(
'token'
);
localStorage
.
removeItem
(
'token'
);
this
.
$router
.
push
({
name
:
'login'
});
this
.
$router
.
push
({
name
:
'login'
});
}
}
}).
catch
((
error
:
any
)
=>
{
console
.
error
(
error
);
})
}
}
}
</
script
>
</
script
>
...
...
app_web/src/pages/ou/ibzdepartment-edit-view/ibzdepartment-edit-view-base.vue
浏览文件 @
3035f0eb
...
@@ -812,14 +812,14 @@ export default class IBZDepartmentEditViewBase extends Vue {
...
@@ -812,14 +812,14 @@ export default class IBZDepartmentEditViewBase extends Vue {
const
data
:
any
=
{};
const
data
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data2
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
xData
.
copy
(
data2
);
xData
.
copy
(
args
[
0
].
srfkey
);
}
else
{
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
...
...
app_web/src/pages/ou/ibzdepartment-grid-view/ibzdepartment-grid-view-base.vue
浏览文件 @
3035f0eb
...
@@ -959,6 +959,9 @@ export default class IBZDepartmentGridViewBase extends Vue {
...
@@ -959,6 +959,9 @@ export default class IBZDepartmentGridViewBase extends Vue {
*/
*/
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
const
data
:
any
=
{};
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
}
let
curViewParam
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
let
curViewParam
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
if
(
args
.
length
>
0
){
if
(
args
.
length
>
0
){
Object
.
assign
(
curViewParam
,
args
[
0
]);
Object
.
assign
(
curViewParam
,
args
[
0
]);
...
@@ -1117,14 +1120,14 @@ export default class IBZDepartmentGridViewBase extends Vue {
...
@@ -1117,14 +1120,14 @@ export default class IBZDepartmentGridViewBase extends Vue {
const
data
:
any
=
{};
const
data
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data2
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
xData
.
copy
(
data2
);
xData
.
copy
(
args
[
0
].
srfkey
);
}
else
{
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
...
...
app_web/src/pages/ou/ibzemployee-edit-view/ibzemployee-edit-view-base.vue
浏览文件 @
3035f0eb
...
@@ -812,14 +812,14 @@ export default class IBZEmployeeEditViewBase extends Vue {
...
@@ -812,14 +812,14 @@ export default class IBZEmployeeEditViewBase extends Vue {
const
data
:
any
=
{};
const
data
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data2
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
xData
.
copy
(
data2
);
xData
.
copy
(
args
[
0
].
srfkey
);
}
else
{
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
...
...
app_web/src/pages/ou/ibzemployee-grid-view/ibzemployee-grid-view-base.vue
浏览文件 @
3035f0eb
...
@@ -999,6 +999,9 @@ export default class IBZEmployeeGridViewBase extends Vue {
...
@@ -999,6 +999,9 @@ export default class IBZEmployeeGridViewBase extends Vue {
*/
*/
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
const
data
:
any
=
{};
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
}
let
curViewParam
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
let
curViewParam
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
if
(
args
.
length
>
0
){
if
(
args
.
length
>
0
){
Object
.
assign
(
curViewParam
,
args
[
0
]);
Object
.
assign
(
curViewParam
,
args
[
0
]);
...
@@ -1157,14 +1160,14 @@ export default class IBZEmployeeGridViewBase extends Vue {
...
@@ -1157,14 +1160,14 @@ export default class IBZEmployeeGridViewBase extends Vue {
const
data
:
any
=
{};
const
data
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data2
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
xData
.
copy
(
data2
);
xData
.
copy
(
args
[
0
].
srfkey
);
}
else
{
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
...
...
app_web/src/pages/ou/ibzorganization-edit-view/ibzorganization-edit-view-base.vue
浏览文件 @
3035f0eb
...
@@ -812,14 +812,14 @@ export default class IBZOrganizationEditViewBase extends Vue {
...
@@ -812,14 +812,14 @@ export default class IBZOrganizationEditViewBase extends Vue {
const
data
:
any
=
{};
const
data
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data2
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
xData
.
copy
(
data2
);
xData
.
copy
(
args
[
0
].
srfkey
);
}
else
{
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
...
...
app_web/src/pages/ou/ibzorganization-grid-view/ibzorganization-grid-view-base.vue
浏览文件 @
3035f0eb
...
@@ -959,6 +959,9 @@ export default class IBZOrganizationGridViewBase extends Vue {
...
@@ -959,6 +959,9 @@ export default class IBZOrganizationGridViewBase extends Vue {
*/
*/
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
public
newdata
(
args
:
any
[],
fullargs
?:
any
[],
params
?:
any
,
$event
?:
any
,
xData
?:
any
)
{
const
data
:
any
=
{};
const
data
:
any
=
{};
if
(
args
[
0
].
srfsourcekey
){
data
.
srfsourcekey
=
args
[
0
].
srfsourcekey
;
}
let
curViewParam
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
let
curViewParam
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
if
(
args
.
length
>
0
){
if
(
args
.
length
>
0
){
Object
.
assign
(
curViewParam
,
args
[
0
]);
Object
.
assign
(
curViewParam
,
args
[
0
]);
...
@@ -1107,14 +1110,14 @@ export default class IBZOrganizationGridViewBase extends Vue {
...
@@ -1107,14 +1110,14 @@ export default class IBZOrganizationGridViewBase extends Vue {
const
data
:
any
=
{};
const
data
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
Object
.
assign
(
data
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
_this
.
newdata
([{
...
data
}],[{
...
data
}],
params
,
$event
,
xData
);
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
}
else
if
(
xData
&&
xData
.
copy
instanceof
Function
)
{
const
data2
:
any
=
{};
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
Object
.
assign
(
data2
,
{
srfsourcekey
:
args
[
0
].
srfkey
})
actionContext
.
$store
.
commit
(
'addCopyData'
,
{
srfkey
:
args
[
0
].
srfkey
,
copyData
:
args
[
0
]
});
}
}
xData
.
copy
(
data2
);
xData
.
copy
(
args
[
0
].
srfkey
);
}
else
{
}
else
{
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
_this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'opendata 视图处理逻辑不存在,请添加!'
});
}
}
...
...
app_web/src/store/getters.ts
浏览文件 @
3035f0eb
...
@@ -76,3 +76,16 @@ export const getZIndex = (state: any) => () => {
...
@@ -76,3 +76,16 @@ export const getZIndex = (state: any) => () => {
export
const
getViewSplit
=
(
state
:
any
)
=>
(
viewUID
:
string
)
=>
{
export
const
getViewSplit
=
(
state
:
any
)
=>
(
viewUID
:
string
)
=>
{
return
state
.
viewSplit
[
viewUID
];
return
state
.
viewSplit
[
viewUID
];
}
}
/**
* 获取拷贝数据
*
* @param state
*/
export
const
getCopyData
=
(
state
:
any
)
=>
(
srfkey
:
string
)
=>
{
let
copyData
=
state
.
copyDataMap
[
srfkey
];
if
(
copyData
){
delete
state
.
copyDataMap
[
srfkey
];
}
return
copyData
;
}
\ No newline at end of file
app_web/src/store/mutations.ts
浏览文件 @
3035f0eb
...
@@ -254,3 +254,15 @@ export const updateZIndex = (state: any, zIndex: number) => {
...
@@ -254,3 +254,15 @@ export const updateZIndex = (state: any, zIndex: number) => {
export
const
setViewSplit
=
(
state
:
any
,
args
:
{
viewSplit
:
number
,
viewUID
:
string
})
=>
{
export
const
setViewSplit
=
(
state
:
any
,
args
:
{
viewSplit
:
number
,
viewUID
:
string
})
=>
{
state
.
viewSplit
[
args
.
viewUID
]
=
args
.
viewSplit
;
state
.
viewSplit
[
args
.
viewUID
]
=
args
.
viewSplit
;
}
}
/**
* 添加拷贝数据
*
* @param state
* @param localdata
*/
export
const
addCopyData
=
(
state
:
any
,
args
:
{
srfkey
:
string
,
copyData
:
any
})
=>
{
if
(
args
&&
args
.
srfkey
&&
args
.
copyData
){
state
.
copyDataMap
[
args
.
srfkey
]
=
JSON
.
parse
(
JSON
.
stringify
(
args
.
copyData
));
}
}
\ No newline at end of file
app_web/src/store/state.ts
浏览文件 @
3035f0eb
...
@@ -13,4 +13,5 @@ export const rootstate: any = {
...
@@ -13,4 +13,5 @@ export const rootstate: any = {
localdata
:
{},
localdata
:
{},
zIndex
:
300
,
zIndex
:
300
,
viewSplit
:
{},
viewSplit
:
{},
copyDataMap
:{},
}
}
\ No newline at end of file
app_web/src/widgets/ibzdepartment/main-form/main-form-base.vue
浏览文件 @
3035f0eb
...
@@ -1180,8 +1180,12 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1180,8 +1180,12 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
load
(
data
);
this
.
load
(
data
);
}
}
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
this
.
context
.
srfsourcekey
){
this
.
copy
(
this
.
context
.
srfsourcekey
);
}
else
{
this
.
loadDraft
(
data
);
this
.
loadDraft
(
data
);
}
}
}
if
(
Object
.
is
(
'save'
,
action
))
{
if
(
Object
.
is
(
'save'
,
action
))
{
this
.
save
(
data
,
data
.
showResultInfo
);
this
.
save
(
data
,
data
.
showResultInfo
);
}
}
...
@@ -1244,8 +1248,18 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1244,8 +1248,18 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [arg={}]
* @param {*} [arg={}]
* @memberof @memberof Main
* @memberof @memberof Main
*/
*/
public
copy
(
arg
:
any
=
{}):
void
{
public
copy
(
srfkey
:
string
):
void
{
this
.
loadDraft
(
arg
);
let
copyData
=
this
.
$store
.
getters
.
getCopyData
(
srfkey
);
copyData
.
srfkey
=
Util
.
createUUID
();
copyData
.
ibzdepartment
=
copyData
.
srfkey
;
copyData
.
deptid
=
copyData
.
srfkey
;
Object
.
assign
(
this
.
context
,{
ibzdepartment
:
copyData
.
ibzdepartment
})
this
.
data
=
copyData
;
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'load'
,
data
:
copyData
});
this
.
data
.
srfuf
=
'0'
;
this
.
setFormEnableCond
(
this
.
data
);
});
}
}
/**
/**
...
...
app_web/src/widgets/ibzdepartment/new-form-form/new-form-form-base.vue
浏览文件 @
3035f0eb
...
@@ -1043,8 +1043,12 @@ export default class NewFormBase extends Vue implements ControlInterface {
...
@@ -1043,8 +1043,12 @@ export default class NewFormBase extends Vue implements ControlInterface {
this
.
load
(
data
);
this
.
load
(
data
);
}
}
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
this
.
context
.
srfsourcekey
){
this
.
copy
(
this
.
context
.
srfsourcekey
);
}
else
{
this
.
loadDraft
(
data
);
this
.
loadDraft
(
data
);
}
}
}
if
(
Object
.
is
(
'save'
,
action
))
{
if
(
Object
.
is
(
'save'
,
action
))
{
this
.
save
(
data
,
data
.
showResultInfo
);
this
.
save
(
data
,
data
.
showResultInfo
);
}
}
...
@@ -1107,8 +1111,18 @@ export default class NewFormBase extends Vue implements ControlInterface {
...
@@ -1107,8 +1111,18 @@ export default class NewFormBase extends Vue implements ControlInterface {
* @param {*} [arg={}]
* @param {*} [arg={}]
* @memberof @memberof NewForm
* @memberof @memberof NewForm
*/
*/
public
copy
(
arg
:
any
=
{}):
void
{
public
copy
(
srfkey
:
string
):
void
{
this
.
loadDraft
(
arg
);
let
copyData
=
this
.
$store
.
getters
.
getCopyData
(
srfkey
);
copyData
.
srfkey
=
Util
.
createUUID
();
copyData
.
ibzdepartment
=
copyData
.
srfkey
;
copyData
.
deptid
=
copyData
.
srfkey
;
Object
.
assign
(
this
.
context
,{
ibzdepartment
:
copyData
.
ibzdepartment
})
this
.
data
=
copyData
;
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'load'
,
data
:
copyData
});
this
.
data
.
srfuf
=
'0'
;
this
.
setFormEnableCond
(
this
.
data
);
});
}
}
/**
/**
...
...
app_web/src/widgets/ibzemployee/change-pw-form/change-pw-form-base.vue
浏览文件 @
3035f0eb
...
@@ -911,8 +911,12 @@ export default class ChangePwBase extends Vue implements ControlInterface {
...
@@ -911,8 +911,12 @@ export default class ChangePwBase extends Vue implements ControlInterface {
this
.
load
(
data
);
this
.
load
(
data
);
}
}
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
this
.
context
.
srfsourcekey
){
this
.
copy
(
this
.
context
.
srfsourcekey
);
}
else
{
this
.
loadDraft
(
data
);
this
.
loadDraft
(
data
);
}
}
}
if
(
Object
.
is
(
'save'
,
action
))
{
if
(
Object
.
is
(
'save'
,
action
))
{
this
.
save
(
data
,
data
.
showResultInfo
);
this
.
save
(
data
,
data
.
showResultInfo
);
}
}
...
@@ -975,8 +979,18 @@ export default class ChangePwBase extends Vue implements ControlInterface {
...
@@ -975,8 +979,18 @@ export default class ChangePwBase extends Vue implements ControlInterface {
* @param {*} [arg={}]
* @param {*} [arg={}]
* @memberof @memberof ChangePw
* @memberof @memberof ChangePw
*/
*/
public
copy
(
arg
:
any
=
{}):
void
{
public
copy
(
srfkey
:
string
):
void
{
this
.
loadDraft
(
arg
);
let
copyData
=
this
.
$store
.
getters
.
getCopyData
(
srfkey
);
copyData
.
srfkey
=
Util
.
createUUID
();
copyData
.
ibzemployee
=
copyData
.
srfkey
;
copyData
.
userid
=
copyData
.
srfkey
;
Object
.
assign
(
this
.
context
,{
ibzemployee
:
copyData
.
ibzemployee
})
this
.
data
=
copyData
;
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'load'
,
data
:
copyData
});
this
.
data
.
srfuf
=
'0'
;
this
.
setFormEnableCond
(
this
.
data
);
});
}
}
/**
/**
...
...
app_web/src/widgets/ibzemployee/main-form/main-form-base.vue
浏览文件 @
3035f0eb
...
@@ -1519,8 +1519,12 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1519,8 +1519,12 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
load
(
data
);
this
.
load
(
data
);
}
}
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
this
.
context
.
srfsourcekey
){
this
.
copy
(
this
.
context
.
srfsourcekey
);
}
else
{
this
.
loadDraft
(
data
);
this
.
loadDraft
(
data
);
}
}
}
if
(
Object
.
is
(
'save'
,
action
))
{
if
(
Object
.
is
(
'save'
,
action
))
{
this
.
save
(
data
,
data
.
showResultInfo
);
this
.
save
(
data
,
data
.
showResultInfo
);
}
}
...
@@ -1583,8 +1587,18 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1583,8 +1587,18 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [arg={}]
* @param {*} [arg={}]
* @memberof @memberof Main
* @memberof @memberof Main
*/
*/
public
copy
(
arg
:
any
=
{}):
void
{
public
copy
(
srfkey
:
string
):
void
{
this
.
loadDraft
(
arg
);
let
copyData
=
this
.
$store
.
getters
.
getCopyData
(
srfkey
);
copyData
.
srfkey
=
Util
.
createUUID
();
copyData
.
ibzemployee
=
copyData
.
srfkey
;
copyData
.
userid
=
copyData
.
srfkey
;
Object
.
assign
(
this
.
context
,{
ibzemployee
:
copyData
.
ibzemployee
})
this
.
data
=
copyData
;
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'load'
,
data
:
copyData
});
this
.
data
.
srfuf
=
'0'
;
this
.
setFormEnableCond
(
this
.
data
);
});
}
}
/**
/**
...
...
app_web/src/widgets/ibzemployee/new-form-form/new-form-form-base.vue
浏览文件 @
3035f0eb
...
@@ -1071,8 +1071,12 @@ export default class NewFormBase extends Vue implements ControlInterface {
...
@@ -1071,8 +1071,12 @@ export default class NewFormBase extends Vue implements ControlInterface {
this
.
load
(
data
);
this
.
load
(
data
);
}
}
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
this
.
context
.
srfsourcekey
){
this
.
copy
(
this
.
context
.
srfsourcekey
);
}
else
{
this
.
loadDraft
(
data
);
this
.
loadDraft
(
data
);
}
}
}
if
(
Object
.
is
(
'save'
,
action
))
{
if
(
Object
.
is
(
'save'
,
action
))
{
this
.
save
(
data
,
data
.
showResultInfo
);
this
.
save
(
data
,
data
.
showResultInfo
);
}
}
...
@@ -1135,8 +1139,18 @@ export default class NewFormBase extends Vue implements ControlInterface {
...
@@ -1135,8 +1139,18 @@ export default class NewFormBase extends Vue implements ControlInterface {
* @param {*} [arg={}]
* @param {*} [arg={}]
* @memberof @memberof NewForm
* @memberof @memberof NewForm
*/
*/
public
copy
(
arg
:
any
=
{}):
void
{
public
copy
(
srfkey
:
string
):
void
{
this
.
loadDraft
(
arg
);
let
copyData
=
this
.
$store
.
getters
.
getCopyData
(
srfkey
);
copyData
.
srfkey
=
Util
.
createUUID
();
copyData
.
ibzemployee
=
copyData
.
srfkey
;
copyData
.
userid
=
copyData
.
srfkey
;
Object
.
assign
(
this
.
context
,{
ibzemployee
:
copyData
.
ibzemployee
})
this
.
data
=
copyData
;
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'load'
,
data
:
copyData
});
this
.
data
.
srfuf
=
'0'
;
this
.
setFormEnableCond
(
this
.
data
);
});
}
}
/**
/**
...
...
app_web/src/widgets/ibzorganization/main-form/main-form-base.vue
浏览文件 @
3035f0eb
...
@@ -1083,8 +1083,12 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1083,8 +1083,12 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
load
(
data
);
this
.
load
(
data
);
}
}
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
this
.
context
.
srfsourcekey
){
this
.
copy
(
this
.
context
.
srfsourcekey
);
}
else
{
this
.
loadDraft
(
data
);
this
.
loadDraft
(
data
);
}
}
}
if
(
Object
.
is
(
'save'
,
action
))
{
if
(
Object
.
is
(
'save'
,
action
))
{
this
.
save
(
data
,
data
.
showResultInfo
);
this
.
save
(
data
,
data
.
showResultInfo
);
}
}
...
@@ -1147,8 +1151,18 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1147,8 +1151,18 @@ export default class MainBase extends Vue implements ControlInterface {
* @param {*} [arg={}]
* @param {*} [arg={}]
* @memberof @memberof Main
* @memberof @memberof Main
*/
*/
public
copy
(
arg
:
any
=
{}):
void
{
public
copy
(
srfkey
:
string
):
void
{
this
.
loadDraft
(
arg
);
let
copyData
=
this
.
$store
.
getters
.
getCopyData
(
srfkey
);
copyData
.
srfkey
=
Util
.
createUUID
();
copyData
.
ibzorganization
=
copyData
.
srfkey
;
copyData
.
orgid
=
copyData
.
srfkey
;
Object
.
assign
(
this
.
context
,{
ibzorganization
:
copyData
.
ibzorganization
})
this
.
data
=
copyData
;
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'load'
,
data
:
copyData
});
this
.
data
.
srfuf
=
'0'
;
this
.
setFormEnableCond
(
this
.
data
);
});
}
}
/**
/**
...
...
app_web/src/widgets/ibzorganization/new-form-form/new-form-form-base.vue
浏览文件 @
3035f0eb
...
@@ -974,8 +974,12 @@ export default class NewFormBase extends Vue implements ControlInterface {
...
@@ -974,8 +974,12 @@ export default class NewFormBase extends Vue implements ControlInterface {
this
.
load
(
data
);
this
.
load
(
data
);
}
}
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
Object
.
is
(
'loaddraft'
,
action
))
{
if
(
this
.
context
.
srfsourcekey
){
this
.
copy
(
this
.
context
.
srfsourcekey
);
}
else
{
this
.
loadDraft
(
data
);
this
.
loadDraft
(
data
);
}
}
}
if
(
Object
.
is
(
'save'
,
action
))
{
if
(
Object
.
is
(
'save'
,
action
))
{
this
.
save
(
data
,
data
.
showResultInfo
);
this
.
save
(
data
,
data
.
showResultInfo
);
}
}
...
@@ -1038,8 +1042,18 @@ export default class NewFormBase extends Vue implements ControlInterface {
...
@@ -1038,8 +1042,18 @@ export default class NewFormBase extends Vue implements ControlInterface {
* @param {*} [arg={}]
* @param {*} [arg={}]
* @memberof @memberof NewForm
* @memberof @memberof NewForm
*/
*/
public
copy
(
arg
:
any
=
{}):
void
{
public
copy
(
srfkey
:
string
):
void
{
this
.
loadDraft
(
arg
);
let
copyData
=
this
.
$store
.
getters
.
getCopyData
(
srfkey
);
copyData
.
srfkey
=
Util
.
createUUID
();
copyData
.
ibzorganization
=
copyData
.
srfkey
;
copyData
.
orgid
=
copyData
.
srfkey
;
Object
.
assign
(
this
.
context
,{
ibzorganization
:
copyData
.
ibzorganization
})
this
.
data
=
copyData
;
this
.
$nextTick
(()
=>
{
this
.
formState
.
next
({
type
:
'load'
,
data
:
copyData
});
this
.
data
.
srfuf
=
'0'
;
this
.
setFormEnableCond
(
this
.
data
);
});
}
}
/**
/**
...
...
ibzou-app/ibzou-app-web/src/main/docker/ibzou-app-web.yaml
浏览文件 @
3035f0eb
...
@@ -14,3 +14,4 @@ networks:
...
@@ -14,3 +14,4 @@ networks:
agent_network
:
agent_network
:
driver
:
overlay
driver
:
overlay
attachable
:
true
attachable
:
true
ibzou-core/src/main/java/cn/ibizlab/core/ou/domain/IBZDepartment.java
浏览文件 @
3035f0eb
...
@@ -11,6 +11,8 @@ import com.alibaba.fastjson.annotation.JSONField;
...
@@ -11,6 +11,8 @@ import com.alibaba.fastjson.annotation.JSONField;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
import
cn.ibizlab.util.domain.EntityBase
;
import
cn.ibizlab.util.domain.EntityBase
;
import
cn.ibizlab.util.annotation.DEField
;
import
cn.ibizlab.util.annotation.DEField
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
...
@@ -23,6 +25,7 @@ import org.springframework.data.annotation.Transient;
...
@@ -23,6 +25,7 @@ import org.springframework.data.annotation.Transient;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
import
cn.ibizlab.util.domain.EntityMP
;
/**
/**
* 实体[部门]
* 实体[部门]
*/
*/
...
@@ -207,10 +210,7 @@ public class IBZDepartment extends EntityMP implements Serializable {
...
@@ -207,10 +210,7 @@ public class IBZDepartment extends EntityMP implements Serializable {
this
.
bcode
=
bcode
;
this
.
bcode
=
bcode
;
this
.
modify
(
"bcode"
,
bcode
);
this
.
modify
(
"bcode"
,
bcode
);
}
}
}
}
ibzou-core/src/main/java/cn/ibizlab/core/ou/domain/IBZEmployee.java
浏览文件 @
3035f0eb
...
@@ -11,6 +11,8 @@ import com.alibaba.fastjson.annotation.JSONField;
...
@@ -11,6 +11,8 @@ import com.alibaba.fastjson.annotation.JSONField;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
import
cn.ibizlab.util.domain.EntityBase
;
import
cn.ibizlab.util.domain.EntityBase
;
import
cn.ibizlab.util.annotation.DEField
;
import
cn.ibizlab.util.annotation.DEField
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
...
@@ -23,6 +25,7 @@ import org.springframework.data.annotation.Transient;
...
@@ -23,6 +25,7 @@ import org.springframework.data.annotation.Transient;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
import
cn.ibizlab.util.domain.EntityMP
;
/**
/**
* 实体[人员]
* 实体[人员]
*/
*/
...
@@ -523,10 +526,7 @@ public class IBZEmployee extends EntityMP implements Serializable {
...
@@ -523,10 +526,7 @@ public class IBZEmployee extends EntityMP implements Serializable {
this
.
showorder
=
showorder
;
this
.
showorder
=
showorder
;
this
.
modify
(
"showorder"
,
showorder
);
this
.
modify
(
"showorder"
,
showorder
);
}
}
}
}
ibzou-core/src/main/java/cn/ibizlab/core/ou/domain/IBZOrganization.java
浏览文件 @
3035f0eb
...
@@ -11,6 +11,8 @@ import com.alibaba.fastjson.annotation.JSONField;
...
@@ -11,6 +11,8 @@ import com.alibaba.fastjson.annotation.JSONField;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
org.springframework.util.ObjectUtils
;
import
org.springframework.util.DigestUtils
;
import
cn.ibizlab.util.domain.EntityBase
;
import
cn.ibizlab.util.domain.EntityBase
;
import
cn.ibizlab.util.annotation.DEField
;
import
cn.ibizlab.util.annotation.DEField
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
...
@@ -23,6 +25,7 @@ import org.springframework.data.annotation.Transient;
...
@@ -23,6 +25,7 @@ import org.springframework.data.annotation.Transient;
import
com.baomidou.mybatisplus.annotation.*
;
import
com.baomidou.mybatisplus.annotation.*
;
import
cn.ibizlab.util.domain.EntityMP
;
import
cn.ibizlab.util.domain.EntityMP
;
/**
/**
* 实体[单位机构]
* 实体[单位机构]
*/
*/
...
@@ -172,10 +175,7 @@ public class IBZOrganization extends EntityMP implements Serializable {
...
@@ -172,10 +175,7 @@ public class IBZOrganization extends EntityMP implements Serializable {
this
.
showorder
=
showorder
;
this
.
showorder
=
showorder
;
this
.
modify
(
"showorder"
,
showorder
);
this
.
modify
(
"showorder"
,
showorder
);
}
}
}
}
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/IBZDepartmentServiceImpl.java
浏览文件 @
3035f0eb
...
@@ -68,7 +68,7 @@ public class IBZDepartmentServiceImpl extends ServiceImpl<IBZDepartmentMapper, I
...
@@ -68,7 +68,7 @@ public class IBZDepartmentServiceImpl extends ServiceImpl<IBZDepartmentMapper, I
@Override
@Override
public
void
createBatch
(
List
<
IBZDepartment
>
list
)
{
public
void
createBatch
(
List
<
IBZDepartment
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
list
.
forEach
(
item
->
fillParentData
(
item
));
saveBatch
(
list
,
batchSize
);
this
.
saveBatch
(
list
,
batchSize
);
}
}
@Override
@Override
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/IBZEmployeeServiceImpl.java
浏览文件 @
3035f0eb
...
@@ -85,7 +85,7 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
...
@@ -85,7 +85,7 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
@Override
@Override
public
void
createBatch
(
List
<
IBZEmployee
>
list
)
{
public
void
createBatch
(
List
<
IBZEmployee
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
list
.
forEach
(
item
->
fillParentData
(
item
));
saveBatch
(
list
,
batchSize
);
this
.
saveBatch
(
list
,
batchSize
);
}
}
@Override
@Override
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/IBZOrganizationServiceImpl.java
浏览文件 @
3035f0eb
...
@@ -91,7 +91,7 @@ public class IBZOrganizationServiceImpl extends ServiceImpl<IBZOrganizationMappe
...
@@ -91,7 +91,7 @@ public class IBZOrganizationServiceImpl extends ServiceImpl<IBZOrganizationMappe
@Override
@Override
public
void
createBatch
(
List
<
IBZOrganization
>
list
)
{
public
void
createBatch
(
List
<
IBZOrganization
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
list
.
forEach
(
item
->
fillParentData
(
item
));
saveBatch
(
list
,
batchSize
);
this
.
saveBatch
(
list
,
batchSize
);
}
}
@Override
@Override
...
...
ibzou-provider/ibzou-provider-api/src/main/docker/ibzou-provider-api.yaml
浏览文件 @
3035f0eb
...
@@ -14,3 +14,4 @@ networks:
...
@@ -14,3 +14,4 @@ networks:
agent_network
:
agent_network
:
driver
:
overlay
driver
:
overlay
attachable
:
true
attachable
:
true
ibzou-util/src/main/java/cn/ibizlab/util/cache/CaffeineCacheConfig.java
浏览文件 @
3035f0eb
...
@@ -4,7 +4,7 @@ import com.github.benmanes.caffeine.cache.CaffeineSpec;
...
@@ -4,7 +4,7 @@ import com.github.benmanes.caffeine.cache.CaffeineSpec;
import
cn.ibizlab.util.cache.cacheManager.CaffeineCacheManager
;
import
cn.ibizlab.util.cache.cacheManager.CaffeineCacheManager
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.cache.CacheProperties
;
import
org.springframework.boot.autoconfigure.cache.CacheProperties
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOn
Property
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOn
Expression
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.cache.annotation.EnableCaching
;
...
@@ -19,7 +19,7 @@ import org.springframework.util.StringUtils;
...
@@ -19,7 +19,7 @@ import org.springframework.util.StringUtils;
@EnableCaching
@EnableCaching
@Configuration
@Configuration
@EnableConfigurationProperties
(
CacheProperties
.
class
)
@EnableConfigurationProperties
(
CacheProperties
.
class
)
@ConditionalOn
Property
(
"ibiz.enableCaffeineCache
"
)
@ConditionalOn
Expression
(
"'${ibiz.cacheLevel:None}'.equals('L1')
"
)
public
class
CaffeineCacheConfig
{
public
class
CaffeineCacheConfig
{
@Autowired
@Autowired
...
...
ibzou-util/src/main/java/cn/ibizlab/util/cache/RedisCacheConfig.java
浏览文件 @
3035f0eb
...
@@ -11,7 +11,7 @@ import cn.ibizlab.util.cache.redis.StringRedisSerializer;
...
@@ -11,7 +11,7 @@ import cn.ibizlab.util.cache.redis.StringRedisSerializer;
import
cn.ibizlab.util.enums.RedisChannelTopic
;
import
cn.ibizlab.util.enums.RedisChannelTopic
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.cache.CacheProperties
;
import
org.springframework.boot.autoconfigure.cache.CacheProperties
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOn
Property
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOn
Expression
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.cache.annotation.EnableCaching
;
...
@@ -36,7 +36,7 @@ import org.springframework.util.StringUtils;
...
@@ -36,7 +36,7 @@ import org.springframework.util.StringUtils;
@EnableCaching
@EnableCaching
@Configuration
@Configuration
@EnableConfigurationProperties
(
CacheProperties
.
class
)
@EnableConfigurationProperties
(
CacheProperties
.
class
)
@ConditionalOn
Property
(
"ibiz.enableRedisCache
"
)
@ConditionalOn
Expression
(
"'${ibiz.cacheLevel:None}'.equals('L2')
"
)
public
class
RedisCacheConfig
{
public
class
RedisCacheConfig
{
@Autowired
@Autowired
...
...
ibzou-util/src/main/java/cn/ibizlab/util/cache/cacheManager/CaffeineCacheManager.java
浏览文件 @
3035f0eb
...
@@ -3,7 +3,7 @@ package cn.ibizlab.util.cache.cacheManager;
...
@@ -3,7 +3,7 @@ package cn.ibizlab.util.cache.cacheManager;
import
com.github.benmanes.caffeine.cache.Caffeine
;
import
com.github.benmanes.caffeine.cache.Caffeine
;
import
com.github.benmanes.caffeine.cache.CaffeineSpec
;
import
com.github.benmanes.caffeine.cache.CaffeineSpec
;
import
lombok.Data
;
import
lombok.Data
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOn
Property
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOn
Expression
;
import
org.springframework.cache.Cache
;
import
org.springframework.cache.Cache
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.cache.caffeine.CaffeineCache
;
import
org.springframework.cache.caffeine.CaffeineCache
;
...
@@ -22,7 +22,7 @@ import java.util.concurrent.TimeUnit;
...
@@ -22,7 +22,7 @@ import java.util.concurrent.TimeUnit;
*/
*/
@Data
@Data
@Component
@Component
@ConditionalOn
Property
(
"ibiz.enableCaffeineCache
"
)
@ConditionalOn
Expression
(
"'${ibiz.cacheLevel:None}'.equals('L1')
"
)
public
class
CaffeineCacheManager
implements
CacheManager
{
public
class
CaffeineCacheManager
implements
CacheManager
{
private
static
final
int
DEFAULT_EXPIRE_AFTER_WRITE
=
1
;
private
static
final
int
DEFAULT_EXPIRE_AFTER_WRITE
=
1
;
...
...
ibzou-util/src/main/java/cn/ibizlab/util/cache/cacheManager/LayeringCacheManager.java
浏览文件 @
3035f0eb
...
@@ -5,7 +5,7 @@ import com.github.benmanes.caffeine.cache.CaffeineSpec;
...
@@ -5,7 +5,7 @@ import com.github.benmanes.caffeine.cache.CaffeineSpec;
import
lombok.Data
;
import
lombok.Data
;
import
cn.ibizlab.util.cache.cache.LayeringCache
;
import
cn.ibizlab.util.cache.cache.LayeringCache
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOn
Property
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOn
Expression
;
import
org.springframework.cache.Cache
;
import
org.springframework.cache.Cache
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.data.redis.cache.RedisCacheConfiguration
;
import
org.springframework.data.redis.cache.RedisCacheConfiguration
;
...
@@ -27,7 +27,7 @@ import java.util.concurrent.TimeUnit;
...
@@ -27,7 +27,7 @@ import java.util.concurrent.TimeUnit;
*/
*/
@Data
@Data
@Component
@Component
@ConditionalOn
Property
(
"ibiz.enableRedisCache
"
)
@ConditionalOn
Expression
(
"'${ibiz.cacheLevel:None}'.equals('L2')
"
)
public
class
LayeringCacheManager
implements
CacheManager
{
public
class
LayeringCacheManager
implements
CacheManager
{
private
static
final
int
DEFAULT_EXPIRE_AFTER_WRITE
=
1
;
private
static
final
int
DEFAULT_EXPIRE_AFTER_WRITE
=
1
;
...
...
ibzou-util/src/main/java/cn/ibizlab/util/cache/listener/RedisMessageListener.java
浏览文件 @
3035f0eb
...
@@ -5,7 +5,7 @@ import cn.ibizlab.util.enums.RedisChannelTopic;
...
@@ -5,7 +5,7 @@ import cn.ibizlab.util.enums.RedisChannelTopic;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOn
Property
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOn
Expression
;
import
org.springframework.cache.Cache
;
import
org.springframework.cache.Cache
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.data.redis.connection.Message
;
import
org.springframework.data.redis.connection.Message
;
...
@@ -22,7 +22,7 @@ import java.util.Map;
...
@@ -22,7 +22,7 @@ import java.util.Map;
*/
*/
@Component
@Component
@ConditionalOn
Property
(
"ibiz.enableRedisCache
"
)
@ConditionalOn
Expression
(
"'${ibiz.cacheLevel:None}'.equals('L2')
"
)
public
class
RedisMessageListener
extends
MessageListenerAdapter
{
public
class
RedisMessageListener
extends
MessageListenerAdapter
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
RedisPublisher
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
RedisPublisher
.
class
);
@Autowired
@Autowired
...
...
ibzou-util/src/main/resources/application-sys.yml
浏览文件 @
3035f0eb
...
@@ -78,9 +78,8 @@ ribbon:
...
@@ -78,9 +78,8 @@ ribbon:
ConnectTimeout
:
60000
ConnectTimeout
:
60000
#系统是否开启权限验证、是否开启缓存
#系统是否开启权限验证、是否开启缓存
#缓存
模式:关闭缓存(无配置项)、本地缓存(enableCaffeineCache=true-默认)、caffeine+redis两级缓存(enableRedisCache=true
)
#缓存
级别:无缓存(无配置项)、一级缓存(L1)、二级缓存(L2
)
ibiz
:
ibiz
:
enablePermissionValid
:
true
enablePermissionValid
:
true
enableCaffeineCache
:
true
cacheLevel
:
L1
#(L1)一级本地caffeine缓存;(L2)caffeine缓存+Redis缓存
#enableRedisCache: true
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录