Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
d1da663a
Commit
d1da663a
authored
Apr 16, 2019
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
水印
parent
f6a94285
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
UserController.java
...main/java/pwc/taxtech/atms/controller/UserController.java
+7
-1
app.js
atms-web/src/main/webapp/Scripts/app.js
+8
-0
index.html
atms-web/src/main/webapp/WEB-INF/templates/index.html
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/UserController.java
View file @
d1da663a
package
pwc
.
taxtech
.
atms
.
controller
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -244,7 +245,12 @@ public class UserController {
public
@ResponseBody
UserDto
getUserByName
(
@RequestBody
UserDto
userParam
)
{
return
userRoleService
.
GetUserByUserName
(
userParam
);
UserDto
dto
=
userRoleService
.
GetUserByUserName
(
userParam
);
if
(
null
!=
dto
)
{
// 去掉password字段,安全问题 不需要返回给前端
dto
.
setPassword
(
StringUtils
.
EMPTY
);
}
return
dto
;
}
@RequestMapping
(
value
=
"downloadFile/get"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
...
...
atms-web/src/main/webapp/Scripts/app.js
View file @
d1da663a
...
...
@@ -358,6 +358,14 @@ var app = angular.module('app', ['ui.tree', 'ui.bootstrap', 'ui.bootstrap.tpls',
}
};
$rootScope
.
changeLanguage
(
region
);
waterMark
({
systemId
:
'2500'
,
//当前用户ID
userId
:
loginContext
.
userId
,
textStyle
:
'rgba(0,0,0,0.15)'
,
containerEl
:
document
.
querySelector
(
'body'
)
});
// publish unbeforeunload event to child scopes
$scope
.
onbeforeunload
=
function
()
{
...
...
atms-web/src/main/webapp/WEB-INF/templates/index.html
View file @
d1da663a
...
...
@@ -116,8 +116,8 @@
<script
type=
"text/javascript"
src=
"bundles/ivh-treeview.js"
></script>
<script
type=
"text/javascript"
src=
"bundles/ui-select.js"
></script>
<script
type=
"text/javascript"
src=
"bundles/month-picker.js"
></script>
<script
src=
"http://sec-aegisfe.didistatic.com/static/aegisfe/water-mark1.0.js"
></script>
<script
type=
"text/javascript"
src=
"https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.10.1/xlsx.full.min.js"
></script>
<!--<script type="text/javascript" src="bundles/hubs.js">-->
<script
type=
"text/javascript"
>
GC
.
Spread
.
Sheets
.
LicenseKey
=
constant
.
regesterInformation
.
userKey
;
...
...
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