提交 5b60ea57 authored 作者: wangjiahao's avatar wangjiahao

Merge remote-tracking branch 'origin/main' into main

...@@ -121,9 +121,9 @@ public class ChartViewService { ...@@ -121,9 +121,9 @@ public class ChartViewService {
} }
data = datasourceProvider.getData(datasourceRequest); data = datasourceProvider.getData(datasourceRequest);
} else if (table.getMode() == 1) {// 抽取 } else if (table.getMode() == 1) {// 抽取
DataTableInfoDTO dataTableInfoDTO = new Gson().fromJson(table.getInfo(), DataTableInfoDTO.class); // DataTableInfoDTO dataTableInfoDTO = new Gson().fromJson(table.getInfo(), DataTableInfoDTO.class);
String tableName = dataTableInfoDTO.getTable() + "-" + table.getDataSourceId();// todo hBase table name maybe change // String tableName = dataTableInfoDTO.getTable() + "-" + table.getDataSourceId();// todo hBase table name maybe change
data = sparkCalc.getData(tableName, xAxis, yAxis, "tmp_" + view.getId().split("-")[0]); data = sparkCalc.getData(table.getId(), xAxis, yAxis, "tmp_" + view.getId().split("-")[0]);
} }
// 图表组件可再扩展 // 图表组件可再扩展
......
...@@ -491,7 +491,7 @@ public class ExtractDataService { ...@@ -491,7 +491,7 @@ public class ExtractDataService {
case 1: case 1:
return "Date"; return "Date";
case 2: case 2:
return "Long"; return "BigNumber";
default: default:
return "String"; return "String";
} }
......
...@@ -25,6 +25,7 @@ import org.springframework.stereotype.Service; ...@@ -25,6 +25,7 @@ import org.springframework.stereotype.Service;
import scala.Tuple2; import scala.Tuple2;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.math.BigDecimal;
import java.text.MessageFormat; import java.text.MessageFormat;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Base64; import java.util.Base64;
...@@ -80,7 +81,7 @@ public class SparkCalc { ...@@ -80,7 +81,7 @@ public class SparkCalc {
if (StringUtils.isEmpty(l)) { if (StringUtils.isEmpty(l)) {
l = "0"; l = "0";
} }
list.add(Long.valueOf(l)); list.add(l.contains(".") ? Double.parseDouble(l) : Long.parseLong(l));
} }
}); });
yAxis.forEach(y -> { yAxis.forEach(y -> {
...@@ -91,7 +92,7 @@ public class SparkCalc { ...@@ -91,7 +92,7 @@ public class SparkCalc {
if (StringUtils.isEmpty(l)) { if (StringUtils.isEmpty(l)) {
l = "0"; l = "0";
} }
list.add(Long.valueOf(l)); list.add(l.contains(".") ? Double.parseDouble(l) : Long.parseLong(l));
} }
}); });
iterator.add(RowFactory.create(list.toArray())); iterator.add(RowFactory.create(list.toArray()));
......
...@@ -40,12 +40,12 @@ CREATE TABLE `panel_group` ( ...@@ -40,12 +40,12 @@ CREATE TABLE `panel_group` (
-- Records of panel_group -- Records of panel_group
-- ---------------------------- -- ----------------------------
BEGIN; BEGIN;
INSERT INTO `panel_group` VALUES ('1001', '飞致云', NULL, 0, 'folder', NULL, NULL, 'self', NULL); INSERT INTO `panel_group` VALUES ('1001', '飞致云', NULL, 0, 'folder', NULL, NULL, 'self', NULL, NULL);
INSERT INTO `panel_group` VALUES ('1c78bc65-ea38-40bc-ad73-738a9b386379', '测试仪表盘1', '1001', 1, 'panel', NULL, 1615961778552, NULL, NULL); INSERT INTO `panel_group` VALUES ('1c78bc65-ea38-40bc-ad73-738a9b386379', '测试仪表盘1', '1001', 1, 'panel', NULL, 1615961778552, NULL, NULL, NULL);
INSERT INTO `panel_group` VALUES ('2003', '默认仪表盘1', NULL, NULL, 'panel', NULL, NULL, 'system', NULL); INSERT INTO `panel_group` VALUES ('2003', '默认仪表盘1', NULL, NULL, 'panel', NULL, NULL, 'system', NULL, NULL);
INSERT INTO `panel_group` VALUES ('2004', '默认仪表盘2', NULL, NULL, 'panel', NULL, NULL, 'system', NULL); INSERT INTO `panel_group` VALUES ('2004', '默认仪表盘2', NULL, NULL, 'panel', NULL, NULL, 'system', NULL, NULL);
INSERT INTO `panel_group` VALUES ('8ff64eb1-a96a-4218-85cd-01b437d21f2e', '测试仪表盘2', '1001', 1, 'panel', NULL, 1615200099827, NULL, NULL); INSERT INTO `panel_group` VALUES ('8ff64eb1-a96a-4218-85cd-01b437d21f2e', '测试仪表盘2', '1001', 1, 'panel', NULL, 1615200099827, NULL, NULL, NULL);
INSERT INTO `panel_group` VALUES ('d15f816d-46b7-4859-8ec8-2b19918dc772', 'TSEE', '1001', 1, 'folder', NULL, 1616403978419, NULL, NULL); INSERT INTO `panel_group` VALUES ('d15f816d-46b7-4859-8ec8-2b19918dc772', 'TSEE', '1001', 1, 'folder', NULL, 1616403978419, NULL, NULL, NULL);
COMMIT; COMMIT;
-- ---------------------------- -- ----------------------------
......
...@@ -108,72 +108,6 @@ export default { ...@@ -108,72 +108,6 @@ export default {
border-top: 1px solid #E6E6E6; border-top: 1px solid #E6E6E6;
} }
.padding-lr {
padding: 0 6px;
}
.itxst {
margin: 10px;
text-align: left;
}
.col {
width: 40%;
flex: 1;
padding: 10px;
border: solid 1px #eee;
border-radius: 5px;
float: left;
}
.col + .col {
margin-left: 10px;
}
.item {
padding: 2px 12px;
margin: 3px 3px 0 3px;
border: solid 1px #eee;
background-color: #f1f1f1;
text-align: left;
display: block;
}
.item + .item {
border-top: none;
margin-top: 3px;
}
.item:hover {
background-color: #fdfdfd;
cursor: pointer;
}
.item-axis {
padding: 2px 12px;
margin: 3px 3px 0 3px;
border: solid 1px #eee;
background-color: #f1f1f1;
text-align: left;
}
.item-axis:hover {
background-color: #fdfdfd;
cursor: pointer;
}
.el-form-item {
margin-bottom: 0;
}
.container {
width: 100%;
height: 600px;
border: 1px solid #000;
position: relative;
box-sizing: border-box;
}
.custom-position { .custom-position {
flex: 1; flex: 1;
display: flex; display: flex;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论