Commit 307535cd authored by coderTomato's avatar coderTomato

解决拖动后sql编辑器白屏的问题

parent 5e898f34
...@@ -67,11 +67,11 @@ public class DBUtil { ...@@ -67,11 +67,11 @@ public class DBUtil {
ResultSet rs = stmt.executeQuery(sql)) { ResultSet rs = stmt.executeQuery(sql)) {
List<String> columnList = new ArrayList<>(); List<String> columnList = new ArrayList<>();
for(int i =0;i<rs.getMetaData().getColumnCount();i++){ for(int i =0;i<rs.getMetaData().getColumnCount();i++){
columnList.add(rs.getMetaData().getColumnName(i)); columnList.add(rs.getMetaData().getColumnLabel(i+1));
} }
if (rs.next()) { if (rs.next()) {
for(int i =0;i<columnList.size();i++){ for(int i =0;i<columnList.size();i++){
map.put(columnList.get(i),rs.getString(i)); map.put(columnList.get(i),rs.getString(i+1));
} }
} }
} }
......
...@@ -38,7 +38,7 @@ public class Submiter { ...@@ -38,7 +38,7 @@ public class Submiter {
throw new SQLException("请指定任务ID"); throw new SQLException("请指定任务ID");
} }
return "select id, name, alias, type,check_point as checkPoint," + return "select id, name, alias, type,check_point as checkPoint," +
"save_point_path as savePointPath, parallelism,fragment,statement_set as statementSet,config" + "save_point_path as savePointPath, parallelism,fragment,statement_set as statementSet,config_json as config" +
" from dlink_task where id = " + id; " from dlink_task where id = " + id;
} }
......
...@@ -124,6 +124,10 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => { ...@@ -124,6 +124,10 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => {
if(node.isLeaf&&node.taskId) { if(node.isLeaf&&node.taskId) {
for(let item of tabs.panes){ for(let item of tabs.panes){
if(item.key==node.taskId){ if(item.key==node.taskId){
dispatch&&dispatch({
type: "Studio/saveToolHeight",
payload: toolHeight-0.0001,
});
dispatch&&dispatch({ dispatch&&dispatch({
type: "Studio/changeActiveKey", type: "Studio/changeActiveKey",
payload: node.taskId, payload: node.taskId,
......
...@@ -232,24 +232,24 @@ ...@@ -232,24 +232,24 @@
</plugin> </plugin>
<!-- 将依赖的jar包拷贝到target目录下 --> <!-- 将依赖的jar包拷贝到target目录下 -->
<plugin> <!-- <plugin>-->
<groupId>org.apache.maven.plugins</groupId> <!-- <groupId>org.apache.maven.plugins</groupId>-->
<artifactId>maven-dependency-plugin</artifactId> <!-- <artifactId>maven-dependency-plugin</artifactId>-->
<executions> <!-- <executions>-->
<execution> <!-- <execution>-->
<id>copy-dependencies</id> <!-- <id>copy-dependencies</id>-->
<phase>package</phase> <!-- <phase>package</phase>-->
<goals> <!-- <goals>-->
<goal>copy-dependencies</goal> <!-- <goal>copy-dependencies</goal>-->
</goals> <!-- </goals>-->
<configuration> <!-- <configuration>-->
<outputDirectory>${basedir}/target</outputDirectory> <!-- <outputDirectory>${basedir}/target</outputDirectory>-->
<excludeTransitive>false</excludeTransitive> <!-- <excludeTransitive>false</excludeTransitive>-->
<stripVersion>false</stripVersion> <!-- <stripVersion>false</stripVersion>-->
</configuration> <!-- </configuration>-->
</execution> <!-- </execution>-->
</executions> <!-- </executions>-->
</plugin> <!-- </plugin>-->
</plugins> </plugins>
</build> </build>
</project> </project>
\ No newline at end of file
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