Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
50b83c3f
提交
50b83c3f
编写于
5月 12, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibizdev提交
上级
3a642075
变更
19
显示空白字符变更
内嵌
并排
正在显示
19 个修改的文件
包含
113 行增加
和
12 行删除
+113
-12
app-register.ts
app_web/src/app-register.ts
+2
-0
app-column-format.less
...b/src/components/app-column-format/app-column-format.less
+3
-0
app-column-format.vue
...eb/src/components/app-column-format/app-column-format.vue
+58
-0
login.vue
app_web/src/components/login/login.vue
+6
-2
auth-guard.ts
app_web/src/utils/auth-guard/auth-guard.ts
+11
-1
main-grid-base.vue
...b/src/widgets/sys-permission/main-grid/main-grid-base.vue
+5
-0
main-grid-base.vue
.../widgets/sys-role-permission/main-grid/main-grid-base.vue
+5
-0
main-grid-base.vue
app_web/src/widgets/sys-role/main-grid/main-grid-base.vue
+5
-0
main-grid-base.vue
...eb/src/widgets/sys-user-role/main-grid/main-grid-base.vue
+5
-0
main-grid-base.vue
app_web/src/widgets/sys-user/main-grid/main-grid-base.vue
+5
-0
SYS_PERMISSIONServiceImpl.java
...zlab/core/uaa/service/impl/SYS_PERMISSIONServiceImpl.java
+0
-1
SYS_PSAPPMENUITEMServiceImpl.java
...b/core/uaa/service/impl/SYS_PSAPPMENUITEMServiceImpl.java
+0
-1
SYS_PSDEOPPRIVServiceImpl.java
...zlab/core/uaa/service/impl/SYS_PSDEOPPRIVServiceImpl.java
+0
-1
SYS_PSSYSTEMServiceImpl.java
...bizlab/core/uaa/service/impl/SYS_PSSYSTEMServiceImpl.java
+0
-1
SYS_PSSYSUNIRESServiceImpl.java
...lab/core/uaa/service/impl/SYS_PSSYSUNIRESServiceImpl.java
+0
-1
SYS_ROLEServiceImpl.java
...cn/ibizlab/core/uaa/service/impl/SYS_ROLEServiceImpl.java
+0
-1
SYS_ROLE_PERMISSIONServiceImpl.java
...core/uaa/service/impl/SYS_ROLE_PERMISSIONServiceImpl.java
+4
-1
SYS_USERServiceImpl.java
...cn/ibizlab/core/uaa/service/impl/SYS_USERServiceImpl.java
+0
-1
SYS_USER_ROLEServiceImpl.java
...izlab/core/uaa/service/impl/SYS_USER_ROLEServiceImpl.java
+4
-1
未找到文件。
app_web/src/app-register.ts
浏览文件 @
50b83c3f
...
...
@@ -69,6 +69,7 @@ import AppImagePreview from './components/app-image-preview/app-image-preview.vu
import
AppFormatData
from
'./components/app-format-data/app-format-data.vue'
import
AppUploadFileInfo
from
'./components/app-upload-file-info/app-upload-file-info.vue'
import
ContextMenu
from
'./components/context-menu/context-menu'
import
AppColumnFormat
from
'./components/app-column-format/app-column-format.vue'
// 全局挂载UI实体服务注册中心
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
...
...
@@ -147,5 +148,6 @@ export const AppComponents = {
v
.
component
(
'app-format-data'
,
AppFormatData
);
v
.
component
(
'app-upload-file-info'
,
AppUploadFileInfo
);
v
.
component
(
'context-menu'
,
ContextMenu
);
v
.
component
(
'app-column-format'
,
AppColumnFormat
);
},
};
\ No newline at end of file
app_web/src/components/app-column-format/app-column-format.less
0 → 100644
浏览文件 @
50b83c3f
.app-column-format{
display: inline-block;
}
\ No newline at end of file
app_web/src/components/app-column-format/app-column-format.vue
0 → 100644
浏览文件 @
50b83c3f
<
template
>
<div
class=
"app-column-format"
>
{{
text
}}
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Prop
,
Model
,
Emit
,
Watch
}
from
"vue-property-decorator"
;
/**
* 表格列格式化json数组,数据格式为"[{"srfkey":"001","srfmajortext":"TEST1"},{"srfkey":"002","srfmajortext":"TEST2"}......]"
*/
@
Component
({
})
export
default
class
AppColumnFormat
extends
Vue
{
/**
* 值
* @type {any}
* @memberof AppColumnFormat
*/
@
Prop
()
public
value
?:
any
;
/**
* 显示文本
* @type {any}
* @memberof AppColumnFormat
*/
get
text
(){
if
(
this
.
value
){
let
returnStr
:
string
=
""
;
let
tempData
:
Array
<
any
>
=
[];
if
(
typeof
(
this
.
value
)
===
'string'
){
tempData
=
JSON
.
parse
(
this
.
value
);
}
else
{
tempData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
value
));
}
tempData
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
if
(
index
>
0
){
returnStr
+=
"、"
;
}
returnStr
+=
item
.
srfmajortext
;
})
return
returnStr
;
}
else
{
return
""
;
}
}
}
</
script
>
<
style
lang=
'less'
>
@import "./app-column-format.less";
</
style
>
\ No newline at end of file
app_web/src/components/login/login.vue
浏览文件 @
50b83c3f
...
...
@@ -133,8 +133,12 @@ export default class Login extends Vue {
post
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
const
data
=
response
.
data
;
if
(
data
&&
data
.
token
){
localStorage
.
setItem
(
'token'
,
data
.
token
);
}
if
(
data
&&
data
.
user
){
localStorage
.
setItem
(
'user'
,
JSON
.
stringify
(
data
.
user
));
}
const
url
:
any
=
this
.
$route
.
query
.
redirect
?
this
.
$route
.
query
.
redirect
:
'*'
;
this
.
$router
.
push
({
path
:
url
});
}
...
...
app_web/src/utils/auth-guard/auth-guard.ts
浏览文件 @
50b83c3f
...
...
@@ -53,8 +53,18 @@ export class AuthGuard {
const
get
:
Promise
<
any
>
=
Http
.
getInstance
().
get
(
url
);
get
.
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
===
200
)
{
cons
t
{
data
}:
{
data
:
any
}
=
response
;
le
t
{
data
}:
{
data
:
any
}
=
response
;
if
(
data
)
{
// token认证把用户信息放入应用级数据
if
(
localStorage
.
getItem
(
'user'
)){
let
user
:
any
=
JSON
.
parse
(
localStorage
.
getItem
(
'user'
)
as
string
);
let
localAppData
:
any
=
{};
if
(
user
.
sessionParams
){
localAppData
=
{
context
:
user
.
sessionParams
};
Object
.
assign
(
localAppData
,
data
);
}
data
=
JSON
.
parse
(
JSON
.
stringify
(
localAppData
));
}
router
.
app
.
$store
.
commit
(
'addAppData'
,
data
);
// 提交统一资源数据
router
.
app
.
$store
.
dispatch
(
'unifiedresource/commitResourceData'
,
data
);
...
...
app_web/src/widgets/sys-permission/main-grid/main-grid-base.vue
浏览文件 @
50b83c3f
...
...
@@ -13,6 +13,9 @@
@row-class-name="onRowClassName($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
无数据
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</
template
>
...
...
@@ -67,6 +70,8 @@
</div>
</poptip>
</span>
<span
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
...
...
app_web/src/widgets/sys-role-permission/main-grid/main-grid-base.vue
浏览文件 @
50b83c3f
...
...
@@ -13,6 +13,9 @@
@row-class-name="onRowClassName($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
无数据
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</
template
>
...
...
@@ -72,6 +75,8 @@
</div>
</poptip>
</span>
<span
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
...
...
app_web/src/widgets/sys-role/main-grid/main-grid-base.vue
浏览文件 @
50b83c3f
...
...
@@ -13,6 +13,9 @@
@row-class-name="onRowClassName($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
无数据
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</
template
>
...
...
@@ -65,6 +68,8 @@
</div>
</poptip>
</span>
<span
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
...
...
app_web/src/widgets/sys-user-role/main-grid/main-grid-base.vue
浏览文件 @
50b83c3f
...
...
@@ -13,6 +13,9 @@
@row-class-name="onRowClassName($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
无数据
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</
template
>
...
...
@@ -72,6 +75,8 @@
</div>
</poptip>
</span>
<span
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
...
...
app_web/src/widgets/sys-user/main-grid/main-grid-base.vue
浏览文件 @
50b83c3f
...
...
@@ -13,6 +13,9 @@
@row-class-name="onRowClassName($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
无数据
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
</
template
>
...
...
@@ -58,6 +61,8 @@
</div>
</poptip>
</span>
<span
class=
"batch-toolbar"
>
</span>
<span
class=
"page-button"
><i-button
icon=
"md-refresh"
:title=
"$t('app.gridpage.refresh')"
@
click=
"pageRefresh()"
></i-button></span>
<span>
{{$t('app.gridpage.show')}}
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SYS_PERMISSIONServiceImpl.java
浏览文件 @
50b83c3f
...
...
@@ -48,7 +48,6 @@ public class SYS_PERMISSIONServiceImpl extends ServiceImpl<SYS_PERMISSIONMapper,
@Lazy
private
cn
.
ibizlab
.
core
.
uaa
.
service
.
ISYS_ROLE_PERMISSIONService
sysRolePermissionService
;
private
int
batchSize
=
500
;
@Override
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SYS_PSAPPMENUITEMServiceImpl.java
浏览文件 @
50b83c3f
...
...
@@ -45,7 +45,6 @@ import org.springframework.util.StringUtils;
public
class
SYS_PSAPPMENUITEMServiceImpl
extends
ServiceImpl
<
SYS_PSAPPMENUITEMMapper
,
SYS_PSAPPMENUITEM
>
implements
ISYS_PSAPPMENUITEMService
{
private
int
batchSize
=
500
;
@Override
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SYS_PSDEOPPRIVServiceImpl.java
浏览文件 @
50b83c3f
...
...
@@ -45,7 +45,6 @@ import org.springframework.util.StringUtils;
public
class
SYS_PSDEOPPRIVServiceImpl
extends
ServiceImpl
<
SYS_PSDEOPPRIVMapper
,
SYS_PSDEOPPRIV
>
implements
ISYS_PSDEOPPRIVService
{
private
int
batchSize
=
500
;
@Override
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SYS_PSSYSTEMServiceImpl.java
浏览文件 @
50b83c3f
...
...
@@ -45,7 +45,6 @@ import org.springframework.util.StringUtils;
public
class
SYS_PSSYSTEMServiceImpl
extends
ServiceImpl
<
SYS_PSSYSTEMMapper
,
SYS_PSSYSTEM
>
implements
ISYS_PSSYSTEMService
{
private
int
batchSize
=
500
;
@Override
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SYS_PSSYSUNIRESServiceImpl.java
浏览文件 @
50b83c3f
...
...
@@ -45,7 +45,6 @@ import org.springframework.util.StringUtils;
public
class
SYS_PSSYSUNIRESServiceImpl
extends
ServiceImpl
<
SYS_PSSYSUNIRESMapper
,
SYS_PSSYSUNIRES
>
implements
ISYS_PSSYSUNIRESService
{
private
int
batchSize
=
500
;
@Override
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SYS_ROLEServiceImpl.java
浏览文件 @
50b83c3f
...
...
@@ -51,7 +51,6 @@ public class SYS_ROLEServiceImpl extends ServiceImpl<SYS_ROLEMapper, SYS_ROLE> i
@Lazy
private
cn
.
ibizlab
.
core
.
uaa
.
service
.
ISYS_USER_ROLEService
sysUserRoleService
;
private
int
batchSize
=
500
;
@Override
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SYS_ROLE_PERMISSIONServiceImpl.java
浏览文件 @
50b83c3f
...
...
@@ -44,7 +44,6 @@ import org.springframework.util.StringUtils;
@Service
(
"SYS_ROLE_PERMISSIONServiceImpl"
)
public
class
SYS_ROLE_PERMISSIONServiceImpl
extends
ServiceImpl
<
SYS_ROLE_PERMISSIONMapper
,
SYS_ROLE_PERMISSION
>
implements
ISYS_ROLE_PERMISSIONService
{
@Autowired
@Lazy
private
cn
.
ibizlab
.
core
.
uaa
.
service
.
ISYS_PERMISSIONService
sysPermissionService
;
...
...
@@ -81,6 +80,7 @@ public class SYS_ROLE_PERMISSIONServiceImpl extends ServiceImpl<SYS_ROLE_PERMISS
@Override
public
SYS_ROLE_PERMISSION
getDraft
(
SYS_ROLE_PERMISSION
et
)
{
fillParentData
(
et
);
return
et
;
}
...
...
@@ -96,6 +96,7 @@ public class SYS_ROLE_PERMISSIONServiceImpl extends ServiceImpl<SYS_ROLE_PERMISS
@Override
public
void
createBatch
(
List
<
SYS_ROLE_PERMISSION
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveBatch
(
list
,
batchSize
);
}
...
...
@@ -126,6 +127,7 @@ public class SYS_ROLE_PERMISSIONServiceImpl extends ServiceImpl<SYS_ROLE_PERMISS
@Override
public
void
saveBatch
(
List
<
SYS_ROLE_PERMISSION
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveOrUpdateBatch
(
list
,
batchSize
);
}
...
...
@@ -141,6 +143,7 @@ public class SYS_ROLE_PERMISSIONServiceImpl extends ServiceImpl<SYS_ROLE_PERMISS
@Override
public
void
updateBatch
(
List
<
SYS_ROLE_PERMISSION
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
updateBatchById
(
list
,
batchSize
);
}
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SYS_USERServiceImpl.java
浏览文件 @
50b83c3f
...
...
@@ -48,7 +48,6 @@ public class SYS_USERServiceImpl extends ServiceImpl<SYS_USERMapper, SYS_USER> i
@Lazy
private
cn
.
ibizlab
.
core
.
uaa
.
service
.
ISYS_USER_ROLEService
sysUserRoleService
;
private
int
batchSize
=
500
;
@Override
...
...
ibzuaa-core/src/main/java/cn/ibizlab/core/uaa/service/impl/SYS_USER_ROLEServiceImpl.java
浏览文件 @
50b83c3f
...
...
@@ -44,7 +44,6 @@ import org.springframework.util.StringUtils;
@Service
(
"SYS_USER_ROLEServiceImpl"
)
public
class
SYS_USER_ROLEServiceImpl
extends
ServiceImpl
<
SYS_USER_ROLEMapper
,
SYS_USER_ROLE
>
implements
ISYS_USER_ROLEService
{
@Autowired
@Lazy
private
cn
.
ibizlab
.
core
.
uaa
.
service
.
ISYS_ROLEService
sysRoleService
;
...
...
@@ -61,6 +60,7 @@ public class SYS_USER_ROLEServiceImpl extends ServiceImpl<SYS_USER_ROLEMapper, S
@Override
public
SYS_USER_ROLE
getDraft
(
SYS_USER_ROLE
et
)
{
fillParentData
(
et
);
return
et
;
}
...
...
@@ -76,6 +76,7 @@ public class SYS_USER_ROLEServiceImpl extends ServiceImpl<SYS_USER_ROLEMapper, S
@Override
public
void
updateBatch
(
List
<
SYS_USER_ROLE
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
updateBatchById
(
list
,
batchSize
);
}
...
...
@@ -103,6 +104,7 @@ public class SYS_USER_ROLEServiceImpl extends ServiceImpl<SYS_USER_ROLEMapper, S
@Override
public
void
createBatch
(
List
<
SYS_USER_ROLE
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveBatch
(
list
,
batchSize
);
}
...
...
@@ -141,6 +143,7 @@ public class SYS_USER_ROLEServiceImpl extends ServiceImpl<SYS_USER_ROLEMapper, S
@Override
public
void
saveBatch
(
List
<
SYS_USER_ROLE
>
list
)
{
list
.
forEach
(
item
->
fillParentData
(
item
));
saveOrUpdateBatch
(
list
,
batchSize
);
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录