Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
d358d064
提交
d358d064
编写于
5月 15, 2020
作者:
lzlhxj
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
http://labcs.ibizee.cn/ibiz4jteam/ibzuaa
上级
06e7b2c1
df0efd3c
变更
52
展开全部
显示空白字符变更
内嵌
并排
正在显示
52 个修改的文件
包含
505 行增加
和
228 行删除
+505
-228
data-dictionary.json
app_web/public/assets/json/data-dictionary.json
+12
-2
app-form-druipart.vue
...eb/src/components/app-form-druipart/app-form-druipart.vue
+11
-1
environment.ts
app_web/src/environments/environment.ts
+1
-1
codelist_en_US.ts
app_web/src/locale/lanres/codelist/codelist_en_US.ts
+2
-1
codelist_zh_CN.ts
app_web/src/locale/lanres/codelist/codelist_zh_CN.ts
+2
-1
sys-permission_en_US.ts
.../src/locale/lanres/sys-permission/sys-permission_en_US.ts
+2
-1
sys-permission_zh_CN.ts
.../src/locale/lanres/sys-permission/sys-permission_zh_CN.ts
+2
-1
sys-psappmenuitem_en_US.ts
...ocale/lanres/sys-psappmenuitem/sys-psappmenuitem_en_US.ts
+7
-8
sys-psappmenuitem_zh_CN.ts
...ocale/lanres/sys-psappmenuitem/sys-psappmenuitem_zh_CN.ts
+7
-8
codelist.ts
app_web/src/mock/codelist/codelist.ts
+12
-2
StudioActionUtil.ts
app_web/src/utils/studio-action/StudioActionUtil.ts
+1
-1
default-searchform-base.vue
...permission/default-searchform/default-searchform-base.vue
+29
-1
default-searchform-model.ts
...permission/default-searchform/default-searchform-model.ts
+5
-0
default-searchform-service.ts
...rmission/default-searchform/default-searchform-service.ts
+4
-2
main-form-service.ts
...src/widgets/sys-permission/main-form/main-form-service.ts
+4
-2
main-grid-model.ts
...b/src/widgets/sys-permission/main-grid/main-grid-model.ts
+5
-0
main-grid-service.ts
...src/widgets/sys-permission/main-grid/main-grid-service.ts
+1
-1
default-searchform-service.ts
...rmission/default-searchform/default-searchform-service.ts
+4
-2
main-form-service.ts
...idgets/sys-role-permission/main-form/main-form-service.ts
+4
-2
main-grid-service.ts
...idgets/sys-role-permission/main-grid/main-grid-service.ts
+1
-1
default-searchform-service.ts
...sys-role/default-searchform/default-searchform-service.ts
+4
-2
main-form-base.vue
app_web/src/widgets/sys-role/main-form/main-form-base.vue
+2
-0
main-form-service.ts
app_web/src/widgets/sys-role/main-form/main-form-service.ts
+4
-2
main-grid-service.ts
app_web/src/widgets/sys-role/main-grid/main-grid-service.ts
+1
-1
default-searchform-service.ts
...ser-role/default-searchform/default-searchform-service.ts
+4
-2
main-form-service.ts
.../src/widgets/sys-user-role/main-form/main-form-service.ts
+4
-2
main-grid-service.ts
.../src/widgets/sys-user-role/main-grid/main-grid-service.ts
+1
-1
default-searchform-service.ts
...sys-user/default-searchform/default-searchform-service.ts
+4
-2
main-form-base.vue
app_web/src/widgets/sys-user/main-form/main-form-base.vue
+1
-0
main-form-service.ts
app_web/src/widgets/sys-user/main-form/main-form-service.ts
+4
-2
main-grid-service.ts
app_web/src/widgets/sys-user/main-grid/main-grid-service.ts
+1
-1
config.xml
config.xml
+0
-5
Dockerfile
ibzuaa-app/ibzuaa-app-web/src/main/docker/Dockerfile
+1
-1
ibzuaa-app-web.yaml
...aa-app/ibzuaa-app-web/src/main/docker/ibzuaa-app-web.yaml
+1
-3
webSecurityConfig.java
...rc/main/java/cn/ibizlab/web/config/webSecurityConfig.java
+5
-0
application-web-dev.yml
...ibzuaa-app-web/src/main/resources/application-web-dev.yml
+1
-1
application-web-prod.yml
...bzuaa-app-web/src/main/resources/application-web-prod.yml
+1
-1
SYS_PERMISSION.java
.../main/java/cn/ibizlab/core/uaa/domain/SYS_PERMISSION.java
+2
-2
SYS_PSAPPMENUITEM.java
...in/java/cn/ibizlab/core/uaa/domain/SYS_PSAPPMENUITEM.java
+38
-53
SYS_PERMISSIONSearchContext.java
.../ibizlab/core/uaa/filter/SYS_PERMISSIONSearchContext.java
+5
-5
SYS_PSAPPMENUITEMSearchContext.java
...izlab/core/uaa/filter/SYS_PSAPPMENUITEMSearchContext.java
+1
-1
DEPrivs.json
ibzuaa-core/src/main/resources/deprivs/DEPrivs.json
+9
-2
h2_table.xml
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
+6
-8
SYS_PSAPPMENUITEMMapper.xml
.../mapper/uaa/sys_psappmenuitem/SYS_PSAPPMENUITEMMapper.xml
+1
-2
systemResource.json
...aa-core/src/main/resources/permission/systemResource.json
+15
-0
SYS_PSAPPMENUITEMDTO.java
...rc/main/java/cn/ibizlab/api/dto/SYS_PSAPPMENUITEMDTO.java
+32
-48
ClientAuthenticationResource.java
...lab/api/rest/extensions/ClientAuthenticationResource.java
+53
-7
PermissionFeignService.java
...n/ibizlab/api/rest/extensions/PermissionFeignService.java
+161
-31
IBZUAAFallback.java
.../src/main/java/cn/ibizlab/util/client/IBZUAAFallback.java
+2
-1
IBZUAAFeignClient.java
...c/main/java/cn/ibizlab/util/client/IBZUAAFeignClient.java
+2
-1
PermissionSyncJob.java
.../src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
+8
-3
AppController.java
...til/src/main/java/cn/ibizlab/util/rest/AppController.java
+15
-0
未找到文件。
app_web/public/assets/json/data-dictionary.json
浏览文件 @
d358d064
...
@@ -5,9 +5,19 @@
...
@@ -5,9 +5,19 @@
"codelisttype"
:
"static"
,
"codelisttype"
:
"static"
,
"items"
:
[
"items"
:
[
{
{
"id"
:
"APPMENU"
,
"label"
:
"应用菜单"
,
"text"
:
"应用菜单"
,
"data"
:
""
,
"codename"
:
"Appmenu"
,
"value"
:
"APPMENU"
,
"disabled"
:
false
}
,
{
"id"
:
"OPPRIV"
,
"id"
:
"OPPRIV"
,
"label"
:
"数据
对象
能力"
,
"label"
:
"数据能力"
,
"text"
:
"数据
对象
能力"
,
"text"
:
"数据能力"
,
"data"
:
""
,
"data"
:
""
,
"codename"
:
"Oppriv"
,
"codename"
:
"Oppriv"
,
"value"
:
"OPPRIV"
,
"value"
:
"OPPRIV"
,
...
...
app_web/src/components/app-form-druipart/app-form-druipart.vue
浏览文件 @
d358d064
...
@@ -47,6 +47,14 @@ export default class AppFormDRUIPart extends Vue {
...
@@ -47,6 +47,14 @@ export default class AppFormDRUIPart extends Vue {
*/
*/
@
Prop
({
default
:
''
})
public
refreshitems
!
:
string
;
@
Prop
({
default
:
''
})
public
refreshitems
!
:
string
;
/**
* 禁止加载
*
* @type {string}
* @memberof AppFormDRUIPart
*/
@
Prop
({
default
:
false
})
public
isForbidLoad
!
:
boolean
;
/**
/**
* 关系视图类型
* 关系视图类型
*
*
...
@@ -254,8 +262,10 @@ export default class AppFormDRUIPart extends Vue {
...
@@ -254,8 +262,10 @@ export default class AppFormDRUIPart extends Vue {
this
.
blockUIStop
();
this
.
blockUIStop
();
}
}
}
}
if
(
!
this
.
isForbidLoad
){
this
.
formDruipart
.
next
({
action
:
'load'
,
data
:{
srfparentdename
:
this
.
parentName
,
srfparentkey
:
_paramitem
}});
this
.
formDruipart
.
next
({
action
:
'load'
,
data
:{
srfparentdename
:
this
.
parentName
,
srfparentkey
:
_paramitem
}});
}
}
}
/**
/**
* vue 生命周期
* vue 生命周期
...
...
app_web/src/environments/environment.ts
浏览文件 @
d358d064
...
@@ -22,7 +22,7 @@ export const Environment = {
...
@@ -22,7 +22,7 @@ export const Environment = {
// 是否为开发模式
// 是否为开发模式
devMode
:
true
,
devMode
:
true
,
// 项目模板地址
// 项目模板地址
ProjectUrl
:
"http://demo.ibizlab.cn/
groups/ibizr7pfstdtempl
"
,
ProjectUrl
:
"http://demo.ibizlab.cn/
ibizr7pfstdtempl/ibizvuer7
"
,
// 配置平台地址
// 配置平台地址
StudioUrl
:
"http://172.16.170.145/slnstudio/"
,
StudioUrl
:
"http://172.16.170.145/slnstudio/"
,
// 中心标识
// 中心标识
...
...
app_web/src/locale/lanres/codelist/codelist_en_US.ts
浏览文件 @
d358d064
export
default
{
export
default
{
CLPermissionType
:
{
CLPermissionType
:
{
'OPPRIV'
:
'数据对象能力'
,
'APPMENU'
:
'应用菜单'
,
'OPPRIV'
:
'数据能力'
,
'UNIRES'
:
'统一资源'
,
'UNIRES'
:
'统一资源'
,
empty
:
''
,
empty
:
''
,
},
},
...
...
app_web/src/locale/lanres/codelist/codelist_zh_CN.ts
浏览文件 @
d358d064
export
default
{
export
default
{
CLPermissionType
:
{
CLPermissionType
:
{
'OPPRIV'
:
'数据对象能力'
,
'APPMENU'
:
'应用菜单'
,
'OPPRIV'
:
'数据能力'
,
'UNIRES'
:
'统一资源'
,
'UNIRES'
:
'统一资源'
,
empty
:
''
,
empty
:
''
,
},
},
...
...
app_web/src/locale/lanres/sys-permission/sys-permission_en_US.ts
浏览文件 @
d358d064
...
@@ -3,7 +3,7 @@ export default {
...
@@ -3,7 +3,7 @@ export default {
fields
:
{
fields
:
{
permissionid
:
'资源标识'
,
permissionid
:
'资源标识'
,
permissionname
:
'资源名称'
,
permissionname
:
'资源名称'
,
pssystemid
:
'系统
标识
'
,
pssystemid
:
'系统'
,
permissiontype
:
'资源类别'
,
permissiontype
:
'资源类别'
,
enable
:
'逻辑有效'
,
enable
:
'逻辑有效'
,
createdate
:
'建立时间'
,
createdate
:
'建立时间'
,
...
@@ -72,6 +72,7 @@ export default {
...
@@ -72,6 +72,7 @@ export default {
default_searchform
:
{
default_searchform
:
{
details
:
{
details
:
{
formpage1
:
"常规条件"
,
formpage1
:
"常规条件"
,
n_systemid_like
:
"系统(%)"
,
n_sys_permissionname_like
:
"资源名称(%)"
,
n_sys_permissionname_like
:
"资源名称(%)"
,
n_permissiontype_eq
:
"资源类别(=)"
,
n_permissiontype_eq
:
"资源类别(=)"
,
n_pssourcetype_eq
:
"来源(=)"
,
n_pssourcetype_eq
:
"来源(=)"
,
...
...
app_web/src/locale/lanres/sys-permission/sys-permission_zh_CN.ts
浏览文件 @
d358d064
...
@@ -2,7 +2,7 @@ export default {
...
@@ -2,7 +2,7 @@ export default {
fields
:
{
fields
:
{
permissionid
:
'资源标识'
,
permissionid
:
'资源标识'
,
permissionname
:
'资源名称'
,
permissionname
:
'资源名称'
,
pssystemid
:
'系统
标识
'
,
pssystemid
:
'系统'
,
permissiontype
:
'资源类别'
,
permissiontype
:
'资源类别'
,
enable
:
'逻辑有效'
,
enable
:
'逻辑有效'
,
createdate
:
'建立时间'
,
createdate
:
'建立时间'
,
...
@@ -71,6 +71,7 @@ export default {
...
@@ -71,6 +71,7 @@ export default {
default_searchform
:
{
default_searchform
:
{
details
:
{
details
:
{
formpage1
:
'常规条件'
,
formpage1
:
'常规条件'
,
n_systemid_like
:
'系统(%)'
,
n_sys_permissionname_like
:
'资源名称(%)'
,
n_sys_permissionname_like
:
'资源名称(%)'
,
n_permissiontype_eq
:
'资源类别(=)'
,
n_permissiontype_eq
:
'资源类别(=)'
,
n_pssourcetype_eq
:
'来源(=)'
,
n_pssourcetype_eq
:
'来源(=)'
,
...
...
app_web/src/locale/lanres/sys-psappmenuitem/sys-psappmenuitem_en_US.ts
浏览文件 @
d358d064
...
@@ -3,14 +3,13 @@ export default {
...
@@ -3,14 +3,13 @@ export default {
fields
:
{
fields
:
{
appmenuitemid
:
'系统菜单项标识'
,
appmenuitemid
:
'系统菜单项标识'
,
appmenuitemname
:
'系统菜单项名称'
,
appmenuitemname
:
'系统菜单项名称'
,
psappid
:
'系统应用标识'
,
psappid
:
'业务系统应用标识'
,
psappname
:
'系统应用名称'
,
psappname
:
'业务系统应用名称'
,
psappmenuid
:
'系统菜单标识'
,
psappmenuid
:
'业务系统菜单标识'
,
psappmenuname
:
'系统菜单名称'
,
psappmenuitemid
:
'业务系统菜单项标识'
,
isleaf
:
'是否为叶子节点(用于菜单)'
,
psapppmenuitemid
:
'业务系统父菜单项标识'
,
pssystemid
:
'实体标识'
,
psappmenuname
:
'业务系统菜单名称'
,
permissionid
:
'系统资源标识'
,
pssystemid
:
'业务系统标识'
,
parentpermissionid
:
'父项资源标识'
,
createdate
:
'建立时间'
,
createdate
:
'建立时间'
,
updatedate
:
'更新时间'
,
updatedate
:
'更新时间'
,
},
},
...
...
app_web/src/locale/lanres/sys-psappmenuitem/sys-psappmenuitem_zh_CN.ts
浏览文件 @
d358d064
...
@@ -2,14 +2,13 @@ export default {
...
@@ -2,14 +2,13 @@ export default {
fields
:
{
fields
:
{
appmenuitemid
:
'系统菜单项标识'
,
appmenuitemid
:
'系统菜单项标识'
,
appmenuitemname
:
'系统菜单项名称'
,
appmenuitemname
:
'系统菜单项名称'
,
psappid
:
'系统应用标识'
,
psappid
:
'业务系统应用标识'
,
psappname
:
'系统应用名称'
,
psappname
:
'业务系统应用名称'
,
psappmenuid
:
'系统菜单标识'
,
psappmenuid
:
'业务系统菜单标识'
,
psappmenuname
:
'系统菜单名称'
,
psappmenuitemid
:
'业务系统菜单项标识'
,
isleaf
:
'是否为叶子节点(用于菜单)'
,
psapppmenuitemid
:
'业务系统父菜单项标识'
,
pssystemid
:
'实体标识'
,
psappmenuname
:
'业务系统菜单名称'
,
permissionid
:
'系统资源标识'
,
pssystemid
:
'业务系统标识'
,
parentpermissionid
:
'父项资源标识'
,
createdate
:
'建立时间'
,
createdate
:
'建立时间'
,
updatedate
:
'更新时间'
,
updatedate
:
'更新时间'
,
},
},
...
...
app_web/src/mock/codelist/codelist.ts
浏览文件 @
d358d064
...
@@ -12,10 +12,20 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
...
@@ -12,10 +12,20 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
emptytext
:
'未定义'
,
emptytext
:
'未定义'
,
"codelisttype"
:
"static"
,
"codelisttype"
:
"static"
,
items
:
[
items
:
[
{
id
:
'APPMENU'
,
label
:
'应用菜单'
,
text
:
'应用菜单'
,
"data"
:
""
,
"codename"
:
"Appmenu"
,
value
:
'APPMENU'
,
disabled
:
false
,
},
{
{
id
:
'OPPRIV'
,
id
:
'OPPRIV'
,
label
:
'数据
对象
能力'
,
label
:
'数据能力'
,
text
:
'数据
对象
能力'
,
text
:
'数据能力'
,
"data"
:
""
,
"data"
:
""
,
"codename"
:
"Oppriv"
,
"codename"
:
"Oppriv"
,
value
:
'OPPRIV'
,
value
:
'OPPRIV'
,
...
...
app_web/src/utils/studio-action/StudioActionUtil.ts
浏览文件 @
d358d064
...
@@ -92,7 +92,7 @@ export class StudioActionUtil {
...
@@ -92,7 +92,7 @@ export class StudioActionUtil {
const
config
:
any
=
await
this
.
getConfig
(
viewName
);
const
config
:
any
=
await
this
.
getConfig
(
viewName
);
if
(
config
)
{
if
(
config
)
{
const
context
:
string
=
`视图模块:
${
config
.
viewmodule
}
\n视图标识:
${
config
.
viewname
}
\n视图类型:
${
config
.
viewtype
}
\n`
;
const
context
:
string
=
`视图模块:
${
config
.
viewmodule
}
\n视图标识:
${
config
.
viewname
}
\n视图类型:
${
config
.
viewtype
}
\n`
;
window
.
open
(
`
${
Environment
.
ProjectUrl
}
/issues/`
,
'_blank'
);
window
.
open
(
`
${
Environment
.
ProjectUrl
}
/issues/
new?issue[title]=
${
encodeURIComponent
(
'问题'
)}
&issue[description]=
${
encodeURIComponent
(
context
)}
`
,
'_blank'
);
}
}
}
}
...
...
app_web/src/widgets/sys-permission/default-searchform/default-searchform-base.vue
浏览文件 @
d358d064
...
@@ -4,6 +4,12 @@
...
@@ -4,6 +4,12 @@
<row>
<row>
<i-col
span=
"20"
class=
"form-content"
>
<i-col
span=
"20"
class=
"form-content"
>
<row>
<row>
<i-col
v-show=
"detailsModel.n_systemid_like.visible"
:style=
"
{}" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item
name=
'n_systemid_like'
:itemRules=
"this.rules.n_systemid_like"
class=
''
:caption=
"$t('entities.sys_permission.default_searchform.details.n_systemid_like')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.n_systemid_like.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.n_systemid_like"
@
enter=
"onEnter($event)"
:disabled=
"detailsModel.n_systemid_like.disabled"
type=
'text'
style=
"width:100px;"
></input-box>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.n_sys_permissionname_like.visible"
:style=
"
{}" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<i-col
v-show=
"detailsModel.n_sys_permissionname_like.visible"
:style=
"
{}" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item
name=
'n_sys_permissionname_like'
:itemRules=
"this.rules.n_sys_permissionname_like"
class=
''
:caption=
"$t('entities.sys_permission.default_searchform.details.n_sys_permissionname_like')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.n_sys_permissionname_like.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-form-item
name=
'n_sys_permissionname_like'
:itemRules=
"this.rules.n_sys_permissionname_like"
class=
''
:caption=
"$t('entities.sys_permission.default_searchform.details.n_sys_permissionname_like')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.n_sys_permissionname_like.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.n_sys_permissionname_like"
@
enter=
"onEnter($event)"
:disabled=
"detailsModel.n_sys_permissionname_like.disabled"
type=
'text'
style=
"width:100px;"
></input-box>
<input-box
v-model=
"data.n_sys_permissionname_like"
@
enter=
"onEnter($event)"
:disabled=
"detailsModel.n_sys_permissionname_like.disabled"
type=
'text'
style=
"width:100px;"
></input-box>
...
@@ -268,6 +274,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -268,6 +274,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
* @memberof DefaultBase
*/
*/
public
data
:
any
=
{
public
data
:
any
=
{
n_systemid_like
:
null
,
n_sys_permissionname_like
:
null
,
n_sys_permissionname_like
:
null
,
n_permissiontype_eq
:
null
,
n_permissiontype_eq
:
null
,
n_pssourcetype_eq
:
null
,
n_pssourcetype_eq
:
null
,
...
@@ -281,6 +288,12 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -281,6 +288,12 @@ export default class DefaultBase extends Vue implements ControlInterface {
* @memberof DefaultBase
* @memberof DefaultBase
*/
*/
public
rules
:
any
=
{
public
rules
:
any
=
{
n_systemid_like
:
[
{
type
:
'string'
,
message
:
'系统(%) 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'系统(%) 值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'系统(%) 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'系统(%) 值不能为空'
,
trigger
:
'blur'
},
],
n_sys_permissionname_like
:
[
n_sys_permissionname_like
:
[
{
type
:
'string'
,
message
:
'资源名称(%) 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'资源名称(%) 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'资源名称(%) 值必须为字符串类型'
,
trigger
:
'blur'
},
{
type
:
'string'
,
message
:
'资源名称(%) 值必须为字符串类型'
,
trigger
:
'blur'
},
...
@@ -315,6 +328,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -315,6 +328,8 @@ export default class DefaultBase extends Vue implements ControlInterface {
*/
*/
public
detailsModel
:
any
=
{
public
detailsModel
:
any
=
{
formpage1
:
new
FormPageModel
({
caption
:
'常规条件'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
})
formpage1
:
new
FormPageModel
({
caption
:
'常规条件'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
})
,
n_systemid_like
:
new
FormItemModel
({
caption
:
'系统(%)'
,
detailType
:
'FORMITEM'
,
name
:
'n_systemid_like'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
,
n_sys_permissionname_like
:
new
FormItemModel
({
caption
:
'资源名称(%)'
,
detailType
:
'FORMITEM'
,
name
:
'n_sys_permissionname_like'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
n_sys_permissionname_like
:
new
FormItemModel
({
caption
:
'资源名称(%)'
,
detailType
:
'FORMITEM'
,
name
:
'n_sys_permissionname_like'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
disabled
:
false
,
enableCond
:
3
})
,
,
...
@@ -326,6 +341,18 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -326,6 +341,18 @@ export default class DefaultBase extends Vue implements ControlInterface {
,
,
};
};
/**
* 监控表单属性 n_systemid_like 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof DefaultBase
*/
@
Watch
(
'data.n_systemid_like'
)
onN_systemid_likeChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'n_systemid_like'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
/**
* 监控表单属性 n_sys_permissionname_like 值
* 监控表单属性 n_sys_permissionname_like 值
*
*
...
@@ -399,6 +426,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
...
@@ -399,6 +426,7 @@ export default class DefaultBase extends Vue implements ControlInterface {
}
}
/**
/**
...
...
app_web/src/widgets/sys-permission/default-searchform/default-searchform-model.ts
浏览文件 @
d358d064
...
@@ -25,6 +25,11 @@ export default class DefaultModel {
...
@@ -25,6 +25,11 @@ export default class DefaultModel {
prop
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
dataType
:
'TEXT'
,
},
},
{
name
:
'n_systemid_like'
,
prop
:
'pssystemid'
,
dataType
:
'TEXT'
,
},
{
{
name
:
'n_sys_permissionname_like'
,
name
:
'n_sys_permissionname_like'
,
prop
:
'permissionname'
,
prop
:
'permissionname'
,
...
...
app_web/src/widgets/sys-permission/default-searchform/default-searchform-service.ts
浏览文件 @
d358d064
...
@@ -282,8 +282,9 @@ export default class DefaultService extends ControlService {
...
@@ -282,8 +282,9 @@ export default class DefaultService extends ControlService {
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
//仿真主键数据
Data
.
permissionid
=
Util
.
createUUID
();
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
sys_permission
=
Data
.
permissionid
;
Data
.
permissionid
=
PrimaryKey
;
Data
.
sys_permission
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
@@ -293,6 +294,7 @@ export default class DefaultService extends ControlService {
...
@@ -293,6 +294,7 @@ export default class DefaultService extends ControlService {
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
}
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
response
.
data
.
permissionid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
...
app_web/src/widgets/sys-permission/main-form/main-form-service.ts
浏览文件 @
d358d064
...
@@ -282,8 +282,9 @@ export default class MainService extends ControlService {
...
@@ -282,8 +282,9 @@ export default class MainService extends ControlService {
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
//仿真主键数据
Data
.
permissionid
=
Util
.
createUUID
();
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
sys_permission
=
Data
.
permissionid
;
Data
.
permissionid
=
PrimaryKey
;
Data
.
sys_permission
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
@@ -293,6 +294,7 @@ export default class MainService extends ControlService {
...
@@ -293,6 +294,7 @@ export default class MainService extends ControlService {
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
}
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
response
.
data
.
permissionid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
...
app_web/src/widgets/sys-permission/main-grid/main-grid-model.ts
浏览文件 @
d358d064
...
@@ -65,6 +65,11 @@ export default class MainModel {
...
@@ -65,6 +65,11 @@ export default class MainModel {
name
:
'sys_permission'
,
name
:
'sys_permission'
,
prop
:
'permissionid'
,
prop
:
'permissionid'
,
},
},
{
name
:
'n_systemid_like'
,
prop
:
'n_systemid_like'
,
dataType
:
'TEXT'
,
},
{
{
name
:
'n_sys_permissionname_like'
,
name
:
'n_sys_permissionname_like'
,
prop
:
'n_sys_permissionname_like'
,
prop
:
'n_sys_permissionname_like'
,
...
...
app_web/src/widgets/sys-permission/main-grid/main-grid-service.ts
浏览文件 @
d358d064
...
@@ -264,7 +264,7 @@ export default class MainService extends ControlService {
...
@@ -264,7 +264,7 @@ export default class MainService extends ControlService {
if
(
response
.
data
){
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
//仿真主键数据
//仿真主键数据
response
.
data
.
sys_permission
=
Util
.
createUUID
();
response
.
data
.
permissionid
=
Util
.
createUUID
();
}
}
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
this
.
mergeDefaults
(
response
);
this
.
mergeDefaults
(
response
);
...
...
app_web/src/widgets/sys-role-permission/default-searchform/default-searchform-service.ts
浏览文件 @
d358d064
...
@@ -282,8 +282,9 @@ export default class DefaultService extends ControlService {
...
@@ -282,8 +282,9 @@ export default class DefaultService extends ControlService {
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
//仿真主键数据
Data
.
rolepermissionid
=
Util
.
createUUID
();
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
sys_role_permission
=
Data
.
rolepermissionid
;
Data
.
rolepermissionid
=
PrimaryKey
;
Data
.
sys_role_permission
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
@@ -293,6 +294,7 @@ export default class DefaultService extends ControlService {
...
@@ -293,6 +294,7 @@ export default class DefaultService extends ControlService {
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
}
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
response
.
data
.
rolepermissionid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
...
app_web/src/widgets/sys-role-permission/main-form/main-form-service.ts
浏览文件 @
d358d064
...
@@ -306,8 +306,9 @@ export default class MainService extends ControlService {
...
@@ -306,8 +306,9 @@ export default class MainService extends ControlService {
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
//仿真主键数据
Data
.
rolepermissionid
=
Util
.
createUUID
();
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
sys_role_permission
=
Data
.
rolepermissionid
;
Data
.
rolepermissionid
=
PrimaryKey
;
Data
.
sys_role_permission
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
@@ -317,6 +318,7 @@ export default class MainService extends ControlService {
...
@@ -317,6 +318,7 @@ export default class MainService extends ControlService {
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
}
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
response
.
data
.
rolepermissionid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
...
app_web/src/widgets/sys-role-permission/main-grid/main-grid-service.ts
浏览文件 @
d358d064
...
@@ -264,7 +264,7 @@ export default class MainService extends ControlService {
...
@@ -264,7 +264,7 @@ export default class MainService extends ControlService {
if
(
response
.
data
){
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
//仿真主键数据
//仿真主键数据
response
.
data
.
sys_role_permission
=
Util
.
createUUID
();
response
.
data
.
rolepermissionid
=
Util
.
createUUID
();
}
}
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
this
.
mergeDefaults
(
response
);
this
.
mergeDefaults
(
response
);
...
...
app_web/src/widgets/sys-role/default-searchform/default-searchform-service.ts
浏览文件 @
d358d064
...
@@ -282,8 +282,9 @@ export default class DefaultService extends ControlService {
...
@@ -282,8 +282,9 @@ export default class DefaultService extends ControlService {
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
//仿真主键数据
Data
.
roleid
=
Util
.
createUUID
();
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
sys_role
=
Data
.
roleid
;
Data
.
roleid
=
PrimaryKey
;
Data
.
sys_role
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
@@ -293,6 +294,7 @@ export default class DefaultService extends ControlService {
...
@@ -293,6 +294,7 @@ export default class DefaultService extends ControlService {
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
}
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
response
.
data
.
roleid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
...
app_web/src/widgets/sys-role/main-form/main-form-base.vue
浏览文件 @
d358d064
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
<app-form-druipart
<app-form-druipart
:formState=
"formState"
:formState=
"formState"
:isForbidLoad=
"this.data.srfuf === '0'"
paramItem=
'sys_role'
paramItem=
'sys_role'
:parentdata=
'
{"srfparentdefname":"SYS_ROLEID","srfparentdename":"SYS_ROLE","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_SYS_ROLE_PERMISSION_SYS_ROLE_SYS_ROLEID","SRFDER1NID":"DER1N_SYS_ROLE_PERMISSION_SYS_ROLE_SYS_ROLEID"}'
:parentdata=
'
{"srfparentdefname":"SYS_ROLEID","srfparentdename":"SYS_ROLE","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_SYS_ROLE_PERMISSION_SYS_ROLE_SYS_ROLEID","SRFDER1NID":"DER1N_SYS_ROLE_PERMISSION_SYS_ROLE_SYS_ROLEID"}'
:parameters="[
:parameters="[
...
@@ -81,6 +82,7 @@
...
@@ -81,6 +82,7 @@
<app-form-druipart
<app-form-druipart
:formState=
"formState"
:formState=
"formState"
:isForbidLoad=
"this.data.srfuf === '0'"
paramItem=
'sys_role'
paramItem=
'sys_role'
:parentdata=
'
{"srfparentdefname":"SYS_ROLEID","srfparentdename":"SYS_ROLE","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_SYS_USER_ROLE_SYS_ROLE_SYS_ROLEID","SRFDER1NID":"DER1N_SYS_USER_ROLE_SYS_ROLE_SYS_ROLEID"}'
:parentdata=
'
{"srfparentdefname":"SYS_ROLEID","srfparentdename":"SYS_ROLE","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_SYS_USER_ROLE_SYS_ROLE_SYS_ROLEID","SRFDER1NID":"DER1N_SYS_USER_ROLE_SYS_ROLE_SYS_ROLEID"}'
:parameters="[
:parameters="[
...
...
app_web/src/widgets/sys-role/main-form/main-form-service.ts
浏览文件 @
d358d064
...
@@ -283,8 +283,9 @@ export default class MainService extends ControlService {
...
@@ -283,8 +283,9 @@ export default class MainService extends ControlService {
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
//仿真主键数据
Data
.
roleid
=
Util
.
createUUID
();
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
sys_role
=
Data
.
roleid
;
Data
.
roleid
=
PrimaryKey
;
Data
.
sys_role
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
@@ -294,6 +295,7 @@ export default class MainService extends ControlService {
...
@@ -294,6 +295,7 @@ export default class MainService extends ControlService {
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
}
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
response
.
data
.
roleid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
...
app_web/src/widgets/sys-role/main-grid/main-grid-service.ts
浏览文件 @
d358d064
...
@@ -264,7 +264,7 @@ export default class MainService extends ControlService {
...
@@ -264,7 +264,7 @@ export default class MainService extends ControlService {
if
(
response
.
data
){
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
//仿真主键数据
//仿真主键数据
response
.
data
.
sys_role
=
Util
.
createUUID
();
response
.
data
.
roleid
=
Util
.
createUUID
();
}
}
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
this
.
mergeDefaults
(
response
);
this
.
mergeDefaults
(
response
);
...
...
app_web/src/widgets/sys-user-role/default-searchform/default-searchform-service.ts
浏览文件 @
d358d064
...
@@ -282,8 +282,9 @@ export default class DefaultService extends ControlService {
...
@@ -282,8 +282,9 @@ export default class DefaultService extends ControlService {
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
//仿真主键数据
Data
.
userroleid
=
Util
.
createUUID
();
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
sys_user_role
=
Data
.
userroleid
;
Data
.
userroleid
=
PrimaryKey
;
Data
.
sys_user_role
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
@@ -293,6 +294,7 @@ export default class DefaultService extends ControlService {
...
@@ -293,6 +294,7 @@ export default class DefaultService extends ControlService {
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
}
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
response
.
data
.
userroleid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
...
app_web/src/widgets/sys-user-role/main-form/main-form-service.ts
浏览文件 @
d358d064
...
@@ -307,8 +307,9 @@ export default class MainService extends ControlService {
...
@@ -307,8 +307,9 @@ export default class MainService extends ControlService {
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
//仿真主键数据
Data
.
userroleid
=
Util
.
createUUID
();
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
sys_user_role
=
Data
.
userroleid
;
Data
.
userroleid
=
PrimaryKey
;
Data
.
sys_user_role
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
@@ -318,6 +319,7 @@ export default class MainService extends ControlService {
...
@@ -318,6 +319,7 @@ export default class MainService extends ControlService {
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
}
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
response
.
data
.
userroleid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
...
app_web/src/widgets/sys-user-role/main-grid/main-grid-service.ts
浏览文件 @
d358d064
...
@@ -264,7 +264,7 @@ export default class MainService extends ControlService {
...
@@ -264,7 +264,7 @@ export default class MainService extends ControlService {
if
(
response
.
data
){
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
//仿真主键数据
//仿真主键数据
response
.
data
.
sys_user_role
=
Util
.
createUUID
();
response
.
data
.
userroleid
=
Util
.
createUUID
();
}
}
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
this
.
mergeDefaults
(
response
);
this
.
mergeDefaults
(
response
);
...
...
app_web/src/widgets/sys-user/default-searchform/default-searchform-service.ts
浏览文件 @
d358d064
...
@@ -282,8 +282,9 @@ export default class DefaultService extends ControlService {
...
@@ -282,8 +282,9 @@ export default class DefaultService extends ControlService {
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
//仿真主键数据
Data
.
userid
=
Util
.
createUUID
();
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
sys_user
=
Data
.
userid
;
Data
.
userid
=
PrimaryKey
;
Data
.
sys_user
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
@@ -293,6 +294,7 @@ export default class DefaultService extends ControlService {
...
@@ -293,6 +294,7 @@ export default class DefaultService extends ControlService {
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
}
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
response
.
data
.
userid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
...
app_web/src/widgets/sys-user/main-form/main-form-base.vue
浏览文件 @
d358d064
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
<app-form-druipart
<app-form-druipart
:formState=
"formState"
:formState=
"formState"
:isForbidLoad=
"this.data.srfuf === '0'"
paramItem=
'sys_user'
paramItem=
'sys_user'
:parentdata=
'
{"srfparentdefname":"SYS_USERID","srfparentdename":"SYS_USER","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_SYS_USER_ROLE_SYS_USER_SYS_USERID","SRFDER1NID":"DER1N_SYS_USER_ROLE_SYS_USER_SYS_USERID"}'
:parentdata=
'
{"srfparentdefname":"SYS_USERID","srfparentdename":"SYS_USER","SRFPARENTTYPE":"DER1N","srfparentmode":"DER1N_SYS_USER_ROLE_SYS_USER_SYS_USERID","SRFDER1NID":"DER1N_SYS_USER_ROLE_SYS_USER_SYS_USERID"}'
:parameters="[
:parameters="[
...
...
app_web/src/widgets/sys-user/main-form/main-form-service.ts
浏览文件 @
d358d064
...
@@ -283,8 +283,9 @@ export default class MainService extends ControlService {
...
@@ -283,8 +283,9 @@ export default class MainService extends ControlService {
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
public
loadDraft
(
action
:
string
,
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
const
{
data
:
Data
,
context
:
Context
}
=
this
.
handleRequestData
(
action
,
context
,
data
);
//仿真主键数据
//仿真主键数据
Data
.
userid
=
Util
.
createUUID
();
const
PrimaryKey
=
Util
.
createUUID
();
Data
.
sys_user
=
Data
.
userid
;
Data
.
userid
=
PrimaryKey
;
Data
.
sys_user
=
PrimaryKey
;
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
return
new
Promise
((
resolve
:
any
,
reject
:
any
)
=>
{
let
result
:
Promise
<
any
>
;
let
result
:
Promise
<
any
>
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
const
_appEntityService
:
any
=
this
.
appEntityService
;
...
@@ -294,6 +295,7 @@ export default class MainService extends ControlService {
...
@@ -294,6 +295,7 @@ export default class MainService extends ControlService {
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
result
=
this
.
appEntityService
.
GetDraft
(
Context
,
Data
,
isloading
);
}
}
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
response
.
data
.
userid
=
PrimaryKey
;
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
...
app_web/src/widgets/sys-user/main-grid/main-grid-service.ts
浏览文件 @
d358d064
...
@@ -264,7 +264,7 @@ export default class MainService extends ControlService {
...
@@ -264,7 +264,7 @@ export default class MainService extends ControlService {
if
(
response
.
data
){
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
//仿真主键数据
//仿真主键数据
response
.
data
.
sys_user
=
Util
.
createUUID
();
response
.
data
.
userid
=
Util
.
createUUID
();
}
}
this
.
handleResponse
(
action
,
response
,
true
);
this
.
handleResponse
(
action
,
response
,
true
);
this
.
mergeDefaults
(
response
);
this
.
mergeDefaults
(
response
);
...
...
config.xml
浏览文件 @
d358d064
...
@@ -37,11 +37,6 @@
...
@@ -37,11 +37,6 @@
git clone -b master $para2 ibzuaa/
git clone -b master $para2 ibzuaa/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd ibzuaa/
cd ibzuaa/
mvn clean package -Pweb
cd ibzuaa-app/ibzuaa-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibzuaa-app-web.yaml ibzlab-rt --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
ibzuaa-app/ibzuaa-app-web/src/main/docker/Dockerfile
浏览文件 @
d358d064
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBZ_SLEEP}s..." && \
sleep ${IBZ_SLEEP} && \
sleep ${IBZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-app-web.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibzuaa-app-web.jar
EXPOSE
30002
EXPOSE
8080
ADD
ibzuaa-app-web.jar /ibzuaa-app-web.jar
ADD
ibzuaa-app-web.jar /ibzuaa-app-web.jar
ibzuaa-app/ibzuaa-app-web/src/main/docker/ibzuaa-app-web.yaml
浏览文件 @
d358d064
...
@@ -3,11 +3,9 @@ services:
...
@@ -3,11 +3,9 @@ services:
ibzuaa-app-web
:
ibzuaa-app-web
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-app-web:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibzuaa-app-web:latest
ports
:
ports
:
-
"
30002:30002
"
-
"
8080:8080
"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
SPRING_CLOUD_NACOS_DISCOVERY_IP
:
172.16.180.237
deploy
:
deploy
:
mode
:
replicated
mode
:
replicated
replicas
:
1
replicas
:
1
...
...
ibzuaa-app/ibzuaa-app-web/src/main/java/cn/ibizlab/web/config/webSecurityConfig.java
浏览文件 @
d358d064
...
@@ -42,6 +42,9 @@ public class webSecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -42,6 +42,9 @@ public class webSecurityConfig extends WebSecurityConfigurerAdapter {
@Value
(
"${ibiz.auth.path:v7/login}"
)
@Value
(
"${ibiz.auth.path:v7/login}"
)
private
String
loginPath
;
private
String
loginPath
;
@Value
(
"${ibiz.auth.logoutpath:v7/logout}"
)
private
String
logoutPath
;
@Value
(
"${ibiz.file.uploadpath:ibizutil/upload}"
)
@Value
(
"${ibiz.file.uploadpath:ibizutil/upload}"
)
private
String
uploadpath
;
private
String
uploadpath
;
...
@@ -107,6 +110,8 @@ public class webSecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -107,6 +110,8 @@ public class webSecurityConfig extends WebSecurityConfigurerAdapter {
).
permitAll
()
).
permitAll
()
//放行登录请求
//放行登录请求
.
antMatchers
(
HttpMethod
.
POST
,
"/"
+
loginPath
).
permitAll
()
.
antMatchers
(
HttpMethod
.
POST
,
"/"
+
loginPath
).
permitAll
()
//放行注销请求
.
antMatchers
(
HttpMethod
.
GET
,
"/"
+
logoutPath
).
permitAll
()
// 文件操作
// 文件操作
.
antMatchers
(
"/"
+
downloadpath
+
"/**"
).
permitAll
()
.
antMatchers
(
"/"
+
downloadpath
+
"/**"
).
permitAll
()
.
antMatchers
(
"/"
+
uploadpath
).
permitAll
()
.
antMatchers
(
"/"
+
uploadpath
).
permitAll
()
...
...
ibzuaa-app/ibzuaa-app-web/src/main/resources/application-web-dev.yml
浏览文件 @
d358d064
server
:
server
:
port
:
30002
port
:
8080
\ No newline at end of file
\ No newline at end of file
ibzuaa-app/ibzuaa-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
d358d064
server
:
server
:
port
:
30002
port
:
8080
#zuul网关路由设置
#zuul网关路由设置
zuul
:
zuul
:
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/domain/SYS_PERMISSION.java
浏览文件 @
d358d064
...
@@ -49,7 +49,7 @@ public class SYS_PERMISSION extends EntityMP implements Serializable {
...
@@ -49,7 +49,7 @@ public class SYS_PERMISSION extends EntityMP implements Serializable {
@JsonProperty
(
"permissionname"
)
@JsonProperty
(
"permissionname"
)
private
String
permissionname
;
private
String
permissionname
;
/**
/**
* 系统
标识
* 系统
*/
*/
@DEField
(
name
=
"systemid"
)
@DEField
(
name
=
"systemid"
)
@TableField
(
value
=
"systemid"
)
@TableField
(
value
=
"systemid"
)
...
@@ -121,7 +121,7 @@ public class SYS_PERMISSION extends EntityMP implements Serializable {
...
@@ -121,7 +121,7 @@ public class SYS_PERMISSION extends EntityMP implements Serializable {
this
.
modify
(
"sys_permissionname"
,
permissionname
);
this
.
modify
(
"sys_permissionname"
,
permissionname
);
}
}
/**
/**
* 设置 [系统
标识
]
* 设置 [系统]
*/
*/
public
void
setPssystemid
(
String
pssystemid
){
public
void
setPssystemid
(
String
pssystemid
){
this
.
pssystemid
=
pssystemid
;
this
.
pssystemid
=
pssystemid
;
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/domain/SYS_PSAPPMENUITEM.java
浏览文件 @
d358d064
...
@@ -49,62 +49,54 @@ public class SYS_PSAPPMENUITEM extends EntityMP implements Serializable {
...
@@ -49,62 +49,54 @@ public class SYS_PSAPPMENUITEM extends EntityMP implements Serializable {
@JsonProperty
(
"appmenuitemname"
)
@JsonProperty
(
"appmenuitemname"
)
private
String
appmenuitemname
;
private
String
appmenuitemname
;
/**
/**
* 系统应用标识
*
业务
系统应用标识
*/
*/
@TableField
(
value
=
"psappid"
)
@TableField
(
value
=
"psappid"
)
@JSONField
(
name
=
"psappid"
)
@JSONField
(
name
=
"psappid"
)
@JsonProperty
(
"psappid"
)
@JsonProperty
(
"psappid"
)
private
String
psappid
;
private
String
psappid
;
/**
/**
* 系统应用名称
*
业务
系统应用名称
*/
*/
@TableField
(
value
=
"psappname"
)
@TableField
(
value
=
"psappname"
)
@JSONField
(
name
=
"psappname"
)
@JSONField
(
name
=
"psappname"
)
@JsonProperty
(
"psappname"
)
@JsonProperty
(
"psappname"
)
private
String
psappname
;
private
String
psappname
;
/**
/**
* 系统菜单标识
*
业务
系统菜单标识
*/
*/
@TableField
(
value
=
"psappmenuid"
)
@TableField
(
value
=
"psappmenuid"
)
@JSONField
(
name
=
"psappmenuid"
)
@JSONField
(
name
=
"psappmenuid"
)
@JsonProperty
(
"psappmenuid"
)
@JsonProperty
(
"psappmenuid"
)
private
String
psappmenuid
;
private
String
psappmenuid
;
/**
/**
* 系统菜单名称
* 业务系统菜单项标识
*/
@TableField
(
value
=
"psappmenuitemid"
)
@JSONField
(
name
=
"psappmenuitemid"
)
@JsonProperty
(
"psappmenuitemid"
)
private
String
psappmenuitemid
;
/**
* 业务系统父菜单项标识
*/
@TableField
(
value
=
"psapppmenuitemid"
)
@JSONField
(
name
=
"psapppmenuitemid"
)
@JsonProperty
(
"psapppmenuitemid"
)
private
String
psapppmenuitemid
;
/**
* 业务系统菜单名称
*/
*/
@TableField
(
value
=
"psappmenuname"
)
@TableField
(
value
=
"psappmenuname"
)
@JSONField
(
name
=
"psappmenuname"
)
@JSONField
(
name
=
"psappmenuname"
)
@JsonProperty
(
"psappmenuname"
)
@JsonProperty
(
"psappmenuname"
)
private
String
psappmenuname
;
private
String
psappmenuname
;
/**
/**
* 是否为叶子节点(用于菜单)
* 业务系统标识
*/
@TableField
(
value
=
"isleaf"
)
@JSONField
(
name
=
"isleaf"
)
@JsonProperty
(
"isleaf"
)
private
Integer
isleaf
;
/**
* 实体标识
*/
*/
@TableField
(
value
=
"pssystemid"
)
@TableField
(
value
=
"pssystemid"
)
@JSONField
(
name
=
"pssystemid"
)
@JSONField
(
name
=
"pssystemid"
)
@JsonProperty
(
"pssystemid"
)
@JsonProperty
(
"pssystemid"
)
private
String
pssystemid
;
private
String
pssystemid
;
/**
* 系统资源标识
*/
@TableField
(
value
=
"permissionid"
)
@JSONField
(
name
=
"permissionid"
)
@JsonProperty
(
"permissionid"
)
private
String
permissionid
;
/**
* 父项资源标识
*/
@DEField
(
name
=
"p_permissionid"
)
@TableField
(
value
=
"p_permissionid"
)
@JSONField
(
name
=
"parentpermissionid"
)
@JsonProperty
(
"parentpermissionid"
)
private
String
parentpermissionid
;
/**
/**
* 建立时间
* 建立时间
*/
*/
...
@@ -134,60 +126,53 @@ public class SYS_PSAPPMENUITEM extends EntityMP implements Serializable {
...
@@ -134,60 +126,53 @@ public class SYS_PSAPPMENUITEM extends EntityMP implements Serializable {
this
.
modify
(
"sys_psappmenuitemname"
,
appmenuitemname
);
this
.
modify
(
"sys_psappmenuitemname"
,
appmenuitemname
);
}
}
/**
/**
* 设置 [系统应用标识]
* 设置 [
业务
系统应用标识]
*/
*/
public
void
setPsappid
(
String
psappid
){
public
void
setPsappid
(
String
psappid
){
this
.
psappid
=
psappid
;
this
.
psappid
=
psappid
;
this
.
modify
(
"psappid"
,
psappid
);
this
.
modify
(
"psappid"
,
psappid
);
}
}
/**
/**
* 设置 [系统应用名称]
* 设置 [
业务
系统应用名称]
*/
*/
public
void
setPsappname
(
String
psappname
){
public
void
setPsappname
(
String
psappname
){
this
.
psappname
=
psappname
;
this
.
psappname
=
psappname
;
this
.
modify
(
"psappname"
,
psappname
);
this
.
modify
(
"psappname"
,
psappname
);
}
}
/**
/**
* 设置 [系统菜单标识]
* 设置 [
业务
系统菜单标识]
*/
*/
public
void
setPsappmenuid
(
String
psappmenuid
){
public
void
setPsappmenuid
(
String
psappmenuid
){
this
.
psappmenuid
=
psappmenuid
;
this
.
psappmenuid
=
psappmenuid
;
this
.
modify
(
"psappmenuid"
,
psappmenuid
);
this
.
modify
(
"psappmenuid"
,
psappmenuid
);
}
}
/**
/**
* 设置 [
系统菜单名称
]
* 设置 [
业务系统菜单项标识
]
*/
*/
public
void
setPsappmenu
name
(
String
psappmenuname
){
public
void
setPsappmenu
itemid
(
String
psappmenuitemid
){
this
.
psappmenu
name
=
psappmenuname
;
this
.
psappmenu
itemid
=
psappmenuitemid
;
this
.
modify
(
"psappmenu
name"
,
psappmenuname
);
this
.
modify
(
"psappmenu
itemid"
,
psappmenuitemid
);
}
}
/**
/**
* 设置 [
是否为叶子节点(用于菜单)
]
* 设置 [
业务系统父菜单项标识
]
*/
*/
public
void
set
Isleaf
(
Integer
isleaf
){
public
void
set
Psapppmenuitemid
(
String
psapppmenuitemid
){
this
.
isleaf
=
isleaf
;
this
.
psapppmenuitemid
=
psapppmenuitemid
;
this
.
modify
(
"
isleaf"
,
isleaf
);
this
.
modify
(
"
psapppmenuitemid"
,
psapppmenuitemid
);
}
}
/**
/**
* 设置 [
实体标识
]
* 设置 [
业务系统菜单名称
]
*/
*/
public
void
setPssystemid
(
String
pssystemid
){
public
void
setPsappmenuname
(
String
psappmenuname
){
this
.
pssystemid
=
pssystemid
;
this
.
psappmenuname
=
psappmenuname
;
this
.
modify
(
"pssystemid"
,
pssystemid
);
this
.
modify
(
"psappmenuname"
,
psappmenuname
);
}
/**
* 设置 [系统资源标识]
*/
public
void
setPermissionid
(
String
permissionid
){
this
.
permissionid
=
permissionid
;
this
.
modify
(
"permissionid"
,
permissionid
);
}
}
/**
/**
* 设置 [
父项资源
标识]
* 设置 [
业务系统
标识]
*/
*/
public
void
setP
arentpermissionid
(
String
parentpermission
id
){
public
void
setP
ssystemid
(
String
pssystem
id
){
this
.
p
arentpermissionid
=
parentpermission
id
;
this
.
p
ssystemid
=
pssystem
id
;
this
.
modify
(
"p
_permissionid"
,
parentpermission
id
);
this
.
modify
(
"p
ssystemid"
,
pssystem
id
);
}
}
}
}
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/filter/SYS_PERMISSIONSearchContext.java
浏览文件 @
d358d064
...
@@ -41,11 +41,11 @@ public class SYS_PERMISSIONSearchContext extends QueryWrapperContext<SYS_PERMISS
...
@@ -41,11 +41,11 @@ public class SYS_PERMISSIONSearchContext extends QueryWrapperContext<SYS_PERMISS
this
.
getSelectCond
().
like
(
"sys_permissionname"
,
n_sys_permissionname_like
);
this
.
getSelectCond
().
like
(
"sys_permissionname"
,
n_sys_permissionname_like
);
}
}
}
}
private
String
n_systemid_
eq
;
//[系统标识
]
private
String
n_systemid_
like
;
//[系统
]
public
void
setN_systemid_
eq
(
String
n_systemid_eq
)
{
public
void
setN_systemid_
like
(
String
n_systemid_like
)
{
this
.
n_systemid_
eq
=
n_systemid_eq
;
this
.
n_systemid_
like
=
n_systemid_like
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_systemid_
eq
)){
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_systemid_
like
)){
this
.
getSelectCond
().
eq
(
"systemid"
,
n_systemid_eq
);
this
.
getSelectCond
().
like
(
"systemid"
,
n_systemid_like
);
}
}
}
}
private
String
n_permissiontype_eq
;
//[资源类别]
private
String
n_permissiontype_eq
;
//[资源类别]
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/filter/SYS_PSAPPMENUITEMSearchContext.java
浏览文件 @
d358d064
...
@@ -34,7 +34,7 @@ public class SYS_PSAPPMENUITEMSearchContext extends QueryWrapperContext<SYS_PSAP
...
@@ -34,7 +34,7 @@ public class SYS_PSAPPMENUITEMSearchContext extends QueryWrapperContext<SYS_PSAP
this
.
getSelectCond
().
like
(
"sys_psappmenuitemname"
,
n_sys_psappmenuitemname_like
);
this
.
getSelectCond
().
like
(
"sys_psappmenuitemname"
,
n_sys_psappmenuitemname_like
);
}
}
}
}
private
String
n_pssystemid_eq
;
//[
实体
标识]
private
String
n_pssystemid_eq
;
//[
业务系统
标识]
public
void
setN_pssystemid_eq
(
String
n_pssystemid_eq
)
{
public
void
setN_pssystemid_eq
(
String
n_pssystemid_eq
)
{
this
.
n_pssystemid_eq
=
n_pssystemid_eq
;
this
.
n_pssystemid_eq
=
n_pssystemid_eq
;
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_pssystemid_eq
)){
if
(!
ObjectUtils
.
isEmpty
(
this
.
n_pssystemid_eq
)){
...
...
ibzuaa-core/src/main/resources/deprivs/DEPrivs.json
浏览文件 @
d358d064
...
@@ -3,6 +3,13 @@
...
@@ -3,6 +3,13 @@
],
],
"predefineddatarange"
:[{
"id"
:
"ALL"
,
"name"
:
"全部数据"
},{
"id"
:
"CURORG"
,
"name"
:
"当前单位"
},{
"id"
:
"PORG"
,
"name"
:
"上级单位"
},{
"id"
:
"SORG"
,
"name"
:
"下级单位"
},{
"id"
:
"CURORGDEPT"
,
"name"
:
"当前部门"
},{
"id"
:
"PORGDEPT"
,
"name"
:
"上级部门"
},{
"id"
:
"SORGDEPT"
,
"name"
:
"下级部门"
}],
"predefineddatarange"
:[{
"id"
:
"ALL"
,
"name"
:
"全部数据"
},{
"id"
:
"CURORG"
,
"name"
:
"当前单位"
},{
"id"
:
"PORG"
,
"name"
:
"上级单位"
},{
"id"
:
"SORG"
,
"name"
:
"下级单位"
},{
"id"
:
"CURORGDEPT"
,
"name"
:
"当前部门"
},{
"id"
:
"PORGDEPT"
,
"name"
:
"上级部门"
},{
"id"
:
"SORGDEPT"
,
"name"
:
"下级部门"
}],
"entities"
:[
"entities"
:[
]
],
"appmenus"
:[
{
"appid"
:
"web"
,
"appname"
:
"UAA鉴权"
,
"appmenu"
:[{
"menuid"
:
"Main"
,
"menuname"
:
"MAIN"
,
"menuitem"
:[{
"id"
:
"f59655c22753740bbcf200f5cfee8a54"
,
"name"
:
"menuitem3"
,
"text"
:
"用户管理"
},{
"id"
:
"db3e0d48d6e76a66784adc84edd90cdc"
,
"name"
:
"menuitem6"
,
"text"
:
"角色"
},{
"id"
:
"aa34fa65ba436d9267830d242fcda6c5"
,
"name"
:
"menuitem7"
,
"text"
:
"用户角色"
},{
"id"
:
"6177ea33605de953767d48b120145efb"
,
"name"
:
"menuitem10"
,
"text"
:
"权限"
},{
"id"
:
"2794bbcfc7b3c81b431d1f2e808a793b"
,
"name"
:
"menuitem1"
,
"text"
:
"角色权限"
}]
}]
}
]
}
}
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
d358d064
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
</createTable>
</createTable>
</changeSet>
</changeSet>
<!--输出实体[SYS_PERMISSION]数据结构 -->
<!--输出实体[SYS_PERMISSION]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_permission-1
79
-6"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_permission-1
91
-6"
>
<createTable
tableName=
"IBZPERMISSION"
>
<createTable
tableName=
"IBZPERMISSION"
>
<column
name=
"SYS_PERMISSIONID"
remarks=
""
type=
"VARCHAR(200)"
>
<column
name=
"SYS_PERMISSIONID"
remarks=
""
type=
"VARCHAR(200)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PERMISSION_SYS_PERMISSI"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PERMISSION_SYS_PERMISSI"
/>
...
@@ -158,7 +158,7 @@
...
@@ -158,7 +158,7 @@
</createTable>
</createTable>
</changeSet>
</changeSet>
<!--输出实体[SYS_PSAPPMENUITEM]数据结构 -->
<!--输出实体[SYS_PSAPPMENUITEM]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_psappmenuitem-
29
-9"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-sys_psappmenuitem-
98
-9"
>
<createTable
tableName=
"IBZPSAPPMENUITEM"
>
<createTable
tableName=
"IBZPSAPPMENUITEM"
>
<column
name=
"SYS_PSAPPMENUITEMID"
remarks=
""
type=
"VARCHAR(200)"
>
<column
name=
"SYS_PSAPPMENUITEMID"
remarks=
""
type=
"VARCHAR(200)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PSAPPMENUITEM_SYS_PSAPP"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_SYS_PSAPPMENUITEM_SYS_PSAPP"
/>
...
@@ -171,15 +171,13 @@
...
@@ -171,15 +171,13 @@
</column>
</column>
<column
name=
"PSAPPMENUID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"PSAPPMENUID"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</column>
<column
name=
"PSAPPMENUNAME"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"PSAPPMENUITEMID"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
<column
name=
"ISLEAF"
remarks=
""
type=
"INT"
>
</column>
</column>
<column
name=
"PS
SYS
TEMID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"PS
APPPMENUI
TEMID"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</column>
<column
name=
"P
ERMISSIONID
"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"P
SAPPMENUNAME
"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</column>
<column
name=
"P
_PERMISSION
ID"
remarks=
""
type=
"VARCHAR(100)"
>
<column
name=
"P
SSYSTEM
ID"
remarks=
""
type=
"VARCHAR(100)"
>
</column>
</column>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
<column
name=
"CREATEDATE"
remarks=
""
type=
"DATETIME"
>
</column>
</column>
...
...
ibzuaa-core/src/main/resources/mapper/uaa/sys_psappmenuitem/SYS_PSAPPMENUITEMMapper.xml
浏览文件 @
d358d064
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
<resultMap
id=
"SYS_PSAPPMENUITEMResultMap"
type=
"cn.ibizlab.core.uaa.domain.SYS_PSAPPMENUITEM"
autoMapping=
"true"
>
<resultMap
id=
"SYS_PSAPPMENUITEMResultMap"
type=
"cn.ibizlab.core.uaa.domain.SYS_PSAPPMENUITEM"
autoMapping=
"true"
>
<id
property=
"appmenuitemid"
column=
"sys_psappmenuitemid"
/>
<!--主键字段映射-->
<id
property=
"appmenuitemid"
column=
"sys_psappmenuitemid"
/>
<!--主键字段映射-->
<result
property=
"appmenuitemname"
column=
"sys_psappmenuitemname"
/>
<result
property=
"appmenuitemname"
column=
"sys_psappmenuitemname"
/>
<result
property=
"parentpermissionid"
column=
"p_permissionid"
/>
</resultMap>
</resultMap>
...
@@ -26,7 +25,7 @@
...
@@ -26,7 +25,7 @@
<!--数据查询[Default]-->
<!--数据查询[Default]-->
<sql
id=
"Default"
databaseId=
"mysql"
>
<sql
id=
"Default"
databaseId=
"mysql"
>
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`
ISLEAF`, t1.`PERMISSIONID`, t1.`PSAPPID`, t1.`PSAPPMENUID`, t1.`PSAPPMENUNAME`, t1.`PSAPPNAME`, t1.`PSSYSTEMID`, t1.`P_PERMISSION
ID`, t1.`SYS_PSAPPMENUITEMID`, t1.`SYS_PSAPPMENUITEMNAME`, t1.`UPDATEDATE` FROM `IBZPSAPPMENUITEM` t1
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`
PSAPPID`, t1.`PSAPPMENUID`, t1.`PSAPPMENUITEMID`, t1.`PSAPPMENUNAME`, t1.`PSAPPNAME`, t1.`PSAPPPMENUITEMID`, t1.`PSSYSTEM
ID`, t1.`SYS_PSAPPMENUITEMID`, t1.`SYS_PSAPPMENUITEMNAME`, t1.`UPDATEDATE` FROM `IBZPSAPPMENUITEM` t1
]]>
]]>
</sql>
</sql>
...
...
ibzuaa-core/src/main/resources/permission/systemResource.json
0 → 100644
浏览文件 @
d358d064
{
"unires"
:[
],
"predefineddatarange"
:[{
"id"
:
"ALL"
,
"name"
:
"全部数据"
},{
"id"
:
"CURORG"
,
"name"
:
"当前单位"
},{
"id"
:
"PORG"
,
"name"
:
"上级单位"
},{
"id"
:
"SORG"
,
"name"
:
"下级单位"
},{
"id"
:
"CURORGDEPT"
,
"name"
:
"当前部门"
},{
"id"
:
"PORGDEPT"
,
"name"
:
"上级部门"
},{
"id"
:
"SORGDEPT"
,
"name"
:
"下级部门"
}],
"entities"
:[
],
"appmenus"
:[
{
"appid"
:
"web"
,
"appname"
:
"UAA鉴权"
,
"appmenu"
:[{
"menuid"
:
"Main"
,
"menuname"
:
"MAIN"
,
"menuitem"
:[{
"id"
:
"menuitem3"
,
"name"
:
"用户管理"
},{
"id"
:
"menuitem6"
,
"name"
:
"角色"
},{
"id"
:
"menuitem7"
,
"name"
:
"用户角色"
},{
"id"
:
"menuitem10"
,
"name"
:
"权限"
},{
"id"
:
"menuitem1"
,
"name"
:
"角色权限"
}]
}]
}
]
}
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/dto/SYS_PSAPPMENUITEMDTO.java
浏览文件 @
d358d064
...
@@ -64,44 +64,36 @@ public class SYS_PSAPPMENUITEMDTO extends DTOBase implements Serializable {
...
@@ -64,44 +64,36 @@ public class SYS_PSAPPMENUITEMDTO extends DTOBase implements Serializable {
private
String
psappmenuid
;
private
String
psappmenuid
;
/**
/**
* 属性 [PSAPPMENUNAME]
* 属性 [PSAPPMENUITEMID]
*
*/
@JSONField
(
name
=
"psappmenuname"
)
@JsonProperty
(
"psappmenuname"
)
private
String
psappmenuname
;
/**
* 属性 [ISLEAF]
*
*
*/
*/
@JSONField
(
name
=
"
isleaf
"
)
@JSONField
(
name
=
"
psappmenuitemid
"
)
@JsonProperty
(
"
isleaf
"
)
@JsonProperty
(
"
psappmenuitemid
"
)
private
Integer
isleaf
;
private
String
psappmenuitemid
;
/**
/**
* 属性 [PS
SYS
TEMID]
* 属性 [PS
APPPMENUI
TEMID]
*
*
*/
*/
@JSONField
(
name
=
"ps
sys
temid"
)
@JSONField
(
name
=
"ps
apppmenui
temid"
)
@JsonProperty
(
"ps
sys
temid"
)
@JsonProperty
(
"ps
apppmenui
temid"
)
private
String
ps
sys
temid
;
private
String
ps
apppmenui
temid
;
/**
/**
* 属性 [P
ERMISSIONID
]
* 属性 [P
SAPPMENUNAME
]
*
*
*/
*/
@JSONField
(
name
=
"p
ermissionid
"
)
@JSONField
(
name
=
"p
sappmenuname
"
)
@JsonProperty
(
"p
ermissionid
"
)
@JsonProperty
(
"p
sappmenuname
"
)
private
String
p
ermissionid
;
private
String
p
sappmenuname
;
/**
/**
* 属性 [P
_PERMISSION
ID]
* 属性 [P
SSYSTEM
ID]
*
*
*/
*/
@JSONField
(
name
=
"p
arentpermission
id"
)
@JSONField
(
name
=
"p
ssystem
id"
)
@JsonProperty
(
"p
arentpermission
id"
)
@JsonProperty
(
"p
ssystem
id"
)
private
String
p
arentpermission
id
;
private
String
p
ssystem
id
;
/**
/**
* 属性 [CREATEDATE]
* 属性 [CREATEDATE]
...
@@ -155,43 +147,35 @@ public class SYS_PSAPPMENUITEMDTO extends DTOBase implements Serializable {
...
@@ -155,43 +147,35 @@ public class SYS_PSAPPMENUITEMDTO extends DTOBase implements Serializable {
}
}
/**
/**
* 设置 [PSAPPMENUNAME]
* 设置 [PSAPPMENUITEMID]
*/
public
void
setPsappmenuname
(
String
psappmenuname
){
this
.
psappmenuname
=
psappmenuname
;
this
.
modify
(
"psappmenuname"
,
psappmenuname
);
}
/**
* 设置 [ISLEAF]
*/
*/
public
void
set
Isleaf
(
Integer
isleaf
){
public
void
set
Psappmenuitemid
(
String
psappmenuitemid
){
this
.
isleaf
=
isleaf
;
this
.
psappmenuitemid
=
psappmenuitemid
;
this
.
modify
(
"
isleaf"
,
isleaf
);
this
.
modify
(
"
psappmenuitemid"
,
psappmenuitemid
);
}
}
/**
/**
* 设置 [PS
SYS
TEMID]
* 设置 [PS
APPPMENUI
TEMID]
*/
*/
public
void
setPs
systemid
(
String
pssys
temid
){
public
void
setPs
apppmenuitemid
(
String
psapppmenui
temid
){
this
.
ps
systemid
=
pssys
temid
;
this
.
ps
apppmenuitemid
=
psapppmenui
temid
;
this
.
modify
(
"ps
systemid"
,
pssys
temid
);
this
.
modify
(
"ps
apppmenuitemid"
,
psapppmenui
temid
);
}
}
/**
/**
* 设置 [P
ERMISSIONID
]
* 设置 [P
SAPPMENUNAME
]
*/
*/
public
void
setP
ermissionid
(
String
permissionid
){
public
void
setP
sappmenuname
(
String
psappmenuname
){
this
.
p
ermissionid
=
permissionid
;
this
.
p
sappmenuname
=
psappmenuname
;
this
.
modify
(
"p
ermissionid"
,
permissionid
);
this
.
modify
(
"p
sappmenuname"
,
psappmenuname
);
}
}
/**
/**
* 设置 [P
_PERMISSION
ID]
* 设置 [P
SSYSTEM
ID]
*/
*/
public
void
setP
arentpermissionid
(
String
parentpermission
id
){
public
void
setP
ssystemid
(
String
pssystem
id
){
this
.
p
arentpermissionid
=
parentpermission
id
;
this
.
p
ssystemid
=
pssystem
id
;
this
.
modify
(
"p
_permissionid"
,
parentpermission
id
);
this
.
modify
(
"p
ssystemid"
,
pssystem
id
);
}
}
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/extensions/ClientAuthenticationResource.java
浏览文件 @
d358d064
...
@@ -14,13 +14,11 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -14,13 +14,11 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.util.StringUtils
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -48,6 +46,10 @@ public class ClientAuthenticationResource
...
@@ -48,6 +46,10 @@ public class ClientAuthenticationResource
* 统一资源标识
* 统一资源标识
*/
*/
private
String
UniResTag
=
"UNIRES"
;
private
String
UniResTag
=
"UNIRES"
;
/**
* 菜单项标识
*/
private
String
AppMenuTag
=
"APPMENU"
;
@Autowired
@Autowired
@Qualifier
(
"IBZUSERService"
)
@Qualifier
(
"IBZUSERService"
)
...
@@ -107,6 +109,7 @@ public class ClientAuthenticationResource
...
@@ -107,6 +109,7 @@ public class ClientAuthenticationResource
JSONObject
permissionObj
=
new
JSONObject
();
JSONObject
permissionObj
=
new
JSONObject
();
//数据能力
String
opprivSQL
=
"SELECT\n"
+
String
opprivSQL
=
"SELECT\n"
+
"\tT2.pssysmoduleid as sysmodule,\n"
+
"\tT2.pssysmoduleid as sysmodule,\n"
+
"\tT2.psdataentityid as dataentity,\n"
+
"\tT2.psdataentityid as dataentity,\n"
+
...
@@ -128,8 +131,7 @@ public class ClientAuthenticationResource
...
@@ -128,8 +131,7 @@ public class ClientAuthenticationResource
"\t)\n"
+
"\t)\n"
+
"AND T1.PERMISSIONTYPE = #{et.param1} "
;
"AND T1.PERMISSIONTYPE = #{et.param1} "
;
//统一资源
String
uniResSQL
=
"SELECT\n"
+
String
uniResSQL
=
"SELECT\n"
+
"\tt2.SYS_PSSYSUNIRESID,\n"
+
"\tt2.SYS_PSSYSUNIRESID,\n"
+
"\tt2.SYS_PSSYSUNIRESNAME,\n"
+
"\tt2.SYS_PSSYSUNIRESNAME,\n"
+
...
@@ -148,24 +150,68 @@ public class ClientAuthenticationResource
...
@@ -148,24 +150,68 @@ public class ClientAuthenticationResource
"\t)\n"
+
"\t)\n"
+
"AND T1.PERMISSIONTYPE = #{et.param1} "
;
"AND T1.PERMISSIONTYPE = #{et.param1} "
;
//应用菜单
String
appMenuSQL
=
"SELECT\n"
+
"\tt2.PSAPPMENUITEMID as MENUITEMID,\n"
+
"\tt2.SYS_PSAPPMENUITEMNAME AS MENUITEMNAME \n"
+
"FROM\n"
+
"\tibzrole_permission T\n"
+
"INNER JOIN ibzpermission T1 ON T.SYS_PERMISSIONID = T1.SYS_PERMISSIONID\n"
+
"INNER JOIN ibzpsappmenuitem T2 on T1.SYS_PERMISSIONID=t2.SYS_PSAPPMENUITEMID\n"
+
"WHERE\n"
+
"\tT.SYS_ROLEID IN (\n"
+
"\t SELECT SYS_ROLEID\n"
+
"\t FROM\n"
+
"\t IBZUSER_ROLE t LEFT JOIN IBZUSER t1 ON t.SYS_USERID=T1.USERID\n"
+
"\t WHERE\n"
+
"\t T1.USERID = #{et.param0}\n"
+
"\t)\n"
+
"AND T1.PERMISSIONTYPE = #{et.param1} "
;
Map
opprivParam
=
new
HashMap
();
Map
opprivParam
=
new
HashMap
();
opprivParam
.
put
(
"param0"
,
user
.
getUserid
());
opprivParam
.
put
(
"param0"
,
user
.
getUserid
());
opprivParam
.
put
(
"param1"
,
OPPriTag
);
opprivParam
.
put
(
"param1"
,
OPPriTag
);
List
<
JSONObject
>
entitiesList
=
permissionService
.
select
(
opprivSQL
,
opprivParam
);
//查询用户权限下的菜单数据
Map
uniresParam
=
new
HashMap
();
Map
uniresParam
=
new
HashMap
();
uniresParam
.
put
(
"param0"
,
user
.
getUserid
());
uniresParam
.
put
(
"param0"
,
user
.
getUserid
());
uniresParam
.
put
(
"param1"
,
UniResTag
);
uniresParam
.
put
(
"param1"
,
UniResTag
);
List
<
JSONObject
>
uniResList
=
permissionService
.
select
(
uniResSQL
,
uniresParam
);
//查询用户权限下的菜单数据
Map
appMenuParam
=
new
HashMap
();
appMenuParam
.
put
(
"param0"
,
user
.
getUserid
());
appMenuParam
.
put
(
"param1"
,
AppMenuTag
);
List
<
JSONObject
>
entitiesList
=
permissionService
.
select
(
opprivSQL
,
opprivParam
);
//查询用户权限下数据能力
List
<
JSONObject
>
uniResList
=
permissionService
.
select
(
uniResSQL
,
uniresParam
);
//查询用户权限下的统一资源
List
<
JSONObject
>
appMenuItemList
=
permissionService
.
select
(
appMenuSQL
,
appMenuParam
);
//查询用户权限下的菜单项
JSONObject
entities
=
getEntitiesList
(
entitiesList
);
JSONObject
entities
=
getEntitiesList
(
entitiesList
);
JSONArray
uniRes
=
getUniRes
(
uniResList
);
JSONArray
uniRes
=
getUniRes
(
uniResList
);
JSONArray
appMenuItem
=
getAppMenuItem
(
appMenuItemList
);
permissionObj
.
put
(
"entities"
,
entities
);
permissionObj
.
put
(
"entities"
,
entities
);
permissionObj
.
put
(
"unires"
,
uniRes
);
permissionObj
.
put
(
"unires"
,
uniRes
);
permissionObj
.
put
(
"appmenu"
,
appMenuItem
);
user
.
setPermissionList
(
permissionObj
);
user
.
setPermissionList
(
permissionObj
);
}
}
/**
* 获取应用菜单
* @param menuItemList
* @return
*/
private
JSONArray
getAppMenuItem
(
List
<
JSONObject
>
menuItemList
)
{
JSONArray
menuItemArr
=
new
JSONArray
();
for
(
int
a
=
0
;
a
<
menuItemList
.
size
();
a
++){
JSONObject
menuItem
=
menuItemList
.
get
(
a
);
JSONObject
newMenuItem
=
new
JSONObject
();
newMenuItem
.
put
(
"menuitemid"
,
menuItem
.
getString
(
"MENUITEMID"
));
newMenuItem
.
put
(
"menuitemname"
,
menuItem
.
getString
(
"MENUITEMNAME"
));
menuItemArr
.
add
(
newMenuItem
);
}
return
menuItemArr
;
}
/**
/**
* 获取统一资源
* 获取统一资源
* @param uniResList
* @param uniResList
...
...
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/extensions/PermissionFeignService.java
浏览文件 @
d358d064
此差异已折叠。
点击以展开。
ibzuaa-util/src/main/java/cn/ibizlab/util/client/IBZUAAFallback.java
浏览文件 @
d358d064
...
@@ -3,13 +3,14 @@ package cn.ibizlab.util.client;
...
@@ -3,13 +3,14 @@ package cn.ibizlab.util.client;
import
cn.ibizlab.util.security.AuthenticationUser
;
import
cn.ibizlab.util.security.AuthenticationUser
;
import
cn.ibizlab.util.security.AuthorizationLogin
;
import
cn.ibizlab.util.security.AuthorizationLogin
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.Map
;
import
java.util.Map
;
@Component
@Component
public
class
IBZUAAFallback
implements
IBZUAAFeignClient
{
public
class
IBZUAAFallback
implements
IBZUAAFeignClient
{
@Override
@Override
public
Map
<
String
,
Object
>
pushSystemPermissionData
(
Map
<
String
,
Object
>
systemPermissionData
,
String
systemId
)
{
public
JSONObject
pushSystemPermissionData
(
Map
<
String
,
Object
>
systemPermissionData
,
String
systemId
)
{
return
null
;
return
null
;
}
}
...
...
ibzuaa-util/src/main/java/cn/ibizlab/util/client/IBZUAAFeignClient.java
浏览文件 @
d358d064
...
@@ -4,6 +4,7 @@ import cn.ibizlab.util.security.AuthenticationUser;
...
@@ -4,6 +4,7 @@ import cn.ibizlab.util.security.AuthenticationUser;
import
cn.ibizlab.util.security.AuthorizationLogin
;
import
cn.ibizlab.util.security.AuthorizationLogin
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
com.alibaba.fastjson.JSONObject
;
import
java.util.Map
;
import
java.util.Map
;
@FeignClient
(
value
=
"ibzuaa-api"
,
fallback
=
IBZUAAFallback
.
class
)
@FeignClient
(
value
=
"ibzuaa-api"
,
fallback
=
IBZUAAFallback
.
class
)
...
@@ -16,7 +17,7 @@ public interface IBZUAAFeignClient
...
@@ -16,7 +17,7 @@ public interface IBZUAAFeignClient
* @return
* @return
*/
*/
@PostMapping
(
"/uaa/permission/save"
)
@PostMapping
(
"/uaa/permission/save"
)
Map
<
String
,
Object
>
pushSystemPermissionData
(
@RequestBody
Map
<
String
,
Object
>
systemPermissionData
,
@RequestParam
(
"systemid"
)
String
systemId
);
JSONObject
pushSystemPermissionData
(
@RequestBody
Map
<
String
,
Object
>
systemPermissionData
,
@RequestParam
(
"systemid"
)
String
systemId
);
/**
/**
* 用户登录
* 用户登录
...
...
ibzuaa-util/src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
浏览文件 @
d358d064
...
@@ -39,15 +39,20 @@ public class PermissionSyncJob implements ApplicationRunner {
...
@@ -39,15 +39,20 @@ public class PermissionSyncJob implements ApplicationRunner {
public
void
run
(
ApplicationArguments
args
)
{
public
void
run
(
ApplicationArguments
args
)
{
if
(
enablePermissionValid
){
if
(
enablePermissionValid
){
try
{
try
{
InputStream
permission
=
this
.
getClass
().
getResourceAsStream
(
"/
deprivs/DEPrivs
.json"
);
//获取当前系统所有实体资源能力
InputStream
permission
=
this
.
getClass
().
getResourceAsStream
(
"/
permission/systemResource
.json"
);
//获取当前系统所有实体资源能力
String
permissionResult
=
IOUtils
.
toString
(
permission
,
"UTF-8"
);
String
permissionResult
=
IOUtils
.
toString
(
permission
,
"UTF-8"
);
JSONObject
jsonNodePermission
=
JSONObject
.
parseObject
(
permissionResult
);
JSONObject
jsonNodePermission
=
JSONObject
.
parseObject
(
permissionResult
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"permission"
,
jsonNodePermission
);
map
.
put
(
"permission"
,
jsonNodePermission
);
client
.
pushSystemPermissionData
(
map
,
systemId
);
JSONObject
syncResult
=
client
.
pushSystemPermissionData
(
map
,
systemId
);
if
(
syncResult
.
getInteger
(
"code"
)==
1
){
log
.
info
(
"向[UAA]同步系统资源成功"
);
}
else
{
log
.
info
(
String
.
format
(
"向[UAA]同步系统资源失败,失败原因为[%s]"
,
syncResult
.
getString
(
"msg"
)));
}
}
}
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
log
.
error
(
String
.
format
(
"向
UAA同步数据发生错误,请检查UAA
服务是否正常! [%s]"
,
ex
));
log
.
error
(
String
.
format
(
"向
[UAA]同步系统资源失败,请检查[UAA]
服务是否正常! [%s]"
,
ex
));
}
}
}
}
}
}
...
...
ibzuaa-util/src/main/java/cn/ibizlab/util/rest/AppController.java
浏览文件 @
d358d064
...
@@ -9,7 +9,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -9,7 +9,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
cn.ibizlab.util.security.AuthenticationUser
;
import
cn.ibizlab.util.security.AuthenticationUser
;
import
cn.ibizlab.util.service.AuthenticationUserService
;
@RestController
@RestController
@RequestMapping
(
value
=
""
)
@RequestMapping
(
value
=
""
)
...
@@ -18,19 +20,32 @@ public class AppController {
...
@@ -18,19 +20,32 @@ public class AppController {
@Value
(
"${ibiz.enablePermissionValid:false}"
)
@Value
(
"${ibiz.enablePermissionValid:false}"
)
boolean
enablePermissionValid
;
//是否开启权限校验
boolean
enablePermissionValid
;
//是否开启权限校验
@Autowired
private
AuthenticationUserService
userDetailsService
;
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/appdata"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/appdata"
)
public
ResponseEntity
<
JSONObject
>
getAppData
()
{
public
ResponseEntity
<
JSONObject
>
getAppData
()
{
JSONObject
appData
=
new
JSONObject
()
;
JSONObject
appData
=
new
JSONObject
()
;
JSONArray
uniRes
=
new
JSONArray
();
JSONArray
uniRes
=
new
JSONArray
();
JSONArray
appMenu
=
new
JSONArray
();
if
(
enablePermissionValid
){
if
(
enablePermissionValid
){
JSONObject
userPermission
=
AuthenticationUser
.
getAuthenticationUser
().
getPermissionList
();
JSONObject
userPermission
=
AuthenticationUser
.
getAuthenticationUser
().
getPermissionList
();
if
(!
ObjectUtils
.
isEmpty
(
userPermission
)){
if
(!
ObjectUtils
.
isEmpty
(
userPermission
)){
uniRes
=
userPermission
.
getJSONArray
(
"unires"
);
uniRes
=
userPermission
.
getJSONArray
(
"unires"
);
appMenu
=
userPermission
.
getJSONArray
(
"appmenu"
);
}
}
}
}
appData
.
put
(
"unires"
,
uniRes
);
appData
.
put
(
"unires"
,
uniRes
);
appData
.
put
(
"appmenu"
,
appMenu
);
appData
.
put
(
"enablepermissionvalid"
,
enablePermissionValid
);
appData
.
put
(
"enablepermissionvalid"
,
enablePermissionValid
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
appData
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
appData
);
}
}
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"${ibiz.auth.logoutpath:v7/logout}"
)
public
void
logout
()
{
if
(
AuthenticationUser
.
getAuthenticationUser
()!=
null
){
userDetailsService
.
resetByUsername
(
AuthenticationUser
.
getAuthenticationUser
().
getUsername
());
}
}
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录