Commit d1da663a authored by eddie.woo's avatar eddie.woo

水印

parent f6a94285
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)
......
......@@ -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 () {
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment