Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
b1e5d73b
Commit
b1e5d73b
authored
Oct 13, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
48603e77
753cdc8b
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1009 additions
and
230 deletions
+1009
-230
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
...al-manager-ui/admin/src/views/siteArrange/siteArrange.vue
+4
-1
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditUser.vue
...IsSet/components/permissionsModel/components/EditUser.vue
+21
-12
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/addUser.vue
...mIsSet/components/permissionsModel/components/addUser.vue
+7
-8
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/userManagement.vue
...tformIsSet/components/permissionsModel/userManagement.vue
+1
-1
portal-manager/db/add.sql
portal-manager/db/add.sql
+9
-1
portal-manager/doc/政务一体化门户.docx
portal-manager/doc/政务一体化门户.docx
+0
-0
portal-manager/src/main/java/com/mortals/xhx/module/user/model/UserModelCollectEntity.java
...mortals/xhx/module/user/model/UserModelCollectEntity.java
+21
-24
portal-manager/src/main/java/com/mortals/xhx/module/user/model/UserModelCollectQuery.java
.../mortals/xhx/module/user/model/UserModelCollectQuery.java
+652
-0
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserModelCollectController.java
...rtals/xhx/module/user/web/UserModelCollectController.java
+17
-4
portal-manager/src/main/resources/sqlmap/module/user/UserModelCollectMapper.xml
...n/resources/sqlmap/module/user/UserModelCollectMapper.xml
+277
-179
No files found.
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
View file @
b1e5d73b
...
@@ -142,7 +142,9 @@ export default {
...
@@ -142,7 +142,9 @@ export default {
methods
:
{
methods
:
{
// 获取用户常用站点列表
// 获取用户常用站点列表
async
getCollect
()
{
async
getCollect
()
{
let
res
=
await
getCollect
();
let
res
=
await
getCollect
({
siteId
:
this
.
siteId
,
});
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
this
.
collectList
=
res
.
data
;
this
.
collectList
=
res
.
data
;
}
}
...
@@ -196,6 +198,7 @@ export default {
...
@@ -196,6 +198,7 @@ export default {
async
saveCollect
()
{
async
saveCollect
()
{
let
modelIds
=
this
.
collectList
.
map
((
v
)
=>
v
.
id
).
join
(
"
,
"
);
let
modelIds
=
this
.
collectList
.
map
((
v
)
=>
v
.
id
).
join
(
"
,
"
);
let
res
=
await
saveCollect
({
let
res
=
await
saveCollect
({
siteId
:
this
.
siteId
,
modelIds
,
modelIds
,
});
});
// if (res.data.code == 1) {
// if (res.data.code == 1) {
...
...
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditUser.vue
View file @
b1e5d73b
...
@@ -46,10 +46,10 @@
...
@@ -46,10 +46,10 @@
<a-form-model-item
label=
"用户角色"
prop=
"roleId"
>
<a-form-model-item
label=
"用户角色"
prop=
"roleId"
>
<a-select
v-model=
"form.roleId"
placeholder=
"请选择角色"
>
<a-select
v-model=
"form.roleId"
placeholder=
"请选择角色"
>
<a-select-option
<a-select-option
v-for=
"
v
in userDict"
v-for=
"
(v, key)
in userDict"
:key=
"
v.
key"
:key=
"key"
:value=
"
v.
key"
:value=
"key"
>
{{
v
.
value
}}
</a-select-option
>
{{
v
}}
</a-select-option
>
>
</a-select>
</a-select>
</a-form-model-item>
</a-form-model-item>
...
@@ -105,9 +105,9 @@ export default {
...
@@ -105,9 +105,9 @@ export default {
},
},
props
:
{
props
:
{
userDict
:
{
userDict
:
{
type
:
Array
,
type
:
Object
,
default
:
()
=>
{
default
:
()
=>
{
return
[]
;
return
{}
;
},
},
},
},
visibleUserEdit
:
{
visibleUserEdit
:
{
...
@@ -153,12 +153,22 @@ export default {
...
@@ -153,12 +153,22 @@ export default {
// 编辑
// 编辑
onEdit
(
row
)
{
onEdit
(
row
)
{
this
.
form
=
{
...
row
};
this
.
form
=
{
...
row
};
this
.
form
.
areaNames
=
JSON
.
parse
(
this
.
form
.
areaNames
);
try
{
if
(
this
.
form
.
areaNames
.
length
)
{
this
.
form
.
areaNames
=
JSON
.
parse
(
this
.
form
.
areaNames
);
this
.
selectAreaList
=
this
.
form
.
areaNames
.
map
((
v
)
=>
v
.
label
);
}
catch
(
err
)
{
this
.
form
.
areaNames
=
this
.
form
.
areaNames
;
console
.
log
(
typeof
this
.
form
.
areaNames
);
}
if
(
typeof
this
.
form
.
areaNames
==
"
string
"
)
{
this
.
selectAreaList
=
[
this
.
form
.
areaNames
];
}
else
{
}
else
{
this
.
selectAreaList
=
[];
if
(
this
.
form
.
areaNames
.
length
)
{
this
.
selectAreaList
=
this
.
form
.
areaNames
.
map
((
v
)
=>
v
.
label
);
}
else
{
this
.
selectAreaList
=
[];
}
}
}
// this.form.areaCodes = this.form.areaCodes.split(",");
// this.form.areaCodes = this.form.areaCodes.split(",");
this
.
form
.
loginPwd
&&
this
.
$delete
(
this
.
form
,
"
loginPwd
"
);
this
.
form
.
loginPwd
&&
this
.
$delete
(
this
.
form
,
"
loginPwd
"
);
},
},
...
@@ -216,5 +226,4 @@ export default {
...
@@ -216,5 +226,4 @@ export default {
};
};
</
script
>
</
script
>
<
style
>
<
style
></
style
>
</
style
>
\ No newline at end of file
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/addUser.vue
View file @
b1e5d73b
...
@@ -70,10 +70,10 @@
...
@@ -70,10 +70,10 @@
<a-form-model-item
label=
"用户角色"
prop=
"roleId"
>
<a-form-model-item
label=
"用户角色"
prop=
"roleId"
>
<a-select
v-model=
"form.roleId"
placeholder=
"请选择角色"
>
<a-select
v-model=
"form.roleId"
placeholder=
"请选择角色"
>
<a-select-option
<a-select-option
v-for=
"
v
in userDict"
v-for=
"
(v, key)
in userDict"
:key=
"
v.
key"
:key=
"key"
:value=
"
v.
key"
:value=
"key"
>
{{
v
.
value
}}
</a-select-option
>
{{
v
}}
</a-select-option
>
>
</a-select>
</a-select>
</a-form-model-item>
</a-form-model-item>
...
@@ -135,9 +135,9 @@ export default {
...
@@ -135,9 +135,9 @@ export default {
},
},
props
:
{
props
:
{
userDict
:
{
userDict
:
{
type
:
Array
,
type
:
Object
,
default
:
()
=>
{
default
:
()
=>
{
return
[]
;
return
{}
;
},
},
},
},
visibleUser
:
{
visibleUser
:
{
...
@@ -229,5 +229,4 @@ export default {
...
@@ -229,5 +229,4 @@ export default {
};
};
</
script
>
</
script
>
<
style
>
<
style
></
style
>
</
style
>
\ No newline at end of file
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/userManagement.vue
View file @
b1e5d73b
...
@@ -170,7 +170,7 @@ export default {
...
@@ -170,7 +170,7 @@ export default {
},
},
formTitle
:
undefined
,
//表单title
formTitle
:
undefined
,
//表单title
sourceInfoForm
:
{},
sourceInfoForm
:
{},
userDict
:
[]
,
// 角色数据
userDict
:
{}
,
// 角色数据
userform
:
{
userform
:
{
roleId
:
undefined
,
roleId
:
undefined
,
searchVal
:
undefined
,
searchVal
:
undefined
,
...
...
portal-manager/db/add.sql
View file @
b1e5d73b
...
@@ -53,4 +53,12 @@ CREATE TABLE `mortals_xhx_user_model_collect` (
...
@@ -53,4 +53,12 @@ CREATE TABLE `mortals_xhx_user_model_collect` (
`modelIds`
varchar
(
128
)
DEFAULT
NULL
COMMENT
'收藏模块'
,
`modelIds`
varchar
(
128
)
DEFAULT
NULL
COMMENT
'收藏模块'
,
`createTime`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
`createTime`
datetime
DEFAULT
NULL
COMMENT
'创建时间'
,
PRIMARY
KEY
(
`id`
)
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'用户模块收藏'
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
COMMENT
=
'用户模块收藏'
;
\ No newline at end of file
-- ----------------------------
2023
-
10
-
10
-- ----------------------------
ALTER
TABLE
`mortals_xhx_user_model_collect`
ADD
COLUMN
`siteId`
bigint
(
20
)
DEFAULT
NULL
COMMENT
'站点ID'
;
UPDATE
mortals_xhx_user_model_collect
SET
siteId
=
1
;
\ No newline at end of file
portal-manager/doc/政务一体化门户.docx
View file @
b1e5d73b
No preview for this file type
portal-manager/src/main/java/com/mortals/xhx/module/user/model/UserModelCollectEntity.java
View file @
b1e5d73b
package
com.mortals.xhx.module.user.model
;
package
com.mortals.xhx.module.user.model
;
import
java.util.List
;
import
java.util.ArrayList
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.mortals.framework.annotation.Excel
;
import
com.mortals.framework.model.BaseEntityLong
;
import
com.mortals.xhx.module.user.model.vo.UserModelCollectVo
;
import
com.mortals.xhx.module.user.model.vo.UserModelCollectVo
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
* 用户模块收藏实体对象
* 用户模块收藏实体对象
*
*
* @author zxfei
* @author zxfei
* @date 2023-08-29
* @date 2023-10-10
*/
*/
@Data
@Data
public
class
UserModelCollectEntity
extends
UserModelCollectVo
{
public
class
UserModelCollectEntity
extends
UserModelCollectVo
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
* 用户ID,主键,自增长
* 用户ID,主键,自增长
*/
*/
private
Long
userId
;
private
Long
userId
;
/**
/**
* 登录名
* 登录名
*/
*/
private
String
realName
;
private
String
realName
;
/**
/**
* 收藏模块
* 收藏模块
*/
*/
private
String
modelIds
;
private
String
modelIds
;
/**
* 站点id
*/
private
Long
siteId
;
@Override
@Override
public
int
hashCode
()
{
public
int
hashCode
()
{
return
this
.
getId
().
hashCode
();
return
this
.
getId
().
hashCode
();
}
}
@Override
@Override
public
boolean
equals
(
Object
obj
)
{
public
boolean
equals
(
Object
obj
)
{
...
@@ -38,18 +37,16 @@ public class UserModelCollectEntity extends UserModelCollectVo {
...
@@ -38,18 +37,16 @@ public class UserModelCollectEntity extends UserModelCollectVo {
if
(
obj
instanceof
UserModelCollectEntity
)
{
if
(
obj
instanceof
UserModelCollectEntity
)
{
UserModelCollectEntity
tmp
=
(
UserModelCollectEntity
)
obj
;
UserModelCollectEntity
tmp
=
(
UserModelCollectEntity
)
obj
;
if
(
this
.
getId
()
==
tmp
.
getId
())
{
if
(
this
.
getId
()
==
tmp
.
getId
())
{
return
true
;
return
true
;
}
}
}
}
return
false
;
return
false
;
}
}
public
void
initAttrValue
(){
public
void
initAttrValue
(){
this
.
userId
=
null
;
this
.
userId
=
-
1L
;
this
.
realName
=
""
;
this
.
modelIds
=
""
;
this
.
realName
=
""
;
this
.
siteId
=
null
;
this
.
modelIds
=
""
;
}
}
}
}
\ No newline at end of file
portal-manager/src/main/java/com/mortals/xhx/module/user/model/UserModelCollectQuery.java
View file @
b1e5d73b
This diff is collapsed.
Click to expand it.
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserModelCollectController.java
View file @
b1e5d73b
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mortals.framework.annotation.RepeatSubmit
;
import
com.mortals.framework.annotation.RepeatSubmit
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.service.IUser
;
import
com.mortals.framework.service.IUser
;
...
@@ -54,20 +55,27 @@ public class UserModelCollectController extends BaseCRUDJsonBodyMappingControlle
...
@@ -54,20 +55,27 @@ public class UserModelCollectController extends BaseCRUDJsonBodyMappingControlle
@PostMapping
({
"get"
})
@PostMapping
({
"get"
})
public
String
getCollect
()
{
@UnAuth
public
String
getCollect
(
@RequestBody
UserModelCollectEntity
query
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
();
Map
<
String
,
Object
>
model
=
new
HashMap
();
JSONObject
ret
=
new
JSONObject
();
JSONObject
ret
=
new
JSONObject
();
String
busiDesc
=
"查看"
+
this
.
getModuleDesc
();
String
busiDesc
=
"查看"
+
this
.
getModuleDesc
();
Context
context
=
this
.
getContext
();
Context
context
=
this
.
getContext
();
model
.
put
(
"data"
,
Collections
.
emptyList
());
model
.
put
(
"data"
,
Collections
.
emptyList
());
try
{
try
{
UserModelCollectEntity
query
=
new
UserModelCollectEntity
();
if
(
query
.
getSiteId
()==
null
){
query
.
setUserId
(
this
.
getCurUser
().
getId
());
throw
new
AppException
(
"站点ID不能为空"
);
UserModelCollectEntity
entity
=
this
.
service
.
selectOne
(
query
);
}
UserModelCollectEntity
temp
=
new
UserModelCollectEntity
();
temp
.
setUserId
(
this
.
getCurUser
().
getId
());
temp
.
setSiteId
(
query
.
getSiteId
());
UserModelCollectEntity
entity
=
this
.
service
.
selectOne
(
temp
);
if
(
entity
==
null
)
{
if
(
entity
==
null
)
{
entity
=
new
UserModelCollectEntity
();
entity
=
new
UserModelCollectEntity
();
entity
.
setUserId
(
this
.
getCurUser
().
getId
());
entity
.
setUserId
(
this
.
getCurUser
().
getId
());
entity
.
setRealName
(
this
.
getCurUser
().
getRealName
());
entity
.
setRealName
(
this
.
getCurUser
().
getRealName
());
entity
.
setSiteId
(
query
.
getSiteId
());
entity
.
setModelIds
(
""
);
entity
.
setModelIds
(
""
);
}
else
{
}
else
{
if
(
StringUtils
.
isNotEmpty
(
entity
.
getModelIds
())){
if
(
StringUtils
.
isNotEmpty
(
entity
.
getModelIds
())){
...
@@ -117,6 +125,7 @@ public class UserModelCollectController extends BaseCRUDJsonBodyMappingControlle
...
@@ -117,6 +125,7 @@ public class UserModelCollectController extends BaseCRUDJsonBodyMappingControlle
@Override
@Override
@PostMapping
({
"save"
})
@PostMapping
({
"save"
})
@RepeatSubmit
@RepeatSubmit
@UnAuth
public
String
save
(
@RequestBody
UserModelCollectEntity
entity
)
{
public
String
save
(
@RequestBody
UserModelCollectEntity
entity
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
();
Map
<
String
,
Object
>
model
=
new
HashMap
();
Context
context
=
this
.
getContext
();
Context
context
=
this
.
getContext
();
...
@@ -126,8 +135,12 @@ public class UserModelCollectController extends BaseCRUDJsonBodyMappingControlle
...
@@ -126,8 +135,12 @@ public class UserModelCollectController extends BaseCRUDJsonBodyMappingControlle
return
this
.
createFailJsonResp
(
"请选择要收藏的模块"
);
return
this
.
createFailJsonResp
(
"请选择要收藏的模块"
);
}
}
try
{
try
{
if
(
entity
.
getSiteId
()==
null
){
throw
new
AppException
(
"站点ID不能为空"
);
}
UserModelCollectEntity
query
=
new
UserModelCollectEntity
();
UserModelCollectEntity
query
=
new
UserModelCollectEntity
();
query
.
setUserId
(
this
.
getCurUser
().
getId
());
query
.
setUserId
(
this
.
getCurUser
().
getId
());
query
.
setSiteId
(
query
.
getSiteId
());
UserModelCollectEntity
temp
=
this
.
service
.
selectOne
(
query
);
UserModelCollectEntity
temp
=
this
.
service
.
selectOne
(
query
);
if
(
temp
==
null
)
{
if
(
temp
==
null
)
{
Class
<
UserModelCollectEntity
>
tClass
=
ReflectUtils
.
getClassGenricType
(
this
.
getClass
(),
1
);
Class
<
UserModelCollectEntity
>
tClass
=
ReflectUtils
.
getClassGenricType
(
this
.
getClass
(),
1
);
...
...
portal-manager/src/main/resources/sqlmap/module/user/UserModelCollectMapper.xml
View file @
b1e5d73b
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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