Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
48635f8c
提交
48635f8c
编写于
5月 22, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
lab_qyk 发布系统代码
上级
f14f4ed8
变更
9
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
112 行增加
和
184 行删除
+112
-184
app-register.ts
app_web/src/app-register.ts
+2
-0
app-org-select.less
app_web/src/components/app-org-select/app-org-select.less
+3
-0
app-org-select.vue
app_web/src/components/app-org-select/app-org-select.vue
+55
-0
DevBootApplication.java
ibzou-boot/src/main/java/cn/ibizlab/DevBootApplication.java
+6
-0
h2_table.xml
ibzou-core/src/main/resources/liquibase/h2_table.xml
+4
-181
IBZDepartmentResource.java
.../main/java/cn/ibizlab/api/rest/IBZDepartmentResource.java
+1
-1
IBZEmployeeResource.java
...rc/main/java/cn/ibizlab/api/rest/IBZEmployeeResource.java
+1
-1
IBZOrganizationResource.java
...ain/java/cn/ibizlab/api/rest/IBZOrganizationResource.java
+1
-1
FeignRequestInterceptor.java
...ain/java/cn/ibizlab/util/web/FeignRequestInterceptor.java
+39
-0
未找到文件。
app_web/src/app-register.ts
浏览文件 @
48635f8c
...
...
@@ -71,6 +71,7 @@ import AppUploadFileInfo from './components/app-upload-file-info/app-upload-file
import
ContextMenu
from
'./components/context-menu/context-menu'
import
AppColumnFormat
from
'./components/app-column-format/app-column-format.vue'
import
AppQuickGroup
from
'./components/app-quick-group/app-quick-group.vue'
import
AppOrgSelect
from
'./components/app-org-select/app-org-select.vue'
// 全局挂载UI实体服务注册中心
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
...
...
@@ -151,5 +152,6 @@ export const AppComponents = {
v
.
component
(
'context-menu'
,
ContextMenu
);
v
.
component
(
'app-column-format'
,
AppColumnFormat
);
v
.
component
(
'app-quick-group'
,
AppQuickGroup
);
v
.
component
(
'app-org-select'
,
AppOrgSelect
);
},
};
\ No newline at end of file
app_web/src/components/app-org-select/app-org-select.less
0 → 100644
浏览文件 @
48635f8c
.app-org-select {
width: 100%;
}
\ No newline at end of file
app_web/src/components/app-org-select/app-org-select.vue
0 → 100644
浏览文件 @
48635f8c
<
template
>
<div
class=
"app-org-select"
>
<ibiz-select-tree
:NodesData=
"NodesData"
v-model=
"selectTreeValue"
:multiple=
"true"
></ibiz-select-tree>
</div>
</
template
>
<
script
lang =
'ts'
>
import
{
Vue
,
Component
,
Prop
}
from
"vue-property-decorator"
;
@
Component
({})
export
default
class
AppOrgSelect
extends
Vue
{
/**
* 填充对象
*
* @memberof AppOrgSelect
*/
@
Prop
()
public
fillMap
:
any
;
/**
* 过滤项
*
* @memberof AppOrgSelect
*/
@
Prop
()
public
filter
?:
string
;
/**
* 选择值
*
* @memberof AppOrgSelect
*/
public
selectTreeValue
:
any
;
/**
* 树数据
*
* @memberof AppOrgSelect
*/
public
NodesData
:
any
=
[{
"children"
:[],
"disabled"
:
false
,
"isLeaf"
:
true
,
"id"
:
"001"
,
"label"
:
"中建材信息技术股份有限公司"
,
"code"
:
"001"
,
"level"
:
null
,
"filter"
:[
"001"
]},{
"children"
:[{
"children"
:[],
"disabled"
:
false
,
"isLeaf"
:
true
,
"id"
:
"450100"
,
"label"
:
"北京"
,
"code"
:
"450100"
,
"level"
:
4501
,
"filter"
:[
"450000"
,
"450100"
]},{
"children"
:[],
"disabled"
:
false
,
"isLeaf"
:
true
,
"id"
:
"450200"
,
"label"
:
"上海"
,
"code"
:
"450200"
,
"level"
:
null
,
"filter"
:[
"450000"
,
"450200"
]}],
"disabled"
:
false
,
"isLeaf"
:
false
,
"id"
:
"450000"
,
"label"
:
"总部"
,
"code"
:
"450000"
,
"level"
:
45
,
"filter"
:[
"450000"
]},{
"children"
:[],
"disabled"
:
false
,
"isLeaf"
:
true
,
"id"
:
"002"
,
"label"
:
"某某客户公司"
,
"code"
:
"002"
,
"level"
:
null
,
"filter"
:[
"002"
]}];
/**
* vue生命周期
*
* @memberof AppOrgSelect
*/
public
created
(){
console
.
log
(
this
.
fillMap
);
console
.
log
(
this
.
filter
);
}
}
</
script
>
<
style
lang=
"less"
>
@import "./app-org-select.less";
</
style
>
\ No newline at end of file
ibzou-boot/src/main/java/cn/ibizlab/DevBootApplication.java
浏览文件 @
48635f8c
...
...
@@ -10,6 +10,7 @@ import org.springframework.boot.SpringApplication;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.web.method.support.HandlerMethodArgumentResolver
;
import
org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
;
import
org.springframework.context.annotation.ComponentScan
;
import
java.util.List
;
@Slf4j
...
...
@@ -20,6 +21,11 @@ import java.util.List;
@SpringBootApplication
(
exclude
=
{
org
.
springframework
.
boot
.
autoconfigure
.
mongo
.
MongoAutoConfiguration
.
class
,
})
@ComponentScan
(
basePackages
=
{
"cn.ibizlab"
}
// ,excludeFilters={
// @ComponentScan.Filter(type= org.springframework.context.annotation.FilterType.REGEX,pattern="cn.ibizlab.xxx.rest.xxx"),
// }
)
@Import
({
org
.
springframework
.
cloud
.
openfeign
.
FeignClientsConfiguration
.
class
})
...
...
ibzou-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
48635f8c
此差异已折叠。
点击以展开。
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/IBZDepartmentResource.java
浏览文件 @
48635f8c
...
...
@@ -97,7 +97,7 @@ public class IBZDepartmentResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"has
AnyAuthority('ROLE_SUPERADMIN','ibzou-IBZDepartment-CheckKey-all'
)"
)
@PreAuthorize
(
"has
Permission('','checkkey',{'Sql',this.ibzdepartmentMapping,#ibzdepartmentdto}
)"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"IBZDepartment"
},
notes
=
"CheckKey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzdepartments/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
IBZDepartmentDTO
ibzdepartmentdto
)
{
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/IBZEmployeeResource.java
浏览文件 @
48635f8c
...
...
@@ -100,7 +100,7 @@ public class IBZEmployeeResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"has
AnyAuthority('ROLE_SUPERADMIN','ibzou-IBZEmployee-CheckKey-all'
)"
)
@PreAuthorize
(
"has
Permission('','checkkey',{'Sql',this.ibzemployeeMapping,#ibzemployeedto}
)"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"IBZEmployee"
},
notes
=
"CheckKey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzemployees/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
IBZEmployeeDTO
ibzemployeedto
)
{
...
...
ibzou-provider/ibzou-provider-api/src/main/java/cn/ibizlab/api/rest/IBZOrganizationResource.java
浏览文件 @
48635f8c
...
...
@@ -54,7 +54,7 @@ public class IBZOrganizationResource {
public
IBZOrganizationDTO
permissionDTO
=
new
IBZOrganizationDTO
();
@PreAuthorize
(
"has
AnyAuthority('ROLE_SUPERADMIN','ibzou-IBZOrganization-CheckKey-all'
)"
)
@PreAuthorize
(
"has
Permission('','checkkey',{'Sql',this.ibzorganizationMapping,#ibzorganizationdto}
)"
)
@ApiOperation
(
value
=
"CheckKey"
,
tags
=
{
"IBZOrganization"
},
notes
=
"CheckKey"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibzorganizations/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
IBZOrganizationDTO
ibzorganizationdto
)
{
...
...
ibzou-util/src/main/java/cn/ibizlab/util/web/FeignRequestInterceptor.java
0 → 100644
浏览文件 @
48635f8c
package
cn
.
ibizlab
.
util
.
web
;
import
feign.RequestInterceptor
;
import
feign.RequestTemplate
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.context.request.RequestContextHolder
;
import
org.springframework.web.context.request.ServletRequestAttributes
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Enumeration
;
/**
* feign请求拦截器
* 拦截所有使用feign发出的请求,附加原始请求Header参数及Token
*/
@Configuration
public
class
FeignRequestInterceptor
implements
RequestInterceptor
{
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
getClass
());
@Override
public
void
apply
(
RequestTemplate
requestTemplate
)
{
ServletRequestAttributes
requestAttributes
=
(
ServletRequestAttributes
)
RequestContextHolder
.
getRequestAttributes
();
if
(
requestAttributes
!=
null
){
HttpServletRequest
request
=
requestAttributes
.
getRequest
();
Enumeration
<
String
>
headerNames
=
request
.
getHeaderNames
();
if
(
headerNames
!=
null
)
{
while
(
headerNames
.
hasMoreElements
())
{
String
name
=
headerNames
.
nextElement
();
String
values
=
request
.
getHeader
(
name
);
requestTemplate
.
header
(
name
,
values
);
}
logger
.
info
(
"feign interceptor header:{}"
,
requestTemplate
);
}
}
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录