Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
1fe53228
提交
1fe53228
编写于
9月 09, 2020
作者:
laizhilong
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/master'
上级
d239bc50
4fbba296
变更
10
展开全部
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
652 行增加
和
114 行删除
+652
-114
sys-open-access_en_US.ts
.../lanres/entities/sys-open-access/sys-open-access_en_US.ts
+0
-2
sys-open-access_zh_CN.ts
.../lanres/entities/sys-open-access/sys-open-access_zh_CN.ts
+0
-2
sys-user-auths.ts
app_web/src/mock/entity/sys-user-auths/sys-user-auths.ts
+214
-9
sys-user-auth-service-base.ts
...b/src/service/sys-user-auth/sys-user-auth-service-base.ts
+121
-1
main-form-base.vue
.../src/widgets/sys-open-access/main-form/main-form-base.vue
+0
-80
main-form-model.ts
.../src/widgets/sys-open-access/main-form/main-form-model.ts
+0
-8
SysUserAuthSearchContext.java
.../cn/ibizlab/core/uaa/filter/SysUserAuthSearchContext.java
+3
-0
h2_table.xml
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
+201
-8
SysUserAuthResource.java
...rc/main/java/cn/ibizlab/api/rest/SysUserAuthResource.java
+109
-0
application-sys.yml
ibzuaa-util/src/main/resources/application-sys.yml
+4
-4
未找到文件。
app_web/src/locale/lanres/entities/sys-open-access/sys-open-access_en_US.ts
浏览文件 @
1fe53228
...
...
@@ -40,8 +40,6 @@ export default {
redirect_uri
:
"RedirectURI"
,
region_id
:
"RegionId"
,
disabled
:
"是否禁用"
,
lic
:
"授权"
,
image
:
"图片"
,
accessid
:
"开放平台接入标识"
,
},
uiactions
:
{
...
...
app_web/src/locale/lanres/entities/sys-open-access/sys-open-access_zh_CN.ts
浏览文件 @
1fe53228
...
...
@@ -39,8 +39,6 @@ export default {
redirect_uri
:
"RedirectURI"
,
region_id
:
"RegionId"
,
disabled
:
"是否禁用"
,
lic
:
"授权"
,
image
:
"图片"
,
accessid
:
"开放平台接入标识"
,
},
uiactions
:
{
...
...
app_web/src/mock/entity/sys-user-auths/sys-user-auths.ts
浏览文件 @
1fe53228
...
...
@@ -114,16 +114,165 @@ mock.onGet(new RegExp(/^\/sysuserauths\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).repl
console
.
groupEnd
();
return
[
status
,
_items
];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Create
mock
.
onPost
(
new
RegExp
(
/^
\/
sysuserauths
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:sysuserauth 方法: Create"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'id'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
sysuserauths
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
mockDatas
[
0
]);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
mockDatas
[
0
]];
});
// Update
mock
.
onPut
(
new
RegExp
(
/^
\/
sysuserauths
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:sysuserauth 方法: Update"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'id'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
sysuserauths
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.id, tempValue.id));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'id'
]
==
tempValue
[
'id'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// GetDraft
mock
.
onGet
(
new
RegExp
(
/^
\/
sysuserauths
\/
getdraft$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:sysuserauth 方法: GetDraft"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
// GetDraft
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// CheckKey
mock
.
onPost
(
new
RegExp
(
/^
\/
sysuserauths
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
checkkey$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:sysuserauth 方法: CheckKey"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'id'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
sysuserauths
\/([
a-zA-Z0-9
\-\;]{1,35})\/
checkkey$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.id, tempValue.id));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'id'
]
==
tempValue
[
'id'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// Save
mock
.
onPost
(
new
RegExp
(
/^
\/
sysuserauths
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
save$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:sysuserauth 方法: Save"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'id'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
sysuserauths
\/([
a-zA-Z0-9
\-\;]{1,35})\/
save$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.id, tempValue.id));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'id'
]
==
tempValue
[
'id'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
sysuserauths
\/
selec
t$/
)).
reply
((
config
:
any
)
=>
{
mock
.
onGet
(
new
RegExp
(
/^
\/
sysuserauths
\/
fetchdefaul
t$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:sysuserauth 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
...
...
@@ -138,7 +287,7 @@ mock.onGet(new RegExp(/^\/sysuserauths\/select$/)).reply((config: any) => {
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
sysuserauths
\/
selec
t
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
mock
.
onGet
(
new
RegExp
(
/^
\/
sysuserauths
\/
fetchdefaul
t
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:sysuserauth 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
if
(
config
.
url
.
includes
(
'page'
)){
...
...
@@ -173,3 +322,59 @@ mock.onGet(new RegExp(/^\/sysuserauths\/select(\?[\w-./?%&=,]*)*$/)).reply((conf
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
mock
.
onDelete
(
new
RegExp
(
/^
\/
sysuserauths
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:sysuserauth 方法: Remove"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'id'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
sysuserauths
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
id
,
tempValue
.
id
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
// Get
mock
.
onGet
(
new
RegExp
(
/^
\/
sysuserauths
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:sysuserauth 方法: Get"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'id'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
sysuserauths
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
id
,
tempValue
.
id
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
app_web/src/service/sys-user-auth/sys-user-auth-service-base.ts
浏览文件 @
1fe53228
...
...
@@ -31,7 +31,7 @@ export default class SysUserAuthServiceBase extends EntityService {
this
.
APPLYDEKEY
=
'sysuserauth'
;
this
.
APPDEKEY
=
'id'
;
this
.
APPDENAME
=
'sysuserauths'
;
this
.
APPDETEXT
=
''
;
this
.
APPDETEXT
=
'
username
'
;
this
.
APPNAME
=
'web'
;
this
.
SYSTEMNAME
=
'ibzuaa'
;
}
...
...
@@ -53,6 +53,123 @@ export default class SysUserAuthServiceBase extends EntityService {
return
res
;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysUserAuthServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/sysuserauths`
,
data
,
isloading
);
return
res
;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysUserAuthServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/sysuserauths/
${
context
.
sysuserauth
}
`
,
data
,
isloading
);
return
res
;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysUserAuthServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/sysuserauths/
${
context
.
sysuserauth
}
`
,
isloading
);
return
res
;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysUserAuthServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/sysuserauths/
${
context
.
sysuserauth
}
`
,
isloading
);
return
res
;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysUserAuthServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/sysuserauths/getdraft`
,
isloading
);
res
.
data
.
sysuserauth
=
data
.
sysuserauth
;
return
res
;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysUserAuthServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
post
(
`/sysuserauths/
${
context
.
sysuserauth
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof SysUserAuthServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/sysuserauths/
${
context
.
sysuserauth
}
/save`
,
data
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
...
...
@@ -63,5 +180,8 @@ export default class SysUserAuthServiceBase extends EntityService {
* @memberof SysUserAuthServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/sysuserauths/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
}
\ No newline at end of file
app_web/src/widgets/sys-open-access/main-form/main-form-base.vue
浏览文件 @
1fe53228
...
...
@@ -109,42 +109,6 @@
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.lic.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'lic'
:itemRules=
"this.rules().lic"
class=
''
:caption=
"$t('entities.sysopenaccess.main_form.details.lic')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.lic.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<ibiz-file-upload
:data=
"data"
formItemName=
"lic"
:value=
"data.lic"
:formState=
"formState"
folder=
"sysopenaccess"
ownertype=
"lic"
:ownerid=
"data.srfkey"
:show-ocrview=
"true"
:show-preview=
"true"
:show-edit=
"true"
:show-drag=
"false"
:persistence=
"false"
@
formitemvaluechange=
"onFormItemValueChange"
></ibiz-file-upload>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.image.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'image'
:itemRules=
"this.rules().image"
class=
''
:caption=
"$t('entities.sysopenaccess.main_form.details.image')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.lic.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<ibiz-image-upload
:data=
"data"
formItemName=
"image"
:value=
"data.image"
:formState=
"formState"
folder=
"sysopenaccess"
ownertype=
"image"
:ownerid=
"data.srfkey"
:show-ocrview=
"true"
:show-preview=
"true"
:persistence=
"true"
@
formitemvaluechange=
"onFormItemValueChange"
></ibiz-image-upload>
</app-form-item>
</i-col>
</row>
...
...
@@ -497,8 +461,6 @@ export default class MainBase extends Vue implements ControlInterface {
redirect_uri
:
null
,
region_id
:
null
,
disabled
:
null
,
lic
:
null
,
image
:
null
,
accessid
:
null
,
sysopenaccess
:
null
,
};
...
...
@@ -627,18 +589,6 @@ export default class MainBase extends Vue implements ControlInterface {
{
required
:
false
,
type
:
'number'
,
message
:
'是否禁用 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'number'
,
message
:
'是否禁用 值不能为空'
,
trigger
:
'blur'
},
],
lic
:
[
{
type
:
'string'
,
message
:
'授权 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'授权 值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'授权 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'授权 值不能为空'
,
trigger
:
'blur'
},
],
image
:
[
{
type
:
'string'
,
message
:
'图片 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'图片 值必须为字符串类型'
,
trigger
:
'blur'
},
{
required
:
false
,
type
:
'string'
,
message
:
'图片 值不能为空'
,
trigger
:
'change'
},
{
required
:
false
,
type
:
'string'
,
message
:
'图片 值不能为空'
,
trigger
:
'blur'
},
],
accessid
:
[
{
type
:
'string'
,
message
:
'开放平台接入标识 值必须为字符串类型'
,
trigger
:
'change'
},
{
type
:
'string'
,
message
:
'开放平台接入标识 值必须为字符串类型'
,
trigger
:
'blur'
},
...
...
@@ -764,10 +714,6 @@ export default class MainBase extends Vue implements ControlInterface {
region_id
:
new
FormItemModel
({
caption
:
'RegionId'
,
detailType
:
'FORMITEM'
,
name
:
'region_id'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
disabled
:
new
FormItemModel
({
caption
:
'是否禁用'
,
detailType
:
'FORMITEM'
,
name
:
'disabled'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
lic
:
new
FormItemModel
({
caption
:
'授权'
,
detailType
:
'FORMITEM'
,
name
:
'lic'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
image
:
new
FormItemModel
({
caption
:
'图片'
,
detailType
:
'FORMITEM'
,
name
:
'image'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
accessid
:
new
FormItemModel
({
caption
:
'开放平台接入标识'
,
detailType
:
'FORMITEM'
,
name
:
'accessid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
...
...
@@ -941,30 +887,6 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
formDataChange
({
name
:
'disabled'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 lic 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@
Watch
(
'data.lic'
)
onLicChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'lic'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 image 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@
Watch
(
'data.image'
)
onImageChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'image'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 accessid 值
*
...
...
@@ -1048,8 +970,6 @@ export default class MainBase extends Vue implements ControlInterface {
}
/**
...
...
app_web/src/widgets/sys-open-access/main-form/main-form-model.ts
浏览文件 @
1fe53228
...
...
@@ -85,14 +85,6 @@ export default class MainModel {
prop
:
'disabled'
,
dataType
:
'YESNO'
,
},
{
name
:
'lic'
,
dataType
:
'FORMITEM'
,
},
{
name
:
'image'
,
dataType
:
'FORMITEM'
,
},
{
name
:
'accessid'
,
prop
:
'id'
,
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/filter/SysUserAuthSearchContext.java
浏览文件 @
1fe53228
...
...
@@ -56,6 +56,9 @@ public class SysUserAuthSearchContext extends QueryWrapperContext<SysUserAuth> {
{
this
.
query
=
query
;
if
(!
StringUtils
.
isEmpty
(
query
)){
this
.
getSearchCond
().
and
(
wrapper
->
wrapper
.
like
(
"username"
,
query
)
);
}
}
}
...
...
ibzuaa-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
1fe53228
此差异已折叠。
点击以展开。
ibzuaa-provider/ibzuaa-provider-api/src/main/java/cn/ibizlab/api/rest/SysUserAuthResource.java
浏览文件 @
1fe53228
...
...
@@ -46,5 +46,114 @@ public class SysUserAuthResource {
@Lazy
public
SysUserAuthMapping
sysuserauthMapping
;
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserAuth-Create-all')"
)
@ApiOperation
(
value
=
"新建账号绑定"
,
tags
=
{
"账号绑定"
},
notes
=
"新建账号绑定"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysuserauths"
)
public
ResponseEntity
<
SysUserAuthDTO
>
create
(
@RequestBody
SysUserAuthDTO
sysuserauthdto
)
{
SysUserAuth
domain
=
sysuserauthMapping
.
toDomain
(
sysuserauthdto
);
sysuserauthService
.
create
(
domain
);
SysUserAuthDTO
dto
=
sysuserauthMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserAuth-Create-all')"
)
@ApiOperation
(
value
=
"批量新建账号绑定"
,
tags
=
{
"账号绑定"
},
notes
=
"批量新建账号绑定"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysuserauths/batch"
)
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
SysUserAuthDTO
>
sysuserauthdtos
)
{
sysuserauthService
.
createBatch
(
sysuserauthMapping
.
toDomain
(
sysuserauthdtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserAuth-Update-all')"
)
@ApiOperation
(
value
=
"更新账号绑定"
,
tags
=
{
"账号绑定"
},
notes
=
"更新账号绑定"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysuserauths/{sysuserauth_id}"
)
public
ResponseEntity
<
SysUserAuthDTO
>
update
(
@PathVariable
(
"sysuserauth_id"
)
String
sysuserauth_id
,
@RequestBody
SysUserAuthDTO
sysuserauthdto
)
{
SysUserAuth
domain
=
sysuserauthMapping
.
toDomain
(
sysuserauthdto
);
domain
.
setId
(
sysuserauth_id
);
sysuserauthService
.
update
(
domain
);
SysUserAuthDTO
dto
=
sysuserauthMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserAuth-Update-all')"
)
@ApiOperation
(
value
=
"批量更新账号绑定"
,
tags
=
{
"账号绑定"
},
notes
=
"批量更新账号绑定"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/sysuserauths/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
SysUserAuthDTO
>
sysuserauthdtos
)
{
sysuserauthService
.
updateBatch
(
sysuserauthMapping
.
toDomain
(
sysuserauthdtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserAuth-Remove-all')"
)
@ApiOperation
(
value
=
"删除账号绑定"
,
tags
=
{
"账号绑定"
},
notes
=
"删除账号绑定"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysuserauths/{sysuserauth_id}"
)
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"sysuserauth_id"
)
String
sysuserauth_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserauthService
.
remove
(
sysuserauth_id
));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserAuth-Remove-all')"
)
@ApiOperation
(
value
=
"批量删除账号绑定"
,
tags
=
{
"账号绑定"
},
notes
=
"批量删除账号绑定"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/sysuserauths/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
sysuserauthService
.
removeBatch
(
ids
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserAuth-Get-all')"
)
@ApiOperation
(
value
=
"获取账号绑定"
,
tags
=
{
"账号绑定"
},
notes
=
"获取账号绑定"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/sysuserauths/{sysuserauth_id}"
)
public
ResponseEntity
<
SysUserAuthDTO
>
get
(
@PathVariable
(
"sysuserauth_id"
)
String
sysuserauth_id
)
{
SysUserAuth
domain
=
sysuserauthService
.
get
(
sysuserauth_id
);
SysUserAuthDTO
dto
=
sysuserauthMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"获取账号绑定草稿"
,
tags
=
{
"账号绑定"
},
notes
=
"获取账号绑定草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/sysuserauths/getdraft"
)
public
ResponseEntity
<
SysUserAuthDTO
>
getDraft
()
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserauthMapping
.
toDto
(
sysuserauthService
.
getDraft
(
new
SysUserAuth
())));
}
@ApiOperation
(
value
=
"检查账号绑定"
,
tags
=
{
"账号绑定"
},
notes
=
"检查账号绑定"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysuserauths/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
SysUserAuthDTO
sysuserauthdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserauthService
.
checkKey
(
sysuserauthMapping
.
toDomain
(
sysuserauthdto
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserAuth-Save-all')"
)
@ApiOperation
(
value
=
"保存账号绑定"
,
tags
=
{
"账号绑定"
},
notes
=
"保存账号绑定"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysuserauths/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
SysUserAuthDTO
sysuserauthdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
sysuserauthService
.
save
(
sysuserauthMapping
.
toDomain
(
sysuserauthdto
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserAuth-Save-all')"
)
@ApiOperation
(
value
=
"批量保存账号绑定"
,
tags
=
{
"账号绑定"
},
notes
=
"批量保存账号绑定"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysuserauths/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
SysUserAuthDTO
>
sysuserauthdtos
)
{
sysuserauthService
.
saveBatch
(
sysuserauthMapping
.
toDomain
(
sysuserauthdtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserAuth-searchDefault-all')"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"账号绑定"
}
,
notes
=
"获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/sysuserauths/fetchdefault"
)
public
ResponseEntity
<
List
<
SysUserAuthDTO
>>
fetchDefault
(
SysUserAuthSearchContext
context
)
{
Page
<
SysUserAuth
>
domains
=
sysuserauthService
.
searchDefault
(
context
)
;
List
<
SysUserAuthDTO
>
list
=
sysuserauthMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
header
(
"x-page"
,
String
.
valueOf
(
context
.
getPageable
().
getPageNumber
()))
.
header
(
"x-per-page"
,
String
.
valueOf
(
context
.
getPageable
().
getPageSize
()))
.
header
(
"x-total"
,
String
.
valueOf
(
domains
.
getTotalElements
()))
.
body
(
list
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzuaa-SysUserAuth-searchDefault-all')"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"账号绑定"
}
,
notes
=
"查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/sysuserauths/searchdefault"
)
public
ResponseEntity
<
Page
<
SysUserAuthDTO
>>
searchDefault
(
@RequestBody
SysUserAuthSearchContext
context
)
{
Page
<
SysUserAuth
>
domains
=
sysuserauthService
.
searchDefault
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
sysuserauthMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
}
ibzuaa-util/src/main/resources/application-sys.yml
浏览文件 @
1fe53228
...
...
@@ -22,9 +22,9 @@ spring:
max-file-size
:
100MB
max-request-size
:
100MB
datasource
:
username
:
root
password
:
'
root
'
url
:
jdbc:mysql://1
27.0.0.1:3306/ibzuaa
?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
username
:
a_A_5d9d78509
password
:
'
@6dEfb3@
'
url
:
jdbc:mysql://1
72.16.180.232:3306/a_A_5d9d78509
?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true&allowMultiQueries=true
driver-class-name
:
com.mysql.jdbc.Driver
filters
:
stat,wall,log4j2
#配置初始化大小/最小/最大
...
...
@@ -45,7 +45,7 @@ spring:
pool-prepared-statements
:
false
max-pool-prepared-statement-per-connection-size
:
20
isSyncDBSchema
:
false
defaultSchema
:
root
defaultSchema
:
a_A_5d9d78509
conf
:
classpath:liquibase/master.xml
#Mybatis-plus配置
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录