diff --git a/README.md b/README.md index 06628000..8c1b7606 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ ## 近期计划 - 完善地图插件 - 完善表格插件 -- 丰富自定义框图、装饰 +- 丰富自定义框图、挂件 - 丰富更多图表组件 ## 技术支持 diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/user/service/impl/UserServiceImpl.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/user/service/impl/UserServiceImpl.java index c4fe24c5..d1ddb9a8 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/user/service/impl/UserServiceImpl.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/modules/user/service/impl/UserServiceImpl.java @@ -55,6 +55,7 @@ public class UserServiceImpl implements UserService { //将登录信息缓存,默认一小时 if (cacheHelper.exist(username)) { map.put("token", cacheHelper.stringGet(username)); + map.put("username", username); } else { String uuid = GaeaUtils.UUID(); String token = jwtBean.createToken(username, uuid); diff --git a/report-core/src/main/resources/bootstrap-dev.yml b/report-core/src/main/resources/bootstrap-dev.yml index 19927478..7eae1aa9 100644 --- a/report-core/src/main/resources/bootstrap-dev.yml +++ b/report-core/src/main/resources/bootstrap-dev.yml @@ -10,6 +10,10 @@ server: spring: application: name: aj-report + #上传图片大小限制为10MB + servlet: + multipart: + max-file-size: 10MB # cloud: # nacos: # server-addr: 10.108.26.121:8848,10.108.26.145:8848 diff --git a/report-ui/src/api/common.js b/report-ui/src/api/common.js index d961b02b..3a87592a 100644 --- a/report-ui/src/api/common.js +++ b/report-ui/src/api/common.js @@ -1,7 +1,7 @@ /* - * @Author: zyk + * @Author: qianlishi * @Date: 2020-07-13 15:13:34 - * @Last Modified by: zyk + * @Last Modified by: qianlishi * @Last Modified time: 2021-03-15 13:28:28 */ diff --git a/report-ui/src/api/dict-data.js b/report-ui/src/api/dict-data.js index 1e800783..3031311b 100644 --- a/report-ui/src/api/dict-data.js +++ b/report-ui/src/api/dict-data.js @@ -1,7 +1,7 @@ /* - * @Author: zyk + * @Author: qianlishi * @Date: 2020-07-13 15:13:17 - * @Last Modified by: zyk + * @Last Modified by: qianlishi * @Last Modified time: 2020-12-15 15:34:34 */ import request from '@/utils/request' diff --git a/report-ui/src/api/report.js b/report-ui/src/api/report.js index a1d6d5d0..0f4a65f4 100644 --- a/report-ui/src/api/report.js +++ b/report-ui/src/api/report.js @@ -1,7 +1,7 @@ /* - * @Author: zyk + * @Author: qianlishi * @Date: 2020-07-13 15:13:37 - * @Last Modified by: zyk + * @Last Modified by: qianlishi * @Last Modified time: 2021-03-04 10:46:26 */ import request from '@/utils/request' diff --git a/report-ui/src/mixins/access.js b/report-ui/src/mixins/access.js index 805c9bb7..c32a39ac 100644 --- a/report-ui/src/mixins/access.js +++ b/report-ui/src/mixins/access.js @@ -6,6 +6,10 @@ export default { } }, computed: { + username: function(){ + var username = getItem('username') + return username + }, getUser: function(){ // var user = getItem('user'); var user =JSON.parse(localStorage.getItem('user')) diff --git a/report-ui/src/views/layout/components/Navbar.vue b/report-ui/src/views/layout/components/Navbar.vue index 10d5449f..05b0ece3 100644 --- a/report-ui/src/views/layout/components/Navbar.vue +++ b/report-ui/src/views/layout/components/Navbar.vue @@ -1,16 +1,12 @@