forked from github/dataease
fix: 修复系统变量显示问题
This commit is contained in:
parent
a203e2a058
commit
a4fcfc8005
@ -175,7 +175,7 @@ public class ChartDataManage {
|
|||||||
FilterTreeObj fieldCustomFilter = view.getCustomFilter();
|
FilterTreeObj fieldCustomFilter = view.getCustomFilter();
|
||||||
List<ChartViewFieldDTO> drill = new ArrayList<>(view.getDrillFields());
|
List<ChartViewFieldDTO> drill = new ArrayList<>(view.getDrillFields());
|
||||||
|
|
||||||
DatasetGroupInfoDTO table = datasetGroupManage.get(view.getTableId(), null);
|
DatasetGroupInfoDTO table = datasetGroupManage.getDatasetGroupInfoDTO(view.getTableId(), null);
|
||||||
if (table == null) {
|
if (table == null) {
|
||||||
DEException.throwException(ResultCode.DATA_IS_WRONG.code(), Translator.get("i18n_no_ds"));
|
DEException.throwException(ResultCode.DATA_IS_WRONG.code(), Translator.get("i18n_no_ds"));
|
||||||
}
|
}
|
||||||
|
@ -371,6 +371,10 @@ public class DatasetGroupManage {
|
|||||||
return dto;
|
return dto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public DatasetGroupInfoDTO getDatasetGroupInfoDTO(Long id, String type) throws Exception {
|
||||||
|
return get(id, type);
|
||||||
|
}
|
||||||
|
|
||||||
public DatasetGroupInfoDTO get(Long id, String type) throws Exception {
|
public DatasetGroupInfoDTO get(Long id, String type) throws Exception {
|
||||||
CoreDatasetGroup coreDatasetGroup = coreDatasetGroupMapper.selectById(id);
|
CoreDatasetGroup coreDatasetGroup = coreDatasetGroupMapper.selectById(id);
|
||||||
if (coreDatasetGroup == null) {
|
if (coreDatasetGroup == null) {
|
||||||
|
@ -20,8 +20,10 @@ public class DeWebSocketHandlerDecorator extends WebSocketHandlerDecorator {
|
|||||||
public void afterConnectionEstablished(WebSocketSession session) throws Exception {
|
public void afterConnectionEstablished(WebSocketSession session) throws Exception {
|
||||||
Optional.ofNullable(session.getPrincipal()).ifPresent(principal -> {
|
Optional.ofNullable(session.getPrincipal()).ifPresent(principal -> {
|
||||||
String name = principal.getName();
|
String name = principal.getName();
|
||||||
Long userId = Long.parseLong(name);
|
if(name != null){
|
||||||
WsUtil.onLine(userId);
|
Long userId = Long.parseLong(name);
|
||||||
|
WsUtil.onLine(userId);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
super.afterConnectionEstablished(session);
|
super.afterConnectionEstablished(session);
|
||||||
}
|
}
|
||||||
@ -30,8 +32,10 @@ public class DeWebSocketHandlerDecorator extends WebSocketHandlerDecorator {
|
|||||||
public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception {
|
public void afterConnectionClosed(WebSocketSession session, CloseStatus closeStatus) throws Exception {
|
||||||
Optional.ofNullable(session.getPrincipal()).ifPresent(principal -> {
|
Optional.ofNullable(session.getPrincipal()).ifPresent(principal -> {
|
||||||
String name = principal.getName();
|
String name = principal.getName();
|
||||||
Long userId = Long.parseLong(name);
|
if(name != null){
|
||||||
WsUtil.offLine(userId);
|
Long userId = Long.parseLong(name);
|
||||||
|
WsUtil.offLine(userId);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
super.afterConnectionClosed(session, closeStatus);
|
super.afterConnectionClosed(session, closeStatus);
|
||||||
|
@ -190,7 +190,6 @@ const callbackExport = () => {
|
|||||||
const downLoadAll = () => {
|
const downLoadAll = () => {
|
||||||
if (multipleSelection.value.length === 0) {
|
if (multipleSelection.value.length === 0) {
|
||||||
tableData.value.forEach(item => {
|
tableData.value.forEach(item => {
|
||||||
console.log(item.id)
|
|
||||||
downloadFile(item.id)
|
downloadFile(item.id)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
const blob = new Blob([res], { type: 'application/vnd.ms-excel' })
|
const blob = new Blob([res], { type: 'application/vnd.ms-excel' })
|
||||||
|
Loading…
Reference in New Issue
Block a user