Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz人力资源
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz人力资源
提交
1939411f
提交
1939411f
编写于
8月 07, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
jackwang 部署微服务应用
上级
2561d2ce
变更
14
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
40 行增加
和
19 行删除
+40
-19
view-config.json
app_PIM/public/assets/json/view-config.json
+1
-1
hrduty_en_US.ts
app_PIM/src/locale/lanres/entities/hrduty/hrduty_en_US.ts
+1
-1
hrduty_zh_CN.ts
app_PIM/src/locale/lanres/entities/hrduty/hrduty_zh_CN.ts
+1
-1
viewconfig.ts
app_PIM/src/mock/viewconfig/viewconfig.ts
+1
-1
hrduty-grid-view-base.tsx
...human-resource/hrduty-grid-view/hrduty-grid-view-base.tsx
+1
-1
hrduty-grid-view.html
...ges/human-resource/hrduty-grid-view/hrduty-grid-view.html
+1
-1
hrduty-grid-view.vue
...ages/human-resource/hrduty-grid-view/hrduty-grid-view.vue
+1
-1
hrduty-tab-exp-view.html
...man-resource/hrduty-tab-exp-view/hrduty-tab-exp-view.html
+0
-3
interceptor.ts
app_PIM/src/utils/interceptor/interceptor.ts
+5
-5
PIMApplication.java
...ain/java/cn/ibizlab/humanresource/pim/PIMApplication.java
+6
-1
DevBootApplication.java
...ain/java/cn/ibizlab/humanresource/DevBootApplication.java
+6
-1
h2_table.xml
humanresource-core/src/main/resources/liquibase/h2_table.xml
+1
-1
iBizHumanResourcesHRApiApplication.java
...manresource/hrapi/iBizHumanResourcesHRApiApplication.java
+6
-1
SearchContextHandlerMethodArgumentResolver.java
.../util/web/SearchContextHandlerMethodArgumentResolver.java
+9
-0
未找到文件。
app_PIM/public/assets/json/view-config.json
浏览文件 @
1939411f
...
...
@@ -580,7 +580,7 @@
"memo"
:
""
},
"hrdutygridview"
:
{
"title"
:
"职务
表格
"
,
"title"
:
"职务"
,
"caption"
:
"职务"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"HumanResource"
,
...
...
app_PIM/src/locale/lanres/entities/hrduty/hrduty_en_US.ts
浏览文件 @
1939411f
...
...
@@ -32,7 +32,7 @@ export default {
},
gridview
:
{
caption
:
"职务"
,
title
:
"职务
表格
"
,
title
:
"职务"
,
},
pickupgridview
:
{
caption
:
"职务"
,
...
...
app_PIM/src/locale/lanres/entities/hrduty/hrduty_zh_CN.ts
浏览文件 @
1939411f
...
...
@@ -31,7 +31,7 @@ export default {
},
gridview
:
{
caption
:
"职务"
,
title
:
"职务
表格
"
,
title
:
"职务"
,
},
pickupgridview
:
{
caption
:
"职务"
,
...
...
app_PIM/src/mock/viewconfig/viewconfig.ts
浏览文件 @
1939411f
...
...
@@ -472,7 +472,7 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"b90584e97a642bf5d5d8dac74217c6fc"
},
"hrdutygridview"
:
{
"title"
:
"职务
表格
"
,
"title"
:
"职务"
,
"caption"
:
"职务"
,
"viewtype"
:
"DEGRIDVIEW"
,
"viewmodule"
:
"HumanResource"
,
...
...
app_PIM/src/pages/human-resource/hrduty-grid-view/hrduty-grid-view-base.tsx
浏览文件 @
1939411f
...
...
@@ -9,7 +9,7 @@ import CodeListService from "@service/app/codelist-service";
/**
* 职务
表格
视图基类
* 职务视图基类
*
* @export
* @class HRDutyGridViewBase
...
...
app_PIM/src/pages/human-resource/hrduty-grid-view/hrduty-grid-view.html
浏览文件 @
1939411f
<studio-view-style2
viewName=
"hrdutygridview"
viewTitle=
"职务
表格
"
class=
'degridview hrduty-grid-view'
>
<studio-view-style2
viewName=
"hrdutygridview"
viewTitle=
"职务"
class=
'degridview hrduty-grid-view'
>
<i-input
slot=
"quickSearch"
v-show=
"!isExpandSearchForm"
v-model=
"query"
placeholder=
"职务名称"
search
@
on-search=
"onSearch($event)"
/>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click.apply(_self, arguments)"
/>
</template>
...
...
app_PIM/src/pages/human-resource/hrduty-grid-view/hrduty-grid-view.vue
浏览文件 @
1939411f
...
...
@@ -7,7 +7,7 @@ import view_grid from '@widgets/hrduty/main-grid/main-grid.vue';
import view_searchform from '@widgets/hrduty/default-searchform/default-searchform.vue';
/**
* 职务
表格
视图
* 职务视图
*
* @export
* @class HRDutyGridView
...
...
app_PIM/src/pages/human-resource/hrduty-tab-exp-view/hrduty-tab-exp-view.html
浏览文件 @
1939411f
<studio-view-style2
viewName=
"hrdutytabexpview"
viewTitle=
"职务信息"
class=
'detabexpview hrduty-tab-exp-view'
>
<template
slot=
'title'
>
<span
class=
'caption-info'
>
{{$t(model.srfTitle)}}
</span>
</template>
<template
slot=
"toolbar"
>
<view-toolbar
mode=
"STYLE2"
:model=
"toolBarModels"
@
item-click=
"toolbar_click.apply(_self, arguments)"
/>
</template>
<view
_tabexppanel
...
...
app_PIM/src/utils/interceptor/interceptor.ts
浏览文件 @
1939411f
...
...
@@ -2,7 +2,7 @@ import { Store } from 'vuex';
import
axios
from
'axios'
;
import
Router
from
'vue-router'
;
import
i18n
from
'@/locale'
;
import
{
Environment
}
from
'@/environments/environment'
;
/**
* 拦截器
...
...
@@ -96,9 +96,9 @@ export class Interceptors {
config
.
headers
[
'Authorization'
]
=
`Bearer
${
token
}
`
;
}
config
.
headers
[
'Accept-Language'
]
=
i18n
.
locale
;
// if (!config.url.startsWith('https://') && !config.url.startsWith('http://
')) {
//
config.url = Environment.BaseUrl + config.url;
//
}
if
(
!
Object
.
is
(
Environment
.
BaseUrl
,
""
)
&&
!
config
.
url
.
startsWith
(
'https://'
)
&&
!
config
.
url
.
startsWith
(
'http://'
)
&&
!
config
.
url
.
startsWith
(
'./assets
'
))
{
config
.
url
=
Environment
.
BaseUrl
+
config
.
url
;
}
return
config
;
},
(
error
:
any
)
=>
{
return
Promise
.
reject
(
error
);
...
...
humanresource-app/humanresource-app-pim/src/main/java/cn/ibizlab/humanresource/pim/PIMApplication.java
浏览文件 @
1939411f
...
...
@@ -13,6 +13,8 @@ import org.mybatis.spring.annotation.MapperScan;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.web.method.support.HandlerMethodArgumentResolver
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
;
import
cn.ibizlab.humanresource.util.web.SearchContextHandlerMethodArgumentResolver
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.util.List
;
@Slf4j
...
...
@@ -30,6 +32,9 @@ import java.util.List;
})
public
class
PIMApplication
extends
WebMvcConfigurerAdapter
{
@Autowired
SearchContextHandlerMethodArgumentResolver
resolver
;
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
PIMApplication
.
class
,
args
);
}
...
...
@@ -37,6 +42,6 @@ public class PIMApplication extends WebMvcConfigurerAdapter{
@Override
public
void
addArgumentResolvers
(
List
<
HandlerMethodArgumentResolver
>
argumentResolvers
)
{
super
.
addArgumentResolvers
(
argumentResolvers
);
argumentResolvers
.
add
(
new
cn
.
ibizlab
.
humanresource
.
util
.
web
.
SearchContextHandlerMethodArgumentResolver
()
);
argumentResolvers
.
add
(
resolver
);
}
}
humanresource-boot/src/main/java/cn/ibizlab/humanresource/DevBootApplication.java
浏览文件 @
1939411f
...
...
@@ -14,6 +14,8 @@ import org.springframework.context.annotation.ComponentScan;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
java.util.List
;
import
cn.ibizlab.humanresource.util.web.SearchContextHandlerMethodArgumentResolver
;
import
org.springframework.beans.factory.annotation.Autowired
;
@Slf4j
@EnableDiscoveryClient
...
...
@@ -34,6 +36,9 @@ import java.util.List;
@EnableScheduling
public
class
DevBootApplication
extends
WebMvcConfigurerAdapter
{
@Autowired
SearchContextHandlerMethodArgumentResolver
resolver
;
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
DevBootApplication
.
class
,
args
);
}
...
...
@@ -41,6 +46,6 @@ public class DevBootApplication extends WebMvcConfigurerAdapter{
@Override
public
void
addArgumentResolvers
(
List
<
HandlerMethodArgumentResolver
>
argumentResolvers
)
{
super
.
addArgumentResolvers
(
argumentResolvers
);
argumentResolvers
.
add
(
new
cn
.
ibizlab
.
humanresource
.
util
.
web
.
SearchContextHandlerMethodArgumentResolver
()
);
argumentResolvers
.
add
(
resolver
);
}
}
humanresource-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
1939411f
...
...
@@ -52,7 +52,7 @@
<!--输出实体[HRDUTY]数据结构 -->
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrduty-6
3
-3"
>
<changeSet
author=
"a_LAB01_e85d8801c"
id=
"tab-hrduty-6
6
-3"
>
<createTable
tableName=
"T_HRDUTY"
>
<column
name=
"HRDUTYID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_HRDUTY_HRDUTYID"
/>
...
...
humanresource-provider/humanresource-provider-hrapi/src/main/java/cn/ibizlab/humanresource/hrapi/iBizHumanResourcesHRApiApplication.java
浏览文件 @
1939411f
...
...
@@ -15,6 +15,8 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.scheduling.annotation.EnableAsync
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
cn.ibizlab.humanresource.util.web.SearchContextHandlerMethodArgumentResolver
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.util.List
;
@Slf4j
...
...
@@ -40,6 +42,9 @@ import java.util.List;
@EnableScheduling
public
class
iBizHumanResourcesHRApiApplication
extends
WebMvcConfigurerAdapter
{
@Autowired
SearchContextHandlerMethodArgumentResolver
resolver
;
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
iBizHumanResourcesHRApiApplication
.
class
,
args
);
}
...
...
@@ -47,6 +52,6 @@ public class iBizHumanResourcesHRApiApplication extends WebMvcConfigurerAdapter{
@Override
public
void
addArgumentResolvers
(
List
<
HandlerMethodArgumentResolver
>
argumentResolvers
)
{
super
.
addArgumentResolvers
(
argumentResolvers
);
argumentResolvers
.
add
(
new
cn
.
ibizlab
.
humanresource
.
util
.
web
.
SearchContextHandlerMethodArgumentResolver
()
);
argumentResolvers
.
add
(
resolver
);
}
}
humanresource-util/src/main/java/cn/ibizlab/humanresource/util/web/SearchContextHandlerMethodArgumentResolver.java
浏览文件 @
1939411f
...
...
@@ -10,10 +10,16 @@ import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import
org.springframework.web.method.support.ModelAndViewContainer
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.context.annotation.Configuration
;
@Slf4j
@Configuration
public
class
SearchContextHandlerMethodArgumentResolver
implements
HandlerMethodArgumentResolver
{
@Value
(
"${ibiz.pageLimit:1000}"
)
private
int
pageLimit
=
1000
;
private
static
ObjectMapper
objectMapper
=
new
ObjectMapper
();
@Override
...
...
@@ -29,6 +35,9 @@ public class SearchContextHandlerMethodArgumentResolver implements HandlerMethod
for
(
String
key
:
params
.
keySet
())
{
set
.
put
(
key
,
params
.
get
(
key
)[
0
]);
}
if
((!
set
.
containsKey
(
"size"
))
){
set
.
put
(
"size"
,
pageLimit
);
}
String
json
=
objectMapper
.
writeValueAsString
(
set
);
return
objectMapper
.
readValue
(
json
,
parameter
.
getParameterType
());
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录