options
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -21,7 +21,7 @@
|
|||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<gaea.version>2.0.0-SNAPSHOT</gaea.version>
|
<gaea.version>6.0.0-SNAPSHOT</gaea.version>
|
||||||
<gaea.security.version>1.0.0-SNAPSHOT</gaea.security.version>
|
<gaea.security.version>1.0.0-SNAPSHOT</gaea.security.version>
|
||||||
<gaea.export.version>1.0.0-SNAPSHOT</gaea.export.version>
|
<gaea.export.version>1.0.0-SNAPSHOT</gaea.export.version>
|
||||||
<gaea.generator.version>1.0.0-SNAPSHOT</gaea.generator.version>
|
<gaea.generator.version>1.0.0-SNAPSHOT</gaea.generator.version>
|
||||||
|
|||||||
@@ -36,7 +36,9 @@ public class TokenFilter implements Filter {
|
|||||||
HttpServletResponse response = (HttpServletResponse) servletResponse;
|
HttpServletResponse response = (HttpServletResponse) servletResponse;
|
||||||
String uri = request.getRequestURI();
|
String uri = request.getRequestURI();
|
||||||
|
|
||||||
if (!uri.startsWith("/login")) {
|
if (!uri.startsWith("/login")
|
||||||
|
&& !uri.startsWith("/static")
|
||||||
|
&& !uri.contains("index.html")) {
|
||||||
|
|
||||||
//获取token
|
//获取token
|
||||||
String authorization = request.getHeader("Authorization");
|
String authorization = request.getHeader("Authorization");
|
||||||
@@ -68,7 +70,7 @@ public class TokenFilter implements Filter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void error(HttpServletResponse response) throws IOException {
|
private void error(HttpServletResponse response) throws IOException {
|
||||||
ResponseBean responseBean = ResponseBean.builder().code("500").message("The Token has expired").build();
|
ResponseBean responseBean = ResponseBean.builder().code("50014").message("The Token has expired").build();
|
||||||
response.getWriter().print(JSONObject.toJSONString(responseBean));
|
response.getWriter().print(JSONObject.toJSONString(responseBean));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,6 +35,8 @@ public class ReportDashboardDto extends GaeaBaseDTO implements Serializable {
|
|||||||
/** 背景图片 */
|
/** 背景图片 */
|
||||||
private String backgroundImage;
|
private String backgroundImage;
|
||||||
|
|
||||||
|
private String previewImage;
|
||||||
|
|
||||||
/** 工作台中的辅助线 */
|
/** 工作台中的辅助线 */
|
||||||
private String presetLine;
|
private String presetLine;
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ public class ReportDashboard extends GaeaBaseEntity {
|
|||||||
@ApiModelProperty(value = "背景图片")
|
@ApiModelProperty(value = "背景图片")
|
||||||
private String backgroundImage;
|
private String backgroundImage;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "列表缩略图")
|
||||||
|
private String previewImage;
|
||||||
|
|
||||||
@ApiModelProperty(value = "工作台中的辅助线")
|
@ApiModelProperty(value = "工作台中的辅助线")
|
||||||
private String presetLine;
|
private String presetLine;
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ public class ReportDashboardServiceImpl implements ReportDashboardService, Initi
|
|||||||
analysisData(value);
|
analysisData(value);
|
||||||
reportDashboardWidgetDto.setType(reportDashboardWidget.getType());
|
reportDashboardWidgetDto.setType(reportDashboardWidget.getType());
|
||||||
reportDashboardWidgetDto.setValue(value);
|
reportDashboardWidgetDto.setValue(value);
|
||||||
|
reportDashboardWidgetDto.setOptions(JSONObject.parseObject(reportDashboardWidget.getOptions()));
|
||||||
reportDashboardWidgetDtoList.add(reportDashboardWidgetDto);
|
reportDashboardWidgetDtoList.add(reportDashboardWidgetDto);
|
||||||
});
|
});
|
||||||
reportDashboardDto.setWidgets(reportDashboardWidgetDtoList);
|
reportDashboardDto.setWidgets(reportDashboardWidgetDtoList);
|
||||||
@@ -138,6 +139,7 @@ public class ReportDashboardServiceImpl implements ReportDashboardService, Initi
|
|||||||
reportDashboardWidget.setData(value.getData() != null ? JSONObject.toJSONString(value.getData()) : "");
|
reportDashboardWidget.setData(value.getData() != null ? JSONObject.toJSONString(value.getData()) : "");
|
||||||
reportDashboardWidget.setPosition(value.getPosition() != null ? JSONObject.toJSONString(value.getPosition()) : "");
|
reportDashboardWidget.setPosition(value.getPosition() != null ? JSONObject.toJSONString(value.getPosition()) : "");
|
||||||
reportDashboardWidget.setCollapse(value.getCollapse() != null ? JSONObject.toJSONString(value.getCollapse()) : "");
|
reportDashboardWidget.setCollapse(value.getCollapse() != null ? JSONObject.toJSONString(value.getCollapse()) : "");
|
||||||
|
reportDashboardWidget.setOptions(reportDashboardWidgetDto.getOptions() != null ? JSONObject.toJSONString(reportDashboardWidgetDto.getOptions()) : "");
|
||||||
reportDashboardWidget.setEnableFlag(1);
|
reportDashboardWidget.setEnableFlag(1);
|
||||||
reportDashboardWidget.setDeleteFlag(0);
|
reportDashboardWidget.setDeleteFlag(0);
|
||||||
reportDashboardWidget.setSort((long) (i + 1));
|
reportDashboardWidget.setSort((long) (i + 1));
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
package com.anjiplus.template.gaea.business.modules.dashboardwidget.controller.dto;
|
package com.anjiplus.template.gaea.business.modules.dashboardwidget.controller.dto;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -25,4 +26,9 @@ public class ReportDashboardWidgetDto implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private ReportDashboardWidgetValueDto value;
|
private ReportDashboardWidgetValueDto value;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* options
|
||||||
|
*/
|
||||||
|
private JSONObject options;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import java.io.Serializable;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @description 大屏看板数据渲染 dto
|
* @description 大屏看板数据渲染 dto,已弃用
|
||||||
* @author Raod
|
* @author Raod
|
||||||
* @date 2021-04-12 15:12:43.724
|
* @date 2021-04-12 15:12:43.724
|
||||||
**/
|
**/
|
||||||
@@ -30,6 +30,11 @@ public class ReportDashboardWidgetValueDto implements Serializable {
|
|||||||
/** 组件的大小位置属性json */
|
/** 组件的大小位置属性json */
|
||||||
private JSONObject position;
|
private JSONObject position;
|
||||||
|
|
||||||
|
private String options;
|
||||||
|
|
||||||
|
/** 自动刷新间隔秒 */
|
||||||
|
private Integer refreshSeconds;
|
||||||
|
|
||||||
/** 0--已禁用 1--已启用 DIC_NAME=ENABLE_FLAG */
|
/** 0--已禁用 1--已启用 DIC_NAME=ENABLE_FLAG */
|
||||||
private Integer enableFlag;
|
private Integer enableFlag;
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,11 @@ public class ReportDashboardWidget extends GaeaBaseEntity {
|
|||||||
@ApiModelProperty(value = "组件的大小位置属性json")
|
@ApiModelProperty(value = "组件的大小位置属性json")
|
||||||
private String position;
|
private String position;
|
||||||
|
|
||||||
|
private String options;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "自动刷新间隔秒")
|
||||||
|
private Integer refreshSeconds;
|
||||||
|
|
||||||
@ApiModelProperty(value = "0--已禁用 1--已启用 DIC_NAME=ENABLE_FLAG")
|
@ApiModelProperty(value = "0--已禁用 1--已启用 DIC_NAME=ENABLE_FLAG")
|
||||||
private Integer enableFlag;
|
private Integer enableFlag;
|
||||||
|
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ public class GaeaDictServiceImpl implements GaeaDictService {
|
|||||||
public List<GaeaDictItem> findItems(List<String> dictCodes) {
|
public List<GaeaDictItem> findItems(List<String> dictCodes) {
|
||||||
|
|
||||||
LambdaQueryWrapper<GaeaDictItem> gaeaDictItemQueryWrapper = Wrappers.lambdaQuery();
|
LambdaQueryWrapper<GaeaDictItem> gaeaDictItemQueryWrapper = Wrappers.lambdaQuery();
|
||||||
|
gaeaDictItemQueryWrapper.eq(GaeaDictItem::getEnabled, Enabled.YES.getValue());
|
||||||
if (!CollectionUtils.isEmpty(dictCodes)) {
|
if (!CollectionUtils.isEmpty(dictCodes)) {
|
||||||
gaeaDictItemQueryWrapper.in(GaeaDictItem::getDictCode, dictCodes);
|
gaeaDictItemQueryWrapper.in(GaeaDictItem::getDictCode, dictCodes);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ server:
|
|||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: aj-report
|
name: aj-report
|
||||||
# cloud:
|
# cloud:
|
||||||
# nacos:
|
# nacos:
|
||||||
# server-addr: 10.108.26.121:8848,10.108.26.145:8848
|
# server-addr: 10.108.26.121:8848,10.108.26.145:8848
|
||||||
# username: gaea
|
# username: gaea
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
<result property="height" column="height" />
|
<result property="height" column="height" />
|
||||||
<result property="backgroundColor" column="background_color" />
|
<result property="backgroundColor" column="background_color" />
|
||||||
<result property="backgroundImage" column="background_image" />
|
<result property="backgroundImage" column="background_image" />
|
||||||
|
<result property="previewImage" column="preview_image" />
|
||||||
<result property="presetLine" column="preset_line" />
|
<result property="presetLine" column="preset_line" />
|
||||||
<result property="refreshSeconds" column="refresh_seconds" />
|
<result property="refreshSeconds" column="refresh_seconds" />
|
||||||
<result property="enableFlag" column="enable_flag" />
|
<result property="enableFlag" column="enable_flag" />
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
<result property="data" column="data" />
|
<result property="data" column="data" />
|
||||||
<result property="collapse" column="collapse" />
|
<result property="collapse" column="collapse" />
|
||||||
<result property="position" column="position" />
|
<result property="position" column="position" />
|
||||||
|
<result property="refreshSeconds" column="refresh_seconds" />
|
||||||
<result property="enableFlag" column="enable_flag" />
|
<result property="enableFlag" column="enable_flag" />
|
||||||
<result property="deleteFlag" column="delete_flag" />
|
<result property="deleteFlag" column="delete_flag" />
|
||||||
<result property="sort" column="sort" />
|
<result property="sort" column="sort" />
|
||||||
|
|||||||
Reference in New Issue
Block a user