Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaowei
dlink
Commits
307535cd
Commit
307535cd
authored
Dec 21, 2021
by
coderTomato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决拖动后sql编辑器白屏的问题
parent
5e898f34
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
22 deletions
+26
-22
DBUtil.java
dlink-app/src/main/java/com/dlink/app/db/DBUtil.java
+2
-2
Submiter.java
dlink-app/src/main/java/com/dlink/app/flinksql/Submiter.java
+1
-1
index.tsx
dlink-web/src/components/Studio/StudioTree/index.tsx
+4
-0
pom.xml
pom.xml
+19
-19
No files found.
dlink-app/src/main/java/com/dlink/app/db/DBUtil.java
View file @
307535cd
...
...
@@ -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
().
getColumn
Name
(
i
));
columnList
.
add
(
rs
.
getMetaData
().
getColumn
Label
(
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
));
}
}
}
...
...
dlink-app/src/main/java/com/dlink/app/flinksql/Submiter.java
View file @
307535cd
...
...
@@ -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
;
}
...
...
dlink-web/src/components/Studio/StudioTree/index.tsx
View file @
307535cd
...
...
@@ -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
,
...
...
pom.xml
View file @
307535cd
...
...
@@ -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>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment