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
1f6561d8
Commit
1f6561d8
authored
Nov 13, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
e7e17b9b
5e2cc682
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
portal-manager-ui/admin/src/views/dataAdmin/dataAdmin.vue
portal-manager-ui/admin/src/views/dataAdmin/dataAdmin.vue
+4
-0
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserModelCollectController.java
...rtals/xhx/module/user/web/UserModelCollectController.java
+4
-7
No files found.
portal-manager-ui/admin/src/views/dataAdmin/dataAdmin.vue
View file @
1f6561d8
...
...
@@ -188,6 +188,10 @@ export default {
}
else
{
this
.
censusList
=
[];
this
.
active
=
"
CensusType_1
"
;
if
(
this
.
$route
.
path
!=
"
/home/dataManagement
"
)
{
console
.
log
(
1
);
this
.
$router
.
push
(
"
/home/dataManagement
"
);
}
}
}
},
...
...
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserModelCollectController.java
View file @
1f6561d8
...
...
@@ -4,7 +4,6 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mortals.framework.annotation.RepeatSubmit
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.Context
;
import
com.mortals.framework.service.IUser
;
...
...
@@ -55,7 +54,6 @@ public class UserModelCollectController extends BaseCRUDJsonBodyMappingControlle
@PostMapping
({
"get"
})
@UnAuth
public
String
getCollect
(
@RequestBody
UserModelCollectEntity
query
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
();
...
...
@@ -125,22 +123,21 @@ public class UserModelCollectController extends BaseCRUDJsonBodyMappingControlle
@Override
@PostMapping
({
"save"
})
@RepeatSubmit
@UnAuth
public
String
save
(
@RequestBody
UserModelCollectEntity
entity
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
();
Context
context
=
this
.
getContext
();
int
code
=
1
;
String
busiDesc
=
"保存"
+
this
.
getModuleDesc
();
if
(
StringUtils
.
isEmpty
(
entity
.
getModelIds
())){
return
this
.
createFailJsonResp
(
"请选择要收藏的模块"
);
}
//
if(StringUtils.isEmpty(entity.getModelIds())){
//
return this.createFailJsonResp("请选择要收藏的模块");
//
}
try
{
if
(
entity
.
getSiteId
()==
null
){
throw
new
AppException
(
"站点ID不能为空"
);
}
UserModelCollectEntity
query
=
new
UserModelCollectEntity
();
query
.
setUserId
(
this
.
getCurUser
().
getId
());
query
.
setSiteId
(
quer
y
.
getSiteId
());
query
.
setSiteId
(
entit
y
.
getSiteId
());
UserModelCollectEntity
temp
=
this
.
service
.
selectOne
(
query
);
if
(
temp
==
null
)
{
Class
<
UserModelCollectEntity
>
tClass
=
ReflectUtils
.
getClassGenricType
(
this
.
getClass
(),
1
);
...
...
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