Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
31fc8a95
Commit
31fc8a95
authored
Dec 17, 2019
by
trumansdo
Browse files
no message
parent
9815183f
Changes
4
Hide whitespace changes
Inline
Side-by-side
plus-admin/admin-console/src/main/java/com/ibeetl/admin/console/service/UserConsoleService.java
View file @
31fc8a95
...
@@ -161,7 +161,7 @@ public class UserConsoleService extends CoreBaseService<CoreUser> {
...
@@ -161,7 +161,7 @@ public class UserConsoleService extends CoreBaseService<CoreUser> {
public
void
deleteUserRoles
(
List
<
Long
>
ids
)
{
public
void
deleteUserRoles
(
List
<
Long
>
ids
)
{
// 考虑到这个操作较少使用,就不做批处理优化了
// 考虑到这个操作较少使用,就不做批处理优化了
for
(
Long
id
:
ids
)
{
for
(
Long
id
:
ids
)
{
sqlManager
.
deleteById
(
CoreUserRole
.
class
,
id
);
sqlManager
.
deleteById
(
id
);
}
}
}
}
...
...
plus-admin/admin-core/src/main/java/com/ibeetl/admin/core/entity/DictType.java
View file @
31fc8a95
...
@@ -4,9 +4,10 @@ import lombok.Data;
...
@@ -4,9 +4,10 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
/**
/**
* 专门用于前端UI下拉选择器的字典数据返回类型,与{@link CoreDict} 不同,它是业务中的类。
* 用于数据库表的字典字段映射到本对象中的value字段<br>
* 用于数据库表的字典字段映射到本对象中的value字段<br>
* pojo中字典字段必须使用该类定义<br>
* pojo中字典字段必须使用该类定义<br>
* 处理最终的字典值由{@link com.ibeetl.admin.core.service.CoreBaseService#processDictField} 方法提供
* 处理最终的字典值由{@link com.ibeetl.admin.core.service.CoreBaseService#processDictField} 方法提供
<br/>
*/
*/
@Data
@Data
@NoArgsConstructor
@NoArgsConstructor
...
...
plus-admin/admin-core/src/main/java/com/ibeetl/admin/core/web/DictDataElController.java
View file @
31fc8a95
package
com.ibeetl.admin.core.web
;
package
com.ibeetl.admin.core.web
;
import
com.ibeetl.admin.core.annotation.RequestBodyPlus
;
import
com.ibeetl.admin.core.entity.CoreDict
;
import
com.ibeetl.admin.core.entity.CoreDict
;
import
com.ibeetl.admin.core.entity.DictType
;
import
com.ibeetl.admin.core.entity.DictType
;
import
com.ibeetl.admin.core.service.CoreDictService
;
import
com.ibeetl.admin.core.service.CoreDictService
;
...
@@ -9,6 +10,7 @@ import java.util.List;
...
@@ -9,6 +10,7 @@ import java.util.List;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
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
;
...
@@ -22,14 +24,10 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -22,14 +24,10 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping
(
value
=
"/core/dicts"
)
@RequestMapping
(
value
=
"/core/dicts"
)
public
class
DictDataElController
{
public
class
DictDataElController
{
@Autowired
CorePlatformService
platformService
;
@Autowired
CoreDictService
dictService
;
@Autowired
DictTypeService
dictTypeService
;
@Autowired
DictTypeService
dictTypeService
;
/**
/**
*
查看
字典类型
对应的列表
*
根据
字典类型
type,获取所有字典数据并返回
*
*
* @param type
* @param type
* @return
* @return
...
...
ve-admin/admin-web/src/views/users/index.vue
View file @
31fc8a95
<!--
<!--
* @Author: 一日看尽长安花
* @Author: 一日看尽长安花
* @since: 2019-10-12 15:43:18
* @since: 2019-10-12 15:43:18
* @LastEditTime: 2019-1
1-30
2
2
:5
5:19
* @LastEditTime: 2019-1
2-17
2
0
:5
6:50
* @LastEditors: 一日看尽长安花
* @LastEditors: 一日看尽长安花
* @Description:
* @Description:
-->
-->
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
@
delete-data=
"deleteData"
@
delete-data=
"deleteData"
@
update-data=
"updateData"
@
update-data=
"updateData"
>
>
<!--
todo
待解决的问题:样式问题。猜测原因:应该是样式穿透问题,不能是scope -->
<!--
fixed
待解决的问题:样式问题。猜测原因:应该是样式穿透问题,不能是scope -->
<!-- 往搜索栏中添加搜索条件 -->
<!-- 往搜索栏中添加搜索条件 -->
<template
#filter-condition
="
{filterData:filterData}">
<template
#filter-condition
="
{filterData:filterData}">
<div
class=
"filter-item-container"
>
<div
class=
"filter-item-container"
>
...
@@ -65,7 +65,7 @@ import TableViews from '@/components/TableViews';
...
@@ -65,7 +65,7 @@ import TableViews from '@/components/TableViews';
import
{
users
,
usersMetedata
}
from
'
@/api/user
'
;
import
{
users
,
usersMetedata
}
from
'
@/api/user
'
;
export
default
{
export
default
{
name
:
'
Demo2
'
,
name
:
'
CoreUsers
'
,
components
:
{
TableViews
},
components
:
{
TableViews
},
props
:
{},
props
:
{},
data
()
{
data
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment