Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
5b04ae3c
提交
5b04ae3c
编写于
5月 12, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
5a9deef4
变更
11
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
110 行增加
和
11 行删除
+110
-11
app-register.ts
app_web/src/app-register.ts
+2
-0
app-column-format.less
...b/src/components/app-column-format/app-column-format.less
+3
-0
app-column-format.vue
...eb/src/components/app-column-format/app-column-format.vue
+58
-0
login.vue
app_web/src/components/login/login.vue
+6
-2
auth-guard.ts
app_web/src/utils/auth-guard/auth-guard.ts
+11
-1
main-grid-base.vue
...eb/src/widgets/ibzdepartment/main-grid/main-grid-base.vue
+5
-0
main-grid-base.vue
app_web/src/widgets/ibzemployee/main-grid/main-grid-base.vue
+5
-0
main-grid-base.vue
.../src/widgets/ibzorganization/main-grid/main-grid-base.vue
+5
-0
IBZDepartmentServiceImpl.java
...bizlab/core/ou/service/impl/IBZDepartmentServiceImpl.java
+6
-4
IBZEmployeeServiceImpl.java
.../ibizlab/core/ou/service/impl/IBZEmployeeServiceImpl.java
+4
-1
IBZOrganizationServiceImpl.java
...zlab/core/ou/service/impl/IBZOrganizationServiceImpl.java
+5
-3
未找到文件。
app_web/src/app-register.ts
浏览文件 @
5b04ae3c
...
...
@@ -69,6 +69,7 @@ import AppImagePreview from './components/app-image-preview/app-image-preview.vu
import
AppFormatData
from
'./components/app-format-data/app-format-data.vue'
import
AppUploadFileInfo
from
'./components/app-upload-file-info/app-upload-file-info.vue'
import
ContextMenu
from
'./components/context-menu/context-menu'
import
AppColumnFormat
from
'./components/app-column-format/app-column-format.vue'
// 全局挂载UI实体服务注册中心
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
...
...
@@ -147,5 +148,6 @@ export const AppComponents = {
v
.
component
(
'app-format-data'
,
AppFormatData
);
v
.
component
(
'app-upload-file-info'
,
AppUploadFileInfo
);
v
.
component
(
'context-menu'
,
ContextMenu
);
v
.
component
(
'app-column-format'
,
AppColumnFormat
);
},
};
\ No newline at end of file
app_web/src/components/app-column-format/app-column-format.less
0 → 100644
浏览文件 @
5b04ae3c
.app-column-format{
display: inline-block;
}
\ No newline at end of file
app_web/src/components/app-column-format/app-column-format.vue
0 → 100644
浏览文件 @
5b04ae3c
<
template
>
<div
class=
"app-column-format"
>
{{
text
}}
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Prop
,
Model
,
Emit
,
Watch
}
from
"vue-property-decorator"
;
/**
* 表格列格式化json数组,数据格式为"[{"srfkey":"001","srfmajortext":"TEST1"},{"srfkey":"002","srfmajortext":"TEST2"}......]"
*/
@
Component
({
})
export
default
class
AppColumnFormat
extends
Vue
{
/**
* 值
* @type {any}
* @memberof AppColumnFormat
*/
@
Prop
()
public
value
?:
any
;
/**
* 显示文本
* @type {any}
* @memberof AppColumnFormat
*/
get
text
(){
if
(
this
.
value
){
let
returnStr
:
string
=
""
;
let
tempData
:
Array
<
any
>
=
[];
if
(
typeof
(
this
.
value
)
===
'string'
){
tempData
=
JSON
.
parse
(
this
.
value
);
}
else
{
tempData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
value
));
}
tempData
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
if
(
index
>
0
){
returnStr
+=
"、"
;
}
returnStr
+=
item
.
srfmajortext
;
})
return
returnStr
;
}
else
{
return
""
;
}
}
}
</
script
>
<
style
lang=
'less'
>
@import "./app-column-format.less";
</
style
>
\ No newline at end of file
app_web/src/components/login/login.vue
浏览文件 @
5b04ae3c
...
...
@@ -133,8 +133,12 @@ export default class Login extends Vue {
post
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
const
data
=
response
.
data
;
localStorage
.
setItem
(
'token'
,
data
.
token
);
localStorage
.
setItem
(
'user'
,
JSON
.
stringify
(
data
.
user
));
if
(
data
&&
data
.
token
){
localStorage
.
setItem
(
'token'
,
data
.
token
);
}
if
(
data
&&
data
.
user
){
localStorage
.
setItem
(
'user'
,
JSON
.
stringify
(
data
.
user
));
}
const
url
:
any
=
this
.
$route
.
query
.
redirect
?
this
.
$route
.
query
.
redirect
:
'*'
;
this
.
$router
.
push
({
path
:
url
});
}
...
...
app_web/src/utils/auth-guard/auth-guard.ts
浏览文件 @
5b04ae3c
...
...
@@ -53,8 +53,18 @@ export class AuthGuard {
const
get
:
Promise
<
any
>
=
Http
.
getInstance
().
get
(
url
);
get
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
cons
t
{
data
}:
{
data
:
any
}
=
response
;
le
t
{
data
}:
{
data
:
any
}
=
response
;
if
(
data
)
{
// token认证把用户信息放入应用级数据
if
(
localStorage
.
getItem
(
'user'
)){
let
user
:
any
=
JSON
.
parse
(
localStorage
.
getItem
(
'user'
)
as
string
);
let
localAppData
:
any
=
{};
if
(
user
.
sessionParams
){
localAppData
=
{
context
:
user
.
sessionParams
};
Object
.
assign
(
localAppData
,
data
);
}
data
=
JSON
.
parse
(
JSON
.
stringify
(
localAppData
));
}
router
.
app
.
$store
.
commit
(
'addAppData'
,
data
);
// 提交统一资源数据
router
.
app
.
$store
.
dispatch
(
'unifiedresource/commitResourceData'
,
data
);
...
...
app_web/src/widgets/ibzdepartment/main-grid/main-grid-base.vue
浏览文件 @
5b04ae3c
...
...
@@ -13,6 +13,9 @@
@row-class-name="onRowClassName($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
无数据
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</
template
>
...
...
@@ -100,6 +103,8 @@
</div>
</poptip>
</span>
<span
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
...
...
app_web/src/widgets/ibzemployee/main-grid/main-grid-base.vue
浏览文件 @
5b04ae3c
...
...
@@ -13,6 +13,9 @@
@row-class-name="onRowClassName($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
无数据
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</
template
>
...
...
@@ -116,6 +119,8 @@
</div>
</poptip>
</span>
<span
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
...
...
app_web/src/widgets/ibzorganization/main-grid/main-grid-base.vue
浏览文件 @
5b04ae3c
...
...
@@ -13,6 +13,9 @@
@row-class-name="onRowClassName($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
无数据
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</
template
>
...
...
@@ -93,6 +96,8 @@
</div>
</poptip>
</span>
<span
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/IBZDepartmentServiceImpl.java
浏览文件 @
5b04ae3c
...
...
@@ -44,13 +44,11 @@ import org.springframework.util.StringUtils;
@Service
(
"IBZDepartmentServiceImpl"
)
public
class
IBZDepartmentServiceImpl
extends
ServiceImpl
<
IBZDepartmentMapper
,
IBZDepartment
>
implements
IIBZDepartmentService
{
@Autowired
@Lazy
private
cn
.
ibizlab
.
core
.
ou
.
service
.
IIBZDepartmentService
ibzdepartmentService
;
private
cn
.
ibizlab
.
core
.
ou
.
service
.
IIBZDepartmentService
ibzdepartmentService
=
this
;
@Autowired
@Lazy
private
cn
.
ibizlab
.
core
.
ou
.
service
.
IIBZEmployeeService
ibzemployeeService
;
@Autowired
@Lazy
private
cn
.
ibizlab
.
core
.
ou
.
service
.
IIBZOrganizationService
ibzorganizationService
;
...
...
@@ -69,6 +67,7 @@ public class IBZDepartmentServiceImpl extends ServiceImpl<IBZDepartmentMapper, I
@Override
public
void
createBatch
(
List
<
IBZDepartment
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveBatch
(
list
,
batchSize
);
}
...
...
@@ -107,6 +106,7 @@ public class IBZDepartmentServiceImpl extends ServiceImpl<IBZDepartmentMapper, I
@Override
public
void
saveBatch
(
List
<
IBZDepartment
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveOrUpdateBatch
(
list
,
batchSize
);
}
...
...
@@ -117,6 +117,7 @@ public class IBZDepartmentServiceImpl extends ServiceImpl<IBZDepartmentMapper, I
@Override
public
IBZDepartment
getDraft
(
IBZDepartment
et
)
{
fillParentData
(
et
);
return
et
;
}
...
...
@@ -144,6 +145,7 @@ public class IBZDepartmentServiceImpl extends ServiceImpl<IBZDepartmentMapper, I
@Override
public
void
updateBatch
(
List
<
IBZDepartment
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
updateBatchById
(
list
,
batchSize
);
}
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/IBZEmployeeServiceImpl.java
浏览文件 @
5b04ae3c
...
...
@@ -44,7 +44,6 @@ import org.springframework.util.StringUtils;
@Service
(
"IBZEmployeeServiceImpl"
)
public
class
IBZEmployeeServiceImpl
extends
ServiceImpl
<
IBZEmployeeMapper
,
IBZEmployee
>
implements
IIBZEmployeeService
{
@Autowired
@Lazy
private
cn
.
ibizlab
.
core
.
ou
.
service
.
IIBZDepartmentService
ibzdepartmentService
;
...
...
@@ -85,6 +84,7 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
@Override
public
void
createBatch
(
List
<
IBZEmployee
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveBatch
(
list
,
batchSize
);
}
...
...
@@ -105,6 +105,7 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
@Override
public
void
updateBatch
(
List
<
IBZEmployee
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
updateBatchById
(
list
,
batchSize
);
}
...
...
@@ -130,6 +131,7 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
@Override
public
void
saveBatch
(
List
<
IBZEmployee
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveOrUpdateBatch
(
list
,
batchSize
);
}
...
...
@@ -148,6 +150,7 @@ public class IBZEmployeeServiceImpl extends ServiceImpl<IBZEmployeeMapper, IBZEm
@Override
public
IBZEmployee
getDraft
(
IBZEmployee
et
)
{
fillParentData
(
et
);
return
et
;
}
...
...
ibzou-core/src/main/java/cn/ibizlab/core/ou/service/impl/IBZOrganizationServiceImpl.java
浏览文件 @
5b04ae3c
...
...
@@ -50,10 +50,8 @@ public class IBZOrganizationServiceImpl extends ServiceImpl<IBZOrganizationMappe
@Autowired
@Lazy
private
cn
.
ibizlab
.
core
.
ou
.
service
.
IIBZEmployeeService
ibzemployeeService
;
@Autowired
@Lazy
private
cn
.
ibizlab
.
core
.
ou
.
service
.
IIBZOrganizationService
ibzorganizationService
;
private
cn
.
ibizlab
.
core
.
ou
.
service
.
IIBZOrganizationService
ibzorganizationService
=
this
;
private
int
batchSize
=
500
;
...
...
@@ -74,6 +72,7 @@ public class IBZOrganizationServiceImpl extends ServiceImpl<IBZOrganizationMappe
@Override
public
void
updateBatch
(
List
<
IBZOrganization
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
updateBatchById
(
list
,
batchSize
);
}
...
...
@@ -89,6 +88,7 @@ public class IBZOrganizationServiceImpl extends ServiceImpl<IBZOrganizationMappe
@Override
public
void
createBatch
(
List
<
IBZOrganization
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveBatch
(
list
,
batchSize
);
}
...
...
@@ -114,6 +114,7 @@ public class IBZOrganizationServiceImpl extends ServiceImpl<IBZOrganizationMappe
@Override
public
void
saveBatch
(
List
<
IBZOrganization
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveOrUpdateBatch
(
list
,
batchSize
);
}
...
...
@@ -144,6 +145,7 @@ public class IBZOrganizationServiceImpl extends ServiceImpl<IBZOrganizationMappe
@Override
public
IBZOrganization
getDraft
(
IBZOrganization
et
)
{
fillParentData
(
et
);
return
et
;
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录