Commit 307535cd authored by coderTomato's avatar coderTomato

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

parent 5e898f34
......@@ -67,11 +67,11 @@ public class DBUtil {
ResultSet rs = stmt.executeQuery(sql)) {
List<String> columnList = new ArrayList<>();
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()) {
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 {
throw new SQLException("请指定任务ID");
}
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;
}
......
......@@ -124,6 +124,10 @@ const StudioTree: React.FC<StudioTreeProps> = (props) => {
if(node.isLeaf&&node.taskId) {
for(let item of tabs.panes){
if(item.key==node.taskId){
dispatch&&dispatch({
type: "Studio/saveToolHeight",
payload: toolHeight-0.0001,
});
dispatch&&dispatch({
type: "Studio/changeActiveKey",
payload: node.taskId,
......
......@@ -232,24 +232,24 @@
</plugin>
<!-- 将依赖的jar包拷贝到target目录下 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target</outputDirectory>
<excludeTransitive>false</excludeTransitive>
<stripVersion>false</stripVersion>
</configuration>
</execution>
</executions>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-dependency-plugin</artifactId>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>copy-dependencies</id>-->
<!-- <phase>package</phase>-->
<!-- <goals>-->
<!-- <goal>copy-dependencies</goal>-->
<!-- </goals>-->
<!-- <configuration>-->
<!-- <outputDirectory>${basedir}/target</outputDirectory>-->
<!-- <excludeTransitive>false</excludeTransitive>-->
<!-- <stripVersion>false</stripVersion>-->
<!-- </configuration>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
</plugins>
</build>
</project>
\ No newline at end of file
</project>
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