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
fbe9812d
Commit
fbe9812d
authored
Sep 09, 2021
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动补全完善版本
parent
8d8ebc6f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
DocumentServiceImpl.java
...main/java/com/dlink/service/impl/DocumentServiceImpl.java
+6
-1
index.tsx
dlink-web/src/components/Studio/index.tsx
+1
-2
index.tsx
dlink-web/src/pages/Document/index.tsx
+6
-1
No files found.
dlink-admin/src/main/java/com/dlink/service/impl/DocumentServiceImpl.java
View file @
fbe9812d
package
com
.
dlink
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.dlink.assertion.Asserts
;
import
com.dlink.db.service.impl.SuperServiceImpl
;
import
com.dlink.mapper.DocumentMapper
;
import
com.dlink.model.Document
;
...
...
@@ -20,6 +21,10 @@ public class DocumentServiceImpl extends SuperServiceImpl<DocumentMapper, Docume
@Override
public
List
<
Document
>
getFillAllByVersion
(
String
version
)
{
return
baseMapper
.
selectList
(
new
QueryWrapper
<
Document
>().
eq
(
"version"
,
version
).
eq
(
"enabled"
,
1
));
if
(
Asserts
.
isNotNullString
(
version
))
{
return
baseMapper
.
selectList
(
new
QueryWrapper
<
Document
>().
eq
(
"version"
,
version
).
eq
(
"enabled"
,
1
));
}
else
{
return
baseMapper
.
selectList
(
new
QueryWrapper
<
Document
>().
eq
(
"enabled"
,
1
));
}
}
}
dlink-web/src/components/Studio/index.tsx
View file @
fbe9812d
...
...
@@ -22,7 +22,7 @@ const Studio: React.FC<StudioProps> = (props) => {
const
{
rightClickMenu
,
dispatch
}
=
props
;
const
[
form
]
=
Form
.
useForm
();
getFillAllByVersion
(
'
1.12
'
,
dispatch
);
getFillAllByVersion
(
''
,
dispatch
);
showCluster
(
dispatch
);
showDataBase
(
dispatch
);
listSession
(
dispatch
);
...
...
@@ -46,7 +46,6 @@ const Studio: React.FC<StudioProps> = (props) => {
</
Col
>
<
Col
span=
{
16
}
>
<
StudioTabs
/>
{
/*<StudioConsole/>*/
}
</
Col
>
<
Col
span=
{
4
}
className=
{
styles
[
"vertical-tabs"
]
}
>
<
StudioRightTool
form=
{
form
}
/>
...
...
dlink-web/src/pages/Document/index.tsx
View file @
fbe9812d
...
...
@@ -17,10 +17,13 @@ import {
handleAddOrUpdate
,
handleOption
,
handleRemove
,
queryData
,
updateEnabled
}
from
"@/components/Common/crud"
;
import
{
getFillAllByVersion
}
from
"@/components/Studio/StudioEvent/DDL"
;
const
url
=
'/api/document'
;
const
DocumentTableList
:
React
.
FC
<
{}
>
=
()
=>
{
const
DocumentTableList
:
React
.
FC
<
{}
>
=
(
props
:
any
)
=>
{
const
{
dispatch
}
=
props
;
const
[
createModalVisible
,
handleModalVisible
]
=
useState
<
boolean
>
(
false
);
const
[
updateModalVisible
,
handleUpdateModalVisible
]
=
useState
<
boolean
>
(
false
);
const
[
formValues
,
setFormValues
]
=
useState
({});
...
...
@@ -424,6 +427,7 @@ const DocumentTableList: React.FC<{}> = () => {
if
(
actionRef
.
current
)
{
actionRef
.
current
.
reload
();
}
getFillAllByVersion
(
''
,
dispatch
);
}
}
}
rowKey="id"
...
...
@@ -441,6 +445,7 @@ const DocumentTableList: React.FC<{}> = () => {
if
(
actionRef
.
current
)
{
actionRef
.
current
.
reload
();
}
getFillAllByVersion
(
''
,
dispatch
);
}
}
}
onCancel=
{
()
=>
{
...
...
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